Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created January 15, 2014 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/04b1837116325f28f431 to your computer and use it in GitHub Desktop.
Save isaacs/04b1837116325f28f431 to your computer and use it in GitHub Desktop.
$ cat package.json
{ "name":"npm-test-blerg"
, "version" : "0.0.2"
, "scripts" : { "test" : "node test.js" }
, "publishConfig": {"tag": "foo"}
}
$ npm publish ; curl http://registry.npmjs.org/npm-test-blerg
npm http PUT https://registry.npmjs.org/npm-test-blerg
npm http 201 https://registry.npmjs.org/npm-test-blerg
+ npm-test-blerg@0.0.2
{"error":"not_found","reason":"document not found"}
$ curl http://67.228.31.148/prettydiff/-/prettydiff-0.0.199.tgz -H host:registry.npmjs.org
$ curl http://registry.npmjs.org/npm-test-blerg
{"error":"not_found","reason":"document not found"}
$ curl http://registry.npmjs.org/npm-test-blerg
{"error":"not_found","reason":"document not found"}
$ curl http://registry.npmjs.org/npm-test-blerg
{"error":"not_found","reason":"document not found"}
$ curl http://67.228.31.148/npm-test-blerg -H host:registry.npmjs.org
{"error":"not_found","reason":"document not found"}
$ curl http://67.228.31.149/npm-test-blerg -H host:registry.npmjs.org
{"_id":"npm-test-blerg","_rev":"1-9ea2370663b2e91d2928d0137d730f09","name":"npm-test-blerg","description":"just an npm test","dist-tags":{"foo":"0.0.2","latest":"0.0.2"},"versions":{"0.0.2":{"name":"npm-test-blerg","version":"0.0.2","scripts":{"test":"node test.js"},"publishConfig":{"tag":"foo"},"readme":"just an npm test\n","readmeFilename":"README","description":"just an npm test","_id":"npm-test-blerg@0.0.2","dist":{"shasum":"6df85751c35d09233efabed17bb6703d9a833cc3","tarball":"http://registry.npmjs.org/npm-test-blerg/-/npm-test-blerg-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.23","_npmUser":{"name":"isaacs","email":"i@izs.me"},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"directories":{}}},"readme":"just an npm test\n","maintainers":[{"name":"isaacs","email":"i@izs.me"}],"time":{"0.0.2":"2014-01-15T19:56:02.956Z"},"_attachments":{"npm-test-blerg-0.0.2.tgz":{"content_type":"application/octet-stream","revpos":1,"digest":"md5-dYbkoGvu2UCPwTlXgiKYpg==","length":387,"stub":true}}}
$ curl http://67.228.31.148/npm-test-blerg -H host:registry.npmjs.org
{"error":"not_found","reason":"document not found"}
$ curl http://67.228.31.148/npm-test-blerg -H host:registry.npmjs.org
{"error":"not_found","reason":"document not found"}
$ curl http://67.228.31.148/npm-test-blerg -H host:registry.npmjs.org
{"error":"not_found","reason":"document not found"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment