Merge pull request #179 from verdaccio/ping-feature

Implement npm ping endpoint
This commit is contained in:
jotadeveloper 2017-04-30 16:26:39 +02:00 committed by GitHub
commit babf679914
3 changed files with 11 additions and 5 deletions

View File

@ -146,7 +146,7 @@ Basic features:
Advanced package control:
- Unpublishing packages (npm unpublish) - **supported**
- Tagging (npm tag) - supported
- Tagging (npm tag) - **supported**
- Deprecation (npm deprecate) - not supported
User management:
@ -158,6 +158,7 @@ Misc stuff:
- Searching (npm search) - **supported** (cli / browser)
- Starring (npm star, npm unstar) - not supported, doesn't make sense in private registry
- Ping (npm ping) - **supported**
## Storage

View File

@ -474,6 +474,11 @@ module.exports = function(config, auth, storage) {
});
});
// npm ping
app.get('/-/ping', function(req, res, next) {
next({});
});
return app;
};

View File

@ -10,10 +10,10 @@ const MyStreams = require('./streams');
const Proxy = require('./up-storage');
const Utils = require('./utils');
//
// Implements Storage interface
// (same for storage.js, local-storage.js, up-storage.js)
//
/**
* Implements Storage interface
* (same for storage.js, local-storage.js, up-storage.js).
*/
class Storage {
/**