step-node-agent 3.16.3 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/asn1/Jenkinsfile +65 -0
- package/node_modules/asn1/package.json +5 -5
- package/node_modules/body-parser/HISTORY.md +15 -0
- package/node_modules/body-parser/README.md +25 -12
- package/node_modules/body-parser/package.json +23 -23
- package/node_modules/bytes/History.md +5 -0
- package/node_modules/bytes/Readme.md +42 -16
- package/node_modules/bytes/index.js +5 -1
- package/node_modules/bytes/package.json +9 -8
- package/node_modules/content-disposition/HISTORY.md +5 -0
- package/node_modules/content-disposition/README.md +3 -9
- package/node_modules/content-disposition/index.js +1 -1
- package/node_modules/content-disposition/package.json +16 -16
- package/node_modules/cookie/HISTORY.md +5 -0
- package/node_modules/cookie/README.md +4 -0
- package/node_modules/cookie/index.js +5 -1
- package/node_modules/cookie/package.json +11 -11
- package/node_modules/express/History.md +33 -0
- package/node_modules/express/Readme.md +8 -5
- package/node_modules/express/lib/application.js +1 -1
- package/node_modules/express/lib/request.js +1 -1
- package/node_modules/express/lib/response.js +16 -11
- package/node_modules/express/lib/router/index.js +6 -0
- package/node_modules/express/lib/utils.js +2 -6
- package/node_modules/express/package.json +26 -25
- package/node_modules/glob/README.md +3 -0
- package/node_modules/glob/common.js +2 -0
- package/node_modules/glob/glob.js +4 -5
- package/node_modules/glob/package.json +5 -4
- package/node_modules/glob/sync.js +4 -5
- package/node_modules/graceful-fs/README.md +11 -1
- package/node_modules/graceful-fs/graceful-fs.js +105 -49
- package/node_modules/graceful-fs/package.json +4 -4
- package/node_modules/graceful-fs/polyfills.js +4 -2
- package/node_modules/http-errors/HISTORY.md +16 -0
- package/node_modules/http-errors/README.md +12 -6
- package/node_modules/http-errors/index.js +35 -2
- package/node_modules/http-errors/package.json +19 -19
- package/node_modules/inherits/inherits.js +2 -0
- package/node_modules/inherits/inherits_browser.js +18 -14
- package/node_modules/inherits/package.json +6 -6
- package/node_modules/is-callable/.editorconfig +5 -0
- package/node_modules/is-callable/.nycrc +0 -4
- package/node_modules/is-callable/CHANGELOG.md +14 -0
- package/node_modules/is-callable/README.md +14 -15
- package/node_modules/is-callable/index.js +1 -1
- package/node_modules/is-callable/package.json +20 -28
- package/node_modules/is-callable/test/index.js +22 -50
- package/node_modules/is-core-module/.eslintrc +0 -1
- package/node_modules/is-core-module/CHANGELOG.md +37 -0
- package/node_modules/is-core-module/core.json +65 -61
- package/node_modules/is-core-module/index.js +1 -1
- package/node_modules/is-core-module/package.json +11 -10
- package/node_modules/is-core-module/test/index.js +23 -1
- package/node_modules/json-schema/LICENSE +195 -0
- package/node_modules/json-schema/README.md +2 -4
- package/node_modules/json-schema/lib/links.js +1 -2
- package/node_modules/json-schema/lib/validate.js +7 -9
- package/node_modules/json-schema/package.json +8 -14
- package/node_modules/jsprim/CHANGES.md +4 -0
- package/node_modules/jsprim/package.json +8 -8
- package/node_modules/mime-db/HISTORY.md +19 -0
- package/node_modules/mime-db/db.json +93 -1
- package/node_modules/mime-db/package.json +10 -10
- package/node_modules/mime-types/HISTORY.md +20 -3
- package/node_modules/mime-types/package.json +10 -10
- package/node_modules/npm/CHANGELOG.md +30 -0
- package/node_modules/npm/docs/public/cli-commands/npm/index.html +3 -3
- package/node_modules/npm/docs/public/cli-commands/npm-access/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-adduser/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-audit/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-bin/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-bugs/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-build/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-bundle/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-cache/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-ci/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-completion/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-config/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-dedupe/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-deprecate/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-dist-tag/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-docs/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-doctor/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-edit/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-explore/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-fund/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-help/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-help-search/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-hook/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-init/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-install/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-install-ci-test/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-install-test/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-link/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-logout/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-ls/index.html +3 -3
- package/node_modules/npm/docs/public/cli-commands/npm-org/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-outdated/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-owner/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-pack/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-ping/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-prefix/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-profile/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-prune/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-publish/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-rebuild/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-repo/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-restart/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-root/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-run-script/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-search/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-shrinkwrap/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-star/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-stars/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-start/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-stop/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-team/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-test/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-token/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-uninstall/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-unpublish/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-update/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-version/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-view/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-whoami/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/folders/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/install/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/npmrc/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/package-json/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/package-lock-json/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/package-locks/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/shrinkwrap-json/index.html +2 -2
- package/node_modules/npm/docs/public/index.html +1 -1
- package/node_modules/npm/docs/public/using-npm/config/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/developers/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/disputes/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/orgs/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/registry/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/removal/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/scope/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/scripts/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/semver/index.html +2 -2
- package/node_modules/npm/lib/auth/legacy.js +1 -1
- package/node_modules/npm/lib/profile.js +2 -2
- package/node_modules/npm/man/man1/npm-README.1 +1 -1
- package/node_modules/npm/man/man1/npm-access.1 +1 -1
- package/node_modules/npm/man/man1/npm-adduser.1 +1 -1
- package/node_modules/npm/man/man1/npm-audit.1 +1 -1
- package/node_modules/npm/man/man1/npm-bin.1 +1 -1
- package/node_modules/npm/man/man1/npm-bugs.1 +1 -1
- package/node_modules/npm/man/man1/npm-build.1 +1 -1
- package/node_modules/npm/man/man1/npm-bundle.1 +1 -1
- package/node_modules/npm/man/man1/npm-cache.1 +1 -1
- package/node_modules/npm/man/man1/npm-ci.1 +1 -1
- package/node_modules/npm/man/man1/npm-completion.1 +1 -1
- package/node_modules/npm/man/man1/npm-config.1 +1 -1
- package/node_modules/npm/man/man1/npm-dedupe.1 +1 -1
- package/node_modules/npm/man/man1/npm-deprecate.1 +1 -1
- package/node_modules/npm/man/man1/npm-dist-tag.1 +1 -1
- package/node_modules/npm/man/man1/npm-docs.1 +1 -1
- package/node_modules/npm/man/man1/npm-doctor.1 +1 -1
- package/node_modules/npm/man/man1/npm-edit.1 +1 -1
- package/node_modules/npm/man/man1/npm-explore.1 +1 -1
- package/node_modules/npm/man/man1/npm-fund.1 +1 -1
- package/node_modules/npm/man/man1/npm-help-search.1 +1 -1
- package/node_modules/npm/man/man1/npm-help.1 +1 -1
- package/node_modules/npm/man/man1/npm-hook.1 +1 -1
- package/node_modules/npm/man/man1/npm-init.1 +1 -1
- package/node_modules/npm/man/man1/npm-install-ci-test.1 +1 -1
- package/node_modules/npm/man/man1/npm-install-test.1 +1 -1
- package/node_modules/npm/man/man1/npm-install.1 +1 -1
- package/node_modules/npm/man/man1/npm-link.1 +1 -1
- package/node_modules/npm/man/man1/npm-logout.1 +1 -1
- package/node_modules/npm/man/man1/npm-ls.1 +2 -2
- package/node_modules/npm/man/man1/npm-org.1 +1 -1
- package/node_modules/npm/man/man1/npm-outdated.1 +1 -1
- package/node_modules/npm/man/man1/npm-owner.1 +1 -1
- package/node_modules/npm/man/man1/npm-pack.1 +1 -1
- package/node_modules/npm/man/man1/npm-ping.1 +1 -1
- package/node_modules/npm/man/man1/npm-prefix.1 +1 -1
- package/node_modules/npm/man/man1/npm-profile.1 +1 -1
- package/node_modules/npm/man/man1/npm-prune.1 +1 -1
- package/node_modules/npm/man/man1/npm-publish.1 +1 -1
- package/node_modules/npm/man/man1/npm-rebuild.1 +1 -1
- package/node_modules/npm/man/man1/npm-repo.1 +1 -1
- package/node_modules/npm/man/man1/npm-restart.1 +1 -1
- package/node_modules/npm/man/man1/npm-root.1 +1 -1
- package/node_modules/npm/man/man1/npm-run-script.1 +1 -1
- package/node_modules/npm/man/man1/npm-search.1 +1 -1
- package/node_modules/npm/man/man1/npm-shrinkwrap.1 +1 -1
- package/node_modules/npm/man/man1/npm-star.1 +1 -1
- package/node_modules/npm/man/man1/npm-stars.1 +1 -1
- package/node_modules/npm/man/man1/npm-start.1 +1 -1
- package/node_modules/npm/man/man1/npm-stop.1 +1 -1
- package/node_modules/npm/man/man1/npm-team.1 +1 -1
- package/node_modules/npm/man/man1/npm-test.1 +1 -1
- package/node_modules/npm/man/man1/npm-token.1 +1 -1
- package/node_modules/npm/man/man1/npm-uninstall.1 +1 -1
- package/node_modules/npm/man/man1/npm-unpublish.1 +1 -1
- package/node_modules/npm/man/man1/npm-update.1 +1 -1
- package/node_modules/npm/man/man1/npm-version.1 +1 -1
- package/node_modules/npm/man/man1/npm-view.1 +1 -1
- package/node_modules/npm/man/man1/npm-whoami.1 +1 -1
- package/node_modules/npm/man/man1/npm.1 +2 -2
- package/node_modules/npm/man/man5/folders.5 +1 -1
- package/node_modules/npm/man/man5/install.5 +1 -1
- package/node_modules/npm/man/man5/npmrc.5 +1 -1
- package/node_modules/npm/man/man5/package-json.5 +1 -1
- package/node_modules/npm/man/man5/package-lock-json.5 +1 -1
- package/node_modules/npm/man/man5/package-locks.5 +1 -1
- package/node_modules/npm/man/man5/shrinkwrap-json.5 +1 -1
- package/node_modules/npm/man/man7/config.7 +1 -1
- package/node_modules/npm/man/man7/developers.7 +1 -1
- package/node_modules/npm/man/man7/disputes.7 +1 -1
- package/node_modules/npm/man/man7/orgs.7 +1 -1
- package/node_modules/npm/man/man7/registry.7 +1 -1
- package/node_modules/npm/man/man7/removal.7 +1 -1
- package/node_modules/npm/man/man7/scope.7 +1 -1
- package/node_modules/npm/man/man7/scripts.7 +1 -1
- package/node_modules/npm/man/man7/semver.7 +1 -1
- package/node_modules/npm/node_modules/json-schema/LICENSE +195 -0
- package/node_modules/npm/node_modules/json-schema/README.md +2 -4
- package/node_modules/npm/node_modules/json-schema/lib/links.js +1 -2
- package/node_modules/npm/node_modules/json-schema/lib/validate.js +7 -9
- package/node_modules/npm/node_modules/json-schema/package.json +16 -22
- package/node_modules/npm/node_modules/jsprim/CHANGES.md +4 -0
- package/node_modules/npm/node_modules/jsprim/CONTRIBUTING.md +19 -0
- package/node_modules/npm/node_modules/jsprim/package.json +16 -16
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
- package/node_modules/npm/node_modules/path-parse/index.js +17 -35
- package/node_modules/npm/node_modules/path-parse/package.json +14 -17
- package/node_modules/npm/node_modules/tar/lib/extract.js +4 -3
- package/node_modules/npm/node_modules/tar/lib/list.js +4 -3
- package/node_modules/npm/node_modules/tar/lib/mkdir.js +55 -48
- package/node_modules/npm/node_modules/tar/lib/normalize-windows-path.js +8 -0
- package/node_modules/npm/node_modules/tar/lib/pack.js +8 -18
- package/node_modules/npm/node_modules/tar/lib/path-reservations.js +149 -0
- package/node_modules/npm/node_modules/tar/lib/read-entry.js +4 -3
- package/node_modules/npm/node_modules/tar/lib/replace.js +2 -1
- package/node_modules/npm/node_modules/tar/lib/strip-absolute-path.js +24 -0
- package/node_modules/npm/node_modules/tar/lib/strip-trailing-slashes.js +24 -0
- package/node_modules/npm/node_modules/tar/lib/unpack.js +321 -96
- package/node_modules/npm/node_modules/tar/lib/write-entry.js +178 -82
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/package.json +77 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/LICENSE +15 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/README.md +204 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/iterator.js +8 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/package.json +63 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/yallist.js +426 -0
- package/node_modules/npm/node_modules/tar/package.json +29 -26
- package/node_modules/npm/package.json +6 -5
- package/node_modules/qs/.editorconfig +9 -0
- package/node_modules/qs/.eslintignore +2 -1
- package/node_modules/qs/.eslintrc +15 -1
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +103 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +34 -0
- package/node_modules/qs/dist/qs.js +117 -67
- package/node_modules/qs/lib/formats.js +9 -4
- package/node_modules/qs/lib/parse.js +29 -14
- package/node_modules/qs/lib/stringify.js +55 -46
- package/node_modules/qs/lib/utils.js +23 -2
- package/node_modules/qs/package.json +31 -20
- package/node_modules/qs/test/parse.js +97 -1
- package/node_modules/qs/test/stringify.js +115 -1
- package/node_modules/qs/test/utils.js +1 -1
- package/node_modules/raw-body/HISTORY.md +14 -0
- package/node_modules/raw-body/README.md +3 -5
- package/node_modules/raw-body/package.json +21 -21
- package/node_modules/request/node_modules/qs/.editorconfig +14 -1
- package/node_modules/request/node_modules/qs/.eslintrc +21 -3
- package/node_modules/request/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/request/node_modules/qs/.nycrc +13 -0
- package/node_modules/request/node_modules/qs/CHANGELOG.md +24 -0
- package/node_modules/request/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/request/node_modules/qs/README.md +54 -19
- package/node_modules/request/node_modules/qs/bower.json +21 -0
- package/node_modules/request/node_modules/qs/component.json +15 -0
- package/node_modules/request/node_modules/qs/dist/qs.js +35 -25
- package/node_modules/request/node_modules/qs/lib/formats.js +1 -1
- package/node_modules/request/node_modules/qs/lib/parse.js +6 -5
- package/node_modules/request/node_modules/qs/lib/stringify.js +21 -14
- package/node_modules/request/node_modules/qs/lib/utils.js +7 -5
- package/node_modules/request/node_modules/qs/package.json +21 -19
- package/node_modules/request/node_modules/qs/test/parse.js +79 -4
- package/node_modules/request/node_modules/qs/test/stringify.js +45 -0
- package/node_modules/request/node_modules/qs/test/utils.js +31 -0
- package/node_modules/resolve/.eslintrc +34 -8
- package/node_modules/resolve/.github/FUNDING.yml +12 -0
- package/node_modules/resolve/appveyor.yml +4 -2
- package/node_modules/resolve/async.js +3 -0
- package/node_modules/resolve/bin/resolve +50 -0
- package/node_modules/resolve/lib/async.js +10 -1
- package/node_modules/resolve/lib/core.js +1 -2
- package/node_modules/resolve/lib/core.json +85 -16
- package/node_modules/resolve/lib/homedir.js +24 -0
- package/node_modules/resolve/lib/node-modules-paths.js +1 -1
- package/node_modules/resolve/lib/sync.js +14 -5
- package/node_modules/resolve/package.json +26 -15
- package/node_modules/resolve/readme.markdown +35 -13
- package/node_modules/resolve/sync.js +3 -0
- package/node_modules/resolve/test/home_paths.js +127 -0
- package/node_modules/resolve/test/home_paths_sync.js +114 -0
- package/node_modules/resolve/test/mock_sync.js +2 -4
- package/node_modules/resolve/test/node_path.js +1 -1
- package/node_modules/resolve/test/resolver/invalid_main/package.json +1 -1
- package/node_modules/resolve/test/resolver/malformed_package_json/index.js +0 -0
- package/node_modules/resolve/test/resolver/malformed_package_json/package.json +1 -0
- package/node_modules/resolve/test/resolver.js +99 -3
- package/node_modules/resolve/test/resolver_sync.js +310 -23
- package/node_modules/safe-buffer/index.js +3 -0
- package/node_modules/safe-buffer/package.json +21 -7
- package/node_modules/send/HISTORY.md +10 -0
- package/node_modules/send/README.md +4 -6
- package/node_modules/send/index.js +7 -3
- package/node_modules/send/node_modules/ms/index.js +3 -3
- package/node_modules/send/node_modules/ms/license.md +1 -1
- package/node_modules/send/node_modules/ms/package.json +8 -7
- package/node_modules/send/node_modules/ms/readme.md +1 -2
- package/node_modules/send/package.json +19 -19
- package/node_modules/serve-static/HISTORY.md +8 -0
- package/node_modules/serve-static/README.md +9 -11
- package/node_modules/serve-static/package.json +19 -19
- package/node_modules/setprototypeof/README.md +1 -1
- package/node_modules/setprototypeof/index.js +1 -1
- package/node_modules/setprototypeof/package.json +9 -7
- package/node_modules/shelljs/package.json +4 -4
- package/node_modules/shelljs/src/exec.js +19 -1
- package/node_modules/signal-exit/README.md +1 -1
- package/node_modules/signal-exit/index.js +167 -130
- package/node_modules/signal-exit/package.json +13 -13
- package/node_modules/sshpk/Jenkinsfile +86 -0
- package/node_modules/sshpk/lib/formats/putty.js +99 -4
- package/node_modules/sshpk/lib/private-key.js +1 -0
- package/node_modules/sshpk/package.json +4 -4
- package/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
- package/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
- package/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
- package/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
- package/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
- package/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
- package/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
- package/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
- package/node_modules/supports-preserve-symlinks-flag/package.json +74 -0
- package/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/README.md +3 -3
- package/node_modules/toidentifier/index.js +2 -0
- package/node_modules/toidentifier/package.json +19 -15
- package/node_modules/underscore/amd/_collectNonEnumProps.js +1 -1
- package/node_modules/underscore/amd/_setup.js +1 -1
- package/node_modules/underscore/amd/sample.js +2 -2
- package/node_modules/underscore/cjs/_collectNonEnumProps.js +1 -1
- package/node_modules/underscore/cjs/_setup.js +1 -1
- package/node_modules/underscore/cjs/sample.js +2 -2
- package/node_modules/underscore/modules/_collectNonEnumProps.js +1 -1
- package/node_modules/underscore/modules/_setup.js +1 -1
- package/node_modules/underscore/modules/index.js +1 -1
- package/node_modules/underscore/modules/sample.js +2 -2
- package/node_modules/underscore/package.json +4 -4
- package/node_modules/underscore/underscore-esm-min.js +2 -2
- package/node_modules/underscore/underscore-esm-min.js.map +1 -1
- package/node_modules/underscore/underscore-esm.js +17 -17
- package/node_modules/underscore/underscore-esm.js.map +1 -1
- package/node_modules/underscore/underscore-min.js +2 -2
- package/node_modules/underscore/underscore-min.js.map +1 -1
- package/node_modules/underscore/underscore-node-f.cjs +17 -17
- package/node_modules/underscore/underscore-node-f.cjs.map +1 -1
- package/node_modules/underscore/underscore-node.cjs +1 -1
- package/node_modules/underscore/underscore-node.mjs +1 -1
- package/node_modules/underscore/underscore-umd-min.js +2 -2
- package/node_modules/underscore/underscore-umd-min.js.map +1 -1
- package/node_modules/underscore/underscore-umd.js +17 -17
- package/node_modules/underscore/underscore-umd.js.map +1 -1
- package/node_modules/underscore/underscore.js +17 -17
- package/package.json +9 -9
- package/node_modules/glob/changelog.md +0 -67
- package/node_modules/hosted-git-info/CHANGELOG.md +0 -151
- package/node_modules/hosted-git-info/LICENSE +0 -13
- package/node_modules/hosted-git-info/README.md +0 -133
- package/node_modules/hosted-git-info/git-host-info.js +0 -79
- package/node_modules/hosted-git-info/git-host.js +0 -156
- package/node_modules/hosted-git-info/index.js +0 -148
- package/node_modules/hosted-git-info/package.json +0 -44
- package/node_modules/is-callable/.github/main.workflow +0 -14
- package/node_modules/is-core-module/.eslintignore +0 -1
- package/node_modules/json-parse-better-errors/CHANGELOG.md +0 -46
- package/node_modules/json-parse-better-errors/LICENSE.md +0 -7
- package/node_modules/json-parse-better-errors/README.md +0 -46
- package/node_modules/json-parse-better-errors/index.js +0 -38
- package/node_modules/json-parse-better-errors/package.json +0 -49
- package/node_modules/json-schema/draft-00/hyper-schema +0 -68
- package/node_modules/json-schema/draft-00/json-ref +0 -26
- package/node_modules/json-schema/draft-00/links +0 -33
- package/node_modules/json-schema/draft-00/schema +0 -155
- package/node_modules/json-schema/draft-01/hyper-schema +0 -68
- package/node_modules/json-schema/draft-01/json-ref +0 -26
- package/node_modules/json-schema/draft-01/links +0 -33
- package/node_modules/json-schema/draft-01/schema +0 -155
- package/node_modules/json-schema/draft-02/hyper-schema +0 -68
- package/node_modules/json-schema/draft-02/json-ref +0 -26
- package/node_modules/json-schema/draft-02/links +0 -35
- package/node_modules/json-schema/draft-02/schema +0 -166
- package/node_modules/json-schema/draft-03/examples/address +0 -20
- package/node_modules/json-schema/draft-03/examples/calendar +0 -53
- package/node_modules/json-schema/draft-03/examples/card +0 -105
- package/node_modules/json-schema/draft-03/examples/geo +0 -8
- package/node_modules/json-schema/draft-03/examples/interfaces +0 -23
- package/node_modules/json-schema/draft-03/hyper-schema +0 -60
- package/node_modules/json-schema/draft-03/json-ref +0 -26
- package/node_modules/json-schema/draft-03/links +0 -35
- package/node_modules/json-schema/draft-03/schema +0 -174
- package/node_modules/json-schema/draft-04/hyper-schema +0 -60
- package/node_modules/json-schema/draft-04/links +0 -41
- package/node_modules/json-schema/draft-04/schema +0 -189
- package/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
- package/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
- package/node_modules/json-schema/test/tests.js +0 -95
- package/node_modules/normalize-package-data/AUTHORS +0 -4
- package/node_modules/normalize-package-data/LICENSE +0 -30
- package/node_modules/normalize-package-data/README.md +0 -106
- package/node_modules/normalize-package-data/lib/extract_description.js +0 -14
- package/node_modules/normalize-package-data/lib/fixer.js +0 -418
- package/node_modules/normalize-package-data/lib/make_warning.js +0 -23
- package/node_modules/normalize-package-data/lib/normalize.js +0 -39
- package/node_modules/normalize-package-data/lib/safe_format.js +0 -9
- package/node_modules/normalize-package-data/lib/typos.json +0 -25
- package/node_modules/normalize-package-data/lib/warning_messages.json +0 -30
- package/node_modules/normalize-package-data/package.json +0 -35
- package/node_modules/npm/node_modules/json-schema/draft-00/hyper-schema +0 -68
- package/node_modules/npm/node_modules/json-schema/draft-00/json-ref +0 -26
- package/node_modules/npm/node_modules/json-schema/draft-00/links +0 -33
- package/node_modules/npm/node_modules/json-schema/draft-00/schema +0 -155
- package/node_modules/npm/node_modules/json-schema/draft-01/hyper-schema +0 -68
- package/node_modules/npm/node_modules/json-schema/draft-01/json-ref +0 -26
- package/node_modules/npm/node_modules/json-schema/draft-01/links +0 -33
- package/node_modules/npm/node_modules/json-schema/draft-01/schema +0 -155
- package/node_modules/npm/node_modules/json-schema/draft-02/hyper-schema +0 -68
- package/node_modules/npm/node_modules/json-schema/draft-02/json-ref +0 -26
- package/node_modules/npm/node_modules/json-schema/draft-02/links +0 -35
- package/node_modules/npm/node_modules/json-schema/draft-02/schema +0 -166
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/address +0 -20
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/calendar +0 -53
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/card +0 -105
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/geo +0 -8
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/interfaces +0 -23
- package/node_modules/npm/node_modules/json-schema/draft-03/hyper-schema +0 -60
- package/node_modules/npm/node_modules/json-schema/draft-03/json-ref +0 -26
- package/node_modules/npm/node_modules/json-schema/draft-03/links +0 -35
- package/node_modules/npm/node_modules/json-schema/draft-03/schema +0 -174
- package/node_modules/npm/node_modules/json-schema/draft-04/hyper-schema +0 -60
- package/node_modules/npm/node_modules/json-schema/draft-04/links +0 -41
- package/node_modules/npm/node_modules/json-schema/draft-04/schema +0 -189
- package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
- package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
- package/node_modules/npm/node_modules/json-schema/test/tests.js +0 -95
- package/node_modules/npm/node_modules/path-parse/.travis.yml +0 -9
- package/node_modules/npm/node_modules/path-parse/test.js +0 -77
- package/node_modules/qs/LICENSE +0 -28
- package/node_modules/qs/test/.eslintrc +0 -17
- package/node_modules/qs/test/index.js +0 -7
- package/node_modules/request/node_modules/qs/.eslintignore +0 -1
- package/node_modules/request/node_modules/qs/LICENSE +0 -28
- package/node_modules/request/node_modules/qs/test/.eslintrc +0 -15
- package/node_modules/resolve/.eslintignore +0 -1
- package/node_modules/resolve/test/.eslintrc +0 -5
- package/node_modules/signal-exit/CHANGELOG.md +0 -35
- package/node_modules/spdx-correct/LICENSE +0 -202
- package/node_modules/spdx-correct/README.md +0 -14
- package/node_modules/spdx-correct/index.js +0 -364
- package/node_modules/spdx-correct/package.json +0 -43
- package/node_modules/spdx-exceptions/README.md +0 -36
- package/node_modules/spdx-exceptions/index.json +0 -40
- package/node_modules/spdx-exceptions/package.json +0 -21
- package/node_modules/spdx-expression-parse/AUTHORS +0 -4
- package/node_modules/spdx-expression-parse/LICENSE +0 -22
- package/node_modules/spdx-expression-parse/README.md +0 -91
- package/node_modules/spdx-expression-parse/index.js +0 -8
- package/node_modules/spdx-expression-parse/package.json +0 -43
- package/node_modules/spdx-expression-parse/parse.js +0 -138
- package/node_modules/spdx-expression-parse/scan.js +0 -131
- package/node_modules/spdx-license-ids/README.md +0 -52
- package/node_modules/spdx-license-ids/deprecated.json +0 -26
- package/node_modules/spdx-license-ids/index.json +0 -432
- package/node_modules/spdx-license-ids/package.json +0 -44
- package/node_modules/sshpk/.npmignore +0 -9
- package/node_modules/validate-npm-package-license/LICENSE +0 -202
- package/node_modules/validate-npm-package-license/README.md +0 -113
- package/node_modules/validate-npm-package-license/index.js +0 -86
- package/node_modules/validate-npm-package-license/package.json +0 -32
|
@@ -4,6 +4,10 @@ var test = require('tape');
|
|
|
4
4
|
var utils = require('../lib/utils');
|
|
5
5
|
|
|
6
6
|
test('merge()', function (t) {
|
|
7
|
+
t.deepEqual(utils.merge(null, true), [null, true], 'merges true into null');
|
|
8
|
+
|
|
9
|
+
t.deepEqual(utils.merge(null, [42]), [null, 42], 'merges null into an array');
|
|
10
|
+
|
|
7
11
|
t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key');
|
|
8
12
|
|
|
9
13
|
var oneMerged = utils.merge({ foo: 'bar' }, { foo: { first: '123' } });
|
|
@@ -18,6 +22,33 @@ test('merge()', function (t) {
|
|
|
18
22
|
var nestedArrays = utils.merge({ foo: ['baz'] }, { foo: ['bar', 'xyzzy'] });
|
|
19
23
|
t.deepEqual(nestedArrays, { foo: ['baz', 'bar', 'xyzzy'] });
|
|
20
24
|
|
|
25
|
+
var noOptionsNonObjectSource = utils.merge({ foo: 'baz' }, 'bar');
|
|
26
|
+
t.deepEqual(noOptionsNonObjectSource, { foo: 'baz', bar: true });
|
|
27
|
+
|
|
28
|
+
t.test(
|
|
29
|
+
'avoids invoking array setters unnecessarily',
|
|
30
|
+
{ skip: typeof Object.defineProperty !== 'function' },
|
|
31
|
+
function (st) {
|
|
32
|
+
var setCount = 0;
|
|
33
|
+
var getCount = 0;
|
|
34
|
+
var observed = [];
|
|
35
|
+
Object.defineProperty(observed, 0, {
|
|
36
|
+
get: function () {
|
|
37
|
+
getCount += 1;
|
|
38
|
+
return { bar: 'baz' };
|
|
39
|
+
},
|
|
40
|
+
set: function () { setCount += 1; }
|
|
41
|
+
});
|
|
42
|
+
utils.merge(observed, [null]);
|
|
43
|
+
st.equal(setCount, 0);
|
|
44
|
+
st.equal(getCount, 1);
|
|
45
|
+
observed[0] = observed[0]; // eslint-disable-line no-self-assign
|
|
46
|
+
st.equal(setCount, 1);
|
|
47
|
+
st.equal(getCount, 2);
|
|
48
|
+
st.end();
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
|
|
21
52
|
t.end();
|
|
22
53
|
});
|
|
23
54
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "@ljharb",
|
|
3
2
|
"root": true,
|
|
3
|
+
|
|
4
|
+
"extends": "@ljharb",
|
|
5
|
+
|
|
4
6
|
"rules": {
|
|
5
|
-
"array-bracket-newline": 0,
|
|
6
|
-
"array-element-newline": 0,
|
|
7
7
|
"indent": [2, 4],
|
|
8
8
|
"strict": 0,
|
|
9
9
|
"complexity": 0,
|
|
@@ -12,28 +12,54 @@
|
|
|
12
12
|
"dot-notation": [2, { "allowKeywords": true }],
|
|
13
13
|
"func-name-matching": 0,
|
|
14
14
|
"func-style": 0,
|
|
15
|
-
"global-require":
|
|
15
|
+
"global-require": 1,
|
|
16
16
|
"id-length": [2, { "min": 1, "max": 30 }],
|
|
17
|
+
"max-lines": [2, 350],
|
|
17
18
|
"max-lines-per-function": 0,
|
|
18
19
|
"max-nested-callbacks": 0,
|
|
19
20
|
"max-params": 0,
|
|
20
21
|
"max-statements-per-line": [2, { "max": 2 }],
|
|
21
22
|
"max-statements": 0,
|
|
22
23
|
"no-magic-numbers": 0,
|
|
23
|
-
"no-console": 0,
|
|
24
24
|
"no-shadow": 0,
|
|
25
|
-
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
|
|
26
25
|
"no-use-before-define": 0,
|
|
27
|
-
"object-curly-newline": 0,
|
|
28
|
-
"operator-linebreak": [2, "before"],
|
|
29
26
|
"sort-keys": 0,
|
|
30
27
|
},
|
|
31
28
|
"overrides": [
|
|
29
|
+
{
|
|
30
|
+
"files": "bin/**",
|
|
31
|
+
"rules": {
|
|
32
|
+
"no-process-exit": "off",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"files": "example/**",
|
|
37
|
+
"rules": {
|
|
38
|
+
"no-console": 0,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
32
41
|
{
|
|
33
42
|
"files": "test/resolver/nested_symlinks/mylib/*.js",
|
|
34
43
|
"rules": {
|
|
35
44
|
"no-throw-literal": 0,
|
|
36
45
|
},
|
|
37
46
|
},
|
|
47
|
+
{
|
|
48
|
+
"files": "test/**",
|
|
49
|
+
"parserOptions": {
|
|
50
|
+
"ecmaVersion": 5,
|
|
51
|
+
"allowReserved": false,
|
|
52
|
+
},
|
|
53
|
+
"rules": {
|
|
54
|
+
"dot-notation": [2, { "allowPattern": "throws" }],
|
|
55
|
+
"max-lines": 0,
|
|
56
|
+
"max-lines-per-function": 0,
|
|
57
|
+
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
|
|
62
|
+
"ignorePatterns": [
|
|
63
|
+
"./test/resolver/malformed_package_json/package.json",
|
|
38
64
|
],
|
|
39
65
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: [ljharb]
|
|
4
|
+
patreon: # Replace with a single Patreon username
|
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
+
tidelift: npm/resolve
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
+
otechie: # Replace with a single Otechie username
|
|
12
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
@@ -4,7 +4,9 @@ build: off
|
|
|
4
4
|
|
|
5
5
|
environment:
|
|
6
6
|
matrix:
|
|
7
|
-
#- nodejs_version: "
|
|
7
|
+
#- nodejs_version: "17"
|
|
8
|
+
- nodejs_version: "16"
|
|
9
|
+
- nodejs_version: "15"
|
|
8
10
|
- nodejs_version: "14"
|
|
9
11
|
- nodejs_version: "13"
|
|
10
12
|
- nodejs_version: "12"
|
|
@@ -26,7 +28,6 @@ environment:
|
|
|
26
28
|
matrix:
|
|
27
29
|
# fast_finish: true
|
|
28
30
|
allow_failures:
|
|
29
|
-
- nodejs_version: "5" # due to windows npm bug, registry-side
|
|
30
31
|
- nodejs_version: "0.8"
|
|
31
32
|
# platform: x86 # x64 has started failing on the registry side, around early November 2020
|
|
32
33
|
- nodejs_version: "0.6"
|
|
@@ -60,6 +61,7 @@ install:
|
|
|
60
61
|
- IF %nodejs_version% EQU 13 npm -g install npm@7
|
|
61
62
|
- IF %nodejs_version% EQU 14 npm -g install npm@7
|
|
62
63
|
- IF %nodejs_version% EQU 15 npm -g install npm@7
|
|
64
|
+
- IF %nodejs_version% EQU 16 npm -g install npm@7
|
|
63
65
|
- set PATH=%APPDATA%\npm;%PATH%
|
|
64
66
|
#- IF %nodejs_version% NEQ 0.6 AND %nodejs_version% NEQ 0.8 npm -g install npm
|
|
65
67
|
# install modules
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
var path = require('path');
|
|
6
|
+
var fs = require('fs');
|
|
7
|
+
|
|
8
|
+
if (
|
|
9
|
+
String(process.env.npm_lifecycle_script).slice(0, 8) !== 'resolve '
|
|
10
|
+
&& (
|
|
11
|
+
!process.argv
|
|
12
|
+
|| process.argv.length < 2
|
|
13
|
+
|| (process.argv[1] !== __filename && fs.statSync(process.argv[1]).ino !== fs.statSync(__filename).ino)
|
|
14
|
+
|| (process.env._ && path.resolve(process.env._) !== __filename)
|
|
15
|
+
)
|
|
16
|
+
) {
|
|
17
|
+
console.error('Error: `resolve` must be run directly as an executable');
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
var supportsPreserveSymlinkFlag = require('supports-preserve-symlinks-flag');
|
|
22
|
+
|
|
23
|
+
var preserveSymlinks = false;
|
|
24
|
+
for (var i = 2; i < process.argv.length; i += 1) {
|
|
25
|
+
if (process.argv[i].slice(0, 2) === '--') {
|
|
26
|
+
if (supportsPreserveSymlinkFlag && process.argv[i] === '--preserve-symlinks') {
|
|
27
|
+
preserveSymlinks = true;
|
|
28
|
+
} else if (process.argv[i].length > 2) {
|
|
29
|
+
console.error('Unknown argument ' + process.argv[i].replace(/[=].*$/, ''));
|
|
30
|
+
process.exit(2);
|
|
31
|
+
}
|
|
32
|
+
process.argv.splice(i, 1);
|
|
33
|
+
i -= 1;
|
|
34
|
+
if (process.argv[i] === '--') { break; } // eslint-disable-line no-restricted-syntax
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (process.argv.length < 3) {
|
|
39
|
+
console.error('Error: `resolve` expects a specifier');
|
|
40
|
+
process.exit(2);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
var resolve = require('../');
|
|
44
|
+
|
|
45
|
+
var result = resolve.sync(process.argv[2], {
|
|
46
|
+
basedir: process.cwd(),
|
|
47
|
+
preserveSymlinks: preserveSymlinks
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
console.log(result);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
var fs = require('fs');
|
|
2
|
+
var getHomedir = require('./homedir');
|
|
2
3
|
var path = require('path');
|
|
3
4
|
var caller = require('./caller');
|
|
4
5
|
var nodeModulesPaths = require('./node-modules-paths');
|
|
@@ -7,6 +8,14 @@ var isCore = require('is-core-module');
|
|
|
7
8
|
|
|
8
9
|
var realpathFS = fs.realpath && typeof fs.realpath.native === 'function' ? fs.realpath.native : fs.realpath;
|
|
9
10
|
|
|
11
|
+
var homedir = getHomedir();
|
|
12
|
+
var defaultPaths = function () {
|
|
13
|
+
return [
|
|
14
|
+
path.join(homedir, '.node_modules'),
|
|
15
|
+
path.join(homedir, '.node_libraries')
|
|
16
|
+
];
|
|
17
|
+
};
|
|
18
|
+
|
|
10
19
|
var defaultIsFile = function isFile(file, cb) {
|
|
11
20
|
fs.stat(file, function (err, stat) {
|
|
12
21
|
if (!err) {
|
|
@@ -98,7 +107,7 @@ module.exports = function resolve(x, options, callback) {
|
|
|
98
107
|
var basedir = opts.basedir || path.dirname(caller());
|
|
99
108
|
var parent = opts.filename || basedir;
|
|
100
109
|
|
|
101
|
-
opts.paths = opts.paths ||
|
|
110
|
+
opts.paths = opts.paths || defaultPaths();
|
|
102
111
|
|
|
103
112
|
// ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory
|
|
104
113
|
var absoluteStart = path.resolve(basedir);
|
|
@@ -1,83 +1,152 @@
|
|
|
1
1
|
{
|
|
2
2
|
"assert": true,
|
|
3
|
+
"node:assert": [">= 14.18 && < 15", ">= 16"],
|
|
3
4
|
"assert/strict": ">= 15",
|
|
5
|
+
"node:assert/strict": ">= 16",
|
|
4
6
|
"async_hooks": ">= 8",
|
|
5
|
-
"
|
|
7
|
+
"node:async_hooks": [">= 14.18 && < 15", ">= 16"],
|
|
8
|
+
"buffer_ieee754": ">= 0.5 && < 0.9.7",
|
|
6
9
|
"buffer": true,
|
|
10
|
+
"node:buffer": [">= 14.18 && < 15", ">= 16"],
|
|
7
11
|
"child_process": true,
|
|
8
|
-
"
|
|
12
|
+
"node:child_process": [">= 14.18 && < 15", ">= 16"],
|
|
13
|
+
"cluster": ">= 0.5",
|
|
14
|
+
"node:cluster": [">= 14.18 && < 15", ">= 16"],
|
|
9
15
|
"console": true,
|
|
16
|
+
"node:console": [">= 14.18 && < 15", ">= 16"],
|
|
10
17
|
"constants": true,
|
|
18
|
+
"node:constants": [">= 14.18 && < 15", ">= 16"],
|
|
11
19
|
"crypto": true,
|
|
20
|
+
"node:crypto": [">= 14.18 && < 15", ">= 16"],
|
|
12
21
|
"_debug_agent": ">= 1 && < 8",
|
|
13
22
|
"_debugger": "< 8",
|
|
14
23
|
"dgram": true,
|
|
15
|
-
"
|
|
24
|
+
"node:dgram": [">= 14.18 && < 15", ">= 16"],
|
|
25
|
+
"diagnostics_channel": [">= 14.17 && < 15", ">= 15.1"],
|
|
26
|
+
"node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
|
|
16
27
|
"dns": true,
|
|
28
|
+
"node:dns": [">= 14.18 && < 15", ">= 16"],
|
|
17
29
|
"dns/promises": ">= 15",
|
|
30
|
+
"node:dns/promises": ">= 16",
|
|
18
31
|
"domain": ">= 0.7.12",
|
|
32
|
+
"node:domain": [">= 14.18 && < 15", ">= 16"],
|
|
19
33
|
"events": true,
|
|
34
|
+
"node:events": [">= 14.18 && < 15", ">= 16"],
|
|
20
35
|
"freelist": "< 6",
|
|
21
36
|
"fs": true,
|
|
37
|
+
"node:fs": [">= 14.18 && < 15", ">= 16"],
|
|
22
38
|
"fs/promises": [">= 10 && < 10.1", ">= 14"],
|
|
39
|
+
"node:fs/promises": [">= 14.18 && < 15", ">= 16"],
|
|
23
40
|
"_http_agent": ">= 0.11.1",
|
|
41
|
+
"node:_http_agent": [">= 14.18 && < 15", ">= 16"],
|
|
24
42
|
"_http_client": ">= 0.11.1",
|
|
43
|
+
"node:_http_client": [">= 14.18 && < 15", ">= 16"],
|
|
25
44
|
"_http_common": ">= 0.11.1",
|
|
45
|
+
"node:_http_common": [">= 14.18 && < 15", ">= 16"],
|
|
26
46
|
"_http_incoming": ">= 0.11.1",
|
|
47
|
+
"node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
|
|
27
48
|
"_http_outgoing": ">= 0.11.1",
|
|
49
|
+
"node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
|
|
28
50
|
"_http_server": ">= 0.11.1",
|
|
51
|
+
"node:_http_server": [">= 14.18 && < 15", ">= 16"],
|
|
29
52
|
"http": true,
|
|
53
|
+
"node:http": [">= 14.18 && < 15", ">= 16"],
|
|
30
54
|
"http2": ">= 8.8",
|
|
55
|
+
"node:http2": [">= 14.18 && < 15", ">= 16"],
|
|
31
56
|
"https": true,
|
|
32
|
-
"
|
|
57
|
+
"node:https": [">= 14.18 && < 15", ">= 16"],
|
|
58
|
+
"inspector": ">= 8",
|
|
59
|
+
"node:inspector": [">= 14.18 && < 15", ">= 16"],
|
|
33
60
|
"_linklist": "< 8",
|
|
34
61
|
"module": true,
|
|
62
|
+
"node:module": [">= 14.18 && < 15", ">= 16"],
|
|
35
63
|
"net": true,
|
|
36
|
-
"node
|
|
37
|
-
"node-inspect/lib/
|
|
38
|
-
"node-inspect/lib/internal/
|
|
64
|
+
"node:net": [">= 14.18 && < 15", ">= 16"],
|
|
65
|
+
"node-inspect/lib/_inspect": ">= 7.6 && < 12",
|
|
66
|
+
"node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
|
|
67
|
+
"node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
|
|
39
68
|
"os": true,
|
|
69
|
+
"node:os": [">= 14.18 && < 15", ">= 16"],
|
|
40
70
|
"path": true,
|
|
71
|
+
"node:path": [">= 14.18 && < 15", ">= 16"],
|
|
41
72
|
"path/posix": ">= 15.3",
|
|
73
|
+
"node:path/posix": ">= 16",
|
|
42
74
|
"path/win32": ">= 15.3",
|
|
75
|
+
"node:path/win32": ">= 16",
|
|
43
76
|
"perf_hooks": ">= 8.5",
|
|
77
|
+
"node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
|
|
44
78
|
"process": ">= 1",
|
|
45
|
-
"
|
|
79
|
+
"node:process": [">= 14.18 && < 15", ">= 16"],
|
|
80
|
+
"punycode": ">= 0.5",
|
|
81
|
+
"node:punycode": [">= 14.18 && < 15", ">= 16"],
|
|
46
82
|
"querystring": true,
|
|
83
|
+
"node:querystring": [">= 14.18 && < 15", ">= 16"],
|
|
47
84
|
"readline": true,
|
|
85
|
+
"node:readline": [">= 14.18 && < 15", ">= 16"],
|
|
86
|
+
"readline/promises": ">= 17",
|
|
87
|
+
"node:readline/promises": ">= 17",
|
|
48
88
|
"repl": true,
|
|
89
|
+
"node:repl": [">= 14.18 && < 15", ">= 16"],
|
|
49
90
|
"smalloc": ">= 0.11.5 && < 3",
|
|
50
91
|
"_stream_duplex": ">= 0.9.4",
|
|
92
|
+
"node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
|
|
51
93
|
"_stream_transform": ">= 0.9.4",
|
|
94
|
+
"node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
|
|
52
95
|
"_stream_wrap": ">= 1.4.1",
|
|
96
|
+
"node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
|
|
53
97
|
"_stream_passthrough": ">= 0.9.4",
|
|
98
|
+
"node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
|
|
54
99
|
"_stream_readable": ">= 0.9.4",
|
|
100
|
+
"node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
|
|
55
101
|
"_stream_writable": ">= 0.9.4",
|
|
102
|
+
"node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
|
|
56
103
|
"stream": true,
|
|
104
|
+
"node:stream": [">= 14.18 && < 15", ">= 16"],
|
|
105
|
+
"stream/consumers": ">= 16.7",
|
|
106
|
+
"node:stream/consumers": ">= 16.7",
|
|
57
107
|
"stream/promises": ">= 15",
|
|
108
|
+
"node:stream/promises": ">= 16",
|
|
109
|
+
"stream/web": ">= 16.5",
|
|
110
|
+
"node:stream/web": ">= 16.5",
|
|
58
111
|
"string_decoder": true,
|
|
59
|
-
"
|
|
112
|
+
"node:string_decoder": [">= 14.18 && < 15", ">= 16"],
|
|
113
|
+
"sys": [">= 0.4 && < 0.7", ">= 0.8"],
|
|
114
|
+
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
|
60
115
|
"timers": true,
|
|
116
|
+
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
|
61
117
|
"timers/promises": ">= 15",
|
|
118
|
+
"node:timers/promises": ">= 16",
|
|
62
119
|
"_tls_common": ">= 0.11.13",
|
|
120
|
+
"node:_tls_common": [">= 14.18 && < 15", ">= 16"],
|
|
63
121
|
"_tls_legacy": ">= 0.11.3 && < 10",
|
|
64
122
|
"_tls_wrap": ">= 0.11.3",
|
|
123
|
+
"node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
|
|
65
124
|
"tls": true,
|
|
125
|
+
"node:tls": [">= 14.18 && < 15", ">= 16"],
|
|
66
126
|
"trace_events": ">= 10",
|
|
127
|
+
"node:trace_events": [">= 14.18 && < 15", ">= 16"],
|
|
67
128
|
"tty": true,
|
|
129
|
+
"node:tty": [">= 14.18 && < 15", ">= 16"],
|
|
68
130
|
"url": true,
|
|
131
|
+
"node:url": [">= 14.18 && < 15", ">= 16"],
|
|
69
132
|
"util": true,
|
|
133
|
+
"node:util": [">= 14.18 && < 15", ">= 16"],
|
|
70
134
|
"util/types": ">= 15.3",
|
|
135
|
+
"node:util/types": ">= 16",
|
|
71
136
|
"v8/tools/arguments": ">= 10 && < 12",
|
|
72
|
-
"v8/tools/codemap": [">= 4.4
|
|
73
|
-
"v8/tools/consarray": [">= 4.4
|
|
74
|
-
"v8/tools/csvparser": [">= 4.4
|
|
75
|
-
"v8/tools/logreader": [">= 4.4
|
|
76
|
-
"v8/tools/profile_view": [">= 4.4
|
|
77
|
-
"v8/tools/splaytree": [">= 4.4
|
|
137
|
+
"v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
138
|
+
"v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
139
|
+
"v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
140
|
+
"v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
141
|
+
"v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
142
|
+
"v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
78
143
|
"v8": ">= 1",
|
|
144
|
+
"node:v8": [">= 14.18 && < 15", ">= 16"],
|
|
79
145
|
"vm": true,
|
|
146
|
+
"node:vm": [">= 14.18 && < 15", ">= 16"],
|
|
80
147
|
"wasi": ">= 13.4 && < 13.5",
|
|
81
148
|
"worker_threads": ">= 11.7",
|
|
82
|
-
"
|
|
149
|
+
"node:worker_threads": [">= 14.18 && < 15", ">= 16"],
|
|
150
|
+
"zlib": ">= 0.5",
|
|
151
|
+
"node:zlib": [">= 14.18 && < 15", ">= 16"]
|
|
83
152
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var os = require('os');
|
|
4
|
+
|
|
5
|
+
// adapted from https://github.com/sindresorhus/os-homedir/blob/11e089f4754db38bb535e5a8416320c4446e8cfd/index.js
|
|
6
|
+
|
|
7
|
+
module.exports = os.homedir || function homedir() {
|
|
8
|
+
var home = process.env.HOME;
|
|
9
|
+
var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
|
|
10
|
+
|
|
11
|
+
if (process.platform === 'win32') {
|
|
12
|
+
return process.env.USERPROFILE || process.env.HOMEDRIVE + process.env.HOMEPATH || home || null;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if (process.platform === 'darwin') {
|
|
16
|
+
return home || (user ? '/Users/' + user : null);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (process.platform === 'linux') {
|
|
20
|
+
return home || (process.getuid() === 0 ? '/root' : (user ? '/home/' + user : null)); // eslint-disable-line no-extra-parens
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return home || null;
|
|
24
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var path = require('path');
|
|
2
|
-
var parse = path.parse || require('path-parse');
|
|
2
|
+
var parse = path.parse || require('path-parse'); // eslint-disable-line global-require
|
|
3
3
|
|
|
4
4
|
var getNodeModulesDirs = function getNodeModulesDirs(absoluteStart, modules) {
|
|
5
5
|
var prefix = '/';
|
|
@@ -1,30 +1,39 @@
|
|
|
1
1
|
var isCore = require('is-core-module');
|
|
2
2
|
var fs = require('fs');
|
|
3
3
|
var path = require('path');
|
|
4
|
+
var getHomedir = require('./homedir');
|
|
4
5
|
var caller = require('./caller');
|
|
5
6
|
var nodeModulesPaths = require('./node-modules-paths');
|
|
6
7
|
var normalizeOptions = require('./normalize-options');
|
|
7
8
|
|
|
8
9
|
var realpathFS = fs.realpathSync && typeof fs.realpathSync.native === 'function' ? fs.realpathSync.native : fs.realpathSync;
|
|
9
10
|
|
|
11
|
+
var homedir = getHomedir();
|
|
12
|
+
var defaultPaths = function () {
|
|
13
|
+
return [
|
|
14
|
+
path.join(homedir, '.node_modules'),
|
|
15
|
+
path.join(homedir, '.node_libraries')
|
|
16
|
+
];
|
|
17
|
+
};
|
|
18
|
+
|
|
10
19
|
var defaultIsFile = function isFile(file) {
|
|
11
20
|
try {
|
|
12
|
-
var stat = fs.statSync(file);
|
|
21
|
+
var stat = fs.statSync(file, { throwIfNoEntry: false });
|
|
13
22
|
} catch (e) {
|
|
14
23
|
if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) return false;
|
|
15
24
|
throw e;
|
|
16
25
|
}
|
|
17
|
-
return stat.isFile() || stat.isFIFO();
|
|
26
|
+
return !!stat && (stat.isFile() || stat.isFIFO());
|
|
18
27
|
};
|
|
19
28
|
|
|
20
29
|
var defaultIsDir = function isDirectory(dir) {
|
|
21
30
|
try {
|
|
22
|
-
var stat = fs.statSync(dir);
|
|
31
|
+
var stat = fs.statSync(dir, { throwIfNoEntry: false });
|
|
23
32
|
} catch (e) {
|
|
24
33
|
if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) return false;
|
|
25
34
|
throw e;
|
|
26
35
|
}
|
|
27
|
-
return stat.isDirectory();
|
|
36
|
+
return !!stat && stat.isDirectory();
|
|
28
37
|
};
|
|
29
38
|
|
|
30
39
|
var defaultRealpathSync = function realpathSync(x) {
|
|
@@ -82,7 +91,7 @@ module.exports = function resolveSync(x, options) {
|
|
|
82
91
|
var basedir = opts.basedir || path.dirname(caller());
|
|
83
92
|
var parent = opts.filename || basedir;
|
|
84
93
|
|
|
85
|
-
opts.paths = opts.paths ||
|
|
94
|
+
opts.paths = opts.paths || defaultPaths();
|
|
86
95
|
|
|
87
96
|
// ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory
|
|
88
97
|
var absoluteStart = maybeRealpathSync(realpathSync, path.resolve(basedir), opts);
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resolve",
|
|
3
3
|
"description": "resolve like require.resolve() on behalf of files asynchronously and synchronously",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.22.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git://github.com/browserify/resolve.git"
|
|
8
8
|
},
|
|
9
|
+
"bin": {
|
|
10
|
+
"resolve": "./bin/resolve"
|
|
11
|
+
},
|
|
9
12
|
"main": "index.js",
|
|
10
13
|
"keywords": [
|
|
11
14
|
"resolve",
|
|
@@ -14,9 +17,10 @@
|
|
|
14
17
|
"module"
|
|
15
18
|
],
|
|
16
19
|
"scripts": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
+
"prepublishOnly": "safe-publish-latest && cp node_modules/is-core-module/core.json ./lib/ ||:",
|
|
21
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
22
|
+
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
|
|
23
|
+
"lint": "eslint --ext=js,mjs --no-eslintrc -c .eslintrc . 'bin/**'",
|
|
20
24
|
"pretests-only": "cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async",
|
|
21
25
|
"tests-only": "tape test/*.js",
|
|
22
26
|
"pretest": "npm run lint",
|
|
@@ -25,15 +29,21 @@
|
|
|
25
29
|
"test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test"
|
|
26
30
|
},
|
|
27
31
|
"devDependencies": {
|
|
28
|
-
"@ljharb/eslint-config": "^
|
|
29
|
-
"array.prototype.map": "^1.0.
|
|
30
|
-
"aud": "^
|
|
32
|
+
"@ljharb/eslint-config": "^20.2.0",
|
|
33
|
+
"array.prototype.map": "^1.0.4",
|
|
34
|
+
"aud": "^2.0.0",
|
|
35
|
+
"copy-dir": "^1.3.0",
|
|
31
36
|
"eclint": "^2.8.1",
|
|
32
|
-
"eslint": "^7.
|
|
37
|
+
"eslint": "^8.7.0",
|
|
38
|
+
"in-publish": "^2.0.1",
|
|
39
|
+
"mkdirp": "^0.5.5",
|
|
40
|
+
"mv": "^2.1.1",
|
|
33
41
|
"object-keys": "^1.1.1",
|
|
34
|
-
"
|
|
42
|
+
"rimraf": "^2.7.1",
|
|
43
|
+
"safe-publish-latest": "^2.0.0",
|
|
35
44
|
"tap": "0.4.13",
|
|
36
|
-
"tape": "^5.
|
|
45
|
+
"tape": "^5.4.1",
|
|
46
|
+
"tmp": "^0.0.31"
|
|
37
47
|
},
|
|
38
48
|
"license": "MIT",
|
|
39
49
|
"author": {
|
|
@@ -45,11 +55,12 @@
|
|
|
45
55
|
"url": "https://github.com/sponsors/ljharb"
|
|
46
56
|
},
|
|
47
57
|
"dependencies": {
|
|
48
|
-
"is-core-module": "^2.
|
|
49
|
-
"path-parse": "^1.0.
|
|
58
|
+
"is-core-module": "^2.8.1",
|
|
59
|
+
"path-parse": "^1.0.7",
|
|
60
|
+
"supports-preserve-symlinks-flag": "^1.0.0"
|
|
50
61
|
}
|
|
51
62
|
|
|
52
|
-
,"_resolved": "https://registry.npmjs.org/resolve/-/resolve-1.
|
|
53
|
-
,"_integrity": "sha512-
|
|
54
|
-
,"_from": "resolve@1.
|
|
63
|
+
,"_resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz"
|
|
64
|
+
,"_integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw=="
|
|
65
|
+
,"_from": "resolve@1.22.0"
|
|
55
66
|
}
|