mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-21 07:29:37 +01:00
Merge pull request #179 from verdaccio/ping-feature
Implement npm ping endpoint
This commit is contained in:
commit
babf679914
@ -146,7 +146,7 @@ Basic features:
|
|||||||
Advanced package control:
|
Advanced package control:
|
||||||
|
|
||||||
- Unpublishing packages (npm unpublish) - **supported**
|
- Unpublishing packages (npm unpublish) - **supported**
|
||||||
- Tagging (npm tag) - supported
|
- Tagging (npm tag) - **supported**
|
||||||
- Deprecation (npm deprecate) - not supported
|
- Deprecation (npm deprecate) - not supported
|
||||||
|
|
||||||
User management:
|
User management:
|
||||||
@ -158,6 +158,7 @@ Misc stuff:
|
|||||||
|
|
||||||
- Searching (npm search) - **supported** (cli / browser)
|
- Searching (npm search) - **supported** (cli / browser)
|
||||||
- Starring (npm star, npm unstar) - not supported, doesn't make sense in private registry
|
- Starring (npm star, npm unstar) - not supported, doesn't make sense in private registry
|
||||||
|
- Ping (npm ping) - **supported**
|
||||||
|
|
||||||
## Storage
|
## Storage
|
||||||
|
|
||||||
|
@ -474,6 +474,11 @@ module.exports = function(config, auth, storage) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// npm ping
|
||||||
|
app.get('/-/ping', function(req, res, next) {
|
||||||
|
next({});
|
||||||
|
});
|
||||||
|
|
||||||
return app;
|
return app;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ const MyStreams = require('./streams');
|
|||||||
const Proxy = require('./up-storage');
|
const Proxy = require('./up-storage');
|
||||||
const Utils = require('./utils');
|
const Utils = require('./utils');
|
||||||
|
|
||||||
//
|
/**
|
||||||
// Implements Storage interface
|
* Implements Storage interface
|
||||||
// (same for storage.js, local-storage.js, up-storage.js)
|
* (same for storage.js, local-storage.js, up-storage.js).
|
||||||
//
|
*/
|
||||||
class Storage {
|
class Storage {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user