diff options
Diffstat (limited to 'deps/npm/node_modules')
8 files changed, 15 insertions, 16 deletions
diff --git a/deps/npm/node_modules/npm-registry-client/lib/adduser.js b/deps/npm/node_modules/npm-registry-client/lib/adduser.js index 2684063cc..aebf71d67 100644 --- a/deps/npm/node_modules/npm-registry-client/lib/adduser.js +++ b/deps/npm/node_modules/npm-registry-client/lib/adduser.js @@ -81,7 +81,8 @@ function adduser (username, password, email, cb) { this.log.verbose("adduser", "update existing user") return this.request('GET' - , '/-/user/org.couchdb.user:'+encodeURIComponent(username) + , '/-/user/org.couchdb.user:'+encodeURIComponent(username) + + '?write=true' , function (er, data, json, response) { if (er || data.error) { return cb(er, data, json, response) diff --git a/deps/npm/node_modules/npm-registry-client/lib/deprecate.js b/deps/npm/node_modules/npm-registry-client/lib/deprecate.js index 221e8adf4..4a2f9af24 100644 --- a/deps/npm/node_modules/npm-registry-client/lib/deprecate.js +++ b/deps/npm/node_modules/npm-registry-client/lib/deprecate.js @@ -14,7 +14,7 @@ function deprecate (name, ver, message, cb) { var users = {} - this.get(name, function (er, data) { + this.get(name + '?write=true', function (er, data) { if (er) return cb(er) // filter all the versions that match Object.keys(data.versions).filter(function (v) { diff --git a/deps/npm/node_modules/npm-registry-client/lib/publish.js b/deps/npm/node_modules/npm-registry-client/lib/publish.js index acc0ca81c..d6525eb78 100644 --- a/deps/npm/node_modules/npm-registry-client/lib/publish.js +++ b/deps/npm/node_modules/npm-registry-client/lib/publish.js @@ -18,8 +18,8 @@ function publish (data, tarball, cb) { return cb(er) } - if (data.name !== encodeURIComponent(data.name).toLowerCase()) - return cb(new Error('invalid name: must be lowercase and url-safe')) + if (data.name !== encodeURIComponent(data.name)) + return cb(new Error('invalid name: must be url-safe')) var ver = semver.clean(data.version) if (!ver) @@ -95,7 +95,8 @@ function putFirst (data, tardata, stat, username, email, cb) { return cb(er, parsed, json, res) // let's see what versions are already published. - this.request("GET", data.name, function (er, current) { + var getUrl = data.name + "?write=true" + this.request("GET", getUrl, function (er, current) { if (er) return cb(er) putNext.call(this, data.version, root, current, cb) diff --git a/deps/npm/node_modules/npm-registry-client/lib/star.js b/deps/npm/node_modules/npm-registry-client/lib/star.js index 5b7ab4afe..5c2375d04 100644 --- a/deps/npm/node_modules/npm-registry-client/lib/star.js +++ b/deps/npm/node_modules/npm-registry-client/lib/star.js @@ -7,7 +7,7 @@ function star (package, starred, cb) { var users = {} - this.request("GET", package, function (er, fullData) { + this.request("GET", package + '?write=true', function (er, fullData) { if (er) return cb(er) fullData = { _id: fullData._id diff --git a/deps/npm/node_modules/npm-registry-client/lib/unpublish.js b/deps/npm/node_modules/npm-registry-client/lib/unpublish.js index 9aaac1b70..4bbbb347e 100644 --- a/deps/npm/node_modules/npm-registry-client/lib/unpublish.js +++ b/deps/npm/node_modules/npm-registry-client/lib/unpublish.js @@ -14,7 +14,8 @@ var semver = require("semver") function unpublish (name, ver, cb) { if (typeof cb !== "function") cb = ver, ver = null - this.get(name, null, -1, true, function (er, data) { + var u = name + '?write=true' + this.get(u, null, -1, true, function (er, data) { if (er) { this.log.info("unpublish", name+" not published") return cb() diff --git a/deps/npm/node_modules/npm-registry-client/package.json b/deps/npm/node_modules/npm-registry-client/package.json index d9e22e289..b43a35e83 100644 --- a/deps/npm/node_modules/npm-registry-client/package.json +++ b/deps/npm/node_modules/npm-registry-client/package.json @@ -6,7 +6,7 @@ }, "name": "npm-registry-client", "description": "Client for the npm registry", - "version": "0.4.0", + "version": "0.4.2", "repository": { "url": "git://github.com/isaacs/npm-registry-client" }, @@ -38,10 +38,6 @@ "url": "https://github.com/isaacs/npm-registry-client/issues" }, "homepage": "https://github.com/isaacs/npm-registry-client", - "_id": "npm-registry-client@0.4.0", - "dist": { - "shasum": "30d0c178b7f2e54183a6a3fc9fe4071eb10290bf" - }, - "_from": "npm-registry-client@0.4.0", - "_resolved": "https://registry.npmjs.org/npm-registry-client/-/npm-registry-client-0.4.0.tgz" + "_id": "npm-registry-client@0.4.2", + "_from": "npm-registry-client@latest" } diff --git a/deps/npm/node_modules/npm-registry-client/test/adduser-update.js b/deps/npm/node_modules/npm-registry-client/test/adduser-update.js index 03a1edbb2..1d70c5a78 100644 --- a/deps/npm/node_modules/npm-registry-client/test/adduser-update.js +++ b/deps/npm/node_modules/npm-registry-client/test/adduser-update.js @@ -32,7 +32,7 @@ tap.test("update a user acct", function (t) { res.json({error: "conflict"}) }) - server.expect("GET", "/-/user/org.couchdb.user:username", function (req, res) { + server.expect("GET", "/-/user/org.couchdb.user:username?write=true", function (req, res) { t.equal(req.method, "GET") res.json(userdata) }) diff --git a/deps/npm/node_modules/npm-registry-client/test/publish-again.js b/deps/npm/node_modules/npm-registry-client/test/publish-again.js index 0170a6f3a..011fbaf5a 100644 --- a/deps/npm/node_modules/npm-registry-client/test/publish-again.js +++ b/deps/npm/node_modules/npm-registry-client/test/publish-again.js @@ -36,7 +36,7 @@ tap.test("publish again", function (t) { }) }) - server.expect("/npm-registry-client", function (req, res) { + server.expect("/npm-registry-client?write=true", function (req, res) { t.equal(req.method, "GET") t.ok(lastTime) for (var i in lastTime.versions) { |