immosquare-cleaner 0.1.42 → 0.1.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/node_modules/.bin/ncu +1 -1
- data/node_modules/.bin/npm-check-updates +1 -1
- data/node_modules/.bin/rimraf +1 -1
- data/node_modules/@eslint/config-array/dist/cjs/index.cjs +5 -0
- data/node_modules/@eslint/config-array/dist/esm/index.js +5 -0
- data/node_modules/@eslint/config-array/package.json +1 -1
- data/node_modules/@eslint/js/package.json +1 -1
- data/node_modules/ansi-regex/index.d.ts +13 -9
- data/node_modules/ansi-regex/index.js +5 -3
- data/node_modules/ansi-regex/license +1 -1
- data/node_modules/ansi-regex/package.json +6 -9
- data/node_modules/ansi-regex/readme.md +8 -2
- data/node_modules/brace-expansion/README.md +0 -6
- data/node_modules/brace-expansion/index.js +84 -86
- data/node_modules/brace-expansion/package.json +4 -3
- data/node_modules/chalk/license +1 -1
- data/node_modules/chalk/package.json +23 -38
- data/node_modules/chalk/readme.md +85 -69
- data/node_modules/chalk/source/index.js +84 -80
- data/node_modules/eslint/lib/cli.js +0 -20
- data/node_modules/eslint/lib/languages/js/source-code/source-code.js +19 -0
- data/node_modules/eslint/lib/linter/apply-disable-directives.js +24 -12
- data/node_modules/eslint/lib/linter/linter.js +44 -20
- data/node_modules/eslint/lib/linter/report-translator.js +10 -10
- data/node_modules/eslint/lib/linter/rule-fixer.js +38 -15
- data/node_modules/eslint/lib/shared/flags.js +2 -2
- data/node_modules/eslint/package.json +5 -4
- data/node_modules/glob/LICENSE +7 -1
- data/node_modules/glob/README.md +284 -1120
- data/node_modules/glob/common.js +238 -0
- data/node_modules/glob/glob.js +790 -0
- data/node_modules/glob/package.json +34 -76
- data/node_modules/glob/sync.js +486 -0
- data/node_modules/lru-cache/LICENSE +1 -1
- data/node_modules/lru-cache/README.md +104 -1055
- data/node_modules/lru-cache/index.js +246 -1139
- data/node_modules/lru-cache/package.json +11 -75
- data/node_modules/minimatch/LICENSE +1 -1
- data/node_modules/minimatch/README.md +65 -289
- data/node_modules/minimatch/package.json +14 -67
- data/node_modules/npm-check-updates/README.md +9 -12
- data/node_modules/npm-check-updates/build/cli.js +21 -21
- data/node_modules/npm-check-updates/build/cli.js.map +1 -1
- data/node_modules/npm-check-updates/build/index-CWktU8PK.js +58 -0
- data/node_modules/npm-check-updates/build/index-CWktU8PK.js.map +1 -0
- data/node_modules/npm-check-updates/build/index.d.ts +1 -3
- data/node_modules/npm-check-updates/build/index.js +207 -223
- data/node_modules/npm-check-updates/build/index.js.map +1 -1
- data/node_modules/npm-check-updates/package.json +101 -105
- data/node_modules/rimraf/LICENSE +1 -1
- data/node_modules/rimraf/README.md +70 -188
- data/node_modules/rimraf/bin.js +50 -0
- data/node_modules/rimraf/package.json +16 -74
- data/node_modules/rimraf/rimraf.js +364 -0
- data/node_modules/semver/README.md +27 -221
- data/node_modules/semver/bin/semver.js +84 -107
- data/node_modules/semver/package.json +14 -63
- data/node_modules/semver/semver.js +1643 -0
- data/node_modules/strip-ansi/index.d.ts +4 -2
- data/node_modules/strip-ansi/index.js +3 -13
- data/node_modules/strip-ansi/license +1 -1
- data/node_modules/strip-ansi/package.json +7 -10
- data/node_modules/strip-ansi/readme.md +7 -2
- data/node_modules/strip-json-comments/index.d.ts +13 -18
- data/node_modules/strip-json-comments/index.js +38 -68
- data/node_modules/strip-json-comments/package.json +5 -13
- data/node_modules/strip-json-comments/readme.md +18 -15
- data/node_modules/yallist/package.json +1 -1
- data/node_modules/yallist/yallist.js +3 -3
- data/package.json +3 -3
- metadata +14 -736
- data/node_modules/@eslint/config-array/node_modules/minimatch/LICENSE +0 -15
- data/node_modules/@eslint/config-array/node_modules/minimatch/README.md +0 -230
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
- data/node_modules/@eslint/config-array/node_modules/minimatch/package.json +0 -33
- data/node_modules/chalk/source/index.d.ts +0 -320
- data/node_modules/chalk/source/utilities.js +0 -33
- data/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- data/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- data/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- data/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
- data/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- data/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- data/node_modules/eslint/node_modules/chalk/license +0 -9
- data/node_modules/eslint/node_modules/chalk/package.json +0 -68
- data/node_modules/eslint/node_modules/chalk/readme.md +0 -341
- data/node_modules/eslint/node_modules/chalk/source/index.js +0 -229
- data/node_modules/eslint/node_modules/minimatch/LICENSE +0 -15
- data/node_modules/eslint/node_modules/minimatch/README.md +0 -230
- data/node_modules/eslint/node_modules/minimatch/minimatch.js +0 -947
- data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
- data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
- data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
- data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
- data/node_modules/eslint/node_modules/minimatch/package.json +0 -33
- data/node_modules/eslint/node_modules/strip-ansi/index.d.ts +0 -17
- data/node_modules/eslint/node_modules/strip-ansi/index.js +0 -4
- data/node_modules/eslint/node_modules/strip-ansi/license +0 -9
- data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +0 -37
- data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/index.js +0 -10
- data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/license +0 -9
- data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/package.json +0 -55
- data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +0 -78
- data/node_modules/eslint/node_modules/strip-ansi/package.json +0 -54
- data/node_modules/eslint/node_modules/strip-ansi/readme.md +0 -46
- data/node_modules/glob/dist/commonjs/glob.d.ts +0 -344
- data/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/glob.js +0 -243
- data/node_modules/glob/dist/commonjs/glob.js.map +0 -1
- data/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
- data/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/has-magic.js +0 -27
- data/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
- data/node_modules/glob/dist/commonjs/ignore.d.ts +0 -20
- data/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/ignore.js +0 -108
- data/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
- data/node_modules/glob/dist/commonjs/index.d.ts +0 -96
- data/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/index.js +0 -68
- data/node_modules/glob/dist/commonjs/index.js.map +0 -1
- data/node_modules/glob/dist/commonjs/package.json +0 -1
- data/node_modules/glob/dist/commonjs/pattern.d.ts +0 -77
- data/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/pattern.js +0 -219
- data/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
- data/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
- data/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/processor.js +0 -302
- data/node_modules/glob/dist/commonjs/processor.js.map +0 -1
- data/node_modules/glob/dist/commonjs/walker.d.ts +0 -96
- data/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/walker.js +0 -358
- data/node_modules/glob/dist/commonjs/walker.js.map +0 -1
- data/node_modules/glob/dist/esm/bin.d.mts +0 -3
- data/node_modules/glob/dist/esm/bin.d.mts.map +0 -1
- data/node_modules/glob/dist/esm/bin.mjs +0 -275
- data/node_modules/glob/dist/esm/bin.mjs.map +0 -1
- data/node_modules/glob/dist/esm/glob.d.ts +0 -344
- data/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/glob.js +0 -239
- data/node_modules/glob/dist/esm/glob.js.map +0 -1
- data/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
- data/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/has-magic.js +0 -23
- data/node_modules/glob/dist/esm/has-magic.js.map +0 -1
- data/node_modules/glob/dist/esm/ignore.d.ts +0 -20
- data/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/ignore.js +0 -104
- data/node_modules/glob/dist/esm/ignore.js.map +0 -1
- data/node_modules/glob/dist/esm/index.d.ts +0 -96
- data/node_modules/glob/dist/esm/index.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/index.js +0 -56
- data/node_modules/glob/dist/esm/index.js.map +0 -1
- data/node_modules/glob/dist/esm/package.json +0 -1
- data/node_modules/glob/dist/esm/pattern.d.ts +0 -77
- data/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/pattern.js +0 -215
- data/node_modules/glob/dist/esm/pattern.js.map +0 -1
- data/node_modules/glob/dist/esm/processor.d.ts +0 -59
- data/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/processor.js +0 -295
- data/node_modules/glob/dist/esm/processor.js.map +0 -1
- data/node_modules/glob/dist/esm/walker.d.ts +0 -96
- data/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/walker.js +0 -352
- data/node_modules/glob/dist/esm/walker.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/LICENSE +0 -15
- data/node_modules/glob/node_modules/minimatch/README.md +0 -454
- data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
- data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
- data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
- data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.js +0 -589
- data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
- data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
- data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
- data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.js +0 -22
- data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
- data/node_modules/glob/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/index.js +0 -1011
- data/node_modules/glob/node_modules/minimatch/dist/cjs/index.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/package.json +0 -3
- data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
- data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.js +0 -24
- data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
- data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
- data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
- data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.js +0 -585
- data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
- data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
- data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
- data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.js +0 -18
- data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
- data/node_modules/glob/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/index.js +0 -995
- data/node_modules/glob/node_modules/minimatch/dist/mjs/index.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/package.json +0 -3
- data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
- data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.js +0 -20
- data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
- data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -135
- data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -203
- data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -46
- data/node_modules/glob/node_modules/minimatch/package.json +0 -86
- data/node_modules/glob/node_modules/minipass/LICENSE +0 -15
- data/node_modules/glob/node_modules/minipass/README.md +0 -825
- data/node_modules/glob/node_modules/minipass/dist/commonjs/index.d.ts +0 -549
- data/node_modules/glob/node_modules/minipass/dist/commonjs/index.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minipass/dist/commonjs/index.js +0 -1028
- data/node_modules/glob/node_modules/minipass/dist/commonjs/index.js.map +0 -1
- data/node_modules/glob/node_modules/minipass/dist/commonjs/package.json +0 -1
- data/node_modules/glob/node_modules/minipass/dist/esm/index.d.ts +0 -549
- data/node_modules/glob/node_modules/minipass/dist/esm/index.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minipass/dist/esm/index.js +0 -1018
- data/node_modules/glob/node_modules/minipass/dist/esm/index.js.map +0 -1
- data/node_modules/glob/node_modules/minipass/dist/esm/package.json +0 -1
- data/node_modules/glob/node_modules/minipass/package.json +0 -82
- data/node_modules/lru-cache/index.d.ts +0 -869
- data/node_modules/lru-cache/index.mjs +0 -1227
- data/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
- data/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
- data/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
- data/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
- data/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
- data/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
- data/node_modules/minimatch/dist/cjs/ast.js +0 -589
- data/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
- data/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
- data/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
- data/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
- data/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
- data/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
- data/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
- data/node_modules/minimatch/dist/cjs/escape.js +0 -22
- data/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
- data/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
- data/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
- data/node_modules/minimatch/dist/cjs/index.js +0 -1011
- data/node_modules/minimatch/dist/cjs/index.js.map +0 -1
- data/node_modules/minimatch/dist/cjs/package.json +0 -3
- data/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
- data/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
- data/node_modules/minimatch/dist/cjs/unescape.js +0 -24
- data/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
- data/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
- data/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
- data/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
- data/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
- data/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
- data/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
- data/node_modules/minimatch/dist/mjs/ast.js +0 -585
- data/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
- data/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
- data/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
- data/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
- data/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
- data/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
- data/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
- data/node_modules/minimatch/dist/mjs/escape.js +0 -18
- data/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
- data/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
- data/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
- data/node_modules/minimatch/dist/mjs/index.js +0 -995
- data/node_modules/minimatch/dist/mjs/index.js.map +0 -1
- data/node_modules/minimatch/dist/mjs/package.json +0 -3
- data/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
- data/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
- data/node_modules/minimatch/dist/mjs/unescape.js +0 -20
- data/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
- data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js +0 -66
- data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js.map +0 -1
- data/node_modules/npm-check-updates/build/package.json +0 -183
- data/node_modules/npm-check-updates/build/src/bin/cli.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/bin/cli.js +0 -182
- data/node_modules/npm-check-updates/build/src/bin/cli.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/cli-options.d.ts +0 -9
- data/node_modules/npm-check-updates/build/src/cli-options.js +0 -795
- data/node_modules/npm-check-updates/build/src/cli-options.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/index.d.ts +0 -17
- data/node_modules/npm-check-updates/build/src/index.js +0 -316
- data/node_modules/npm-check-updates/build/src/index.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/cache.d.ts +0 -17
- data/node_modules/npm-check-updates/build/src/lib/cache.js +0 -105
- data/node_modules/npm-check-updates/build/src/lib/cache.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/chalk.d.ts +0 -7
- data/node_modules/npm-check-updates/build/src/lib/chalk.js +0 -66
- data/node_modules/npm-check-updates/build/src/lib/chalk.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/determinePackageManager.d.ts +0 -8
- data/node_modules/npm-check-updates/build/src/lib/determinePackageManager.js +0 -32
- data/node_modules/npm-check-updates/build/src/lib/determinePackageManager.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/doctor.d.ts +0 -8
- data/node_modules/npm-check-updates/build/src/lib/doctor.js +0 -290
- data/node_modules/npm-check-updates/build/src/lib/doctor.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/exists.d.ts +0 -3
- data/node_modules/npm-check-updates/build/src/lib/exists.js +0 -10
- data/node_modules/npm-check-updates/build/src/lib/exists.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/figgy-pudding/index.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/lib/figgy-pudding/index.js +0 -112
- data/node_modules/npm-check-updates/build/src/lib/figgy-pudding/index.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/filterAndReject.d.ts +0 -12
- data/node_modules/npm-check-updates/build/src/lib/filterAndReject.js +0 -80
- data/node_modules/npm-check-updates/build/src/lib/filterAndReject.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/filterObject.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/lib/filterObject.js +0 -10
- data/node_modules/npm-check-updates/build/src/lib/filterObject.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/findLockfile.d.ts +0 -12
- data/node_modules/npm-check-updates/build/src/lib/findLockfile.js +0 -54
- data/node_modules/npm-check-updates/build/src/lib/findLockfile.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/findPackage.d.ts +0 -16
- data/node_modules/npm-check-updates/build/src/lib/findPackage.js +0 -78
- data/node_modules/npm-check-updates/build/src/lib/findPackage.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getAllPackages.d.ts +0 -10
- data/node_modules/npm-check-updates/build/src/lib/getAllPackages.js +0 -126
- data/node_modules/npm-check-updates/build/src/lib/getAllPackages.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getCurrentDependencies.d.ts +0 -15
- data/node_modules/npm-check-updates/build/src/lib/getCurrentDependencies.js +0 -76
- data/node_modules/npm-check-updates/build/src/lib/getCurrentDependencies.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getIgnoredUpgrades.d.ts +0 -8
- data/node_modules/npm-check-updates/build/src/lib/getIgnoredUpgrades.js +0 -37
- data/node_modules/npm-check-updates/build/src/lib/getIgnoredUpgrades.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getInstalledPackages.d.ts +0 -12
- data/node_modules/npm-check-updates/build/src/lib/getInstalledPackages.js +0 -35
- data/node_modules/npm-check-updates/build/src/lib/getInstalledPackages.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getNcuRc.d.ts +0 -22
- data/node_modules/npm-check-updates/build/src/lib/getNcuRc.js +0 -60
- data/node_modules/npm-check-updates/build/src/lib/getNcuRc.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getPackageManager.d.ts +0 -13
- data/node_modules/npm-check-updates/build/src/lib/getPackageManager.js +0 -30
- data/node_modules/npm-check-updates/build/src/lib/getPackageManager.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getPeerDependencies.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/lib/getPeerDependencies.js +0 -31
- data/node_modules/npm-check-updates/build/src/lib/getPeerDependencies.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getPeerDependenciesFromRegistry.d.ts +0 -12
- data/node_modules/npm-check-updates/build/src/lib/getPeerDependenciesFromRegistry.js +0 -35
- data/node_modules/npm-check-updates/build/src/lib/getPeerDependenciesFromRegistry.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getPreferredWildcard.d.ts +0 -10
- data/node_modules/npm-check-updates/build/src/lib/getPreferredWildcard.js +0 -30
- data/node_modules/npm-check-updates/build/src/lib/getPreferredWildcard.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getRepoUrl.d.ts +0 -11
- data/node_modules/npm-check-updates/build/src/lib/getRepoUrl.js +0 -81
- data/node_modules/npm-check-updates/build/src/lib/getRepoUrl.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/initOptions.d.ts +0 -7
- data/node_modules/npm-check-updates/build/src/lib/initOptions.js +0 -207
- data/node_modules/npm-check-updates/build/src/lib/initOptions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/isUpgradeable.d.ts +0 -14
- data/node_modules/npm-check-updates/build/src/lib/isUpgradeable.js +0 -68
- data/node_modules/npm-check-updates/build/src/lib/isUpgradeable.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/keyValueBy.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/lib/keyValueBy.js +0 -23
- data/node_modules/npm-check-updates/build/src/lib/keyValueBy.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.d.ts +0 -3
- data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js +0 -108
- data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/loadPackageInfoFromFile.d.ts +0 -5
- data/node_modules/npm-check-updates/build/src/lib/loadPackageInfoFromFile.js +0 -27
- data/node_modules/npm-check-updates/build/src/lib/loadPackageInfoFromFile.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/logging.d.ts +0 -77
- data/node_modules/npm-check-updates/build/src/lib/logging.js +0 -287
- data/node_modules/npm-check-updates/build/src/lib/logging.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/mergeOptions.d.ts +0 -69
- data/node_modules/npm-check-updates/build/src/lib/mergeOptions.js +0 -23
- data/node_modules/npm-check-updates/build/src/lib/mergeOptions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/programError.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/lib/programError.js +0 -19
- data/node_modules/npm-check-updates/build/src/lib/programError.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/queryVersions.d.ts +0 -13
- data/node_modules/npm-check-updates/build/src/lib/queryVersions.js +0 -118
- data/node_modules/npm-check-updates/build/src/lib/queryVersions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/resolveDepSections.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/lib/resolveDepSections.js +0 -20
- data/node_modules/npm-check-updates/build/src/lib/resolveDepSections.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/runGlobal.d.ts +0 -5
- data/node_modules/npm-check-updates/build/src/lib/runGlobal.js +0 -76
- data/node_modules/npm-check-updates/build/src/lib/runGlobal.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/runLocal.d.ts +0 -18
- data/node_modules/npm-check-updates/build/src/lib/runLocal.js +0 -239
- data/node_modules/npm-check-updates/build/src/lib/runLocal.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/table.d.ts +0 -7
- data/node_modules/npm-check-updates/build/src/lib/table.js +0 -27
- data/node_modules/npm-check-updates/build/src/lib/table.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/upgradeDependencies.d.ts +0 -14
- data/node_modules/npm-check-updates/build/src/lib/upgradeDependencies.js +0 -103
- data/node_modules/npm-check-updates/build/src/lib/upgradeDependencies.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/upgradePackageData.d.ts +0 -14
- data/node_modules/npm-check-updates/build/src/lib/upgradePackageData.js +0 -50
- data/node_modules/npm-check-updates/build/src/lib/upgradePackageData.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/upgradePackageDefinitions.d.ts +0 -13
- data/node_modules/npm-check-updates/build/src/lib/upgradePackageDefinitions.js +0 -58
- data/node_modules/npm-check-updates/build/src/lib/upgradePackageDefinitions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/version-util.d.ts +0 -180
- data/node_modules/npm-check-updates/build/src/lib/version-util.js +0 -518
- data/node_modules/npm-check-updates/build/src/lib/version-util.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/wrap.d.ts +0 -3
- data/node_modules/npm-check-updates/build/src/lib/wrap.js +0 -45
- data/node_modules/npm-check-updates/build/src/lib/wrap.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/bun.d.ts +0 -18
- data/node_modules/npm-check-updates/build/src/package-managers/bun.js +0 -89
- data/node_modules/npm-check-updates/build/src/package-managers/bun.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/filters.d.ts +0 -35
- data/node_modules/npm-check-updates/build/src/package-managers/filters.js +0 -96
- data/node_modules/npm-check-updates/build/src/package-managers/filters.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/gitTags.d.ts +0 -16
- data/node_modules/npm-check-updates/build/src/package-managers/gitTags.js +0 -112
- data/node_modules/npm-check-updates/build/src/package-managers/gitTags.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/index.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/package-managers/index.js +0 -40
- data/node_modules/npm-check-updates/build/src/package-managers/index.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/npm.d.ts +0 -147
- data/node_modules/npm-check-updates/build/src/package-managers/npm.js +0 -688
- data/node_modules/npm-check-updates/build/src/package-managers/npm.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/pnpm.d.ts +0 -25
- data/node_modules/npm-check-updates/build/src/package-managers/pnpm.js +0 -103
- data/node_modules/npm-check-updates/build/src/package-managers/pnpm.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/staticRegistry.d.ts +0 -10
- data/node_modules/npm-check-updates/build/src/package-managers/staticRegistry.js +0 -52
- data/node_modules/npm-check-updates/build/src/package-managers/staticRegistry.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/yarn.d.ts +0 -60
- data/node_modules/npm-check-updates/build/src/package-managers/yarn.js +0 -248
- data/node_modules/npm-check-updates/build/src/package-managers/yarn.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/scripts/build-options.d.ts +0 -1
- data/node_modules/npm-check-updates/build/src/scripts/build-options.js +0 -121
- data/node_modules/npm-check-updates/build/src/scripts/build-options.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/CLIOption.d.ts +0 -16
- data/node_modules/npm-check-updates/build/src/types/CLIOption.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/CLIOption.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/Cacher.d.ts +0 -10
- data/node_modules/npm-check-updates/build/src/types/Cacher.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/Cacher.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/ExtendedHelp.d.ts +0 -5
- data/node_modules/npm-check-updates/build/src/types/ExtendedHelp.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/ExtendedHelp.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/FilterFunction.d.ts +0 -3
- data/node_modules/npm-check-updates/build/src/types/FilterFunction.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/FilterFunction.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/FilterPattern.d.ts +0 -3
- data/node_modules/npm-check-updates/build/src/types/FilterPattern.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/FilterPattern.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/FilterResultsFunction.d.ts +0 -9
- data/node_modules/npm-check-updates/build/src/types/FilterResultsFunction.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/FilterResultsFunction.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/GetVersion.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/types/GetVersion.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/GetVersion.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/GroupFunction.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/types/GroupFunction.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/GroupFunction.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/IgnoredUpgrade.d.ts +0 -8
- data/node_modules/npm-check-updates/build/src/types/IgnoredUpgrade.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/IgnoredUpgrade.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/IndexType.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/types/IndexType.js +0 -4
- data/node_modules/npm-check-updates/build/src/types/IndexType.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/Maybe.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/types/Maybe.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/Maybe.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/MockedVersions.d.ts +0 -5
- data/node_modules/npm-check-updates/build/src/types/MockedVersions.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/MockedVersions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/NpmConfig.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/types/NpmConfig.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/NpmConfig.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/NpmOptions.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/types/NpmOptions.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/NpmOptions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/Options.d.ts +0 -17
- data/node_modules/npm-check-updates/build/src/types/Options.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/Options.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/PackageFile.d.ts +0 -24
- data/node_modules/npm-check-updates/build/src/types/PackageFile.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/PackageFile.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/PackageFileRepository.d.ts +0 -5
- data/node_modules/npm-check-updates/build/src/types/PackageFileRepository.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/PackageFileRepository.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/PackageInfo.d.ts +0 -8
- data/node_modules/npm-check-updates/build/src/types/PackageInfo.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/PackageInfo.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/PackageManager.d.ts +0 -18
- data/node_modules/npm-check-updates/build/src/types/PackageManager.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/PackageManager.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/PackageManagerName.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/types/PackageManagerName.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/PackageManagerName.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/Packument.d.ts +0 -13
- data/node_modules/npm-check-updates/build/src/types/Packument.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/Packument.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/RunOptions.d.ts +0 -137
- data/node_modules/npm-check-updates/build/src/types/RunOptions.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/RunOptions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/SpawnOptions.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/types/SpawnOptions.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/SpawnOptions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/StaticRegistry.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/types/StaticRegistry.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/StaticRegistry.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/Target.d.ts +0 -9
- data/node_modules/npm-check-updates/build/src/types/Target.js +0 -6
- data/node_modules/npm-check-updates/build/src/types/Target.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/TargetFunction.d.ts +0 -3
- data/node_modules/npm-check-updates/build/src/types/TargetFunction.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/TargetFunction.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/UpgradeGroup.d.ts +0 -1
- data/node_modules/npm-check-updates/build/src/types/UpgradeGroup.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/UpgradeGroup.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/Version.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/types/Version.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/Version.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/VersionLevel.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/types/VersionLevel.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/VersionLevel.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/VersionResult.d.ts +0 -7
- data/node_modules/npm-check-updates/build/src/types/VersionResult.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/VersionResult.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/VersionSpec.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/types/VersionSpec.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/VersionSpec.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/chalk/license +0 -9
- data/node_modules/npm-check-updates/node_modules/chalk/package.json +0 -83
- data/node_modules/npm-check-updates/node_modules/chalk/readme.md +0 -325
- data/node_modules/npm-check-updates/node_modules/chalk/source/index.d.ts +0 -320
- data/node_modules/npm-check-updates/node_modules/chalk/source/index.js +0 -225
- data/node_modules/npm-check-updates/node_modules/chalk/source/utilities.js +0 -33
- data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
- data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- data/node_modules/npm-check-updates/node_modules/minimatch/LICENSE +0 -15
- data/node_modules/npm-check-updates/node_modules/minimatch/README.md +0 -454
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.js +0 -589
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.js +0 -22
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.js +0 -1011
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/package.json +0 -3
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.js +0 -24
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.js +0 -585
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.js +0 -18
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.js +0 -995
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/package.json +0 -3
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.js +0 -20
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
- data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -135
- data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -203
- data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -46
- data/node_modules/npm-check-updates/node_modules/minimatch/package.json +0 -86
- data/node_modules/npm-check-updates/node_modules/strip-ansi/index.d.ts +0 -15
- data/node_modules/npm-check-updates/node_modules/strip-ansi/index.js +0 -14
- data/node_modules/npm-check-updates/node_modules/strip-ansi/license +0 -9
- data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +0 -33
- data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/index.js +0 -8
- data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/license +0 -9
- data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/package.json +0 -58
- data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +0 -72
- data/node_modules/npm-check-updates/node_modules/strip-ansi/package.json +0 -57
- data/node_modules/npm-check-updates/node_modules/strip-ansi/readme.md +0 -41
- data/node_modules/rimraf/dist/commonjs/default-tmp.d.ts +0 -3
- data/node_modules/rimraf/dist/commonjs/default-tmp.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/default-tmp.js +0 -61
- data/node_modules/rimraf/dist/commonjs/default-tmp.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts +0 -3
- data/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/fix-eperm.js +0 -58
- data/node_modules/rimraf/dist/commonjs/fix-eperm.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/fs.d.ts +0 -17
- data/node_modules/rimraf/dist/commonjs/fs.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/fs.js +0 -46
- data/node_modules/rimraf/dist/commonjs/fs.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts +0 -3
- data/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/ignore-enoent.js +0 -21
- data/node_modules/rimraf/dist/commonjs/ignore-enoent.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/index.d.ts +0 -50
- data/node_modules/rimraf/dist/commonjs/index.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/index.js +0 -76
- data/node_modules/rimraf/dist/commonjs/index.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/opt-arg.d.ts +0 -35
- data/node_modules/rimraf/dist/commonjs/opt-arg.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/opt-arg.js +0 -53
- data/node_modules/rimraf/dist/commonjs/opt-arg.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/package.json +0 -1
- data/node_modules/rimraf/dist/commonjs/path-arg.d.ts +0 -4
- data/node_modules/rimraf/dist/commonjs/path-arg.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/path-arg.js +0 -54
- data/node_modules/rimraf/dist/commonjs/path-arg.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/platform.d.ts +0 -3
- data/node_modules/rimraf/dist/commonjs/platform.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/platform.js +0 -4
- data/node_modules/rimraf/dist/commonjs/platform.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts +0 -5
- data/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/readdir-or-error.js +0 -19
- data/node_modules/rimraf/dist/commonjs/readdir-or-error.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/retry-busy.d.ts +0 -8
- data/node_modules/rimraf/dist/commonjs/retry-busy.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/retry-busy.js +0 -68
- data/node_modules/rimraf/dist/commonjs/retry-busy.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts +0 -3
- data/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-manual.js +0 -12
- data/node_modules/rimraf/dist/commonjs/rimraf-manual.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts +0 -4
- data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js +0 -192
- data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts +0 -4
- data/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-native.js +0 -24
- data/node_modules/rimraf/dist/commonjs/rimraf-native.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts +0 -4
- data/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-posix.js +0 -123
- data/node_modules/rimraf/dist/commonjs/rimraf-posix.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts +0 -4
- data/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-windows.js +0 -182
- data/node_modules/rimraf/dist/commonjs/rimraf-windows.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/use-native.d.ts +0 -4
- data/node_modules/rimraf/dist/commonjs/use-native.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/use-native.js +0 -22
- data/node_modules/rimraf/dist/commonjs/use-native.js.map +0 -1
- data/node_modules/rimraf/dist/esm/bin.d.mts +0 -8
- data/node_modules/rimraf/dist/esm/bin.d.mts.map +0 -1
- data/node_modules/rimraf/dist/esm/bin.mjs +0 -256
- data/node_modules/rimraf/dist/esm/bin.mjs.map +0 -1
- data/node_modules/rimraf/dist/esm/default-tmp.d.ts +0 -3
- data/node_modules/rimraf/dist/esm/default-tmp.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/default-tmp.js +0 -55
- data/node_modules/rimraf/dist/esm/default-tmp.js.map +0 -1
- data/node_modules/rimraf/dist/esm/fix-eperm.d.ts +0 -3
- data/node_modules/rimraf/dist/esm/fix-eperm.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/fix-eperm.js +0 -53
- data/node_modules/rimraf/dist/esm/fix-eperm.js.map +0 -1
- data/node_modules/rimraf/dist/esm/fs.d.ts +0 -17
- data/node_modules/rimraf/dist/esm/fs.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/fs.js +0 -31
- data/node_modules/rimraf/dist/esm/fs.js.map +0 -1
- data/node_modules/rimraf/dist/esm/ignore-enoent.d.ts +0 -3
- data/node_modules/rimraf/dist/esm/ignore-enoent.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/ignore-enoent.js +0 -16
- data/node_modules/rimraf/dist/esm/ignore-enoent.js.map +0 -1
- data/node_modules/rimraf/dist/esm/index.d.ts +0 -50
- data/node_modules/rimraf/dist/esm/index.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/index.js +0 -68
- data/node_modules/rimraf/dist/esm/index.js.map +0 -1
- data/node_modules/rimraf/dist/esm/opt-arg.d.ts +0 -35
- data/node_modules/rimraf/dist/esm/opt-arg.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/opt-arg.js +0 -46
- data/node_modules/rimraf/dist/esm/opt-arg.js.map +0 -1
- data/node_modules/rimraf/dist/esm/package.json +0 -1
- data/node_modules/rimraf/dist/esm/path-arg.d.ts +0 -4
- data/node_modules/rimraf/dist/esm/path-arg.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/path-arg.js +0 -49
- data/node_modules/rimraf/dist/esm/path-arg.js.map +0 -1
- data/node_modules/rimraf/dist/esm/platform.d.ts +0 -3
- data/node_modules/rimraf/dist/esm/platform.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/platform.js +0 -2
- data/node_modules/rimraf/dist/esm/platform.js.map +0 -1
- data/node_modules/rimraf/dist/esm/readdir-or-error.d.ts +0 -5
- data/node_modules/rimraf/dist/esm/readdir-or-error.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/readdir-or-error.js +0 -14
- data/node_modules/rimraf/dist/esm/readdir-or-error.js.map +0 -1
- data/node_modules/rimraf/dist/esm/retry-busy.d.ts +0 -8
- data/node_modules/rimraf/dist/esm/retry-busy.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/retry-busy.js +0 -63
- data/node_modules/rimraf/dist/esm/retry-busy.js.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-manual.d.ts +0 -3
- data/node_modules/rimraf/dist/esm/rimraf-manual.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-manual.js +0 -6
- data/node_modules/rimraf/dist/esm/rimraf-manual.js.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts +0 -4
- data/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-move-remove.js +0 -187
- data/node_modules/rimraf/dist/esm/rimraf-move-remove.js.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-native.d.ts +0 -4
- data/node_modules/rimraf/dist/esm/rimraf-native.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-native.js +0 -19
- data/node_modules/rimraf/dist/esm/rimraf-native.js.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-posix.d.ts +0 -4
- data/node_modules/rimraf/dist/esm/rimraf-posix.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-posix.js +0 -118
- data/node_modules/rimraf/dist/esm/rimraf-posix.js.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-windows.d.ts +0 -4
- data/node_modules/rimraf/dist/esm/rimraf-windows.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-windows.js +0 -177
- data/node_modules/rimraf/dist/esm/rimraf-windows.js.map +0 -1
- data/node_modules/rimraf/dist/esm/use-native.d.ts +0 -4
- data/node_modules/rimraf/dist/esm/use-native.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/use-native.js +0 -16
- data/node_modules/rimraf/dist/esm/use-native.js.map +0 -1
- data/node_modules/semver/classes/comparator.js +0 -141
- data/node_modules/semver/classes/index.js +0 -5
- data/node_modules/semver/classes/range.js +0 -539
- data/node_modules/semver/classes/semver.js +0 -302
- data/node_modules/semver/functions/clean.js +0 -6
- data/node_modules/semver/functions/cmp.js +0 -52
- data/node_modules/semver/functions/coerce.js +0 -52
- data/node_modules/semver/functions/compare-build.js +0 -7
- data/node_modules/semver/functions/compare-loose.js +0 -3
- data/node_modules/semver/functions/compare.js +0 -5
- data/node_modules/semver/functions/diff.js +0 -65
- data/node_modules/semver/functions/eq.js +0 -3
- data/node_modules/semver/functions/gt.js +0 -3
- data/node_modules/semver/functions/gte.js +0 -3
- data/node_modules/semver/functions/inc.js +0 -19
- data/node_modules/semver/functions/lt.js +0 -3
- data/node_modules/semver/functions/lte.js +0 -3
- data/node_modules/semver/functions/major.js +0 -3
- data/node_modules/semver/functions/minor.js +0 -3
- data/node_modules/semver/functions/neq.js +0 -3
- data/node_modules/semver/functions/parse.js +0 -16
- data/node_modules/semver/functions/patch.js +0 -3
- data/node_modules/semver/functions/prerelease.js +0 -6
- data/node_modules/semver/functions/rcompare.js +0 -3
- data/node_modules/semver/functions/rsort.js +0 -3
- data/node_modules/semver/functions/satisfies.js +0 -10
- data/node_modules/semver/functions/sort.js +0 -3
- data/node_modules/semver/functions/valid.js +0 -6
- data/node_modules/semver/index.js +0 -89
- data/node_modules/semver/internal/constants.js +0 -35
- data/node_modules/semver/internal/debug.js +0 -9
- data/node_modules/semver/internal/identifiers.js +0 -23
- data/node_modules/semver/internal/parse-options.js +0 -15
- data/node_modules/semver/internal/re.js +0 -212
- data/node_modules/semver/node_modules/lru-cache/LICENSE +0 -15
- data/node_modules/semver/node_modules/lru-cache/README.md +0 -166
- data/node_modules/semver/node_modules/lru-cache/index.js +0 -334
- data/node_modules/semver/node_modules/lru-cache/package.json +0 -34
- data/node_modules/semver/preload.js +0 -2
- data/node_modules/semver/ranges/gtr.js +0 -4
- data/node_modules/semver/ranges/intersects.js +0 -7
- data/node_modules/semver/ranges/ltr.js +0 -4
- data/node_modules/semver/ranges/max-satisfying.js +0 -25
- data/node_modules/semver/ranges/min-satisfying.js +0 -24
- data/node_modules/semver/ranges/min-version.js +0 -61
- data/node_modules/semver/ranges/outside.js +0 -80
- data/node_modules/semver/ranges/simplify.js +0 -47
- data/node_modules/semver/ranges/subset.js +0 -247
- data/node_modules/semver/ranges/to-comparators.js +0 -8
- data/node_modules/semver/ranges/valid.js +0 -11
- /data/node_modules/{eslint/node_modules/chalk → chalk}/index.d.ts +0 -0
- /data/node_modules/{eslint/node_modules/chalk → chalk}/source/templates.js +0 -0
- /data/node_modules/{eslint/node_modules/chalk → chalk}/source/util.js +0 -0
- /data/node_modules/{@eslint/config-array/node_modules/minimatch → minimatch}/minimatch.js +0 -0
@@ -1,688 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
-
};
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.semver = exports.patch = exports.minor = exports.newest = exports.latest = exports.distTag = exports.list = exports.getPeerDependencies = exports.greatest = exports.defaultPrefix = exports.viewOne = exports.viewManyMemoized = exports.mockViewMany = exports.packageAuthorChanged = exports.normalizeNpmConfig = void 0;
|
30
|
-
const fast_memoize_1 = __importDefault(require("fast-memoize"));
|
31
|
-
const fs_1 = __importDefault(require("fs"));
|
32
|
-
const ini_1 = __importDefault(require("ini"));
|
33
|
-
const camelCase_1 = __importDefault(require("lodash/camelCase"));
|
34
|
-
const filter_1 = __importDefault(require("lodash/filter"));
|
35
|
-
const get_1 = __importDefault(require("lodash/get"));
|
36
|
-
const isEqual_1 = __importDefault(require("lodash/isEqual"));
|
37
|
-
const last_1 = __importDefault(require("lodash/last"));
|
38
|
-
const omit_1 = __importDefault(require("lodash/omit"));
|
39
|
-
const sortBy_1 = __importDefault(require("lodash/sortBy"));
|
40
|
-
const pacote_1 = __importDefault(require("pacote"));
|
41
|
-
const path_1 = __importDefault(require("path"));
|
42
|
-
const semver_1 = __importDefault(require("semver"));
|
43
|
-
const semver_utils_1 = require("semver-utils");
|
44
|
-
const spawn_please_1 = __importDefault(require("spawn-please"));
|
45
|
-
const untildify_1 = __importDefault(require("untildify"));
|
46
|
-
const filterObject_1 = __importDefault(require("../lib/filterObject"));
|
47
|
-
const keyValueBy_1 = require("../lib/keyValueBy");
|
48
|
-
const libnpmconfig_1 = __importDefault(require("../lib/libnpmconfig"));
|
49
|
-
const logging_1 = require("../lib/logging");
|
50
|
-
const versionUtil = __importStar(require("../lib/version-util"));
|
51
|
-
const filters_1 = require("./filters");
|
52
|
-
const EXPLICIT_RANGE_OPS = new Set(['-', '||', '&&', '<', '<=', '>', '>=']);
|
53
|
-
/** Returns true if the spec is an explicit version range (not ~ or ^). */
|
54
|
-
const isExplicitRange = (spec) => {
|
55
|
-
const range = (0, semver_utils_1.parseRange)(spec);
|
56
|
-
return range.some(parsed => EXPLICIT_RANGE_OPS.has(parsed.operator || ''));
|
57
|
-
};
|
58
|
-
/** Returns true if the version is sa valid, exact version. */
|
59
|
-
const isExactVersion = (version) => version && (!semver_1.default.validRange(version) || versionUtil.isWildCard(version));
|
60
|
-
/** Normalizes the keys of an npm config for pacote. */
|
61
|
-
const normalizeNpmConfig = (npmConfig,
|
62
|
-
// config path used to determine relative cafile paths
|
63
|
-
configPath) => {
|
64
|
-
const npmConfigToPacoteMap = {
|
65
|
-
cafile: (capath) => {
|
66
|
-
// load-cafile, based on github.com/npm/cli/blob/40c1b0f/lib/config/load-cafile.js
|
67
|
-
if (!capath)
|
68
|
-
return;
|
69
|
-
// synchronous since it is loaded once on startup, and to avoid complexity in libnpmconfig.read
|
70
|
-
// https://github.com/raineorshine/npm-check-updates/issues/636?notification_referrer_id=MDE4Ok5vdGlmaWNhdGlvblRocmVhZDc0Njk2NjAzMjo3NTAyNzY%3D
|
71
|
-
const cadata = fs_1.default.readFileSync(path_1.default.resolve(configPath || '', (0, untildify_1.default)(capath)), 'utf8');
|
72
|
-
const delim = '-----END CERTIFICATE-----';
|
73
|
-
const output = cadata
|
74
|
-
.split(delim)
|
75
|
-
.filter(xs => !!xs.trim())
|
76
|
-
.map(xs => `${xs.trimStart()}${delim}`);
|
77
|
-
return { ca: output };
|
78
|
-
},
|
79
|
-
maxsockets: 'maxSockets',
|
80
|
-
'strict-ssl': 'strictSSL',
|
81
|
-
};
|
82
|
-
// all config variables are read in as strings, so we need to type coerce non-strings
|
83
|
-
// lowercased and hyphens removed for comparison purposes
|
84
|
-
const keyTypes = {
|
85
|
-
all: 'boolean',
|
86
|
-
allowsameversion: 'boolean',
|
87
|
-
audit: 'boolean',
|
88
|
-
binlinks: 'boolean',
|
89
|
-
color: 'boolean',
|
90
|
-
commithooks: 'boolean',
|
91
|
-
description: 'boolean',
|
92
|
-
dev: 'boolean',
|
93
|
-
diffignoreallspace: 'boolean',
|
94
|
-
diffnameonly: 'boolean',
|
95
|
-
diffnoprefix: 'boolean',
|
96
|
-
difftext: 'boolean',
|
97
|
-
dryrun: 'boolean',
|
98
|
-
enginestrict: 'boolean',
|
99
|
-
force: 'boolean',
|
100
|
-
foregroundscripts: 'boolean',
|
101
|
-
formatpackagelock: 'boolean',
|
102
|
-
fund: 'boolean',
|
103
|
-
gittagversion: 'boolean',
|
104
|
-
global: 'boolean',
|
105
|
-
globalstyle: 'boolean',
|
106
|
-
ifpresent: 'boolean',
|
107
|
-
ignorescripts: 'boolean',
|
108
|
-
includestaged: 'boolean',
|
109
|
-
includeworkspaceroot: 'boolean',
|
110
|
-
installlinks: 'boolean',
|
111
|
-
json: 'boolean',
|
112
|
-
legacybundling: 'boolean',
|
113
|
-
legacypeerdeps: 'boolean',
|
114
|
-
link: 'boolean',
|
115
|
-
long: 'boolean',
|
116
|
-
offline: 'boolean',
|
117
|
-
omitlockfileregistryresolved: 'boolean',
|
118
|
-
packagelock: 'boolean',
|
119
|
-
packagelockonly: 'boolean',
|
120
|
-
parseable: 'boolean',
|
121
|
-
preferoffline: 'boolean',
|
122
|
-
preferonline: 'boolean',
|
123
|
-
progress: 'boolean',
|
124
|
-
readonly: 'boolean',
|
125
|
-
rebuildbundle: 'boolean',
|
126
|
-
save: 'boolean',
|
127
|
-
savebundle: 'boolean',
|
128
|
-
savedev: 'boolean',
|
129
|
-
saveexact: 'boolean',
|
130
|
-
saveoptional: 'boolean',
|
131
|
-
savepeer: 'boolean',
|
132
|
-
saveprod: 'boolean',
|
133
|
-
shrinkwrap: 'boolean',
|
134
|
-
signgitcommit: 'boolean',
|
135
|
-
signgittag: 'boolean',
|
136
|
-
strictpeerdeps: 'boolean',
|
137
|
-
strictssl: 'boolean',
|
138
|
-
timing: 'boolean',
|
139
|
-
unicode: 'boolean',
|
140
|
-
updatenotifier: 'boolean',
|
141
|
-
usage: 'boolean',
|
142
|
-
version: 'boolean',
|
143
|
-
versions: 'boolean',
|
144
|
-
workspacesupdate: 'boolean',
|
145
|
-
diffunified: 'number',
|
146
|
-
fetchretries: 'number',
|
147
|
-
fetchretryfactor: 'number',
|
148
|
-
fetchretrymaxtimeout: 'number',
|
149
|
-
fetchretrymintimeout: 'number',
|
150
|
-
fetchtimeout: 'number',
|
151
|
-
logsmax: 'number',
|
152
|
-
maxsockets: 'number',
|
153
|
-
searchlimit: 'number',
|
154
|
-
searchstaleness: 'number',
|
155
|
-
ssopollfrequency: 'number',
|
156
|
-
timeout: 'number',
|
157
|
-
};
|
158
|
-
/** Parses a string to a boolean. */
|
159
|
-
const stringToBoolean = (s) => !!s && s !== 'false' && s !== '0';
|
160
|
-
/** Parses a string to a number. */
|
161
|
-
const stringToNumber = (s) => parseInt(s) || 0;
|
162
|
-
// needed until pacote supports full npm config compatibility
|
163
|
-
// See: https://github.com/zkat/pacote/issues/156
|
164
|
-
const config = (0, keyValueBy_1.keyValueBy)(npmConfig, (key, value) => {
|
165
|
-
// replace env ${VARS} in strings with the process.env value
|
166
|
-
const normalizedValue = typeof value !== 'string'
|
167
|
-
? value
|
168
|
-
: // parse stringified booleans
|
169
|
-
keyTypes[key.replace(/-/g, '').toLowerCase()] === 'boolean'
|
170
|
-
? stringToBoolean(value)
|
171
|
-
: keyTypes[key.replace(/-/g, '').toLowerCase()] === 'number'
|
172
|
-
? stringToNumber(value)
|
173
|
-
: value.replace(/\${([^}]+)}/, (_, envVar) => process.env[envVar]);
|
174
|
-
// normalize the key for pacote
|
175
|
-
const { [key]: pacoteKey } = npmConfigToPacoteMap;
|
176
|
-
return typeof pacoteKey === 'string'
|
177
|
-
? // key is mapped to a string
|
178
|
-
{ [pacoteKey]: normalizedValue }
|
179
|
-
: // key is mapped to a function
|
180
|
-
typeof pacoteKey === 'function'
|
181
|
-
? { ...pacoteKey(normalizedValue.toString()) }
|
182
|
-
: // otherwise assign the camel-cased key
|
183
|
-
{ [key.match(/^[a-z]/i) ? (0, camelCase_1.default)(key) : key]: normalizedValue };
|
184
|
-
});
|
185
|
-
return config;
|
186
|
-
};
|
187
|
-
exports.normalizeNpmConfig = normalizeNpmConfig;
|
188
|
-
/** Finds and parses the npm config at the given path. If the path does not exist, returns null. If no path is provided, finds and merges the global and user npm configs using libnpmconfig and sets cache: false. */
|
189
|
-
const findNpmConfig = (0, fast_memoize_1.default)((configPath) => {
|
190
|
-
let config;
|
191
|
-
if (configPath) {
|
192
|
-
try {
|
193
|
-
config = ini_1.default.parse(fs_1.default.readFileSync(configPath, 'utf-8'));
|
194
|
-
}
|
195
|
-
catch (err) {
|
196
|
-
if (err.code === 'ENOENT') {
|
197
|
-
return null;
|
198
|
-
}
|
199
|
-
else {
|
200
|
-
throw err;
|
201
|
-
}
|
202
|
-
}
|
203
|
-
}
|
204
|
-
else {
|
205
|
-
// libnpmconfig incorrectly (?) ignores NPM_CONFIG_USERCONFIG because it is always overridden by the default builtin.userconfig
|
206
|
-
// set userconfig manually so that it is prioritized
|
207
|
-
const opts = libnpmconfig_1.default.read(null, {
|
208
|
-
userconfig: process.env.npm_config_userconfig || process.env.NPM_CONFIG_USERCONFIG,
|
209
|
-
});
|
210
|
-
config = {
|
211
|
-
...opts.toJSON(),
|
212
|
-
cache: false,
|
213
|
-
};
|
214
|
-
}
|
215
|
-
return (0, exports.normalizeNpmConfig)(config, configPath);
|
216
|
-
});
|
217
|
-
// get the base config that is used for all npm queries
|
218
|
-
// this may be partially overwritten by .npmrc config files when using --deep
|
219
|
-
const npmConfig = findNpmConfig();
|
220
|
-
/** A promise that returns true if --global is deprecated on the system npm. Spawns "npm --version". */
|
221
|
-
const isGlobalDeprecated = (0, fast_memoize_1.default)(async () => {
|
222
|
-
const cmd = process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
223
|
-
const output = await (0, spawn_please_1.default)(cmd, ['--version']);
|
224
|
-
const npmVersion = output.trim();
|
225
|
-
// --global was deprecated in npm v8.11.0.
|
226
|
-
return semver_1.default.valid(npmVersion) && semver_1.default.gte(npmVersion, '8.11.0');
|
227
|
-
});
|
228
|
-
/**
|
229
|
-
* @typedef {object} CommandAndPackageName
|
230
|
-
* @property {string} command
|
231
|
-
* @property {string} packageName
|
232
|
-
*/
|
233
|
-
/**
|
234
|
-
* Parse JSON and throw an informative error on failure.
|
235
|
-
*
|
236
|
-
* @param result Data to be parsed
|
237
|
-
* @param data
|
238
|
-
* @returns
|
239
|
-
*/
|
240
|
-
function parseJson(result, data) {
|
241
|
-
let json;
|
242
|
-
try {
|
243
|
-
json = JSON.parse(result);
|
244
|
-
}
|
245
|
-
catch (err) {
|
246
|
-
throw new Error(`Expected JSON from "${data.command}".${data.packageName ? ` There could be problems with the ${data.packageName} package.` : ''} ${result ? 'Instead received: ' + result : 'Received empty response.'}`);
|
247
|
-
}
|
248
|
-
return json;
|
249
|
-
}
|
250
|
-
/**
|
251
|
-
* Check if package author changed between current and upgraded version.
|
252
|
-
*
|
253
|
-
* @param packageName Name of the package
|
254
|
-
* @param currentVersion Current version declaration (may be range)
|
255
|
-
* @param upgradedVersion Upgraded version declaration (may be range)
|
256
|
-
* @param npmConfigLocal Additional npm config variables that are merged into the system npm config
|
257
|
-
* @returns A promise that fulfills with boolean value.
|
258
|
-
*/
|
259
|
-
async function packageAuthorChanged(packageName, currentVersion, upgradedVersion, options = {}, npmConfigLocal) {
|
260
|
-
var _a, _b;
|
261
|
-
const result = await pacote_1.default.packument(packageName, {
|
262
|
-
...npmConfigLocal,
|
263
|
-
...npmConfig,
|
264
|
-
fullMetadata: true,
|
265
|
-
...(options.registry ? { registry: options.registry, silent: true } : null),
|
266
|
-
});
|
267
|
-
if (result.versions) {
|
268
|
-
const pkgVersions = Object.keys(result.versions);
|
269
|
-
const current = semver_1.default.minSatisfying(pkgVersions, currentVersion);
|
270
|
-
const upgraded = semver_1.default.maxSatisfying(pkgVersions, upgradedVersion);
|
271
|
-
if (current && upgraded && result.versions[current]._npmUser && result.versions[upgraded]._npmUser) {
|
272
|
-
const currentAuthor = (_a = result.versions[current]._npmUser) === null || _a === void 0 ? void 0 : _a.name;
|
273
|
-
const latestAuthor = (_b = result.versions[upgraded]._npmUser) === null || _b === void 0 ? void 0 : _b.name;
|
274
|
-
return !(0, isEqual_1.default)(currentAuthor, latestAuthor);
|
275
|
-
}
|
276
|
-
}
|
277
|
-
return false;
|
278
|
-
}
|
279
|
-
exports.packageAuthorChanged = packageAuthorChanged;
|
280
|
-
/** Returns true if an object is a Packument. */
|
281
|
-
const isPackument = (o) => o && (o.name || o.engines || o.version || o.versions);
|
282
|
-
/** Creates a function with the same signature as viewMany that always returns the given versions. */
|
283
|
-
const mockViewMany = (mockReturnedVersions) => (name, fields, currentVersion, options) => {
|
284
|
-
var _a, _b;
|
285
|
-
// a partial Packument
|
286
|
-
const partialPackument = typeof mockReturnedVersions === 'function'
|
287
|
-
? (_a = mockReturnedVersions(options)) === null || _a === void 0 ? void 0 : _a[name]
|
288
|
-
: typeof mockReturnedVersions === 'string' || isPackument(mockReturnedVersions)
|
289
|
-
? mockReturnedVersions
|
290
|
-
: mockReturnedVersions[name];
|
291
|
-
const version = isPackument(partialPackument) ? partialPackument.version : partialPackument;
|
292
|
-
// if there is no version, hard exit
|
293
|
-
// otherwise getPackageProtected will swallow the error
|
294
|
-
if (!version) {
|
295
|
-
console.error(`No mock version supplied for ${name}`);
|
296
|
-
process.exit(1);
|
297
|
-
}
|
298
|
-
const time = (isPackument(partialPackument) && ((_b = partialPackument.time) === null || _b === void 0 ? void 0 : _b[version])) || new Date().toISOString();
|
299
|
-
const packument = {
|
300
|
-
name,
|
301
|
-
engines: { node: '' },
|
302
|
-
time: {
|
303
|
-
[version]: time,
|
304
|
-
},
|
305
|
-
version,
|
306
|
-
// overwritten below
|
307
|
-
versions: [],
|
308
|
-
...(isPackument(partialPackument) ? partialPackument : null),
|
309
|
-
};
|
310
|
-
return Promise.resolve((0, keyValueBy_1.keyValueBy)(fields, field => ({
|
311
|
-
[field]: field === 'versions'
|
312
|
-
? {
|
313
|
-
[version]: packument,
|
314
|
-
}
|
315
|
-
: field === 'time'
|
316
|
-
? {
|
317
|
-
[version]: time,
|
318
|
-
}
|
319
|
-
: {
|
320
|
-
...packument,
|
321
|
-
versions: [packument],
|
322
|
-
},
|
323
|
-
})));
|
324
|
-
};
|
325
|
-
exports.mockViewMany = mockViewMany;
|
326
|
-
/** Merges the workspace, global, user, local, project, and cwd npm configs (in that order). */
|
327
|
-
// Note that this is memoized on configs and options, but not on package name. This avoids duplicate messages when log level is verbose. findNpmConfig is memoized on config path, so it is not expensive to call multiple times.
|
328
|
-
const mergeNpmConfigs = (0, fast_memoize_1.default)(({ npmConfigLocal, npmConfigUser, npmConfigWorkspaceProject, }, options) => {
|
329
|
-
// merge project npm config with base config
|
330
|
-
const npmConfigProjectPath = options.packageFile ? path_1.default.join(options.packageFile, '../.npmrc') : null;
|
331
|
-
const npmConfigProject = options.packageFile ? findNpmConfig(npmConfigProjectPath || undefined) : null;
|
332
|
-
const npmConfigCWDPath = options.cwd ? path_1.default.join(options.cwd, '.npmrc') : null;
|
333
|
-
const npmConfigCWD = options.cwd ? findNpmConfig(npmConfigCWDPath) : null;
|
334
|
-
if (npmConfigWorkspaceProject && Object.keys(npmConfigWorkspaceProject).length > 0) {
|
335
|
-
(0, logging_1.print)(options, `\nnpm config (workspace project):`, 'verbose');
|
336
|
-
(0, logging_1.printSorted)(options, (0, omit_1.default)(npmConfigWorkspaceProject, 'cache'), 'verbose');
|
337
|
-
}
|
338
|
-
if (npmConfigUser && Object.keys(npmConfigUser).length > 0) {
|
339
|
-
(0, logging_1.print)(options, `\nnpm config (user):`, 'verbose');
|
340
|
-
(0, logging_1.printSorted)(options, (0, omit_1.default)(npmConfigUser, 'cache'), 'verbose');
|
341
|
-
}
|
342
|
-
if (npmConfigLocal && Object.keys(npmConfigLocal).length > 0) {
|
343
|
-
(0, logging_1.print)(options, `\nnpm config (local override):`, 'verbose');
|
344
|
-
(0, logging_1.printSorted)(options, (0, omit_1.default)(npmConfigLocal, 'cache'), 'verbose');
|
345
|
-
}
|
346
|
-
if (npmConfigProject && Object.keys(npmConfigProject).length > 0) {
|
347
|
-
(0, logging_1.print)(options, `\nnpm config (project: ${npmConfigProjectPath}):`, 'verbose');
|
348
|
-
(0, logging_1.printSorted)(options, (0, omit_1.default)(npmConfigProject, 'cache'), 'verbose');
|
349
|
-
}
|
350
|
-
if (npmConfigCWD && Object.keys(npmConfigCWD).length > 0) {
|
351
|
-
(0, logging_1.print)(options, `\nnpm config (cwd: ${npmConfigCWDPath}):`, 'verbose');
|
352
|
-
// omit cache since it is added to every config
|
353
|
-
(0, logging_1.printSorted)(options, (0, omit_1.default)(npmConfigCWD, 'cache'), 'verbose');
|
354
|
-
}
|
355
|
-
const npmConfigMerged = {
|
356
|
-
...npmConfigWorkspaceProject,
|
357
|
-
...npmConfigUser,
|
358
|
-
...npmConfigLocal,
|
359
|
-
...npmConfigProject,
|
360
|
-
...npmConfigCWD,
|
361
|
-
...(options.registry ? { registry: options.registry, silent: true } : null),
|
362
|
-
...(options.timeout ? { timeout: options.timeout } : null),
|
363
|
-
};
|
364
|
-
const isMerged = npmConfigWorkspaceProject || npmConfigLocal || npmConfigProject || npmConfigCWD;
|
365
|
-
if (isMerged) {
|
366
|
-
(0, logging_1.print)(options, `\nmerged npm config:`, 'verbose');
|
367
|
-
// omit cache since it is added to every config
|
368
|
-
(0, logging_1.printSorted)(options, (0, omit_1.default)(npmConfigMerged, 'cache'), 'verbose');
|
369
|
-
}
|
370
|
-
return npmConfigMerged;
|
371
|
-
});
|
372
|
-
/**
|
373
|
-
* Returns an object of specified values retrieved by npm view.
|
374
|
-
*
|
375
|
-
* @param packageName Name of the package
|
376
|
-
* @param fields Array of fields like versions, time, version
|
377
|
-
* @param currentVersion
|
378
|
-
* @returns dist-tags field return Index<Packument>, time field returns Index<Index<string>>>, versions field returns Index<Index<Packument>>
|
379
|
-
*/
|
380
|
-
async function viewMany(packageName, fields, currentVersion, options, retried = 0, npmConfigLocal, npmConfigWorkspaceProject) {
|
381
|
-
var _a;
|
382
|
-
// See: /test/helpers/stubNpmView
|
383
|
-
if (process.env.STUB_NPM_VIEW) {
|
384
|
-
const mockReturnedVersions = JSON.parse(process.env.STUB_NPM_VIEW);
|
385
|
-
return (0, exports.mockViewMany)(mockReturnedVersions)(packageName, fields, currentVersion, options);
|
386
|
-
}
|
387
|
-
if (isExactVersion(currentVersion)) {
|
388
|
-
return Promise.resolve({});
|
389
|
-
}
|
390
|
-
// fields may already include time
|
391
|
-
const fieldsExtended = ((_a = options.format) === null || _a === void 0 ? void 0 : _a.includes('time')) ? [...fields, 'time'] : fields;
|
392
|
-
const fullMetadata = fieldsExtended.includes('time');
|
393
|
-
const npmConfigMerged = mergeNpmConfigs({
|
394
|
-
npmConfigUser: { ...npmConfig, fullMetadata },
|
395
|
-
npmConfigLocal,
|
396
|
-
npmConfigWorkspaceProject,
|
397
|
-
}, options);
|
398
|
-
let result;
|
399
|
-
try {
|
400
|
-
result = await pacote_1.default.packument(packageName, npmConfigMerged);
|
401
|
-
}
|
402
|
-
catch (err) {
|
403
|
-
if (options.retry && ++retried <= options.retry) {
|
404
|
-
return viewMany(packageName, fieldsExtended, currentVersion, options, retried, npmConfigLocal);
|
405
|
-
}
|
406
|
-
throw err;
|
407
|
-
}
|
408
|
-
// select each field from the result object
|
409
|
-
const resultNormalized = (0, keyValueBy_1.keyValueBy)(fields, field => {
|
410
|
-
let value = result[field];
|
411
|
-
// index into the result object to get the dist-tag
|
412
|
-
if (field.startsWith('dist-tags.') && result.versions) {
|
413
|
-
const packument = result.versions[(0, get_1.default)(result, field)];
|
414
|
-
// since viewOne only keeps a single field, we need to add time onto the dist-tag field
|
415
|
-
value = fullMetadata ? { ...packument, time: result.time } : packument;
|
416
|
-
}
|
417
|
-
return {
|
418
|
-
[field]: value,
|
419
|
-
};
|
420
|
-
});
|
421
|
-
return resultNormalized;
|
422
|
-
}
|
423
|
-
/** Memoize viewMany for --deep and --workspaces performance. */
|
424
|
-
exports.viewManyMemoized = (0, fast_memoize_1.default)(viewMany, {
|
425
|
-
// serializer args are incorrectly typed as any[] instead of being generic, so we need to cast it
|
426
|
-
serializer: (([packageName, fields, currentVersion, options, retried, npmConfigLocal, npmConfigWorkspaceProject,]) => JSON.stringify([
|
427
|
-
packageName,
|
428
|
-
fields,
|
429
|
-
// currentVersion does not change the behavior of viewMany unless it is an invalid/inexact version which causes it to short circuit
|
430
|
-
isExactVersion(currentVersion),
|
431
|
-
// packageFile varies by cwd in workspaces/deep mode, so we do not want to memoize on that
|
432
|
-
(0, omit_1.default)(options, 'packageFile'),
|
433
|
-
// make sure retries do not get memoized
|
434
|
-
retried,
|
435
|
-
npmConfigLocal,
|
436
|
-
npmConfigWorkspaceProject,
|
437
|
-
])),
|
438
|
-
});
|
439
|
-
/**
|
440
|
-
* Returns the value of one of the properties retrieved by npm view.
|
441
|
-
*
|
442
|
-
* @param packageName Name of the package
|
443
|
-
* @param field Field such as "versions" or "dist-tags.latest" are parsed from the pacote result (https://www.npmjs.com/package/pacote#packument)
|
444
|
-
* @param currentVersion
|
445
|
-
* @returns Promised result
|
446
|
-
*/
|
447
|
-
async function viewOne(packageName, field, currentVersion, options, npmConfigLocal, npmConfigProject) {
|
448
|
-
const result = await (0, exports.viewManyMemoized)(packageName, [field], currentVersion, options, 0, npmConfigLocal, npmConfigProject);
|
449
|
-
return result[field];
|
450
|
-
}
|
451
|
-
exports.viewOne = viewOne;
|
452
|
-
/**
|
453
|
-
* Spawns npm with --json. Handles different commands for Window and Linux/OSX, and automatically converts --location=global to --global on npm < 8.11.0.
|
454
|
-
*
|
455
|
-
* @param args
|
456
|
-
* @param [npmOptions={}]
|
457
|
-
* @param [spawnOptions={}]
|
458
|
-
* @returns
|
459
|
-
*/
|
460
|
-
async function spawnNpm(args, npmOptions = {}, spawnOptions = {}) {
|
461
|
-
const cmd = process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
462
|
-
const fullArgs = [
|
463
|
-
...(npmOptions.location
|
464
|
-
? (await isGlobalDeprecated())
|
465
|
-
? [`--location=${npmOptions.location}`]
|
466
|
-
: npmOptions.location === 'global'
|
467
|
-
? ['--global']
|
468
|
-
: []
|
469
|
-
: []),
|
470
|
-
...(npmOptions.prefix ? [`--prefix=${npmOptions.prefix}`] : []),
|
471
|
-
'--json',
|
472
|
-
...(Array.isArray(args) ? args : [args]),
|
473
|
-
];
|
474
|
-
return (0, spawn_please_1.default)(cmd, fullArgs, spawnOptions);
|
475
|
-
}
|
476
|
-
/**
|
477
|
-
* Get platform-specific default prefix to pass on to npm.
|
478
|
-
*
|
479
|
-
* @param options
|
480
|
-
* @param [options.global]
|
481
|
-
* @param [options.prefix]
|
482
|
-
* @returns
|
483
|
-
*/
|
484
|
-
async function defaultPrefix(options) {
|
485
|
-
if (options.prefix) {
|
486
|
-
return Promise.resolve(options.prefix);
|
487
|
-
}
|
488
|
-
const cmd = process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
489
|
-
let prefix;
|
490
|
-
// catch spawn error which can occur on Windows
|
491
|
-
// https://github.com/raineorshine/npm-check-updates/issues/703
|
492
|
-
try {
|
493
|
-
prefix = await (0, spawn_please_1.default)(cmd, ['config', 'get', 'prefix']);
|
494
|
-
}
|
495
|
-
catch (e) {
|
496
|
-
const message = (e.message || e || '').toString();
|
497
|
-
(0, logging_1.print)(options, 'Error executing `npm config get prefix`. Caught and ignored. Unsolved: https://github.com/raineorshine/npm-check-updates/issues/703. ERROR: ' +
|
498
|
-
message, 'verbose', 'error');
|
499
|
-
}
|
500
|
-
// FIX: for ncu -g doesn't work on homebrew or windows #146
|
501
|
-
// https://github.com/raineorshine/npm-check-updates/issues/146
|
502
|
-
return options.global && (prefix === null || prefix === void 0 ? void 0 : prefix.match('Cellar'))
|
503
|
-
? '/usr/local'
|
504
|
-
: // Workaround: get prefix on windows for global packages
|
505
|
-
// Only needed when using npm api directly
|
506
|
-
process.platform === 'win32' && options.global && !process.env.prefix
|
507
|
-
? prefix
|
508
|
-
? prefix.trim()
|
509
|
-
: `${process.env.AppData}\\npm`
|
510
|
-
: undefined;
|
511
|
-
}
|
512
|
-
exports.defaultPrefix = defaultPrefix;
|
513
|
-
/**
|
514
|
-
* Fetches the highest version number, regardless of tag or publish time.
|
515
|
-
*
|
516
|
-
* @param packageName
|
517
|
-
* @param currentVersion
|
518
|
-
* @param options
|
519
|
-
* @returns
|
520
|
-
*/
|
521
|
-
const greatest = async (packageName, currentVersion, options = {}, npmConfig, npmConfigProject) => {
|
522
|
-
// known type based on 'versions'
|
523
|
-
const versions = (await viewOne(packageName, 'versions', currentVersion, options, npmConfig, npmConfigProject));
|
524
|
-
return {
|
525
|
-
version: (0, last_1.default)(
|
526
|
-
// eslint-disable-next-line fp/no-mutating-methods
|
527
|
-
(0, filter_1.default)(versions, (0, filters_1.filterPredicate)(options))
|
528
|
-
.map(o => o.version)
|
529
|
-
.sort(versionUtil.compareVersions)) || null,
|
530
|
-
};
|
531
|
-
};
|
532
|
-
exports.greatest = greatest;
|
533
|
-
/**
|
534
|
-
* Fetches the list of peer dependencies for a specific package version.
|
535
|
-
*
|
536
|
-
* @param packageName
|
537
|
-
* @param version
|
538
|
-
* @returns Promised {packageName: version} collection
|
539
|
-
*/
|
540
|
-
const getPeerDependencies = async (packageName, version) => {
|
541
|
-
const args = ['view', `${packageName}@${version}`, 'peerDependencies'];
|
542
|
-
const result = await spawnNpm(args, {}, { rejectOnError: false });
|
543
|
-
return result ? parseJson(result, { command: [...args, '--json'].join(' ') }) : {};
|
544
|
-
};
|
545
|
-
exports.getPeerDependencies = getPeerDependencies;
|
546
|
-
/**
|
547
|
-
* Fetches the list of all installed packages.
|
548
|
-
*
|
549
|
-
* @param [options]
|
550
|
-
* @param [options.cwd]
|
551
|
-
* @param [options.global]
|
552
|
-
* @param [options.prefix]
|
553
|
-
* @returns
|
554
|
-
*/
|
555
|
-
const list = async (options = {}) => {
|
556
|
-
const result = await spawnNpm(['ls', '--depth=0'], {
|
557
|
-
// spawnNpm takes the modern --location option and converts it to --global on older versions of npm
|
558
|
-
...(options.global ? { location: 'global' } : null),
|
559
|
-
...(options.prefix ? { prefix: options.prefix } : null),
|
560
|
-
}, {
|
561
|
-
...(options.cwd ? { cwd: options.cwd } : null),
|
562
|
-
rejectOnError: false,
|
563
|
-
});
|
564
|
-
const dependencies = parseJson(result, {
|
565
|
-
command: `npm${process.platform === 'win32' ? '.cmd' : ''} ls --json${options.global ? ' --location=global' : ''}${options.prefix ? ' --prefix ' + options.prefix : ''}`,
|
566
|
-
}).dependencies;
|
567
|
-
return (0, keyValueBy_1.keyValueBy)(dependencies, (name, info) => {
|
568
|
-
var _a;
|
569
|
-
return ({
|
570
|
-
// unmet peer dependencies have a different structure
|
571
|
-
[name]: info.version || ((_a = info.required) === null || _a === void 0 ? void 0 : _a.version),
|
572
|
-
});
|
573
|
-
});
|
574
|
-
};
|
575
|
-
exports.list = list;
|
576
|
-
/**
|
577
|
-
* Fetches the version of a package published to options.distTag.
|
578
|
-
*
|
579
|
-
* @param packageName
|
580
|
-
* @param currentVersion
|
581
|
-
* @param options
|
582
|
-
* @returns
|
583
|
-
*/
|
584
|
-
const distTag = async (packageName, currentVersion, options = {}, npmConfig, npmConfigProject) => {
|
585
|
-
var _a;
|
586
|
-
const packument = (await viewOne(packageName, `dist-tags.${options.distTag}`, currentVersion, options, npmConfig, npmConfigProject)); // known type based on dist-tags.latest
|
587
|
-
// latest should not be deprecated
|
588
|
-
// if latest exists and latest is not a prerelease version, return it
|
589
|
-
// if latest exists and latest is a prerelease version and --pre is specified, return it
|
590
|
-
// if latest exists and latest not satisfies min version of engines.node
|
591
|
-
if (packument && (0, filters_1.filterPredicate)(options)(packument)) {
|
592
|
-
return {
|
593
|
-
version: packument.version,
|
594
|
-
...(((_a = packument.time) === null || _a === void 0 ? void 0 : _a[packument.version]) ? { time: packument.time[packument.version] } : null),
|
595
|
-
};
|
596
|
-
}
|
597
|
-
// If we use a custom dist-tag, we do not want to get other 'pre' versions, just the ones from this dist-tag
|
598
|
-
if (options.distTag && options.distTag !== 'latest')
|
599
|
-
return {};
|
600
|
-
// if latest is a prerelease version and --pre is not specified
|
601
|
-
// or latest is deprecated
|
602
|
-
// find the next valid version
|
603
|
-
// known type based on dist-tags.latest
|
604
|
-
return (0, exports.greatest)(packageName, currentVersion, options, npmConfig, npmConfigProject);
|
605
|
-
};
|
606
|
-
exports.distTag = distTag;
|
607
|
-
/**
|
608
|
-
* Fetches the version published to the latest tag.
|
609
|
-
*
|
610
|
-
* @param packageName
|
611
|
-
* @param currentVersion
|
612
|
-
* @param options
|
613
|
-
* @returns
|
614
|
-
*/
|
615
|
-
const latest = async (packageName, currentVersion, options = {}, npmConfig, npmConfigProject) => (0, exports.distTag)(packageName, currentVersion, { ...options, distTag: 'latest' }, npmConfig, npmConfigProject);
|
616
|
-
exports.latest = latest;
|
617
|
-
/**
|
618
|
-
* Fetches the most recently published version, regardless of version number.
|
619
|
-
*
|
620
|
-
* @param packageName
|
621
|
-
* @param currentVersion
|
622
|
-
* @param options
|
623
|
-
* @returns
|
624
|
-
*/
|
625
|
-
const newest = async (packageName, currentVersion, options = {}, npmConfig, npmConfigProject) => {
|
626
|
-
const result = await (0, exports.viewManyMemoized)(packageName, ['time', 'versions'], currentVersion, options, 0, npmConfig, npmConfigProject);
|
627
|
-
// Generate a map of versions that satisfy the node engine.
|
628
|
-
// result.versions is an object but is parsed as an array, so manually convert it to an object.
|
629
|
-
// Otherwise keyValueBy will pass the predicate arguments in the wrong order.
|
630
|
-
const versionsSatisfyingNodeEngine = (0, keyValueBy_1.keyValueBy)(Object.values(result.versions || {}), (packument) => (0, filters_1.satisfiesNodeEngine)(packument, options.nodeEngineVersion) ? { [packument.version]: true } : null);
|
631
|
-
// filter out times that do not satisfy the node engine
|
632
|
-
// filter out prereleases if pre:false (same as allowPreOrIsNotPre)
|
633
|
-
const timesSatisfyingNodeEngine = (0, filterObject_1.default)((result.time || {}), version => versionsSatisfyingNodeEngine[version] && (options.pre !== false || !versionUtil.isPre(version)));
|
634
|
-
// sort by timestamp (entry[1]) and map versions
|
635
|
-
const versionsSortedByTime = (0, sortBy_1.default)(Object.entries(timesSatisfyingNodeEngine), 1).map(([version]) => version);
|
636
|
-
return { version: (0, last_1.default)(versionsSortedByTime) };
|
637
|
-
};
|
638
|
-
exports.newest = newest;
|
639
|
-
/**
|
640
|
-
* Fetches the highest version with the same major version as currentVersion.
|
641
|
-
*
|
642
|
-
* @param packageName
|
643
|
-
* @param currentVersion
|
644
|
-
* @param options
|
645
|
-
* @returns
|
646
|
-
*/
|
647
|
-
const minor = async (packageName, currentVersion, options = {}, npmConfig, npmConfigProject) => {
|
648
|
-
const versions = (await viewOne(packageName, 'versions', currentVersion, options, npmConfig, npmConfigProject));
|
649
|
-
const version = versionUtil.findGreatestByLevel((0, filter_1.default)(versions, (0, filters_1.filterPredicate)(options)).map(o => o.version), currentVersion, 'minor');
|
650
|
-
return { version };
|
651
|
-
};
|
652
|
-
exports.minor = minor;
|
653
|
-
/**
|
654
|
-
* Fetches the highest version with the same minor and major version as currentVersion.
|
655
|
-
*
|
656
|
-
* @param packageName
|
657
|
-
* @param currentVersion
|
658
|
-
* @param options
|
659
|
-
* @returns
|
660
|
-
*/
|
661
|
-
const patch = async (packageName, currentVersion, options = {}, npmConfig, npmConfigProject) => {
|
662
|
-
const versions = (await viewOne(packageName, 'versions', currentVersion, options, npmConfig, npmConfigProject));
|
663
|
-
const version = versionUtil.findGreatestByLevel((0, filter_1.default)(versions, (0, filters_1.filterPredicate)(options)).map(o => o.version), currentVersion, 'patch');
|
664
|
-
return { version };
|
665
|
-
};
|
666
|
-
exports.patch = patch;
|
667
|
-
/**
|
668
|
-
* Fetches the highest version that satisfies the semver range specified in the package.json.
|
669
|
-
*
|
670
|
-
* @param packageName
|
671
|
-
* @param currentVersion
|
672
|
-
* @param options
|
673
|
-
* @returns
|
674
|
-
*/
|
675
|
-
const semver = async (packageName, currentVersion, options = {}, npmConfig, npmConfigProject) => {
|
676
|
-
const versions = (await viewOne(packageName, 'versions', currentVersion, options, npmConfig, npmConfigProject));
|
677
|
-
// ignore explicit version ranges
|
678
|
-
if (isExplicitRange(currentVersion))
|
679
|
-
return { version: null };
|
680
|
-
const versionsFiltered = (0, filter_1.default)(versions, (0, filters_1.filterPredicate)(options)).map(o => o.version);
|
681
|
-
// TODO: Upgrading within a prerelease does not seem to work.
|
682
|
-
// { includePrerelease: true } does not help.
|
683
|
-
const version = semver_1.default.maxSatisfying(versionsFiltered, currentVersion);
|
684
|
-
return { version };
|
685
|
-
};
|
686
|
-
exports.semver = semver;
|
687
|
-
exports.default = spawnNpm;
|
688
|
-
//# sourceMappingURL=npm.js.map
|