Commit Graph

106 Commits

Author SHA1 Message Date
Yannick Croissant 5241ddfe84 Add search functionality 2014-04-12 19:20:26 +02:00
Alex Kocharin 2102e71c10 removing outdated todo 2014-03-30 19:43:03 +00:00
Alex Kocharin 4470cb7d55 making latest tag behaviour configurable 2014-03-29 02:31:34 +00:00
Alex Kocharin 4b06026d2e Revert "Make 404 responses compatible with CouchDB API"
This reverts commit dabf5e1c9a.

See discussion in #57
2014-03-29 01:08:28 +00:00
Alex Kocharin 0afd9d1bb3 Merge pull request #56 from strongloop/fix-unknown-package-name-response
Make 404 responses compatible with CouchDB API
2014-03-13 19:15:04 +00:00
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
Alex Kocharin a891354a32 always return content-length for tarballs 2014-03-07 19:39:20 +00:00
Alex Kocharin 691d62f403 eslint update + style fixes 2014-02-23 21:20:50 +04:00
Alex Kocharin a5d0094669 remove npmsslkeys
See commit in npmconf:
e0b4a4e5cc
2014-02-23 20:55:41 +04:00
Alex Kocharin 8840ac4c1f removing bad statement 2014-02-03 00:50:38 +04:00
Alex Kocharin 9f662a69e1 validate all url parameters better 2014-02-01 12:08:48 +04:00
Alex Kocharin 2add883370 adding config param to specify upload limits, fixes #39 2014-01-18 23:04:12 +04:00
Alex Kocharin e522347667 making loose semver versions work, ref #38 2014-01-18 22:57:44 +04:00
Alex Kocharin 5422de642e tag support, closes #8 2013-12-29 10:41:31 +04:00
Alex Kocharin 3c7ae2f37d a few bugfixes 2013-12-29 04:58:48 +04:00
Alex Kocharin 54535893ab adding support for new npm behaviour, closes #31 2013-12-29 04:53:31 +04:00
Alex Kocharin 985d705ad2 working on tags / incomplete 2013-12-27 17:06:30 +04:00
Alex Kocharin c0e34890e4 req.user -> req.remoteUser 2013-12-27 15:29:23 +04:00
Alex Kocharin 3abce5e2b6 better error message when publishing with bad auth header 2013-12-16 00:38:16 +04:00
Alex Kocharin 8149f883b0 default express.js to production mode, not development 2013-12-12 03:19:40 +04:00
Alex Kocharin 77182a755d expose sinopia's version in Server header for debugging purposes 2013-12-10 14:12:34 +04:00
Alex Kocharin bbb402f762 detecting http loops 2013-12-09 07:59:31 +04:00
Alex Kocharin 4d70d8065e add via tag to prevent loops 2013-12-09 07:58:25 +04:00
Alex Kocharin a257fc3962 swallow bad auth errors, fixes #17 2013-12-06 21:46:51 +04:00
Alex Kocharin 9ee8d484db dealing with internal errors in express.js 2013-12-05 16:31:21 +04:00
Alex Kocharin 7b0ab14d4c dealing with express.js errors 2013-12-05 16:27:23 +04:00
Alex Kocharin fecffa2a39 return an appropriate X-Status-Cat header 2013-11-24 21:06:01 +04:00
Alex Kocharin b2f6128e9c style fix 2013-10-26 16:18:36 +04:00
Alex Kocharin dafcf8647c basic support for unpublishing individual versions (local only) 2013-10-23 10:15:17 +04:00
Alex Kocharin 61658cfbdc added utils.is_object function for convenience 2013-10-22 11:29:57 +04:00
Alex Kocharin 3ca3ac2dae logging fs errors 2013-10-19 01:17:53 +04:00
Alex Kocharin 957f915d42 fixing a next(err) function called twice 2013-10-11 13:49:00 +04:00
Alex Kocharin 9ee525b317 logging engine added, much better logs now 2013-10-11 09:32:59 +04:00
Alex Kocharin b6082f1216 some work towards unpublishing packages 2013-10-11 09:32:12 +04:00
Alex Kocharin 7a3255d1ab very basic support for unpublishing a package 2013-10-06 12:27:50 +04:00
Alex Kocharin b9cb60da64 replacing connect.bodyParser with connect.json 2013-10-06 11:26:05 +04:00
Alex Kocharin bffc6db38f better error message, ref #9 2013-10-05 18:49:08 +04:00
Alex Kocharin f38a897fa2 improving tags support (read-only for now) 2013-10-02 22:26:20 +04:00
Alex Kocharin 1556ce195a npm star/unstar calls now return proper error 2013-10-02 22:01:18 +04:00
Alex Kocharin 21ad8945d9 update 2013-09-28 20:46:55 +04:00
Alex Kocharin 5dbc825892 through -> streams2 migrate - final 2013-09-27 15:31:28 +04:00
Alex Kocharin fa1c4f30ee fixing bug with error handling 2013-09-25 12:10:59 +04:00
Alex Kocharin bdd748c6e2 cleanup incomplete upload requests 2013-09-24 10:28:26 +04:00
Alex Kocharin 86f02bda7d add md5 etags for json 2013-07-03 05:49:24 +04:00
Alex Kocharin 1eda590bfc use compression if somebody asked for it 2013-06-20 21:10:33 +04:00
Alex Kocharin dfd0459c03 turning uplink requests into streams 2013-06-20 17:41:07 +04:00
Alex Kocharin d7eb7c9ef8 working on streams 2013-06-20 17:07:34 +04:00
Alex Kocharin 5aa335cd91 a lot of work done... 2013-06-18 22:14:55 +04:00
Alex Kocharin f0f1f76286 upstream error handling 2013-06-14 11:56:02 +04:00
Alex Kocharin 8afafa9a17 allow anonymous users (users without auth header) 2013-06-14 11:10:50 +04:00
Alex Kocharin a8fa475dc1 config file changes 2013-06-13 18:21:14 +04:00
Alex Kocharin c705152966 name change + a lot of work... 2013-06-08 05:16:28 +04:00
Alex Kocharin 10777d6ded proxying with https 2013-06-01 05:06:36 +04:00
Alex Kocharin d89494b533 working on drivers... 2013-06-01 02:57:28 +04:00
Alex Kocharin af452c93d3 initial development 2013-05-31 10:26:11 +04:00
Alex Kocharin b7bd0c2302 initial commit 2013-05-22 10:48:04 +04:00