step-node-agent 3.17.2 → 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/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-core-module/.eslintrc +0 -1
- package/node_modules/is-core-module/CHANGELOG.md +18 -0
- package/node_modules/is-core-module/core.json +7 -5
- package/node_modules/is-core-module/package.json +10 -10
- package/node_modules/is-core-module/test/index.js +1 -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 +7 -0
- package/node_modules/mime-db/db.json +18 -0
- package/node_modules/mime-db/package.json +7 -7
- package/node_modules/mime-types/HISTORY.md +6 -3
- package/node_modules/mime-types/package.json +8 -8
- package/node_modules/npm/.eslintrc +3 -0
- package/node_modules/npm/CHANGELOG.md +14 -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/package.json +5 -4
- 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/index.js +30 -8
- package/node_modules/signal-exit/package.json +10 -8
- 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/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-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/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/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 -446
- 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
|
@@ -1,19 +1,46 @@
|
|
|
1
1
|
var path = require('path');
|
|
2
|
+
var fs = require('fs');
|
|
2
3
|
var test = require('tape');
|
|
4
|
+
|
|
3
5
|
var resolve = require('../');
|
|
6
|
+
var sync = require('../sync');
|
|
7
|
+
|
|
8
|
+
var requireResolveSupportsPaths = require.resolve.length > 1
|
|
9
|
+
&& (/^12\.[012]\./).test(process.version); // broken in v12.0-12.2, see https://github.com/nodejs/node/issues/27794
|
|
10
|
+
|
|
11
|
+
test('`./sync` entry point', function (t) {
|
|
12
|
+
t.equal(resolve.sync, sync, '`./sync` entry point is the same as `.sync` on `main`');
|
|
13
|
+
t.end();
|
|
14
|
+
});
|
|
4
15
|
|
|
5
16
|
test('foo', function (t) {
|
|
6
17
|
var dir = path.join(__dirname, 'resolver');
|
|
7
18
|
|
|
8
19
|
t.equal(
|
|
9
20
|
resolve.sync('./foo', { basedir: dir }),
|
|
10
|
-
path.join(dir, 'foo.js')
|
|
21
|
+
path.join(dir, 'foo.js'),
|
|
22
|
+
'./foo'
|
|
11
23
|
);
|
|
24
|
+
if (requireResolveSupportsPaths) {
|
|
25
|
+
t.equal(
|
|
26
|
+
resolve.sync('./foo', { basedir: dir }),
|
|
27
|
+
require.resolve('./foo', { paths: [dir] }),
|
|
28
|
+
'./foo: resolve.sync === require.resolve'
|
|
29
|
+
);
|
|
30
|
+
}
|
|
12
31
|
|
|
13
32
|
t.equal(
|
|
14
33
|
resolve.sync('./foo.js', { basedir: dir }),
|
|
15
|
-
path.join(dir, 'foo.js')
|
|
34
|
+
path.join(dir, 'foo.js'),
|
|
35
|
+
'./foo.js'
|
|
16
36
|
);
|
|
37
|
+
if (requireResolveSupportsPaths) {
|
|
38
|
+
t.equal(
|
|
39
|
+
resolve.sync('./foo.js', { basedir: dir }),
|
|
40
|
+
require.resolve('./foo.js', { paths: [dir] }),
|
|
41
|
+
'./foo.js: resolve.sync === require.resolve'
|
|
42
|
+
);
|
|
43
|
+
}
|
|
17
44
|
|
|
18
45
|
t.equal(
|
|
19
46
|
resolve.sync('./foo.js', { basedir: dir, filename: path.join(dir, 'bar.js') }),
|
|
@@ -41,10 +68,21 @@ test('foo', function (t) {
|
|
|
41
68
|
test('bar', function (t) {
|
|
42
69
|
var dir = path.join(__dirname, 'resolver');
|
|
43
70
|
|
|
71
|
+
var basedir = path.join(dir, 'bar');
|
|
72
|
+
|
|
44
73
|
t.equal(
|
|
45
|
-
resolve.sync('foo', { basedir:
|
|
46
|
-
path.join(dir, 'bar/node_modules/foo/index.js')
|
|
74
|
+
resolve.sync('foo', { basedir: basedir }),
|
|
75
|
+
path.join(dir, 'bar/node_modules/foo/index.js'),
|
|
76
|
+
'foo in bar'
|
|
47
77
|
);
|
|
78
|
+
if (requireResolveSupportsPaths) {
|
|
79
|
+
t.equal(
|
|
80
|
+
resolve.sync('foo', { basedir: basedir }),
|
|
81
|
+
require.resolve('foo', { paths: [basedir] }),
|
|
82
|
+
'foo in bar: resolve.sync === require.resolve'
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
48
86
|
t.end();
|
|
49
87
|
});
|
|
50
88
|
|
|
@@ -53,52 +91,98 @@ test('baz', function (t) {
|
|
|
53
91
|
|
|
54
92
|
t.equal(
|
|
55
93
|
resolve.sync('./baz', { basedir: dir }),
|
|
56
|
-
path.join(dir, 'baz/quux.js')
|
|
94
|
+
path.join(dir, 'baz/quux.js'),
|
|
95
|
+
'./baz'
|
|
57
96
|
);
|
|
97
|
+
if (requireResolveSupportsPaths) {
|
|
98
|
+
t.equal(
|
|
99
|
+
resolve.sync('./baz', { basedir: dir }),
|
|
100
|
+
require.resolve('./baz', { paths: [dir] }),
|
|
101
|
+
'./baz: resolve.sync === require.resolve'
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
58
105
|
t.end();
|
|
59
106
|
});
|
|
60
107
|
|
|
61
108
|
test('biz', function (t) {
|
|
62
109
|
var dir = path.join(__dirname, 'resolver/biz/node_modules');
|
|
110
|
+
|
|
63
111
|
t.equal(
|
|
64
112
|
resolve.sync('./grux', { basedir: dir }),
|
|
65
113
|
path.join(dir, 'grux/index.js')
|
|
66
114
|
);
|
|
115
|
+
if (requireResolveSupportsPaths) {
|
|
116
|
+
t.equal(
|
|
117
|
+
resolve.sync('./grux', { basedir: dir }),
|
|
118
|
+
require.resolve('./grux', { paths: [dir] }),
|
|
119
|
+
'./grux: resolve.sync === require.resolve'
|
|
120
|
+
);
|
|
121
|
+
}
|
|
67
122
|
|
|
123
|
+
var tivDir = path.join(dir, 'grux');
|
|
68
124
|
t.equal(
|
|
69
|
-
resolve.sync('tiv', { basedir:
|
|
125
|
+
resolve.sync('tiv', { basedir: tivDir }),
|
|
70
126
|
path.join(dir, 'tiv/index.js')
|
|
71
127
|
);
|
|
128
|
+
if (requireResolveSupportsPaths) {
|
|
129
|
+
t.equal(
|
|
130
|
+
resolve.sync('tiv', { basedir: tivDir }),
|
|
131
|
+
require.resolve('tiv', { paths: [tivDir] }),
|
|
132
|
+
'tiv: resolve.sync === require.resolve'
|
|
133
|
+
);
|
|
134
|
+
}
|
|
72
135
|
|
|
136
|
+
var gruxDir = path.join(dir, 'tiv');
|
|
73
137
|
t.equal(
|
|
74
|
-
resolve.sync('grux', { basedir:
|
|
138
|
+
resolve.sync('grux', { basedir: gruxDir }),
|
|
75
139
|
path.join(dir, 'grux/index.js')
|
|
76
140
|
);
|
|
141
|
+
if (requireResolveSupportsPaths) {
|
|
142
|
+
t.equal(
|
|
143
|
+
resolve.sync('grux', { basedir: gruxDir }),
|
|
144
|
+
require.resolve('grux', { paths: [gruxDir] }),
|
|
145
|
+
'grux: resolve.sync === require.resolve'
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
77
149
|
t.end();
|
|
78
150
|
});
|
|
79
151
|
|
|
80
152
|
test('normalize', function (t) {
|
|
81
153
|
var dir = path.join(__dirname, 'resolver/biz/node_modules/grux');
|
|
154
|
+
|
|
82
155
|
t.equal(
|
|
83
156
|
resolve.sync('../grux', { basedir: dir }),
|
|
84
157
|
path.join(dir, 'index.js')
|
|
85
158
|
);
|
|
159
|
+
if (requireResolveSupportsPaths) {
|
|
160
|
+
t.equal(
|
|
161
|
+
resolve.sync('../grux', { basedir: dir }),
|
|
162
|
+
require.resolve('../grux', { paths: [dir] }),
|
|
163
|
+
'../grux: resolve.sync === require.resolve'
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
86
167
|
t.end();
|
|
87
168
|
});
|
|
88
169
|
|
|
89
170
|
test('cup', function (t) {
|
|
90
171
|
var dir = path.join(__dirname, 'resolver');
|
|
172
|
+
|
|
91
173
|
t.equal(
|
|
92
174
|
resolve.sync('./cup', {
|
|
93
175
|
basedir: dir,
|
|
94
176
|
extensions: ['.js', '.coffee']
|
|
95
177
|
}),
|
|
96
|
-
path.join(dir, 'cup.coffee')
|
|
178
|
+
path.join(dir, 'cup.coffee'),
|
|
179
|
+
'./cup -> ./cup.coffee'
|
|
97
180
|
);
|
|
98
181
|
|
|
99
182
|
t.equal(
|
|
100
183
|
resolve.sync('./cup.coffee', { basedir: dir }),
|
|
101
|
-
path.join(dir, 'cup.coffee')
|
|
184
|
+
path.join(dir, 'cup.coffee'),
|
|
185
|
+
'./cup.coffee'
|
|
102
186
|
);
|
|
103
187
|
|
|
104
188
|
t.throws(function () {
|
|
@@ -108,22 +192,40 @@ test('cup', function (t) {
|
|
|
108
192
|
});
|
|
109
193
|
});
|
|
110
194
|
|
|
195
|
+
if (requireResolveSupportsPaths) {
|
|
196
|
+
t.equal(
|
|
197
|
+
resolve.sync('./cup.coffee', { basedir: dir, extensions: ['.js', '.coffee'] }),
|
|
198
|
+
require.resolve('./cup.coffee', { paths: [dir] }),
|
|
199
|
+
'./cup.coffee: resolve.sync === require.resolve'
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
111
203
|
t.end();
|
|
112
204
|
});
|
|
113
205
|
|
|
114
206
|
test('mug', function (t) {
|
|
115
207
|
var dir = path.join(__dirname, 'resolver');
|
|
208
|
+
|
|
116
209
|
t.equal(
|
|
117
210
|
resolve.sync('./mug', { basedir: dir }),
|
|
118
|
-
path.join(dir, 'mug.js')
|
|
211
|
+
path.join(dir, 'mug.js'),
|
|
212
|
+
'./mug -> ./mug.js'
|
|
119
213
|
);
|
|
214
|
+
if (requireResolveSupportsPaths) {
|
|
215
|
+
t.equal(
|
|
216
|
+
resolve.sync('./mug', { basedir: dir }),
|
|
217
|
+
require.resolve('./mug', { paths: [dir] }),
|
|
218
|
+
'./mug: resolve.sync === require.resolve'
|
|
219
|
+
);
|
|
220
|
+
}
|
|
120
221
|
|
|
121
222
|
t.equal(
|
|
122
223
|
resolve.sync('./mug', {
|
|
123
224
|
basedir: dir,
|
|
124
225
|
extensions: ['.coffee', '.js']
|
|
125
226
|
}),
|
|
126
|
-
path.join(dir, 'mug.coffee')
|
|
227
|
+
path.join(dir, 'mug.coffee'),
|
|
228
|
+
'./mug -> ./mug.coffee'
|
|
127
229
|
);
|
|
128
230
|
|
|
129
231
|
t.equal(
|
|
@@ -131,7 +233,8 @@ test('mug', function (t) {
|
|
|
131
233
|
basedir: dir,
|
|
132
234
|
extensions: ['.js', '.coffee']
|
|
133
235
|
}),
|
|
134
|
-
path.join(dir, 'mug.js')
|
|
236
|
+
path.join(dir, 'mug.js'),
|
|
237
|
+
'./mug -> ./mug.js'
|
|
135
238
|
);
|
|
136
239
|
|
|
137
240
|
t.end();
|
|
@@ -195,12 +298,18 @@ test('incorrect main', function (t) {
|
|
|
195
298
|
resolve.sync('./incorrect_main', { basedir: resolverDir }),
|
|
196
299
|
path.join(dir, 'index.js')
|
|
197
300
|
);
|
|
301
|
+
if (requireResolveSupportsPaths) {
|
|
302
|
+
t.equal(
|
|
303
|
+
resolve.sync('./incorrect_main', { basedir: resolverDir }),
|
|
304
|
+
require.resolve('./incorrect_main', { paths: [resolverDir] }),
|
|
305
|
+
'./incorrect_main: resolve.sync === require.resolve'
|
|
306
|
+
);
|
|
307
|
+
}
|
|
198
308
|
|
|
199
309
|
t.end();
|
|
200
310
|
});
|
|
201
311
|
|
|
202
312
|
var stubStatSync = function stubStatSync(fn) {
|
|
203
|
-
var fs = require('fs');
|
|
204
313
|
var statSync = fs.statSync;
|
|
205
314
|
try {
|
|
206
315
|
fs.statSync = function () {
|
|
@@ -226,29 +335,66 @@ test('#79 - re-throw non ENOENT errors from stat', function (t) {
|
|
|
226
335
|
|
|
227
336
|
test('#52 - incorrectly resolves module-paths like "./someFolder/" when there is a file of the same name', function (t) {
|
|
228
337
|
var dir = path.join(__dirname, 'resolver');
|
|
338
|
+
var basedir = path.join(dir, 'same_names');
|
|
229
339
|
|
|
230
340
|
t.equal(
|
|
231
|
-
resolve.sync('./foo', { basedir:
|
|
341
|
+
resolve.sync('./foo', { basedir: basedir }),
|
|
232
342
|
path.join(dir, 'same_names/foo.js')
|
|
233
343
|
);
|
|
344
|
+
if (requireResolveSupportsPaths) {
|
|
345
|
+
t.equal(
|
|
346
|
+
resolve.sync('./foo', { basedir: basedir }),
|
|
347
|
+
require.resolve('./foo', { paths: [basedir] }),
|
|
348
|
+
'./foo: resolve.sync === require.resolve'
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
|
|
234
352
|
t.equal(
|
|
235
|
-
resolve.sync('./foo/', { basedir:
|
|
353
|
+
resolve.sync('./foo/', { basedir: basedir }),
|
|
236
354
|
path.join(dir, 'same_names/foo/index.js')
|
|
237
355
|
);
|
|
356
|
+
if (requireResolveSupportsPaths) {
|
|
357
|
+
t.equal(
|
|
358
|
+
resolve.sync('./foo/', { basedir: basedir }),
|
|
359
|
+
require.resolve('./foo/', { paths: [basedir] }),
|
|
360
|
+
'./foo/: resolve.sync === require.resolve'
|
|
361
|
+
);
|
|
362
|
+
}
|
|
363
|
+
|
|
238
364
|
t.end();
|
|
239
365
|
});
|
|
240
366
|
|
|
241
367
|
test('#211 - incorrectly resolves module-paths like "." when from inside a folder with a sibling file of the same name', function (t) {
|
|
242
368
|
var dir = path.join(__dirname, 'resolver');
|
|
369
|
+
var basedir = path.join(dir, 'same_names/foo');
|
|
243
370
|
|
|
244
371
|
t.equal(
|
|
245
|
-
resolve.sync('./', { basedir:
|
|
246
|
-
path.join(dir, 'same_names/foo/index.js')
|
|
372
|
+
resolve.sync('./', { basedir: basedir }),
|
|
373
|
+
path.join(dir, 'same_names/foo/index.js'),
|
|
374
|
+
'./'
|
|
247
375
|
);
|
|
376
|
+
if (requireResolveSupportsPaths) {
|
|
377
|
+
t.equal(
|
|
378
|
+
resolve.sync('./', { basedir: basedir }),
|
|
379
|
+
require.resolve('./', { paths: [basedir] }),
|
|
380
|
+
'./: resolve.sync === require.resolve'
|
|
381
|
+
);
|
|
382
|
+
}
|
|
383
|
+
|
|
248
384
|
t.equal(
|
|
249
|
-
resolve.sync('.', { basedir:
|
|
250
|
-
path.join(dir, 'same_names/foo/index.js')
|
|
385
|
+
resolve.sync('.', { basedir: basedir }),
|
|
386
|
+
path.join(dir, 'same_names/foo/index.js'),
|
|
387
|
+
'.'
|
|
251
388
|
);
|
|
389
|
+
if (requireResolveSupportsPaths) {
|
|
390
|
+
t.equal(
|
|
391
|
+
resolve.sync('.', { basedir: basedir }),
|
|
392
|
+
require.resolve('.', { paths: [basedir] }),
|
|
393
|
+
'.: resolve.sync === require.resolve',
|
|
394
|
+
{ todo: true }
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
|
|
252
398
|
t.end();
|
|
253
399
|
});
|
|
254
400
|
|
|
@@ -261,6 +407,12 @@ test('sync: #121 - treating an existing file as a dir when no basedir', function
|
|
|
261
407
|
__filename,
|
|
262
408
|
'sanity check'
|
|
263
409
|
);
|
|
410
|
+
st.equal(
|
|
411
|
+
resolve.sync('./' + testFile),
|
|
412
|
+
require.resolve('./' + testFile),
|
|
413
|
+
'sanity check: resolve.sync === require.resolve'
|
|
414
|
+
);
|
|
415
|
+
|
|
264
416
|
st.end();
|
|
265
417
|
});
|
|
266
418
|
|
|
@@ -288,15 +440,38 @@ test('sync: #121 - treating an existing file as a dir when no basedir', function
|
|
|
288
440
|
|
|
289
441
|
test('sync dot main', function (t) {
|
|
290
442
|
var start = new Date();
|
|
291
|
-
|
|
443
|
+
|
|
444
|
+
t.equal(
|
|
445
|
+
resolve.sync('./resolver/dot_main'),
|
|
446
|
+
path.join(__dirname, 'resolver/dot_main/index.js'),
|
|
447
|
+
'./resolver/dot_main'
|
|
448
|
+
);
|
|
449
|
+
t.equal(
|
|
450
|
+
resolve.sync('./resolver/dot_main'),
|
|
451
|
+
require.resolve('./resolver/dot_main'),
|
|
452
|
+
'./resolver/dot_main: resolve.sync === require.resolve'
|
|
453
|
+
);
|
|
454
|
+
|
|
292
455
|
t.ok(new Date() - start < 50, 'resolve.sync timedout');
|
|
456
|
+
|
|
293
457
|
t.end();
|
|
294
458
|
});
|
|
295
459
|
|
|
296
460
|
test('sync dot slash main', function (t) {
|
|
297
461
|
var start = new Date();
|
|
298
|
-
|
|
462
|
+
|
|
463
|
+
t.equal(
|
|
464
|
+
resolve.sync('./resolver/dot_slash_main'),
|
|
465
|
+
path.join(__dirname, 'resolver/dot_slash_main/index.js')
|
|
466
|
+
);
|
|
467
|
+
t.equal(
|
|
468
|
+
resolve.sync('./resolver/dot_slash_main'),
|
|
469
|
+
require.resolve('./resolver/dot_slash_main'),
|
|
470
|
+
'./resolver/dot_slash_main: resolve.sync === require.resolve'
|
|
471
|
+
);
|
|
472
|
+
|
|
299
473
|
t.ok(new Date() - start < 50, 'resolve.sync timedout');
|
|
474
|
+
|
|
300
475
|
t.end();
|
|
301
476
|
});
|
|
302
477
|
|
|
@@ -321,7 +496,7 @@ test('non-string "main" field in package.json', function (t) {
|
|
|
321
496
|
t.fail('should not get here');
|
|
322
497
|
} catch (err) {
|
|
323
498
|
t.ok(err, 'errors on non-string main');
|
|
324
|
-
t.equal(err.message, 'package “
|
|
499
|
+
t.equal(err.message, 'package “invalid_main” `main` must be a string');
|
|
325
500
|
t.equal(err.code, 'INVALID_PACKAGE_MAIN');
|
|
326
501
|
}
|
|
327
502
|
t.end();
|
|
@@ -335,7 +510,7 @@ test('non-string "main" field in package.json', function (t) {
|
|
|
335
510
|
t.fail('should not get here');
|
|
336
511
|
} catch (err) {
|
|
337
512
|
t.ok(err, 'errors on non-string main');
|
|
338
|
-
t.equal(err.message, 'package “
|
|
513
|
+
t.equal(err.message, 'package “invalid_main” `main` must be a string');
|
|
339
514
|
t.equal(err.code, 'INVALID_PACKAGE_MAIN');
|
|
340
515
|
}
|
|
341
516
|
t.end();
|
|
@@ -356,3 +531,115 @@ test('browser field in package.json', function (t) {
|
|
|
356
531
|
t.equal(res, path.join(dir, 'browser_field', 'b.js'));
|
|
357
532
|
t.end();
|
|
358
533
|
});
|
|
534
|
+
|
|
535
|
+
test('absolute paths', function (t) {
|
|
536
|
+
var extensionless = __filename.slice(0, -path.extname(__filename).length);
|
|
537
|
+
|
|
538
|
+
t.equal(
|
|
539
|
+
resolve.sync(__filename),
|
|
540
|
+
__filename,
|
|
541
|
+
'absolute path to this file resolves'
|
|
542
|
+
);
|
|
543
|
+
t.equal(
|
|
544
|
+
resolve.sync(__filename),
|
|
545
|
+
require.resolve(__filename),
|
|
546
|
+
'absolute path to this file: resolve.sync === require.resolve'
|
|
547
|
+
);
|
|
548
|
+
|
|
549
|
+
t.equal(
|
|
550
|
+
resolve.sync(extensionless),
|
|
551
|
+
__filename,
|
|
552
|
+
'extensionless absolute path to this file resolves'
|
|
553
|
+
);
|
|
554
|
+
t.equal(
|
|
555
|
+
resolve.sync(__filename),
|
|
556
|
+
require.resolve(__filename),
|
|
557
|
+
'absolute path to this file: resolve.sync === require.resolve'
|
|
558
|
+
);
|
|
559
|
+
|
|
560
|
+
t.equal(
|
|
561
|
+
resolve.sync(__filename, { basedir: process.cwd() }),
|
|
562
|
+
__filename,
|
|
563
|
+
'absolute path to this file with a basedir resolves'
|
|
564
|
+
);
|
|
565
|
+
if (requireResolveSupportsPaths) {
|
|
566
|
+
t.equal(
|
|
567
|
+
resolve.sync(__filename, { basedir: process.cwd() }),
|
|
568
|
+
require.resolve(__filename, { paths: [process.cwd()] }),
|
|
569
|
+
'absolute path to this file + basedir: resolve.sync === require.resolve'
|
|
570
|
+
);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
t.equal(
|
|
574
|
+
resolve.sync(extensionless, { basedir: process.cwd() }),
|
|
575
|
+
__filename,
|
|
576
|
+
'extensionless absolute path to this file with a basedir resolves'
|
|
577
|
+
);
|
|
578
|
+
if (requireResolveSupportsPaths) {
|
|
579
|
+
t.equal(
|
|
580
|
+
resolve.sync(extensionless, { basedir: process.cwd() }),
|
|
581
|
+
require.resolve(extensionless, { paths: [process.cwd()] }),
|
|
582
|
+
'extensionless absolute path to this file + basedir: resolve.sync === require.resolve'
|
|
583
|
+
);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
t.end();
|
|
587
|
+
});
|
|
588
|
+
|
|
589
|
+
test('malformed package.json', function (t) {
|
|
590
|
+
t.plan(5 + (requireResolveSupportsPaths ? 1 : 0));
|
|
591
|
+
|
|
592
|
+
var basedir = path.join(__dirname, 'resolver/malformed_package_json');
|
|
593
|
+
var expected = path.join(basedir, 'index.js');
|
|
594
|
+
|
|
595
|
+
t.equal(
|
|
596
|
+
resolve.sync('./index.js', { basedir: basedir }),
|
|
597
|
+
expected,
|
|
598
|
+
'malformed package.json is silently ignored'
|
|
599
|
+
);
|
|
600
|
+
if (requireResolveSupportsPaths) {
|
|
601
|
+
t.equal(
|
|
602
|
+
resolve.sync('./index.js', { basedir: basedir }),
|
|
603
|
+
require.resolve('./index.js', { paths: [basedir] }),
|
|
604
|
+
'malformed package.json: resolve.sync === require.resolve'
|
|
605
|
+
);
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
var res1 = resolve.sync(
|
|
609
|
+
'./index.js',
|
|
610
|
+
{
|
|
611
|
+
basedir: basedir,
|
|
612
|
+
packageFilter: function (pkg, pkgfile, dir) {
|
|
613
|
+
t.fail('should not reach here');
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
);
|
|
617
|
+
|
|
618
|
+
t.equal(
|
|
619
|
+
res1,
|
|
620
|
+
expected,
|
|
621
|
+
'with packageFilter: malformed package.json is silently ignored'
|
|
622
|
+
);
|
|
623
|
+
|
|
624
|
+
var res2 = resolve.sync(
|
|
625
|
+
'./index.js',
|
|
626
|
+
{
|
|
627
|
+
basedir: basedir,
|
|
628
|
+
readPackageSync: function (readFileSync, pkgfile) {
|
|
629
|
+
t.equal(pkgfile, path.join(basedir, 'package.json'), 'readPackageSync: `pkgfile` is package.json path');
|
|
630
|
+
var result = String(readFileSync(pkgfile));
|
|
631
|
+
try {
|
|
632
|
+
return JSON.parse(result);
|
|
633
|
+
} catch (e) {
|
|
634
|
+
t.ok(e instanceof SyntaxError, 'readPackageSync: malformed package.json parses as a syntax error');
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
);
|
|
639
|
+
|
|
640
|
+
t.equal(
|
|
641
|
+
res2,
|
|
642
|
+
expected,
|
|
643
|
+
'with readPackageSync: malformed package.json is silently ignored'
|
|
644
|
+
);
|
|
645
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
1
2
|
/* eslint-disable node/no-deprecated-api */
|
|
2
3
|
var buffer = require('buffer')
|
|
3
4
|
var Buffer = buffer.Buffer
|
|
@@ -20,6 +21,8 @@ function SafeBuffer (arg, encodingOrOffset, length) {
|
|
|
20
21
|
return Buffer(arg, encodingOrOffset, length)
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
SafeBuffer.prototype = Object.create(Buffer.prototype)
|
|
25
|
+
|
|
23
26
|
// Copy static methods from Buffer
|
|
24
27
|
copyProps(Buffer, SafeBuffer)
|
|
25
28
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "safe-buffer",
|
|
3
3
|
"description": "Safer Node.js Buffer API",
|
|
4
|
-
"version": "5.1
|
|
4
|
+
"version": "5.2.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Feross Aboukhadijeh",
|
|
7
7
|
"email": "feross@feross.org",
|
|
8
|
-
"url": "
|
|
8
|
+
"url": "https://feross.org"
|
|
9
9
|
},
|
|
10
10
|
"bugs": {
|
|
11
11
|
"url": "https://github.com/feross/safe-buffer/issues"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"standard": "*",
|
|
15
|
-
"tape": "^
|
|
15
|
+
"tape": "^5.0.0"
|
|
16
16
|
},
|
|
17
17
|
"homepage": "https://github.com/feross/safe-buffer",
|
|
18
18
|
"keywords": [
|
|
@@ -33,9 +33,23 @@
|
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"test": "standard && tape test/*.js"
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
|
+
"funding": [
|
|
38
|
+
{
|
|
39
|
+
"type": "github",
|
|
40
|
+
"url": "https://github.com/sponsors/feross"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "patreon",
|
|
44
|
+
"url": "https://www.patreon.com/feross"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "consulting",
|
|
48
|
+
"url": "https://feross.org/support"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
37
51
|
|
|
38
|
-
,"_resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.
|
|
39
|
-
,"_integrity": "sha512-
|
|
40
|
-
,"_from": "safe-buffer@5.1
|
|
52
|
+
,"_resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz"
|
|
53
|
+
,"_integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
|
|
54
|
+
,"_from": "safe-buffer@5.2.1"
|
|
41
55
|
}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
0.17.2 / 2021-12-11
|
|
2
|
+
===================
|
|
3
|
+
|
|
4
|
+
* pref: ignore empty http tokens
|
|
5
|
+
* deps: http-errors@1.8.1
|
|
6
|
+
- deps: inherits@2.0.4
|
|
7
|
+
- deps: toidentifier@1.0.1
|
|
8
|
+
- deps: setprototypeof@1.2.0
|
|
9
|
+
* deps: ms@2.1.3
|
|
10
|
+
|
|
1
11
|
0.17.1 / 2019-05-10
|
|
2
12
|
===================
|
|
3
13
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[![NPM Version][npm-version-image]][npm-url]
|
|
4
4
|
[![NPM Downloads][npm-downloads-image]][npm-url]
|
|
5
|
-
[![Linux Build][
|
|
5
|
+
[![Linux Build][github-actions-ci-image]][github-actions-ci-url]
|
|
6
6
|
[![Windows Build][appveyor-image]][appveyor-url]
|
|
7
7
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
8
8
|
|
|
@@ -26,8 +26,6 @@ $ npm install send
|
|
|
26
26
|
|
|
27
27
|
## API
|
|
28
28
|
|
|
29
|
-
<!-- eslint-disable no-unused-vars -->
|
|
30
|
-
|
|
31
29
|
```js
|
|
32
30
|
var send = require('send')
|
|
33
31
|
```
|
|
@@ -87,7 +85,7 @@ This is skipped if the requested file already has an extension.
|
|
|
87
85
|
|
|
88
86
|
##### immutable
|
|
89
87
|
|
|
90
|
-
Enable or
|
|
88
|
+
Enable or disable the `immutable` directive in the `Cache-Control` response
|
|
91
89
|
header, defaults to `false`. If set to `true`, the `maxAge` option should
|
|
92
90
|
also be specified to enable caching. The `immutable` directive will prevent
|
|
93
91
|
supported clients from making conditional requests during the life of the
|
|
@@ -320,10 +318,10 @@ server.listen(3000)
|
|
|
320
318
|
[appveyor-url]: https://ci.appveyor.com/project/dougwilson/send
|
|
321
319
|
[coveralls-image]: https://badgen.net/coveralls/c/github/pillarjs/send/master
|
|
322
320
|
[coveralls-url]: https://coveralls.io/r/pillarjs/send?branch=master
|
|
321
|
+
[github-actions-ci-image]: https://badgen.net/github/checks/pillarjs/send/master?label=ci
|
|
322
|
+
[github-actions-ci-url]: https://github.com/pillarjs/send/actions?query=workflow%3Aci
|
|
323
323
|
[node-image]: https://badgen.net/npm/node/send
|
|
324
324
|
[node-url]: https://nodejs.org/en/download/
|
|
325
325
|
[npm-downloads-image]: https://badgen.net/npm/dm/send
|
|
326
326
|
[npm-url]: https://npmjs.org/package/send
|
|
327
327
|
[npm-version-image]: https://badgen.net/npm/v/send
|
|
328
|
-
[travis-image]: https://badgen.net/travis/pillarjs/send/master?label=linux
|
|
329
|
-
[travis-url]: https://travis-ci.org/pillarjs/send
|
|
@@ -435,7 +435,7 @@ SendStream.prototype.onStatError = function onStatError (error) {
|
|
|
435
435
|
|
|
436
436
|
SendStream.prototype.isFresh = function isFresh () {
|
|
437
437
|
return fresh(this.req.headers, {
|
|
438
|
-
|
|
438
|
+
etag: this.res.getHeader('ETag'),
|
|
439
439
|
'last-modified': this.res.getHeader('Last-Modified')
|
|
440
440
|
})
|
|
441
441
|
}
|
|
@@ -1096,7 +1096,9 @@ function parseTokenList (str) {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
break
|
|
1098
1098
|
case 0x2c: /* , */
|
|
1099
|
-
|
|
1099
|
+
if (start !== end) {
|
|
1100
|
+
list.push(str.substring(start, end))
|
|
1101
|
+
}
|
|
1100
1102
|
start = end = i + 1
|
|
1101
1103
|
break
|
|
1102
1104
|
default:
|
|
@@ -1106,7 +1108,9 @@ function parseTokenList (str) {
|
|
|
1106
1108
|
}
|
|
1107
1109
|
|
|
1108
1110
|
// final token
|
|
1109
|
-
|
|
1111
|
+
if (start !== end) {
|
|
1112
|
+
list.push(str.substring(start, end))
|
|
1113
|
+
}
|
|
1110
1114
|
|
|
1111
1115
|
return list
|
|
1112
1116
|
}
|
|
@@ -23,12 +23,12 @@ var y = d * 365.25;
|
|
|
23
23
|
* @api public
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
module.exports = function(val, options) {
|
|
26
|
+
module.exports = function (val, options) {
|
|
27
27
|
options = options || {};
|
|
28
28
|
var type = typeof val;
|
|
29
29
|
if (type === 'string' && val.length > 0) {
|
|
30
30
|
return parse(val);
|
|
31
|
-
} else if (type === 'number' &&
|
|
31
|
+
} else if (type === 'number' && isFinite(val)) {
|
|
32
32
|
return options.long ? fmtLong(val) : fmtShort(val);
|
|
33
33
|
}
|
|
34
34
|
throw new Error(
|
|
@@ -50,7 +50,7 @@ function parse(str) {
|
|
|
50
50
|
if (str.length > 100) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
|
-
var match = /^((?:\d+)
|
|
53
|
+
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
54
54
|
str
|
|
55
55
|
);
|
|
56
56
|
if (!match) {
|