Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-02-14 04:29:54 +0400
committerisaacs <i@izs.me>2014-02-14 04:29:54 +0400
commite7eda6aaf3729bf0729325939f9f0b405c41d3d2 (patch)
tree05518f1fe0fc27b817b3436ea20e543d1de94766
parentbe576d8c0e918fb9838b4131979e078d5dcefb2c (diff)
npm-registry-client@0.4.2
-rw-r--r--node_modules/npm-registry-client/lib/adduser.js3
-rw-r--r--node_modules/npm-registry-client/lib/deprecate.js2
-rw-r--r--node_modules/npm-registry-client/lib/publish.js2
-rw-r--r--node_modules/npm-registry-client/lib/star.js2
-rw-r--r--node_modules/npm-registry-client/lib/unpublish.js3
-rw-r--r--node_modules/npm-registry-client/package.json10
-rw-r--r--node_modules/npm-registry-client/test/adduser-update.js2
-rw-r--r--node_modules/npm-registry-client/test/publish-again.js2
-rw-r--r--package.json2
9 files changed, 13 insertions, 15 deletions
diff --git a/node_modules/npm-registry-client/lib/adduser.js b/node_modules/npm-registry-client/lib/adduser.js
index 2684063cc..aebf71d67 100644
--- a/node_modules/npm-registry-client/lib/adduser.js
+++ b/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/node_modules/npm-registry-client/lib/deprecate.js b/node_modules/npm-registry-client/lib/deprecate.js
index 221e8adf4..4a2f9af24 100644
--- a/node_modules/npm-registry-client/lib/deprecate.js
+++ b/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/node_modules/npm-registry-client/lib/publish.js b/node_modules/npm-registry-client/lib/publish.js
index 956bc323f..d6525eb78 100644
--- a/node_modules/npm-registry-client/lib/publish.js
+++ b/node_modules/npm-registry-client/lib/publish.js
@@ -95,7 +95,7 @@ function putFirst (data, tardata, stat, username, email, cb) {
return cb(er, parsed, json, res)
// let's see what versions are already published.
- var getUrl = data.name + "?publishing=true"
+ var getUrl = data.name + "?write=true"
this.request("GET", getUrl, function (er, current) {
if (er)
return cb(er)
diff --git a/node_modules/npm-registry-client/lib/star.js b/node_modules/npm-registry-client/lib/star.js
index 5b7ab4afe..5c2375d04 100644
--- a/node_modules/npm-registry-client/lib/star.js
+++ b/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/node_modules/npm-registry-client/lib/unpublish.js b/node_modules/npm-registry-client/lib/unpublish.js
index 9aaac1b70..4bbbb347e 100644
--- a/node_modules/npm-registry-client/lib/unpublish.js
+++ b/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/node_modules/npm-registry-client/package.json b/node_modules/npm-registry-client/package.json
index e40e9a26b..b43a35e83 100644
--- a/node_modules/npm-registry-client/package.json
+++ b/node_modules/npm-registry-client/package.json
@@ -6,7 +6,7 @@
},
"name": "npm-registry-client",
"description": "Client for the npm registry",
- "version": "0.4.1",
+ "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.1",
- "dist": {
- "shasum": "9c49b3e44558e2072158fb085be8a083c5f83537"
- },
- "_from": "npm-registry-client@latest",
- "_resolved": "https://registry.npmjs.org/npm-registry-client/-/npm-registry-client-0.4.1.tgz"
+ "_id": "npm-registry-client@0.4.2",
+ "_from": "npm-registry-client@latest"
}
diff --git a/node_modules/npm-registry-client/test/adduser-update.js b/node_modules/npm-registry-client/test/adduser-update.js
index 03a1edbb2..1d70c5a78 100644
--- a/node_modules/npm-registry-client/test/adduser-update.js
+++ b/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/node_modules/npm-registry-client/test/publish-again.js b/node_modules/npm-registry-client/test/publish-again.js
index f03920409..011fbaf5a 100644
--- a/node_modules/npm-registry-client/test/publish-again.js
+++ b/node_modules/npm-registry-client/test/publish-again.js
@@ -36,7 +36,7 @@ tap.test("publish again", function (t) {
})
})
- server.expect("/npm-registry-client?publishing=true", 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) {
diff --git a/package.json b/package.json
index 84c892c38..8388161fb 100644
--- a/package.json
+++ b/package.json
@@ -57,7 +57,7 @@
"chownr": "0",
"npmlog": "0.0.6",
"ansi": "~0.2.1",
- "npm-registry-client": "~0.4.1",
+ "npm-registry-client": "~0.4.2",
"read-package-json": "~1.1.7",
"read-installed": "~0.2.2",
"glob": "~3.2.6",