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
|
@@ -9,20 +9,30 @@ var assert = require('assert-plus');
|
|
|
9
9
|
var Buffer = require('safer-buffer').Buffer;
|
|
10
10
|
var rfc4253 = require('./rfc4253');
|
|
11
11
|
var Key = require('../key');
|
|
12
|
+
var SSHBuffer = require('../ssh-buffer');
|
|
13
|
+
var crypto = require('crypto');
|
|
14
|
+
var PrivateKey = require('../private-key');
|
|
12
15
|
|
|
13
16
|
var errors = require('../errors');
|
|
14
17
|
|
|
18
|
+
// https://tartarus.org/~simon/putty-prerel-snapshots/htmldoc/AppendixC.html
|
|
15
19
|
function read(buf, options) {
|
|
16
20
|
var lines = buf.toString('ascii').split(/[\r\n]+/);
|
|
17
21
|
var found = false;
|
|
18
22
|
var parts;
|
|
19
23
|
var si = 0;
|
|
24
|
+
var formatVersion;
|
|
20
25
|
while (si < lines.length) {
|
|
21
26
|
parts = splitHeader(lines[si++]);
|
|
22
|
-
if (parts
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
if (parts) {
|
|
28
|
+
formatVersion = {
|
|
29
|
+
'putty-user-key-file-2': 2,
|
|
30
|
+
'putty-user-key-file-3': 3
|
|
31
|
+
}[parts[0].toLowerCase()];
|
|
32
|
+
if (formatVersion) {
|
|
33
|
+
found = true;
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
26
36
|
}
|
|
27
37
|
}
|
|
28
38
|
if (!found) {
|
|
@@ -32,6 +42,7 @@ function read(buf, options) {
|
|
|
32
42
|
|
|
33
43
|
parts = splitHeader(lines[si++]);
|
|
34
44
|
assert.equal(parts[0].toLowerCase(), 'encryption');
|
|
45
|
+
var encryption = parts[1];
|
|
35
46
|
|
|
36
47
|
parts = splitHeader(lines[si++]);
|
|
37
48
|
assert.equal(parts[0].toLowerCase(), 'comment');
|
|
@@ -52,10 +63,94 @@ function read(buf, options) {
|
|
|
52
63
|
if (key.type !== keyType) {
|
|
53
64
|
throw (new Error('Outer key algorithm mismatch'));
|
|
54
65
|
}
|
|
66
|
+
|
|
67
|
+
si += publicLines;
|
|
68
|
+
if (lines[si]) {
|
|
69
|
+
parts = splitHeader(lines[si++]);
|
|
70
|
+
assert.equal(parts[0].toLowerCase(), 'private-lines');
|
|
71
|
+
var privateLines = parseInt(parts[1], 10);
|
|
72
|
+
if (!isFinite(privateLines) || privateLines < 0 ||
|
|
73
|
+
privateLines > lines.length) {
|
|
74
|
+
throw (new Error('Invalid private-lines count'));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
var privateBuf = Buffer.from(
|
|
78
|
+
lines.slice(si, si + privateLines).join(''), 'base64');
|
|
79
|
+
|
|
80
|
+
if (encryption !== 'none' && formatVersion === 3) {
|
|
81
|
+
throw new Error('Encrypted keys arenot supported for' +
|
|
82
|
+
' PuTTY format version 3');
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (encryption === 'aes256-cbc') {
|
|
86
|
+
if (!options.passphrase) {
|
|
87
|
+
throw (new errors.KeyEncryptedError(
|
|
88
|
+
options.filename, 'PEM'));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
var iv = Buffer.alloc(16, 0);
|
|
92
|
+
var decipher = crypto.createDecipheriv(
|
|
93
|
+
'aes-256-cbc',
|
|
94
|
+
derivePPK2EncryptionKey(options.passphrase),
|
|
95
|
+
iv);
|
|
96
|
+
decipher.setAutoPadding(false);
|
|
97
|
+
privateBuf = Buffer.concat([
|
|
98
|
+
decipher.update(privateBuf), decipher.final()]);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
key = new PrivateKey(key);
|
|
102
|
+
if (key.type !== keyType) {
|
|
103
|
+
throw (new Error('Outer key algorithm mismatch'));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
var sshbuf = new SSHBuffer({buffer: privateBuf});
|
|
107
|
+
var privateKeyParts;
|
|
108
|
+
if (alg === 'ssh-dss') {
|
|
109
|
+
privateKeyParts = [ {
|
|
110
|
+
name: 'x',
|
|
111
|
+
data: sshbuf.readBuffer()
|
|
112
|
+
}];
|
|
113
|
+
} else if (alg === 'ssh-rsa') {
|
|
114
|
+
privateKeyParts = [
|
|
115
|
+
{ name: 'd', data: sshbuf.readBuffer() },
|
|
116
|
+
{ name: 'p', data: sshbuf.readBuffer() },
|
|
117
|
+
{ name: 'q', data: sshbuf.readBuffer() },
|
|
118
|
+
{ name: 'iqmp', data: sshbuf.readBuffer() }
|
|
119
|
+
];
|
|
120
|
+
} else if (alg.match(/^ecdsa-sha2-nistp/)) {
|
|
121
|
+
privateKeyParts = [ {
|
|
122
|
+
name: 'd', data: sshbuf.readBuffer()
|
|
123
|
+
} ];
|
|
124
|
+
} else if (alg === 'ssh-ed25519') {
|
|
125
|
+
privateKeyParts = [ {
|
|
126
|
+
name: 'k', data: sshbuf.readBuffer()
|
|
127
|
+
} ];
|
|
128
|
+
} else {
|
|
129
|
+
throw new Error('Unsupported PPK key type: ' + alg);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
key = new PrivateKey({
|
|
133
|
+
type: key.type,
|
|
134
|
+
parts: key.parts.concat(privateKeyParts)
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
|
|
55
138
|
key.comment = comment;
|
|
56
139
|
return (key);
|
|
57
140
|
}
|
|
58
141
|
|
|
142
|
+
function derivePPK2EncryptionKey(passphrase) {
|
|
143
|
+
var hash1 = crypto.createHash('sha1').update(Buffer.concat([
|
|
144
|
+
Buffer.from([0, 0, 0, 0]),
|
|
145
|
+
Buffer.from(passphrase)
|
|
146
|
+
])).digest();
|
|
147
|
+
var hash2 = crypto.createHash('sha1').update(Buffer.concat([
|
|
148
|
+
Buffer.from([0, 0, 0, 1]),
|
|
149
|
+
Buffer.from(passphrase)
|
|
150
|
+
])).digest();
|
|
151
|
+
return (Buffer.concat([hash1, hash2]).slice(0, 32));
|
|
152
|
+
}
|
|
153
|
+
|
|
59
154
|
function splitHeader(line) {
|
|
60
155
|
var idx = line.indexOf(':');
|
|
61
156
|
if (idx === -1)
|
|
@@ -33,6 +33,7 @@ formats['ssh-private'] = require('./formats/ssh-private');
|
|
|
33
33
|
formats['openssh'] = formats['ssh-private'];
|
|
34
34
|
formats['ssh'] = formats['ssh-private'];
|
|
35
35
|
formats['dnssec'] = require('./formats/dnssec');
|
|
36
|
+
formats['putty'] = require('./formats/putty');
|
|
36
37
|
|
|
37
38
|
function PrivateKey(opts) {
|
|
38
39
|
assert.object(opts, 'options');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sshpk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "A library for finding and using SSH public keys",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"temp": "^0.8.2"
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
,"_resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.
|
|
62
|
-
,"_integrity": "sha512
|
|
63
|
-
,"_from": "sshpk@1.
|
|
61
|
+
,"_resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz"
|
|
62
|
+
,"_integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ=="
|
|
63
|
+
,"_from": "sshpk@1.17.0"
|
|
64
64
|
}
|
|
@@ -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/supports-preserve-symlink-flag
|
|
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']
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## v1.0.0 - 2022-01-02
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- Tests [`e2f59ad`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/e2f59ad74e2ae0f5f4899fcde6a6f693ab7cc074)
|
|
13
|
+
- Initial commit [`dc222aa`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/dc222aad3c0b940d8d3af1ca9937d108bd2dc4b9)
|
|
14
|
+
- [meta] do not publish workflow files [`5ef77f7`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/5ef77f7cb6946d16ee38672be9ec0f1bbdf63262)
|
|
15
|
+
- npm init [`992b068`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/992b068503a461f7e8676f40ca2aab255fd8d6ff)
|
|
16
|
+
- read me [`6c9afa9`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/6c9afa9fabc8eaf0814aaed6dd01e6df0931b76d)
|
|
17
|
+
- Initial implementation [`2f98925`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/2f9892546396d4ab0ad9f1ff83e76c3f01234ae8)
|
|
18
|
+
- [meta] add `auto-changelog` [`6c476ae`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/6c476ae1ed7ce68b0480344f090ac2844f35509d)
|
|
19
|
+
- [Dev Deps] add `eslint`, `@ljharb/eslint-config` [`d0fffc8`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/d0fffc886d25fba119355520750a909d64da0087)
|
|
20
|
+
- Only apps should have lockfiles [`ab318ed`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/ab318ed7ae62f6c2c0e80a50398d40912afd8f69)
|
|
21
|
+
- [meta] add `safe-publish-latest` [`2bb23b3`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/2bb23b3ebab02dc4135c4cdf0217db82835b9fca)
|
|
22
|
+
- [meta] add `sideEffects` flag [`600223b`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/600223ba24f30779f209d9097721eff35ed62741)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Inspect JS
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# node-supports-preserve-symlinks-flag <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
|
2
|
+
|
|
3
|
+
[![github actions][actions-image]][actions-url]
|
|
4
|
+
[![coverage][codecov-image]][codecov-url]
|
|
5
|
+
[![dependency status][deps-svg]][deps-url]
|
|
6
|
+
[![dev dependency status][dev-deps-svg]][dev-deps-url]
|
|
7
|
+
[![License][license-image]][license-url]
|
|
8
|
+
[![Downloads][downloads-image]][downloads-url]
|
|
9
|
+
|
|
10
|
+
[![npm badge][npm-badge-png]][package-url]
|
|
11
|
+
|
|
12
|
+
Determine if the current node version supports the `--preserve-symlinks` flag.
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
var supportsPreserveSymlinks = require('node-supports-preserve-symlinks-flag');
|
|
18
|
+
var assert = require('assert');
|
|
19
|
+
|
|
20
|
+
assert.equal(supportsPreserveSymlinks, null); // in a browser
|
|
21
|
+
assert.equal(supportsPreserveSymlinks, false); // in node < v6.2
|
|
22
|
+
assert.equal(supportsPreserveSymlinks, true); // in node v6.2+
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Tests
|
|
26
|
+
Simply clone the repo, `npm install`, and run `npm test`
|
|
27
|
+
|
|
28
|
+
[package-url]: https://npmjs.org/package/node-supports-preserve-symlinks-flag
|
|
29
|
+
[npm-version-svg]: https://versionbadg.es/inspect-js/node-supports-preserve-symlinks-flag.svg
|
|
30
|
+
[deps-svg]: https://david-dm.org/inspect-js/node-supports-preserve-symlinks-flag.svg
|
|
31
|
+
[deps-url]: https://david-dm.org/inspect-js/node-supports-preserve-symlinks-flag
|
|
32
|
+
[dev-deps-svg]: https://david-dm.org/inspect-js/node-supports-preserve-symlinks-flag/dev-status.svg
|
|
33
|
+
[dev-deps-url]: https://david-dm.org/inspect-js/node-supports-preserve-symlinks-flag#info=devDependencies
|
|
34
|
+
[npm-badge-png]: https://nodei.co/npm/node-supports-preserve-symlinks-flag.png?downloads=true&stars=true
|
|
35
|
+
[license-image]: https://img.shields.io/npm/l/node-supports-preserve-symlinks-flag.svg
|
|
36
|
+
[license-url]: LICENSE
|
|
37
|
+
[downloads-image]: https://img.shields.io/npm/dm/node-supports-preserve-symlinks-flag.svg
|
|
38
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=node-supports-preserve-symlinks-flag
|
|
39
|
+
[codecov-image]: https://codecov.io/gh/inspect-js/node-supports-preserve-symlinks-flag/branch/main/graphs/badge.svg
|
|
40
|
+
[codecov-url]: https://app.codecov.io/gh/inspect-js/node-supports-preserve-symlinks-flag/
|
|
41
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/node-supports-preserve-symlinks-flag
|
|
42
|
+
[actions-url]: https://github.com/inspect-js/node-supports-preserve-symlinks-flag/actions
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = (
|
|
4
|
+
// node 12+
|
|
5
|
+
process.allowedNodeEnvironmentFlags && process.allowedNodeEnvironmentFlags.has('--preserve-symlinks')
|
|
6
|
+
) || (
|
|
7
|
+
// node v6.2 - v11
|
|
8
|
+
String(module.constructor._findPath).indexOf('preserveSymlinks') >= 0 // eslint-disable-line no-underscore-dangle
|
|
9
|
+
);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "supports-preserve-symlinks-flag",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Determine if the current node version supports the `--preserve-symlinks` flag.",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"browser": "./browser.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": [
|
|
9
|
+
{
|
|
10
|
+
"browser": "./browser.js",
|
|
11
|
+
"default": "./index.js"
|
|
12
|
+
},
|
|
13
|
+
"./index.js"
|
|
14
|
+
],
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"scripts": {
|
|
19
|
+
"prepublishOnly": "safe-publish-latest",
|
|
20
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
21
|
+
"lint": "eslint --ext=js,mjs .",
|
|
22
|
+
"pretest": "npm run lint",
|
|
23
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
24
|
+
"test": "npm run tests-only",
|
|
25
|
+
"posttest": "aud --production",
|
|
26
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
27
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/inspect-js/node-supports-preserve-symlinks-flag.git"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"node",
|
|
35
|
+
"flag",
|
|
36
|
+
"symlink",
|
|
37
|
+
"symlinks",
|
|
38
|
+
"preserve-symlinks"
|
|
39
|
+
],
|
|
40
|
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
|
41
|
+
"funding": {
|
|
42
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
43
|
+
},
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/inspect-js/node-supports-preserve-symlinks-flag/issues"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://github.com/inspect-js/node-supports-preserve-symlinks-flag#readme",
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@ljharb/eslint-config": "^20.1.0",
|
|
51
|
+
"aud": "^1.1.5",
|
|
52
|
+
"auto-changelog": "^2.3.0",
|
|
53
|
+
"eslint": "^8.6.0",
|
|
54
|
+
"nyc": "^10.3.2",
|
|
55
|
+
"safe-publish-latest": "^2.0.0",
|
|
56
|
+
"semver": "^6.3.0",
|
|
57
|
+
"tape": "^5.4.0"
|
|
58
|
+
},
|
|
59
|
+
"engines": {
|
|
60
|
+
"node": ">= 0.4"
|
|
61
|
+
},
|
|
62
|
+
"auto-changelog": {
|
|
63
|
+
"output": "CHANGELOG.md",
|
|
64
|
+
"template": "keepachangelog",
|
|
65
|
+
"unreleased": false,
|
|
66
|
+
"commitLimit": false,
|
|
67
|
+
"backfillLimit": false,
|
|
68
|
+
"hideCredit": true
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
,"_resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz"
|
|
72
|
+
,"_integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="
|
|
73
|
+
,"_from": "supports-preserve-symlinks-flag@1.0.0"
|
|
74
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
var semver = require('semver');
|
|
5
|
+
|
|
6
|
+
var supportsPreserveSymlinks = require('../');
|
|
7
|
+
var browser = require('../browser');
|
|
8
|
+
|
|
9
|
+
test('supportsPreserveSymlinks', function (t) {
|
|
10
|
+
t.equal(typeof supportsPreserveSymlinks, 'boolean', 'is a boolean');
|
|
11
|
+
|
|
12
|
+
t.equal(browser, null, 'browser file is `null`');
|
|
13
|
+
t.equal(
|
|
14
|
+
supportsPreserveSymlinks,
|
|
15
|
+
null,
|
|
16
|
+
'in a browser, is null',
|
|
17
|
+
{ skip: typeof window === 'undefined' }
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
var expected = semver.satisfies(process.version, '>= 6.2');
|
|
21
|
+
t.equal(
|
|
22
|
+
supportsPreserveSymlinks,
|
|
23
|
+
expected,
|
|
24
|
+
'is true in node v6.2+, false otherwise (actual: ' + supportsPreserveSymlinks + ', expected ' + expected + ')',
|
|
25
|
+
{ skip: typeof window !== 'undefined' }
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
t.end();
|
|
29
|
+
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[![NPM Version][npm-image]][npm-url]
|
|
4
4
|
[![NPM Downloads][downloads-image]][downloads-url]
|
|
5
|
-
[![Build Status][
|
|
5
|
+
[![Build Status][github-actions-ci-image]][github-actions-ci-url]
|
|
6
6
|
[![Test Coverage][codecov-image]][codecov-url]
|
|
7
7
|
|
|
8
8
|
> Convert a string of words to a JavaScript identifier
|
|
@@ -48,10 +48,10 @@ the following rules and the new string will be returned:
|
|
|
48
48
|
[codecov-url]: https://codecov.io/gh/component/toidentifier
|
|
49
49
|
[downloads-image]: https://img.shields.io/npm/dm/toidentifier.svg
|
|
50
50
|
[downloads-url]: https://npmjs.org/package/toidentifier
|
|
51
|
+
[github-actions-ci-image]: https://img.shields.io/github/workflow/status/component/toidentifier/ci/master?label=ci
|
|
52
|
+
[github-actions-ci-url]: https://github.com/component/toidentifier?query=workflow%3Aci
|
|
51
53
|
[npm-image]: https://img.shields.io/npm/v/toidentifier.svg
|
|
52
54
|
[npm-url]: https://npmjs.org/package/toidentifier
|
|
53
|
-
[travis-image]: https://img.shields.io/travis/component/toidentifier/master.svg
|
|
54
|
-
[travis-url]: https://travis-ci.org/component/toidentifier
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
##
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toidentifier",
|
|
3
3
|
"description": "Convert a string of words to a JavaScript identifier",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
@@ -9,30 +9,34 @@
|
|
|
9
9
|
],
|
|
10
10
|
"repository": "component/toidentifier",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"eslint": "
|
|
13
|
-
"eslint-config-standard": "
|
|
14
|
-
"eslint-plugin-import": "2.
|
|
15
|
-
"eslint-plugin-markdown": "
|
|
16
|
-
"eslint-plugin-node": "
|
|
17
|
-
"eslint-plugin-promise": "3.
|
|
18
|
-
"eslint-plugin-standard": "
|
|
19
|
-
"mocha": "1.
|
|
20
|
-
"nyc": "
|
|
12
|
+
"eslint": "7.32.0",
|
|
13
|
+
"eslint-config-standard": "14.1.1",
|
|
14
|
+
"eslint-plugin-import": "2.25.3",
|
|
15
|
+
"eslint-plugin-markdown": "2.2.1",
|
|
16
|
+
"eslint-plugin-node": "11.1.0",
|
|
17
|
+
"eslint-plugin-promise": "4.3.1",
|
|
18
|
+
"eslint-plugin-standard": "4.1.0",
|
|
19
|
+
"mocha": "9.1.3",
|
|
20
|
+
"nyc": "15.1.0"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=0.6"
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"files": [
|
|
27
|
+
"HISTORY.md",
|
|
28
|
+
"LICENSE",
|
|
27
29
|
"index.js"
|
|
28
30
|
],
|
|
29
31
|
"scripts": {
|
|
30
|
-
"lint": "eslint
|
|
32
|
+
"lint": "eslint .",
|
|
31
33
|
"test": "mocha --reporter spec --bail --check-leaks test/",
|
|
32
|
-
"test-
|
|
34
|
+
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
|
35
|
+
"test-cov": "nyc --reporter=html --reporter=text npm test",
|
|
36
|
+
"version": "node scripts/version-history.js && git add HISTORY.md"
|
|
33
37
|
}
|
|
34
38
|
|
|
35
|
-
,"_resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.
|
|
36
|
-
,"_integrity": "sha512-
|
|
37
|
-
,"_from": "toidentifier@1.0.
|
|
39
|
+
,"_resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz"
|
|
40
|
+
,"_integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="
|
|
41
|
+
,"_from": "toidentifier@1.0.1"
|
|
38
42
|
}
|
|
@@ -8,7 +8,7 @@ define(['./_setup', './isFunction', './_has'], function (_setup, isFunction, _ha
|
|
|
8
8
|
var hash = {};
|
|
9
9
|
for (var l = keys.length, i = 0; i < l; ++i) hash[keys[i]] = true;
|
|
10
10
|
return {
|
|
11
|
-
contains: function(key) { return hash[key]; },
|
|
11
|
+
contains: function(key) { return hash[key] === true; },
|
|
12
12
|
push: function(key) {
|
|
13
13
|
hash[key] = true;
|
|
14
14
|
return keys.push(key);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['./_isArrayLike', './
|
|
1
|
+
define(['./_isArrayLike', './values', './_getLength', './random', './toArray'], function (_isArrayLike, values, _getLength, random, toArray) {
|
|
2
2
|
|
|
3
3
|
// Sample **n** random values from a collection using the modern version of the
|
|
4
4
|
// [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
|
|
@@ -9,7 +9,7 @@ define(['./_isArrayLike', './clone', './values', './_getLength', './random'], fu
|
|
|
9
9
|
if (!_isArrayLike(obj)) obj = values(obj);
|
|
10
10
|
return obj[random(obj.length - 1)];
|
|
11
11
|
}
|
|
12
|
-
var sample =
|
|
12
|
+
var sample = toArray(obj);
|
|
13
13
|
var length = _getLength(sample);
|
|
14
14
|
n = Math.max(Math.min(n, length), 0);
|
|
15
15
|
var last = length - 1;
|
|
@@ -10,7 +10,7 @@ function emulatedSet(keys) {
|
|
|
10
10
|
var hash = {};
|
|
11
11
|
for (var l = keys.length, i = 0; i < l; ++i) hash[keys[i]] = true;
|
|
12
12
|
return {
|
|
13
|
-
contains: function(key) { return hash[key]; },
|
|
13
|
+
contains: function(key) { return hash[key] === true; },
|
|
14
14
|
push: function(key) {
|
|
15
15
|
hash[key] = true;
|
|
16
16
|
return keys.push(key);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
3
|
// Current version.
|
|
4
|
-
var VERSION = '1.13.
|
|
4
|
+
var VERSION = '1.13.2';
|
|
5
5
|
|
|
6
6
|
// Establish the root object, `window` (`self`) in the browser, `global`
|
|
7
7
|
// on the server, or `this` in some virtual machines. We use `self`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _isArrayLike = require('./_isArrayLike.js');
|
|
2
|
-
var clone = require('./clone.js');
|
|
3
2
|
var values = require('./values.js');
|
|
4
3
|
var _getLength = require('./_getLength.js');
|
|
5
4
|
var random = require('./random.js');
|
|
5
|
+
var toArray = require('./toArray.js');
|
|
6
6
|
|
|
7
7
|
// Sample **n** random values from a collection using the modern version of the
|
|
8
8
|
// [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
|
|
@@ -13,7 +13,7 @@ function sample(obj, n, guard) {
|
|
|
13
13
|
if (!_isArrayLike(obj)) obj = values(obj);
|
|
14
14
|
return obj[random(obj.length - 1)];
|
|
15
15
|
}
|
|
16
|
-
var sample =
|
|
16
|
+
var sample = toArray(obj);
|
|
17
17
|
var length = _getLength(sample);
|
|
18
18
|
n = Math.max(Math.min(n, length), 0);
|
|
19
19
|
var last = length - 1;
|
|
@@ -10,7 +10,7 @@ function emulatedSet(keys) {
|
|
|
10
10
|
var hash = {};
|
|
11
11
|
for (var l = keys.length, i = 0; i < l; ++i) hash[keys[i]] = true;
|
|
12
12
|
return {
|
|
13
|
-
contains: function(key) { return hash[key]; },
|
|
13
|
+
contains: function(key) { return hash[key] === true; },
|
|
14
14
|
push: function(key) {
|
|
15
15
|
hash[key] = true;
|
|
16
16
|
return keys.push(key);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Named Exports
|
|
2
2
|
// =============
|
|
3
3
|
|
|
4
|
-
// Underscore.js 1.13.
|
|
4
|
+
// Underscore.js 1.13.2
|
|
5
5
|
// https://underscorejs.org
|
|
6
6
|
// (c) 2009-2021 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
|
|
7
7
|
// Underscore may be freely distributed under the MIT license.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import isArrayLike from './_isArrayLike.js';
|
|
2
|
-
import clone from './clone.js';
|
|
3
2
|
import values from './values.js';
|
|
4
3
|
import getLength from './_getLength.js';
|
|
5
4
|
import random from './random.js';
|
|
5
|
+
import toArray from './toArray.js';
|
|
6
6
|
|
|
7
7
|
// Sample **n** random values from a collection using the modern version of the
|
|
8
8
|
// [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
|
|
@@ -13,7 +13,7 @@ export default function sample(obj, n, guard) {
|
|
|
13
13
|
if (!isArrayLike(obj)) obj = values(obj);
|
|
14
14
|
return obj[random(obj.length - 1)];
|
|
15
15
|
}
|
|
16
|
-
var sample =
|
|
16
|
+
var sample = toArray(obj);
|
|
17
17
|
var length = getLength(sample);
|
|
18
18
|
n = Math.max(Math.min(n, length), 0);
|
|
19
19
|
var last = length - 1;
|