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
path: root/lib
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2022-04-14 18:59:10 +0300
committerLuke Karrys <luke@lukekarrys.com>2022-04-15 01:30:47 +0300
commitb10462ed156ada4d4ad90e6cf613e292a9361a87 (patch)
tree2d3aa25be933575f57c9edc3e102e0a828df3d87 /lib
parentd75ed474b4ed5bcf259936d29aa3a9937800010d (diff)
fix: deprecate completion
Found a bug refactoring the tests. libnpmaccess mutates the response from the server, and the completion code was not looking for the right value.
Diffstat (limited to 'lib')
-rw-r--r--lib/commands/deprecate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/commands/deprecate.js b/lib/commands/deprecate.js
index 88eb320c3..0ae88f192 100644
--- a/lib/commands/deprecate.js
+++ b/lib/commands/deprecate.js
@@ -26,7 +26,7 @@ class Deprecate extends BaseCommand {
const packages = await libaccess.lsPackages(username, this.npm.flatOptions)
return Object.keys(packages)
.filter((name) =>
- packages[name] === 'write' &&
+ packages[name] === 'read-write' &&
(opts.conf.argv.remain.length === 0 ||
name.startsWith(opts.conf.argv.remain[0])))
}