diff options
author | Gar <gar+gh@danger.computer> | 2022-04-14 18:59:10 +0300 |
---|---|---|
committer | Luke Karrys <luke@lukekarrys.com> | 2022-04-15 01:30:47 +0300 |
commit | b10462ed156ada4d4ad90e6cf613e292a9361a87 (patch) | |
tree | 2d3aa25be933575f57c9edc3e102e0a828df3d87 /lib | |
parent | d75ed474b4ed5bcf259936d29aa3a9937800010d (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.js | 2 |
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]))) } |