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:
authorForrest L Norvell <forrest@npmjs.com>2014-06-06 08:34:31 +0400
committerForrest L Norvell <forrest@npmjs.com>2014-06-13 23:44:43 +0400
commitbb369f71a2fc4ba1c1fbfc3da41a4b1d11becca2 (patch)
tree5aa01a3635b911b6ebf671d3bec4878157373138 /node_modules/npm-registry-client/lib/tag.js
parent1c2938189122c0640b9403746a6bfed4d6142b27 (diff)
upgrade to npm-registry-client@2.0.0
Diffstat (limited to 'node_modules/npm-registry-client/lib/tag.js')
-rw-r--r--node_modules/npm-registry-client/lib/tag.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/node_modules/npm-registry-client/lib/tag.js b/node_modules/npm-registry-client/lib/tag.js
index d7ebf08a6..65430fe93 100644
--- a/node_modules/npm-registry-client/lib/tag.js
+++ b/node_modules/npm-registry-client/lib/tag.js
@@ -1,6 +1,5 @@
-
module.exports = tag
-function tag (project, version, tagName, cb) {
- this.request("PUT", project+"/"+tagName, JSON.stringify(version), cb)
+function tag (uri, version, tagName, cb) {
+ this.request("PUT", uri+"/"+tagName, { body : JSON.stringify(version) }, cb)
}