From c4976e3cad71cfb512da050e28b0d6bd023d2a26 Mon Sep 17 00:00:00 2001 From: npm CLI robot Date: Wed, 21 Jun 2023 18:34:16 +0000 Subject: [PATCH] deps: upgrade npm to 9.7.2 --- deps/npm/bin/node-gyp-bin/node-gyp | 6 - deps/npm/bin/node-gyp-bin/node-gyp.cmd | 5 - deps/npm/bin/npm | 5 +- deps/npm/bin/npx | 8 +- deps/npm/bin/npx-cli.js | 2 +- .../docs/content/commands/npm-install-test.md | 16 + deps/npm/docs/content/commands/npm-install.md | 16 + deps/npm/docs/content/commands/npm-ls.md | 2 +- deps/npm/docs/content/commands/npm.md | 2 +- .../content/configuring-npm/package-json.md | 3 - .../output/commands/npm-install-test.html | 13 +- .../npm/docs/output/commands/npm-install.html | 13 +- deps/npm/docs/output/commands/npm-ls.html | 2 +- deps/npm/docs/output/commands/npm.html | 2 +- .../output/configuring-npm/package-json.html | 2 - deps/npm/lib/base-command.js | 2 +- deps/npm/lib/commands/completion.js | 2 +- deps/npm/lib/commands/config.js | 8 +- deps/npm/lib/commands/doctor.js | 26 +- deps/npm/lib/commands/install.js | 1 + deps/npm/lib/commands/publish.js | 2 +- deps/npm/lib/commands/unpublish.js | 2 +- deps/npm/lib/es6/validate-engines.js | 2 +- deps/npm/lib/npm.js | 19 +- deps/npm/man/man1/npm-install-test.1 | 14 + deps/npm/man/man1/npm-install.1 | 14 + deps/npm/man/man1/npm-ls.1 | 2 +- deps/npm/man/man1/npm.1 | 2 +- deps/npm/man/man5/npm-json.5 | 2 - deps/npm/man/man5/package-json.5 | 2 - .../node_modules/@gar/promisify/LICENSE.md | 9 - deps/npm/node_modules/@gar/promisify/index.js | 36 - .../node_modules/@gar/promisify/package.json | 32 - .../cliui/node_modules/strip-ansi/index.js | 7 +- .../node_modules/strip-ansi/package.json | 2 +- .../@npmcli/arborist/lib/arborist/reify.js | 34 +- .../@npmcli/arborist/package.json | 10 +- .../config/lib/definitions}/definition.js | 12 +- .../config/lib/definitions}/definitions.js | 20 +- .../@npmcli/config/lib/definitions}/index.js | 26 +- .../node_modules/@npmcli/config/lib/errors.js | 1 + .../node_modules/@npmcli/config/lib/index.js | 16 +- .../node_modules/@npmcli/config/lib/umask.js | 21 +- .../node_modules/@npmcli/config/package.json | 6 +- .../node_modules/@npmcli/move-file/LICENSE.md | 22 - .../@npmcli/move-file/lib/index.js | 185 --- .../@npmcli/move-file/package.json | 47 - deps/npm/node_modules/@sigstore/tuf/LICENSE | 202 ++++ .../util => @sigstore/tuf/dist}/appdata.js | 18 + .../index.js => @sigstore/tuf/dist/client.js} | 47 +- .../node_modules/@sigstore/tuf/dist/error.js | 12 + .../node_modules/@sigstore/tuf/dist/index.js | 55 + .../dist/tuf => @sigstore/tuf/dist}/target.js | 10 +- .../node_modules/@sigstore/tuf/package.json | 45 + .../tuf/store/public-good-instance-root.json | 1 + .../npm/node_modules/cacache/lib/util/glob.js | 3 +- deps/npm/node_modules/cacache/package.json | 2 +- .../node_modules/exponential-backoff/LICENSE | 202 ++++ .../exponential-backoff/dist/backoff.js | 118 ++ .../dist/delay/always/always.delay.js | 25 + .../dist/delay/delay.base.js | 45 + .../dist/delay/delay.factory.js | 17 + .../dist/delay/delay.interface.js | 3 + .../dist/delay/skip-first/skip-first.delay.js | 82 ++ .../dist/jitter/full/full.jitter.js | 8 + .../dist/jitter/jitter.factory.js | 15 + .../dist/jitter/no/no.jitter.js | 7 + .../exponential-backoff/dist/options.js | 31 + .../exponential-backoff/package.json | 61 + .../node_modules/glob/dist/cjs/package.json | 99 +- .../node_modules/glob/dist/mjs/package.json | 2 +- deps/npm/node_modules/glob/package.json | 13 +- deps/npm/node_modules/infer-owner/LICENSE | 15 - deps/npm/node_modules/infer-owner/index.js | 71 -- .../npm/node_modules/infer-owner/package.json | 26 - deps/npm/node_modules/ini/lib/ini.js | 7 +- deps/npm/node_modules/ini/package.json | 6 +- .../npm/node_modules/is-core-module/core.json | 2 +- .../node_modules/is-core-module/package.json | 2 +- deps/npm/node_modules/jackspeak/package.json | 2 +- deps/npm/node_modules/libnpmdiff/package.json | 4 +- deps/npm/node_modules/libnpmexec/package.json | 5 +- deps/npm/node_modules/libnpmfund/package.json | 4 +- deps/npm/node_modules/libnpmpack/package.json | 4 +- .../libnpmpublish/lib/provenance.js | 233 +++- .../node_modules/libnpmpublish/lib/publish.js | 36 +- .../node_modules/libnpmpublish/package.json | 2 +- .../node_modules/minimatch/dist/cjs/index.js | 44 +- .../node_modules/minimatch/dist/mjs/index.js | 44 +- deps/npm/node_modules/minimatch/package.json | 2 +- .../node-gyp/.github/workflows/tests.yml | 15 +- deps/npm/node_modules/node-gyp/CHANGELOG.md | 30 + deps/npm/node_modules/node-gyp/README.md | 5 +- deps/npm/node_modules/node-gyp/docs/README.md | 10 +- .../gyp/pylib/gyp/generator/eclipse.py | 2 +- .../node-gyp/gyp/pylib/gyp/xcodeproj_file.py | 2 +- .../node-gyp/lib/find-visualstudio.js | 15 +- deps/npm/node_modules/node-gyp/lib/install.js | 266 +++-- .../node_modules/@npmcli/fs/LICENSE.md | 20 - .../@npmcli/fs/lib/common/get-options.js | 20 - .../@npmcli/fs/lib/common/node.js | 9 - .../@npmcli/fs/lib/common/owner-sync.js | 96 -- .../@npmcli/fs/lib/common/owner.js | 96 -- .../node_modules/@npmcli/fs/lib/copy-file.js | 16 - .../node_modules/@npmcli/fs/lib/cp/LICENSE | 15 - .../node_modules/@npmcli/fs/lib/cp/index.js | 22 - .../@npmcli/fs/lib/cp/polyfill.js | 428 ------- .../node_modules/@npmcli/fs/lib/errors.js | 129 -- .../node_modules/@npmcli/fs/lib/fs.js | 14 - .../node_modules/@npmcli/fs/lib/index.js | 12 - .../node_modules/@npmcli/fs/lib/mkdir.js | 19 - .../node_modules/@npmcli/fs/lib/mkdtemp.js | 23 - .../node_modules/@npmcli/fs/lib/rm/index.js | 22 - .../@npmcli/fs/lib/rm/polyfill.js | 239 ---- .../@npmcli/fs/lib/with-owner-sync.js | 21 - .../node_modules/@npmcli/fs/lib/with-owner.js | 21 - .../@npmcli/fs/lib/with-temp-dir.js | 41 - .../node_modules/@npmcli/fs/lib/write-file.js | 14 - .../node_modules/@npmcli/fs/package.json | 50 - .../node-gyp/node_modules/cacache/LICENSE.md | 16 - .../node_modules/cacache/lib/content/path.js | 29 - .../node_modules/cacache/lib/content/read.js | 241 ---- .../node_modules/cacache/lib/content/rm.js | 20 - .../node_modules/cacache/lib/content/write.js | 189 --- .../node_modules/cacache/lib/entry-index.js | 404 ------- .../node-gyp/node_modules/cacache/lib/get.js | 225 ---- .../node_modules/cacache/lib/index.js | 45 - .../node_modules/cacache/lib/memoization.js | 72 -- .../node-gyp/node_modules/cacache/lib/put.js | 80 -- .../node-gyp/node_modules/cacache/lib/rm.js | 31 - .../cacache/lib/util/fix-owner.js | 145 --- .../cacache/lib/util/hash-to-segments.js | 7 - .../cacache/lib/util/move-file.js | 56 - .../node_modules/cacache/lib/util/tmp.js | 33 - .../node_modules/cacache/lib/verify.js | 257 ---- .../node_modules/brace-expansion/LICENSE | 21 - .../node_modules/brace-expansion/index.js | 202 ---- .../node_modules/brace-expansion/package.json | 46 - .../cacache/node_modules/glob/LICENSE | 15 - .../cacache/node_modules/glob/common.js | 244 ---- .../cacache/node_modules/glob/glob.js | 790 ------------ .../cacache/node_modules/glob/package.json | 55 - .../cacache/node_modules/glob/sync.js | 486 -------- .../cacache/node_modules/minimatch/LICENSE | 15 - .../node_modules/minimatch/lib/path.js | 4 - .../node_modules/minimatch/minimatch.js | 944 --------------- .../node_modules/minimatch/package.json | 35 - .../node_modules/cacache/package.json | 84 -- .../node-gyp/node_modules/fs-minipass/LICENSE | 15 - .../node_modules/fs-minipass/index.js | 422 ------- .../node_modules/fs-minipass/package.json | 39 - .../node_modules/make-fetch-happen/LICENSE | 16 - .../make-fetch-happen/lib/agent.js | 214 ---- .../make-fetch-happen/lib/cache/entry.js | 444 ------- .../make-fetch-happen/lib/cache/errors.js | 11 - .../make-fetch-happen/lib/cache/index.js | 49 - .../make-fetch-happen/lib/cache/key.js | 17 - .../make-fetch-happen/lib/cache/policy.js | 161 --- .../node_modules/make-fetch-happen/lib/dns.js | 49 - .../make-fetch-happen/lib/fetch.js | 118 -- .../make-fetch-happen/lib/index.js | 41 - .../make-fetch-happen/lib/options.js | 52 - .../make-fetch-happen/lib/pipeline.js | 41 - .../make-fetch-happen/lib/remote.js | 121 -- .../make-fetch-happen/package.json | 79 -- .../node_modules/minipass-fetch/LICENSE | 28 - .../minipass-fetch/lib/abort-error.js | 17 - .../node_modules/minipass-fetch/lib/blob.js | 97 -- .../node_modules/minipass-fetch/lib/body.js | 350 ------ .../minipass-fetch/lib/fetch-error.js | 32 - .../minipass-fetch/lib/headers.js | 267 ----- .../node_modules/minipass-fetch/lib/index.js | 365 ------ .../minipass-fetch/lib/request.js | 281 ----- .../minipass-fetch/lib/response.js | 90 -- .../node_modules/minipass-fetch/package.json | 67 -- .../node-gyp/node_modules/minipass/LICENSE | 15 - .../node-gyp/node_modules/minipass/index.js | 649 ---------- .../node_modules/minipass/package.json | 56 - .../node-gyp/node_modules/ssri/LICENSE.md | 16 - .../node-gyp/node_modules/ssri/lib/index.js | 524 -------- .../node-gyp/node_modules/ssri/package.json | 63 - .../node_modules/unique-filename/LICENSE | 5 - .../node_modules/unique-filename/lib/index.js | 7 - .../node_modules/unique-filename/package.json | 48 - .../node-gyp/node_modules/unique-slug/LICENSE | 15 - .../node_modules/unique-slug/lib/index.js | 11 - .../node_modules/unique-slug/package.json | 44 - deps/npm/node_modules/node-gyp/package.json | 13 +- .../fixtures/VS_2022_Community_workload.txt | 569 +++++++++ .../node_modules/node-gyp/test/reporter.js | 75 ++ .../node_modules/node-gyp/test/test-addon.js | 200 ++-- .../node-gyp/test/test-configure-python.js | 111 +- .../node-gyp/test/test-create-config-gypi.js | 91 +- .../node-gyp/test/test-download.js | 365 +++--- .../test/test-find-accessible-sync.js | 99 +- .../node-gyp/test/test-find-node-directory.js | 196 ++- .../node-gyp/test/test-find-python.js | 353 +++--- .../node-gyp/test/test-find-visualstudio.js | 1056 ++++++++--------- .../node-gyp/test/test-install.js | 151 ++- .../node-gyp/test/test-options.js | 59 +- .../node-gyp/test/test-process-release.js | 751 ++++++------ deps/npm/node_modules/node-gyp/update-gyp.py | 2 +- deps/npm/node_modules/nopt/bin/nopt.js | 41 +- deps/npm/node_modules/nopt/lib/debug.js | 6 +- deps/npm/node_modules/nopt/lib/nopt-lib.js | 249 ++-- deps/npm/node_modules/nopt/lib/nopt.js | 6 +- deps/npm/node_modules/nopt/lib/type-defs.js | 16 +- deps/npm/node_modules/nopt/package.json | 10 +- deps/npm/node_modules/pacote/README.md | 3 + deps/npm/node_modules/pacote/lib/fetcher.js | 3 +- deps/npm/node_modules/pacote/lib/registry.js | 5 +- .../node_modules/pacote/lib/util/cache-dir.js | 5 +- deps/npm/node_modules/pacote/package.json | 2 +- .../npm/node_modules/path-scurry/package.json | 4 +- .../read-package-json/lib/read-json.js | 2 +- .../read-package-json/package.json | 14 +- deps/npm/node_modules/safe-buffer/index.js | 3 + .../npm/node_modules/safe-buffer/package.json | 22 +- .../node_modules/semver/classes/comparator.js | 3 +- deps/npm/node_modules/semver/classes/range.js | 64 +- .../npm/node_modules/semver/classes/semver.js | 8 +- .../node_modules/semver/functions/coerce.js | 2 +- .../npm/node_modules/semver/functions/diff.js | 51 +- deps/npm/node_modules/semver/internal/re.js | 11 + deps/npm/node_modules/semver/package.json | 8 +- deps/npm/node_modules/sigstore/README.md | 6 +- .../node_modules/sigstore/dist/config.d.ts | 1 + .../sigstore/dist/external/rekor.d.ts | 19 +- .../sigstore/dist/external/rekor.js | 4 +- .../npm/node_modules/sigstore/dist/index.d.ts | 1 + deps/npm/node_modules/sigstore/dist/index.js | 15 - .../node_modules/sigstore/dist/sigstore.d.ts | 4 +- .../node_modules/sigstore/dist/sigstore.js | 27 +- .../sigstore/dist/tlog/format.d.ts | 7 +- .../node_modules/sigstore/dist/tlog/format.js | 55 +- .../sigstore/dist/tlog/index.d.ts | 4 +- .../types/__generated__/hashedrekord.d.ts | 50 - .../tlog/types/__generated__/hashedrekord.js | 8 - .../dist/tlog/types/__generated__/intoto.d.ts | 131 -- .../dist/tlog/types/__generated__/intoto.js | 8 - .../sigstore/dist/tlog/types/index.d.ts | 38 - .../sigstore/dist/tlog/types/index.js | 5 - .../sigstore/dist/tlog/verify/body.js | 39 + .../node_modules/sigstore/dist/tuf/index.d.ts | 17 - .../sigstore/dist/tuf/target.d.ts | 2 - .../sigstore/dist/types/sigstore/index.d.ts | 2 +- .../sigstore/dist/types/sigstore/index.js | 3 +- .../sigstore/dist/util/appdata.d.ts | 1 - .../dist/{x509 => util}/asn1/dump.d.ts | 0 .../sigstore/dist/{x509 => util}/asn1/dump.js | 0 .../dist/{x509 => util}/asn1/error.d.ts | 0 .../dist/{x509 => util}/asn1/error.js | 0 .../sigstore/dist/util/asn1/index.d.ts | 1 + .../sigstore/dist/util/asn1/index.js | 20 + .../dist/{x509 => util}/asn1/length.d.ts | 2 +- .../dist/{x509 => util}/asn1/length.js | 0 .../dist/{x509 => util}/asn1/obj.d.ts | 0 .../sigstore/dist/{x509 => util}/asn1/obj.js | 7 +- .../dist/{x509 => util}/asn1/parse.d.ts | 0 .../dist/{x509 => util}/asn1/parse.js | 0 .../dist/{x509 => util}/asn1/tag.d.ts | 0 .../sigstore/dist/{x509 => util}/asn1/tag.js | 0 .../sigstore/dist/util/index.d.ts | 2 +- .../node_modules/sigstore/dist/util/index.js | 4 +- .../node_modules/sigstore/dist/util/stream.js | 2 +- .../node_modules/sigstore/dist/x509/cert.d.ts | 2 +- .../node_modules/sigstore/dist/x509/cert.js | 4 +- .../node_modules/sigstore/dist/x509/ext.d.ts | 2 +- .../node_modules/sigstore/dist/x509/ext.js | 15 - deps/npm/node_modules/sigstore/package.json | 11 +- .../node_modules/string_decoder/package.json | 7 +- .../node_modules/supports-color/browser.js | 30 + deps/npm/node_modules/supports-color/index.js | 182 +++ deps/npm/node_modules/supports-color/license | 9 + .../node_modules/supports-color/package.json | 61 + .../node_modules/tar/lib/normalize-unicode.js | 2 +- .../node_modules/tar/lib/path-reservations.js | 2 +- deps/npm/node_modules/tar/lib/unpack.js | 2 +- deps/npm/node_modules/tar/package.json | 2 +- deps/npm/node_modules/tuf-js/dist/updater.js | 4 +- deps/npm/node_modules/tuf-js/package.json | 10 +- .../node_modules/strip-ansi/index.js | 7 +- .../node_modules/strip-ansi/package.json | 2 +- deps/npm/package.json | 46 +- .../test/lib/commands/config.js.test.cjs | 15 + .../test/lib/commands/doctor.js.test.cjs | 578 ++++----- .../test/lib/commands/publish.js.test.cjs | 2 - .../tap-snapshots/test/lib/docs.js.test.cjs | 14 +- .../lib/utils/config/definition.js.test.cjs | 273 ----- deps/npm/test/bin/windows-shims.js | 240 ++-- deps/npm/test/fixtures/mock-npm.js | 56 +- deps/npm/test/fixtures/sandbox.js | 6 +- deps/npm/test/lib/cli-entry.js | 5 - deps/npm/test/lib/commands/config.js | 24 +- deps/npm/test/lib/docs.js | 20 +- deps/npm/test/lib/utils/config/definition.js | 218 ---- deps/npm/test/lib/utils/config/definitions.js | 942 --------------- deps/npm/test/lib/utils/config/index.js | 63 - 298 files changed, 5385 insertions(+), 16299 deletions(-) delete mode 100755 deps/npm/bin/node-gyp-bin/node-gyp delete mode 100755 deps/npm/bin/node-gyp-bin/node-gyp.cmd delete mode 100644 deps/npm/node_modules/@gar/promisify/LICENSE.md delete mode 100644 deps/npm/node_modules/@gar/promisify/index.js delete mode 100644 deps/npm/node_modules/@gar/promisify/package.json rename deps/npm/{lib/utils/config => node_modules/@npmcli/config/lib/definitions}/definition.js (97%) rename deps/npm/{lib/utils/config => node_modules/@npmcli/config/lib/definitions}/definitions.js (99%) rename deps/npm/{lib/utils/config => node_modules/@npmcli/config/lib/definitions}/index.js (86%) delete mode 100644 deps/npm/node_modules/@npmcli/move-file/LICENSE.md delete mode 100644 deps/npm/node_modules/@npmcli/move-file/lib/index.js delete mode 100644 deps/npm/node_modules/@npmcli/move-file/package.json create mode 100644 deps/npm/node_modules/@sigstore/tuf/LICENSE rename deps/npm/node_modules/{sigstore/dist/util => @sigstore/tuf/dist}/appdata.js (61%) rename deps/npm/node_modules/{sigstore/dist/tuf/index.js => @sigstore/tuf/dist/client.js} (63%) create mode 100644 deps/npm/node_modules/@sigstore/tuf/dist/error.js create mode 100644 deps/npm/node_modules/@sigstore/tuf/dist/index.js rename deps/npm/node_modules/{sigstore/dist/tuf => @sigstore/tuf/dist}/target.js (92%) create mode 100644 deps/npm/node_modules/@sigstore/tuf/package.json create mode 100644 deps/npm/node_modules/@sigstore/tuf/store/public-good-instance-root.json create mode 100644 deps/npm/node_modules/exponential-backoff/LICENSE create mode 100644 deps/npm/node_modules/exponential-backoff/dist/backoff.js create mode 100644 deps/npm/node_modules/exponential-backoff/dist/delay/always/always.delay.js create mode 100644 deps/npm/node_modules/exponential-backoff/dist/delay/delay.base.js create mode 100644 deps/npm/node_modules/exponential-backoff/dist/delay/delay.factory.js create mode 100644 deps/npm/node_modules/exponential-backoff/dist/delay/delay.interface.js create mode 100644 deps/npm/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js create mode 100644 deps/npm/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js create mode 100644 deps/npm/node_modules/exponential-backoff/dist/jitter/jitter.factory.js create mode 100644 deps/npm/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js create mode 100644 deps/npm/node_modules/exponential-backoff/dist/options.js create mode 100644 deps/npm/node_modules/exponential-backoff/package.json delete mode 100644 deps/npm/node_modules/infer-owner/LICENSE delete mode 100644 deps/npm/node_modules/infer-owner/index.js delete mode 100644 deps/npm/node_modules/infer-owner/package.json delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/LICENSE.md delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/common/get-options.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/common/node.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/common/owner-sync.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/common/owner.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/copy-file.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/cp/LICENSE delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/cp/index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/cp/polyfill.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/errors.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/fs.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/mkdir.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/mkdtemp.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/rm/index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/rm/polyfill.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/with-owner-sync.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/with-owner.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/with-temp-dir.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/write-file.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/@npmcli/fs/package.json delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/LICENSE.md delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/content/path.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/content/read.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/content/rm.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/content/write.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/entry-index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/get.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/memoization.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/put.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/rm.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/util/fix-owner.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/util/hash-to-segments.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/util/move-file.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/util/tmp.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/lib/verify.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/node_modules/brace-expansion/LICENSE delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/node_modules/brace-expansion/index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/node_modules/brace-expansion/package.json delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/node_modules/glob/LICENSE delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/node_modules/glob/common.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/node_modules/glob/glob.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/node_modules/glob/package.json delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/node_modules/glob/sync.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/node_modules/minimatch/LICENSE delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/node_modules/minimatch/lib/path.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/node_modules/minimatch/minimatch.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/node_modules/minimatch/package.json delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/cacache/package.json delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/fs-minipass/LICENSE delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/fs-minipass/index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/fs-minipass/package.json delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/LICENSE delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/lib/agent.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/lib/cache/entry.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/lib/cache/errors.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/lib/cache/index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/lib/cache/key.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/lib/cache/policy.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/lib/dns.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/lib/fetch.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/lib/index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/lib/options.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/lib/pipeline.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/lib/remote.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/make-fetch-happen/package.json delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/minipass-fetch/LICENSE delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/minipass-fetch/lib/abort-error.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/minipass-fetch/lib/blob.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/minipass-fetch/lib/body.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/minipass-fetch/lib/fetch-error.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/minipass-fetch/lib/headers.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/minipass-fetch/lib/index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/minipass-fetch/lib/request.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/minipass-fetch/lib/response.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/minipass-fetch/package.json delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/minipass/LICENSE delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/minipass/index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/minipass/package.json delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/ssri/LICENSE.md delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/ssri/lib/index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/ssri/package.json delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/unique-filename/LICENSE delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/unique-filename/lib/index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/unique-filename/package.json delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/unique-slug/LICENSE delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/unique-slug/lib/index.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/unique-slug/package.json create mode 100644 deps/npm/node_modules/node-gyp/test/fixtures/VS_2022_Community_workload.txt create mode 100644 deps/npm/node_modules/node-gyp/test/reporter.js delete mode 100644 deps/npm/node_modules/sigstore/dist/tlog/types/__generated__/hashedrekord.d.ts delete mode 100644 deps/npm/node_modules/sigstore/dist/tlog/types/__generated__/hashedrekord.js delete mode 100644 deps/npm/node_modules/sigstore/dist/tlog/types/__generated__/intoto.d.ts delete mode 100644 deps/npm/node_modules/sigstore/dist/tlog/types/__generated__/intoto.js delete mode 100644 deps/npm/node_modules/sigstore/dist/tlog/types/index.d.ts delete mode 100644 deps/npm/node_modules/sigstore/dist/tlog/types/index.js delete mode 100644 deps/npm/node_modules/sigstore/dist/tuf/index.d.ts delete mode 100644 deps/npm/node_modules/sigstore/dist/tuf/target.d.ts delete mode 100644 deps/npm/node_modules/sigstore/dist/util/appdata.d.ts rename deps/npm/node_modules/sigstore/dist/{x509 => util}/asn1/dump.d.ts (100%) rename deps/npm/node_modules/sigstore/dist/{x509 => util}/asn1/dump.js (100%) rename deps/npm/node_modules/sigstore/dist/{x509 => util}/asn1/error.d.ts (100%) rename deps/npm/node_modules/sigstore/dist/{x509 => util}/asn1/error.js (100%) create mode 100644 deps/npm/node_modules/sigstore/dist/util/asn1/index.d.ts create mode 100644 deps/npm/node_modules/sigstore/dist/util/asn1/index.js rename deps/npm/node_modules/sigstore/dist/{x509 => util}/asn1/length.d.ts (76%) rename deps/npm/node_modules/sigstore/dist/{x509 => util}/asn1/length.js (100%) rename deps/npm/node_modules/sigstore/dist/{x509 => util}/asn1/obj.d.ts (100%) rename deps/npm/node_modules/sigstore/dist/{x509 => util}/asn1/obj.js (95%) rename deps/npm/node_modules/sigstore/dist/{x509 => util}/asn1/parse.d.ts (100%) rename deps/npm/node_modules/sigstore/dist/{x509 => util}/asn1/parse.js (100%) rename deps/npm/node_modules/sigstore/dist/{x509 => util}/asn1/tag.d.ts (100%) rename deps/npm/node_modules/sigstore/dist/{x509 => util}/asn1/tag.js (100%) create mode 100644 deps/npm/node_modules/supports-color/browser.js create mode 100644 deps/npm/node_modules/supports-color/index.js create mode 100644 deps/npm/node_modules/supports-color/license create mode 100644 deps/npm/node_modules/supports-color/package.json delete mode 100644 deps/npm/tap-snapshots/test/lib/utils/config/definition.js.test.cjs delete mode 100644 deps/npm/test/lib/utils/config/definition.js delete mode 100644 deps/npm/test/lib/utils/config/definitions.js delete mode 100644 deps/npm/test/lib/utils/config/index.js diff --git a/deps/npm/bin/node-gyp-bin/node-gyp b/deps/npm/bin/node-gyp-bin/node-gyp deleted file mode 100755 index 70efb6f339f768..00000000000000 --- a/deps/npm/bin/node-gyp-bin/node-gyp +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env sh -if [ "x$npm_config_node_gyp" = "x" ]; then - node "`dirname "$0"`/../../node_modules/node-gyp/bin/node-gyp.js" "$@" -else - "$npm_config_node_gyp" "$@" -fi diff --git a/deps/npm/bin/node-gyp-bin/node-gyp.cmd b/deps/npm/bin/node-gyp-bin/node-gyp.cmd deleted file mode 100755 index 1ef2ae0c68fc4b..00000000000000 --- a/deps/npm/bin/node-gyp-bin/node-gyp.cmd +++ /dev/null @@ -1,5 +0,0 @@ -if not defined npm_config_node_gyp ( - node "%~dp0\..\..\node_modules\node-gyp\bin\node-gyp.js" %* -) else ( - node "%npm_config_node_gyp%" %* -) diff --git a/deps/npm/bin/npm b/deps/npm/bin/npm index a131a535434044..a08b4d113c444a 100755 --- a/deps/npm/bin/npm +++ b/deps/npm/bin/npm @@ -1,4 +1,8 @@ #!/usr/bin/env bash + +# This is used by the Node.js installer, which expects the cygwin/mingw +# shell script to already be present in the npm dependency folder. + (set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix basedir=`dirname "$0"` @@ -19,7 +23,6 @@ fi # kind of paths Node.js thinks it's using, typically win32 paths. CLI_BASEDIR="$("$NODE_EXE" -p 'require("path").dirname(process.execPath)')" NPM_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-cli.js" - NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g` if [ $? -ne 0 ]; then # if this didn't work, then everything else below will fail diff --git a/deps/npm/bin/npx b/deps/npm/bin/npx index a34e3459b5a701..c51ad45cb68aea 100755 --- a/deps/npm/bin/npx +++ b/deps/npm/bin/npx @@ -19,17 +19,17 @@ if ! [ -x "$NODE_EXE" ]; then NODE_EXE=node fi -# these paths are passed to node.exe, so they need to match whatever +# this path is passed to node.exe, so it needs to match whatever # kind of paths Node.js thinks it's using, typically win32 paths. CLI_BASEDIR="$("$NODE_EXE" -p 'require("path").dirname(process.execPath)')" +NPM_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-cli.js" +NPX_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npx-cli.js" +NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g` if [ $? -ne 0 ]; then # if this didn't work, then everything else below will fail echo "Could not determine Node.js install directory" >&2 exit 1 fi -NPM_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-cli.js" -NPX_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npx-cli.js" -NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g` NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js" # a path that will fail -f test on any posix bash diff --git a/deps/npm/bin/npx-cli.js b/deps/npm/bin/npx-cli.js index 75090aed41f1fb..17d96fb26267c7 100755 --- a/deps/npm/bin/npx-cli.js +++ b/deps/npm/bin/npx-cli.js @@ -24,7 +24,7 @@ const removed = new Set([ ...removedOpts, ]) -const { definitions, shorthands } = require('../lib/utils/config/index.js') +const { definitions, shorthands } = require('@npmcli/config/lib/definitions') const npmSwitches = Object.entries(definitions) .filter(([key, { type }]) => type === Boolean || (Array.isArray(type) && type.includes(Boolean))) diff --git a/deps/npm/docs/content/commands/npm-install-test.md b/deps/npm/docs/content/commands/npm-install-test.md index a2136fd52f3974..587a0a15ec6318 100644 --- a/deps/npm/docs/content/commands/npm-install-test.md +++ b/deps/npm/docs/content/commands/npm-install-test.md @@ -160,6 +160,22 @@ will also prevent _writing_ `package-lock.json` if `save` is true. +#### `package-lock-only` + +* Default: false +* Type: Boolean + +If set to true, the current operation will only use the `package-lock.json`, +ignoring `node_modules`. + +For `update` this means only the `package-lock.json` will be updated, +instead of checking `node_modules` and downloading dependencies. + +For `list` this means the output will be based on the tree described by the +`package-lock.json`, rather than the contents of `node_modules`. + + + #### `foreground-scripts` * Default: false diff --git a/deps/npm/docs/content/commands/npm-install.md b/deps/npm/docs/content/commands/npm-install.md index 627d016fe1c193..31f8261132d9ea 100644 --- a/deps/npm/docs/content/commands/npm-install.md +++ b/deps/npm/docs/content/commands/npm-install.md @@ -550,6 +550,22 @@ will also prevent _writing_ `package-lock.json` if `save` is true. +#### `package-lock-only` + +* Default: false +* Type: Boolean + +If set to true, the current operation will only use the `package-lock.json`, +ignoring `node_modules`. + +For `update` this means only the `package-lock.json` will be updated, +instead of checking `node_modules` and downloading dependencies. + +For `list` this means the output will be based on the tree described by the +`package-lock.json`, rather than the contents of `node_modules`. + + + #### `foreground-scripts` * Default: false diff --git a/deps/npm/docs/content/commands/npm-ls.md b/deps/npm/docs/content/commands/npm-ls.md index 3091ebfdeca70a..274c45361042d3 100644 --- a/deps/npm/docs/content/commands/npm-ls.md +++ b/deps/npm/docs/content/commands/npm-ls.md @@ -27,7 +27,7 @@ packages will *also* show the paths to the specified packages. For example, running `npm ls promzard` in npm's source tree will show: ```bash -npm@9.7.1 /path/to/npm +npm@9.7.2 /path/to/npm └─┬ init-package-json@0.0.4 └── promzard@0.1.5 ``` diff --git a/deps/npm/docs/content/commands/npm.md b/deps/npm/docs/content/commands/npm.md index 4cd80b802510a7..eafb7474e439b2 100644 --- a/deps/npm/docs/content/commands/npm.md +++ b/deps/npm/docs/content/commands/npm.md @@ -14,7 +14,7 @@ Note: This command is unaware of workspaces. ### Version -9.7.1 +9.7.2 ### Description diff --git a/deps/npm/docs/content/configuring-npm/package-json.md b/deps/npm/docs/content/configuring-npm/package-json.md index ff06a872d38c5d..28f0ad26bf8e6c 100644 --- a/deps/npm/docs/content/configuring-npm/package-json.md +++ b/deps/npm/docs/content/configuring-npm/package-json.md @@ -279,9 +279,6 @@ it will. The `.npmignore` file works just like a `.gitignore`. If there is a `.gitignore` file, and `.npmignore` is missing, `.gitignore`'s contents will be used instead. -Files included with the "package.json#files" field _cannot_ be excluded -through `.npmignore` or `.gitignore`. - Certain files are always included, regardless of settings: * `package.json` diff --git a/deps/npm/docs/output/commands/npm-install-test.html b/deps/npm/docs/output/commands/npm-install-test.html index 5c0fb7cf08484b..d707d68d220efa 100644 --- a/deps/npm/docs/output/commands/npm-install-test.html +++ b/deps/npm/docs/output/commands/npm-install-test.html @@ -142,7 +142,7 @@

npm-install-test

Table of contents

- +

Synopsis

@@ -259,6 +259,17 @@

package-lock

If set to false, then ignore package-lock.json files when installing. This will also prevent writing package-lock.json if save is true.

+

package-lock-only

+ +

If set to true, the current operation will only use the package-lock.json, +ignoring node_modules.

+

For update this means only the package-lock.json will be updated, +instead of checking node_modules and downloading dependencies.

+

For list this means the output will be based on the tree described by the +package-lock.json, rather than the contents of node_modules.

foreground-scripts

If set to false, then ignore package-lock.json files when installing. This will also prevent writing package-lock.json if save is true.

+

package-lock-only

+ +

If set to true, the current operation will only use the package-lock.json, +ignoring node_modules.

+

For update this means only the package-lock.json will be updated, +instead of checking node_modules and downloading dependencies.

+

For list this means the output will be based on the tree described by the +package-lock.json, rather than the contents of node_modules.

foreground-scripts