diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2017-05-09 14:46:02 -0700 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-05-23 19:39:43 +0200 |
commit | c0d858f8bb8ba5212548da2fba6a7bc02db0462b (patch) | |
tree | 99f043ec5aec3f5150a2aed0f62597234b158140 /deps/npm/lib/unpublish.js | |
parent | 994617370e8e66f3ea9488fec32fd912e7902396 (diff) | |
download | android-node-v8-c0d858f8bb8ba5212548da2fba6a7bc02db0462b.tar.gz android-node-v8-c0d858f8bb8ba5212548da2fba6a7bc02db0462b.tar.bz2 android-node-v8-c0d858f8bb8ba5212548da2fba6a7bc02db0462b.zip |
deps: upgrade npm beta to 5.0.0-beta.56
PR-URL: https://github.com/nodejs/node/pull/12936
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'deps/npm/lib/unpublish.js')
-rw-r--r-- | deps/npm/lib/unpublish.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/deps/npm/lib/unpublish.js b/deps/npm/lib/unpublish.js index ee050c2846..4ea8187025 100644 --- a/deps/npm/lib/unpublish.js +++ b/deps/npm/lib/unpublish.js @@ -99,20 +99,20 @@ function gotProject (project, version, publishConfig, cb_) { var registry = mappedConfig.client // remove from the cache first - npm.commands.cache(['clean', project, version], function (er) { - if (er) { - log.error('unpublish', 'Failed to clean cache') - return cb(er) + // npm.commands.cache(['clean', project, version], function (er) { + // if (er) { + // log.error('unpublish', 'Failed to clean cache') + // return cb(er) + // } + + mapToRegistry(project, config, function (er, uri, auth) { + if (er) return cb(er) + + var params = { + version: version, + auth: auth } - - mapToRegistry(project, config, function (er, uri, auth) { - if (er) return cb(er) - - var params = { - version: version, - auth: auth - } - registry.unpublish(uri, params, cb) - }) + registry.unpublish(uri, params, cb) }) + // }) } |