0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-10 23:39:31 -05:00
verdaccio/lib
Miroslav Bajtoš dabf5e1c9a Make 404 responses compatible with CouchDB API
The CouchDB REST API returns always `"error": "not_found"` in the body
of a 404 response:
  http://couchdb-13.readthedocs.org/en/latest/api-basics/#http-status-codes

The npm client depends on the magic string 'not_found' as can be seen
in requestDone() in npm-registry-client/lib/request.js.

Before this change, npm install of an unknown package was reporting
the Sinopia error string and a stack trace of npm.

After this change, npm install of an unknown package returns a nice
error saying "the package is not in the npm registry, bug the author"
2014-03-13 19:47:44 +01:00
..
cli.js eslint update + style fixes 2014-02-23 21:20:50 +04:00
config.js fs interface refactoring 2014-01-13 20:48:51 +04:00
config_def.yaml adding config param to specify upload limits, fixes #39 2014-01-18 23:04:12 +04:00
config_gen.js eslint update + style fixes 2014-02-23 21:20:50 +04:00
error.js style fix 2013-10-26 16:18:36 +04:00
index.js Make 404 responses compatible with CouchDB API 2014-03-13 19:47:44 +01:00
local-fs.js fs interface refactoring 2014-01-13 20:48:51 +04:00
local-storage.js support setting different storage paths for different packages 2014-01-13 22:56:36 +04:00
logger.js eslint update + style fixes 2014-02-23 21:20:50 +04:00
middleware.js move eslint config to yaml 2014-02-07 00:56:46 +04:00
status-cats.js eslint update + style fixes 2014-02-23 21:20:50 +04:00
storage.js tag support, closes #8 2013-12-29 10:41:31 +04:00
streams.js using eslint to check the code 2013-12-23 04:14:57 +04:00
up-storage.js remove npmsslkeys 2014-02-23 20:55:41 +04:00
utils.js eslint update + style fixes 2014-02-23 21:20:50 +04:00