step-node-agent 3.20.2 → 3.21.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/aws4/README.md +31 -1
- package/node_modules/aws4/aws4.js +10 -2
- package/node_modules/aws4/package.json +1 -1
- package/node_modules/content-type/HISTORY.md +5 -0
- package/node_modules/content-type/README.md +21 -19
- package/node_modules/content-type/index.js +12 -9
- package/node_modules/content-type/package.json +13 -11
- package/node_modules/get-intrinsic/.eslintrc +1 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +12 -0
- package/node_modules/get-intrinsic/index.js +10 -0
- package/node_modules/get-intrinsic/package.json +7 -6
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +1 -1
- package/node_modules/minimist/.eslintrc +25 -50
- package/node_modules/minimist/CHANGELOG.md +87 -1
- package/node_modules/minimist/README.md +14 -10
- package/node_modules/minimist/example/parse.js +2 -0
- package/node_modules/minimist/index.js +256 -242
- package/node_modules/minimist/package.json +73 -73
- package/node_modules/minimist/test/all_bool.js +26 -24
- package/node_modules/minimist/test/bool.js +146 -147
- package/node_modules/minimist/test/dash.js +33 -21
- package/node_modules/minimist/test/default_bool.js +26 -24
- package/node_modules/minimist/test/dotted.js +13 -11
- package/node_modules/minimist/test/kv_short.js +26 -10
- package/node_modules/minimist/test/long.js +28 -26
- package/node_modules/minimist/test/num.js +30 -28
- package/node_modules/minimist/test/parse.js +169 -157
- package/node_modules/minimist/test/parse_modified.js +7 -5
- package/node_modules/minimist/test/proto.js +41 -37
- package/node_modules/minimist/test/short.js +57 -55
- package/node_modules/minimist/test/stop_early.js +10 -8
- package/node_modules/minimist/test/unknown.js +83 -81
- package/node_modules/minimist/test/whitespace.js +6 -4
- package/node_modules/npm/AUTHORS +6 -0
- package/node_modules/npm/CHANGELOG.md +57 -0
- package/node_modules/npm/Makefile +6 -8
- package/node_modules/npm/docs/config.json +5 -0
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-access.md +4 -8
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-adduser.md +6 -10
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-audit.md +2 -6
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-bin.md +4 -8
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-bugs.md +5 -9
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-build.md +4 -8
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-bundle.md +2 -6
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-cache.md +5 -9
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-ci.md +3 -7
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-completion.md +2 -6
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-config.md +3 -7
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-dedupe.md +4 -8
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-deprecate.md +2 -5
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-dist-tag.md +6 -11
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-docs.md +4 -8
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-doctor.md +4 -8
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-edit.md +4 -8
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-explore.md +6 -10
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-fund.md +5 -9
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-help-search.md +3 -7
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-help.md +4 -8
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-hook.md +1 -5
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-init.md +2 -6
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-install-ci-test.md +3 -7
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-install-test.md +3 -7
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-install.md +13 -17
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-link.md +5 -9
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-logout.md +5 -9
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-ls.md +7 -11
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-org.md +1 -5
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-outdated.md +3 -7
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-owner.md +3 -7
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-pack.md +4 -8
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-ping.md +2 -6
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-prefix.md +5 -9
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-profile.md +2 -5
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-prune.md +3 -6
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-publish.md +15 -18
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-rebuild.md +3 -7
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-repo.md +3 -7
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-restart.md +6 -10
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-root.md +4 -8
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-run-script.md +6 -10
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-search.md +3 -7
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-shrinkwrap.md +4 -8
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-star.md +4 -8
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-stars.md +5 -9
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-start.md +6 -10
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-stop.md +5 -9
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-team.md +2 -6
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-test.md +5 -9
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-token.md +1 -5
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-uninstall.md +4 -8
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-unpublish.md +5 -9
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-update.md +5 -9
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-version.md +3 -7
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-view.md +5 -9
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm-whoami.md +3 -6
- package/node_modules/npm/docs/content/{cli-commands → commands}/npm.md +6 -10
- package/node_modules/npm/docs/content/configuring-npm/folders.md +8 -12
- package/node_modules/npm/docs/content/configuring-npm/install.md +1 -5
- package/node_modules/npm/docs/content/configuring-npm/npmrc.md +3 -7
- package/node_modules/npm/docs/content/configuring-npm/package-json.md +9 -13
- package/node_modules/npm/docs/content/configuring-npm/package-lock-json.md +3 -7
- package/node_modules/npm/docs/content/configuring-npm/package-locks.md +3 -7
- package/node_modules/npm/docs/content/configuring-npm/shrinkwrap-json.md +4 -8
- package/node_modules/npm/docs/content/using-npm/config.md +8 -12
- package/node_modules/npm/docs/content/using-npm/developers.md +8 -12
- package/node_modules/npm/docs/content/using-npm/orgs.md +5 -9
- package/node_modules/npm/docs/content/using-npm/registry.md +3 -8
- package/node_modules/npm/docs/content/using-npm/removal.md +3 -7
- package/node_modules/npm/docs/content/using-npm/scope.md +7 -9
- package/node_modules/npm/docs/content/using-npm/scripts.md +7 -11
- package/node_modules/npm/docs/content/using-npm/semver.md +1 -4
- package/node_modules/npm/docs/dockhand.js +341 -0
- package/node_modules/npm/docs/nav.yml +236 -0
- package/node_modules/npm/docs/output/commands/npm-access.html +240 -0
- package/node_modules/npm/docs/output/commands/npm-adduser.html +220 -0
- package/node_modules/npm/docs/output/commands/npm-audit.html +253 -0
- package/node_modules/npm/docs/output/commands/npm-bin.html +174 -0
- package/node_modules/npm/docs/output/commands/npm-bugs.html +194 -0
- package/node_modules/npm/docs/output/commands/npm-build.html +181 -0
- package/node_modules/npm/docs/output/commands/npm-bundle.html +170 -0
- package/node_modules/npm/docs/output/commands/npm-cache.html +230 -0
- package/node_modules/npm/docs/output/commands/npm-ci.html +205 -0
- package/node_modules/npm/docs/output/commands/npm-completion.html +185 -0
- package/node_modules/npm/docs/output/commands/npm-config.html +213 -0
- package/node_modules/npm/docs/output/commands/npm-dedupe.html +203 -0
- package/node_modules/npm/docs/output/commands/npm-deprecate.html +181 -0
- package/node_modules/npm/docs/output/commands/npm-dist-tag.html +232 -0
- package/node_modules/npm/docs/output/commands/npm-docs.html +195 -0
- package/node_modules/npm/docs/output/commands/npm-doctor.html +241 -0
- package/node_modules/npm/docs/output/commands/npm-edit.html +190 -0
- package/node_modules/npm/docs/output/commands/npm-explore.html +190 -0
- package/node_modules/npm/docs/output/commands/npm-fund.html +208 -0
- package/node_modules/npm/docs/output/commands/npm-help-search.html +185 -0
- package/node_modules/npm/docs/output/commands/npm-help.html +187 -0
- package/node_modules/npm/docs/output/commands/npm-hook.html +206 -0
- package/node_modules/npm/docs/output/commands/npm-init.html +209 -0
- package/node_modules/npm/docs/output/commands/npm-install-ci-test.html +173 -0
- package/node_modules/npm/docs/output/commands/npm-install-test.html +182 -0
- package/node_modules/npm/docs/output/commands/npm-install.html +582 -0
- package/node_modules/npm/docs/output/commands/npm-link.html +217 -0
- package/node_modules/npm/docs/output/commands/npm-logout.html +190 -0
- package/node_modules/npm/docs/output/commands/npm-ls.html +257 -0
- package/node_modules/npm/docs/output/commands/npm-org.html +193 -0
- package/node_modules/npm/docs/output/commands/npm-outdated.html +260 -0
- package/node_modules/npm/docs/output/commands/npm-owner.html +193 -0
- package/node_modules/npm/docs/output/commands/npm-pack.html +182 -0
- package/node_modules/npm/docs/output/commands/npm-ping.html +177 -0
- package/node_modules/npm/docs/output/commands/npm-prefix.html +178 -0
- package/node_modules/npm/docs/output/commands/npm-profile.html +235 -0
- package/node_modules/npm/docs/output/commands/npm-prune.html +188 -0
- package/node_modules/npm/docs/output/commands/npm-publish.html +232 -0
- package/node_modules/npm/docs/output/commands/npm-rebuild.html +173 -0
- package/node_modules/npm/docs/output/commands/npm-repo.html +181 -0
- package/node_modules/npm/docs/output/commands/npm-restart.html +193 -0
- package/node_modules/npm/docs/output/commands/npm-root.html +174 -0
- package/node_modules/npm/docs/output/commands/npm-run-script.html +226 -0
- package/node_modules/npm/docs/output/commands/npm-search.html +248 -0
- package/node_modules/npm/docs/output/commands/npm-shrinkwrap.html +181 -0
- package/node_modules/npm/docs/output/commands/npm-star.html +176 -0
- package/node_modules/npm/docs/output/commands/npm-stars.html +176 -0
- package/node_modules/npm/docs/output/commands/npm-start.html +178 -0
- package/node_modules/npm/docs/output/commands/npm-stop.html +174 -0
- package/node_modules/npm/docs/output/commands/npm-team.html +213 -0
- package/node_modules/npm/docs/output/commands/npm-test.html +176 -0
- package/node_modules/npm/docs/output/commands/npm-token.html +215 -0
- package/node_modules/npm/docs/output/commands/npm-uninstall.html +208 -0
- package/node_modules/npm/docs/output/commands/npm-unpublish.html +187 -0
- package/node_modules/npm/docs/output/commands/npm-update.html +252 -0
- package/node_modules/npm/docs/output/commands/npm-version.html +263 -0
- package/node_modules/npm/docs/output/commands/npm-view.html +235 -0
- package/node_modules/npm/docs/output/commands/npm-whoami.html +172 -0
- package/node_modules/npm/docs/output/commands/npm.html +290 -0
- package/node_modules/npm/docs/output/configuring-npm/folders.html +321 -0
- package/node_modules/npm/docs/output/configuring-npm/install.html +203 -0
- package/node_modules/npm/docs/output/configuring-npm/npmrc.html +227 -0
- package/node_modules/npm/docs/output/configuring-npm/package-json.html +827 -0
- package/node_modules/npm/docs/output/configuring-npm/package-lock-json.html +273 -0
- package/node_modules/npm/docs/output/configuring-npm/package-locks.html +310 -0
- package/node_modules/npm/docs/output/configuring-npm/shrinkwrap-json.html +181 -0
- package/node_modules/npm/docs/output/using-npm/config.html +1248 -0
- package/node_modules/npm/docs/output/using-npm/developers.html +356 -0
- package/node_modules/npm/docs/output/using-npm/orgs.html +236 -0
- package/node_modules/npm/docs/output/using-npm/registry.html +234 -0
- package/node_modules/npm/docs/output/using-npm/removal.html +200 -0
- package/node_modules/npm/docs/output/using-npm/scope.html +244 -0
- package/node_modules/npm/docs/output/using-npm/scripts.html +410 -0
- package/node_modules/npm/docs/output/using-npm/semver.html +521 -0
- package/node_modules/npm/docs/template.html +161 -0
- package/node_modules/npm/lib/help.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 -7
- 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 +2 -2
- 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 -7
- 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 -7
- 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 +2 -2
- package/node_modules/npm/man/man1/npm-install-test.1 +2 -2
- 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 -3
- 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 +5 -5
- 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 +2 -2
- 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 +2 -2
- 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/orgs.7 +1 -1
- package/node_modules/npm/man/man7/registry.7 +1 -3
- package/node_modules/npm/man/man7/removal.7 +1 -1
- package/node_modules/npm/man/man7/scope.7 +3 -2
- 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/@iarna/cli/LICENSE +14 -0
- package/node_modules/npm/node_modules/@iarna/cli/README.md +152 -0
- package/node_modules/npm/node_modules/@iarna/cli/app.js +109 -0
- package/node_modules/npm/node_modules/@iarna/cli/package.json +35 -0
- package/node_modules/npm/{docs → node_modules/are-we-there-yet/node_modules/readable-stream/node_modules/safe-buffer}/LICENSE +5 -6
- package/node_modules/npm/node_modules/are-we-there-yet/node_modules/readable-stream/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/are-we-there-yet/node_modules/readable-stream/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/are-we-there-yet/node_modules/readable-stream/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/are-we-there-yet/node_modules/readable-stream/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/are-we-there-yet/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/are-we-there-yet/node_modules/string_decoder/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/are-we-there-yet/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/are-we-there-yet/node_modules/string_decoder/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/are-we-there-yet/node_modules/string_decoder/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/asn1/Jenkinsfile +65 -0
- package/node_modules/npm/node_modules/asn1/package.json +2 -2
- package/node_modules/npm/node_modules/aws4/.github/FUNDING.yml +3 -0
- package/node_modules/npm/node_modules/aws4/.travis.yml +5 -1
- package/node_modules/npm/node_modules/aws4/README.md +50 -390
- package/node_modules/npm/node_modules/aws4/aws4.js +63 -22
- package/node_modules/npm/node_modules/aws4/package.json +9 -63
- package/node_modules/npm/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/node_modules/npm/node_modules/balanced-match/README.md +6 -0
- package/node_modules/npm/node_modules/balanced-match/index.js +3 -0
- package/node_modules/npm/node_modules/balanced-match/package.json +3 -4
- package/node_modules/npm/node_modules/bluebird/README.md +1 -1
- package/node_modules/npm/node_modules/bluebird/js/browser/bluebird.core.js +210 -120
- package/node_modules/npm/node_modules/bluebird/js/browser/bluebird.core.min.js +3 -3
- package/node_modules/npm/node_modules/bluebird/js/browser/bluebird.js +240 -128
- package/node_modules/npm/node_modules/bluebird/js/browser/bluebird.min.js +4 -4
- package/node_modules/npm/node_modules/bluebird/js/release/async.js +3 -48
- package/node_modules/npm/node_modules/bluebird/js/release/debuggability.js +102 -27
- package/node_modules/npm/node_modules/bluebird/js/release/join.js +4 -7
- package/node_modules/npm/node_modules/bluebird/js/release/map.js +10 -3
- package/node_modules/npm/node_modules/bluebird/js/release/promise.js +58 -28
- package/node_modules/npm/node_modules/bluebird/js/release/promise_array.js +1 -0
- package/node_modules/npm/node_modules/bluebird/js/release/reduce.js +16 -5
- package/node_modules/npm/node_modules/bluebird/js/release/settle.js +4 -0
- package/node_modules/npm/node_modules/bluebird/js/release/util.js +39 -7
- package/node_modules/npm/node_modules/bluebird/package.json +1 -1
- package/node_modules/npm/node_modules/cacache/CHANGELOG.md +4 -0
- package/node_modules/npm/node_modules/cacache/package.json +6 -7
- package/node_modules/npm/node_modules/combined-stream/lib/combined_stream.js +21 -2
- package/node_modules/npm/node_modules/combined-stream/package.json +1 -1
- package/node_modules/npm/node_modules/combined-stream/yarn.lock +17 -0
- package/node_modules/npm/node_modules/concat-stream/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/concat-stream/node_modules/readable-stream/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/concat-stream/node_modules/readable-stream/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/concat-stream/node_modules/readable-stream/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/concat-stream/node_modules/readable-stream/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/concat-stream/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/concat-stream/node_modules/string_decoder/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/concat-stream/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/concat-stream/node_modules/string_decoder/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/concat-stream/node_modules/string_decoder/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/config-chain/package.json +5 -7
- package/node_modules/npm/node_modules/decode-uri-component/index.js +4 -4
- package/node_modules/npm/node_modules/decode-uri-component/license +4 -16
- package/node_modules/npm/node_modules/decode-uri-component/package.json +35 -35
- package/node_modules/npm/node_modules/decode-uri-component/readme.md +14 -1
- package/node_modules/npm/node_modules/dezalgo/package.json +12 -8
- package/node_modules/npm/node_modules/duplexify/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/duplexify/node_modules/readable-stream/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/duplexify/node_modules/readable-stream/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/duplexify/node_modules/readable-stream/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/duplexify/node_modules/readable-stream/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/duplexify/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/duplexify/node_modules/string_decoder/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/duplexify/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/duplexify/node_modules/string_decoder/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/duplexify/node_modules/string_decoder/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/env-paths/index.d.ts +32 -0
- package/node_modules/npm/node_modules/env-paths/package.json +1 -1
- package/node_modules/npm/node_modules/env-paths/readme.md +44 -5
- package/node_modules/npm/node_modules/figgy-pudding/CHANGELOG.md +38 -33
- package/node_modules/npm/node_modules/figgy-pudding/README.md +10 -2
- package/node_modules/npm/node_modules/figgy-pudding/package.json +4 -8
- package/node_modules/npm/node_modules/filter-obj/index.js +17 -0
- package/node_modules/npm/node_modules/filter-obj/license +21 -0
- package/node_modules/npm/node_modules/filter-obj/package.json +37 -0
- package/node_modules/npm/node_modules/filter-obj/readme.md +41 -0
- package/node_modules/npm/node_modules/flush-write-stream/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/flush-write-stream/node_modules/readable-stream/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/flush-write-stream/node_modules/readable-stream/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/flush-write-stream/node_modules/readable-stream/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/flush-write-stream/node_modules/readable-stream/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/flush-write-stream/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/flush-write-stream/node_modules/string_decoder/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/flush-write-stream/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/flush-write-stream/node_modules/string_decoder/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/flush-write-stream/node_modules/string_decoder/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/form-data/README.md +4 -4
- package/node_modules/npm/node_modules/form-data/package.json +2 -2
- package/node_modules/npm/node_modules/form-data/yarn.lock +2662 -0
- package/node_modules/npm/node_modules/from2/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/from2/node_modules/readable-stream/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/from2/node_modules/readable-stream/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/from2/node_modules/readable-stream/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/from2/node_modules/readable-stream/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/from2/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/from2/node_modules/string_decoder/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/from2/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/from2/node_modules/string_decoder/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/from2/node_modules/string_decoder/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/readable-stream/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/readable-stream/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/readable-stream/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/readable-stream/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/string_decoder/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/string_decoder/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/string_decoder/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/glob/README.md +4 -1
- package/node_modules/npm/node_modules/glob/common.js +6 -8
- package/node_modules/npm/node_modules/glob/glob.js +8 -8
- package/node_modules/npm/node_modules/glob/node_modules/minimatch/LICENSE +15 -0
- package/node_modules/npm/node_modules/glob/node_modules/minimatch/README.md +230 -0
- package/node_modules/npm/node_modules/glob/node_modules/minimatch/minimatch.js +947 -0
- package/node_modules/npm/node_modules/glob/node_modules/minimatch/package.json +33 -0
- package/node_modules/npm/node_modules/glob/package.json +13 -4
- package/node_modules/npm/node_modules/glob/sync.js +10 -10
- package/node_modules/npm/node_modules/graceful-fs/LICENSE +1 -1
- package/node_modules/npm/node_modules/graceful-fs/README.md +11 -1
- package/node_modules/npm/node_modules/graceful-fs/clone.js +5 -1
- package/node_modules/npm/node_modules/graceful-fs/graceful-fs.js +132 -38
- package/node_modules/npm/node_modules/graceful-fs/package.json +4 -4
- package/node_modules/npm/node_modules/graceful-fs/polyfills.js +48 -35
- package/node_modules/npm/node_modules/is-cidr/README.md +6 -10
- package/node_modules/npm/node_modules/is-cidr/index.d.ts +31 -0
- package/node_modules/npm/node_modules/is-cidr/index.js +1 -0
- package/node_modules/npm/node_modules/is-cidr/package.json +12 -6
- package/node_modules/npm/node_modules/json-parse-even-better-errors/CHANGELOG.md +50 -0
- package/node_modules/npm/node_modules/json-parse-even-better-errors/LICENSE.md +25 -0
- package/node_modules/npm/node_modules/json-parse-even-better-errors/README.md +96 -0
- package/node_modules/npm/node_modules/json-parse-even-better-errors/index.js +121 -0
- package/node_modules/npm/node_modules/json-parse-even-better-errors/package.json +33 -0
- package/node_modules/npm/node_modules/lock-verify/README.md +8 -0
- package/node_modules/npm/node_modules/lock-verify/cli.js +17 -0
- package/node_modules/npm/node_modules/lock-verify/package.json +8 -12
- package/node_modules/npm/node_modules/meant/CHANGELOG.md +7 -0
- package/node_modules/npm/node_modules/meant/package.json +4 -1
- package/node_modules/npm/node_modules/minimatch/README.md +22 -1
- package/node_modules/npm/node_modules/minimatch/minimatch.js +93 -69
- package/node_modules/npm/node_modules/minimatch/package.json +6 -3
- package/node_modules/npm/node_modules/mkdirp/index.js +5 -2
- package/node_modules/npm/node_modules/mkdirp/package.json +3 -4
- package/node_modules/npm/node_modules/node-gyp/.github/ISSUE_TEMPLATE.md +27 -5
- package/node_modules/npm/node_modules/node-gyp/.github/workflows/Python_tests.yml +1 -1
- package/node_modules/npm/node_modules/node-gyp/CHANGELOG.md +14 -0
- package/node_modules/npm/node_modules/node-gyp/CONTRIBUTING.md +1 -1
- package/node_modules/npm/node_modules/node-gyp/README.md +3 -3
- package/node_modules/npm/node_modules/node-gyp/addon.gypi +22 -1
- package/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js +2 -3
- package/node_modules/npm/node_modules/node-gyp/macOS_Catalina.md +14 -12
- package/node_modules/npm/node_modules/node-gyp/package.json +1 -1
- package/node_modules/npm/node_modules/parallel-transform/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/parallel-transform/node_modules/readable-stream/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/parallel-transform/node_modules/readable-stream/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/parallel-transform/node_modules/readable-stream/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/parallel-transform/node_modules/readable-stream/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/parallel-transform/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/parallel-transform/node_modules/string_decoder/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/parallel-transform/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/parallel-transform/node_modules/string_decoder/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/parallel-transform/node_modules/string_decoder/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/psl/.env +0 -0
- package/node_modules/npm/node_modules/psl/LICENSE +9 -0
- package/node_modules/npm/node_modules/psl/README.md +4 -6
- package/node_modules/npm/node_modules/psl/browserstack-logo.svg +90 -0
- package/node_modules/npm/node_modules/psl/data/rules.json +9376 -1
- package/node_modules/npm/node_modules/psl/dist/psl.js +9378 -3
- package/node_modules/npm/node_modules/psl/dist/psl.min.js +1 -1
- package/node_modules/npm/node_modules/psl/package.json +24 -23
- package/node_modules/npm/node_modules/qs/.editorconfig +14 -1
- package/node_modules/npm/node_modules/qs/.eslintrc +21 -3
- package/node_modules/npm/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/npm/node_modules/qs/.nycrc +13 -0
- package/node_modules/npm/node_modules/qs/CHANGELOG.md +24 -0
- package/node_modules/npm/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/npm/node_modules/qs/README.md +54 -19
- package/node_modules/npm/node_modules/qs/bower.json +21 -0
- package/node_modules/npm/node_modules/qs/component.json +15 -0
- package/node_modules/npm/node_modules/qs/dist/qs.js +35 -25
- package/node_modules/npm/node_modules/qs/lib/formats.js +1 -1
- package/node_modules/npm/node_modules/qs/lib/parse.js +6 -5
- package/node_modules/npm/node_modules/qs/lib/stringify.js +21 -14
- package/node_modules/npm/node_modules/qs/lib/utils.js +7 -5
- package/node_modules/npm/node_modules/qs/package.json +18 -16
- package/node_modules/npm/node_modules/qs/test/parse.js +79 -4
- package/node_modules/npm/node_modules/qs/test/stringify.js +45 -0
- package/node_modules/npm/node_modules/qs/test/utils.js +31 -0
- package/node_modules/npm/node_modules/query-string/index.d.ts +290 -9
- package/node_modules/npm/node_modules/query-string/index.js +154 -28
- package/node_modules/npm/node_modules/query-string/license +1 -1
- package/node_modules/npm/node_modules/query-string/package.json +9 -4
- package/node_modules/npm/node_modules/query-string/readme.md +275 -26
- package/node_modules/npm/node_modules/qw/LICENSE +0 -0
- package/node_modules/npm/node_modules/qw/README.md +0 -0
- package/node_modules/npm/node_modules/qw/package.json +1 -1
- package/node_modules/npm/node_modules/qw/qw.js +1 -0
- package/node_modules/npm/node_modules/read-package-json/CHANGELOG.md +10 -0
- package/node_modules/npm/node_modules/read-package-json/package.json +3 -6
- package/node_modules/npm/node_modules/read-package-json/read-json.js +2 -7
- package/node_modules/npm/node_modules/request/CHANGELOG.md +8 -0
- package/node_modules/npm/node_modules/request/README.md +81 -45
- package/node_modules/npm/node_modules/request/index.js +1 -1
- package/node_modules/npm/node_modules/request/lib/auth.js +1 -1
- package/node_modules/npm/node_modules/request/lib/getProxyFromURI.js +1 -1
- package/node_modules/npm/node_modules/request/lib/har.js +1 -1
- package/node_modules/npm/node_modules/request/package.json +6 -6
- package/node_modules/npm/node_modules/request/request.js +13 -11
- package/node_modules/npm/node_modules/safe-buffer/index.js +3 -0
- package/node_modules/npm/node_modules/safe-buffer/package.json +18 -4
- package/node_modules/npm/node_modules/sshpk/Jenkinsfile +86 -0
- package/node_modules/npm/node_modules/sshpk/README.md +116 -10
- package/node_modules/npm/node_modules/sshpk/bin/sshpk-conv +73 -32
- package/node_modules/npm/node_modules/sshpk/lib/certificate.js +33 -1
- package/node_modules/npm/node_modules/sshpk/lib/dhe.js +4 -21
- package/node_modules/npm/node_modules/sshpk/lib/ed-compat.js +1 -7
- package/node_modules/npm/node_modules/sshpk/lib/fingerprint.js +69 -11
- package/node_modules/npm/node_modules/sshpk/lib/formats/auto.js +18 -1
- package/node_modules/npm/node_modules/sshpk/lib/formats/openssh-cert.js +37 -8
- package/node_modules/npm/node_modules/sshpk/lib/formats/pem.js +107 -9
- package/node_modules/npm/node_modules/sshpk/lib/formats/pkcs8.js +23 -4
- package/node_modules/npm/node_modules/sshpk/lib/formats/putty.js +194 -0
- package/node_modules/npm/node_modules/sshpk/lib/formats/x509-pem.js +14 -4
- package/node_modules/npm/node_modules/sshpk/lib/formats/x509.js +28 -5
- package/node_modules/npm/node_modules/sshpk/lib/identity.js +87 -3
- package/node_modules/npm/node_modules/sshpk/lib/index.js +1 -0
- package/node_modules/npm/node_modules/sshpk/lib/key.js +30 -11
- package/node_modules/npm/node_modules/sshpk/lib/private-key.js +11 -17
- package/node_modules/npm/node_modules/sshpk/lib/utils.js +48 -33
- package/node_modules/npm/node_modules/sshpk/package.json +5 -5
- package/node_modules/npm/node_modules/stream-iterate/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/stream-iterate/node_modules/readable-stream/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/stream-iterate/node_modules/readable-stream/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/stream-iterate/node_modules/readable-stream/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/stream-iterate/node_modules/readable-stream/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/stream-iterate/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/stream-iterate/node_modules/string_decoder/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/stream-iterate/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/stream-iterate/node_modules/string_decoder/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/stream-iterate/node_modules/string_decoder/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/through2/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/through2/node_modules/readable-stream/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/through2/node_modules/readable-stream/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/through2/node_modules/readable-stream/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/through2/node_modules/readable-stream/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/through2/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/through2/node_modules/string_decoder/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/through2/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/through2/node_modules/string_decoder/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/npm/node_modules/through2/node_modules/string_decoder/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/npm/node_modules/tough-cookie/README.md +24 -4
- package/node_modules/npm/node_modules/tough-cookie/lib/cookie.js +54 -3
- package/node_modules/npm/node_modules/tough-cookie/lib/memstore.js +5 -0
- package/node_modules/npm/node_modules/tough-cookie/lib/store.js +4 -0
- package/node_modules/npm/node_modules/tough-cookie/lib/version.js +2 -0
- package/node_modules/npm/node_modules/{punycode → tough-cookie/node_modules/punycode}/LICENSE-MIT.txt +0 -0
- package/node_modules/npm/node_modules/{punycode → tough-cookie/node_modules/punycode}/README.md +9 -63
- package/node_modules/npm/node_modules/tough-cookie/node_modules/punycode/package.json +58 -0
- package/node_modules/npm/node_modules/tough-cookie/node_modules/punycode/punycode.es6.js +441 -0
- package/node_modules/npm/node_modules/tough-cookie/node_modules/punycode/punycode.js +440 -0
- package/node_modules/npm/node_modules/tough-cookie/package.json +6 -4
- package/node_modules/npm/node_modules/uri-js/README.md +3 -1
- package/node_modules/npm/node_modules/uri-js/dist/es5/uri.all.js +1 -1
- package/node_modules/npm/node_modules/uri-js/dist/es5/uri.all.min.js +1 -1
- package/node_modules/npm/node_modules/uri-js/package.json +2 -2
- package/node_modules/npm/node_modules/uri-js/yarn.lock +1263 -628
- package/node_modules/npm/node_modules/uuid/CHANGELOG.md +25 -18
- package/node_modules/npm/node_modules/uuid/README.md +27 -44
- package/node_modules/npm/node_modules/uuid/lib/bytesToUuid.js +10 -8
- package/node_modules/npm/node_modules/uuid/package.json +13 -8
- package/node_modules/npm/node_modules/uuid/v1.js +1 -1
- package/node_modules/npm/package.json +27 -23
- package/node_modules/npm/scripts/docs-build.js +15 -3
- package/node_modules/object-inspect/CHANGELOG.md +10 -0
- package/node_modules/object-inspect/index.js +10 -6
- package/node_modules/object-inspect/package.json +10 -7
- package/node_modules/punycode/README.md +7 -3
- package/node_modules/punycode/package.json +5 -5
- package/node_modules/punycode/punycode.es6.js +24 -21
- package/node_modules/punycode/punycode.js +24 -21
- package/package.json +1 -1
- package/node_modules/npm/.eslintrc +0 -3
- package/node_modules/npm/docs/content/using-npm/disputes.md +0 -137
- package/node_modules/npm/docs/gatsby-browser.js +0 -8
- package/node_modules/npm/docs/gatsby-config.js +0 -88
- package/node_modules/npm/docs/gatsby-node.js +0 -43
- package/node_modules/npm/docs/gatsby-ssr.js +0 -6
- package/node_modules/npm/docs/package-lock.json +0 -18301
- package/node_modules/npm/docs/package.json +0 -45
- package/node_modules/npm/docs/public/cli-commands/npm/index.html +0 -213
- package/node_modules/npm/docs/public/cli-commands/npm-access/index.html +0 -151
- package/node_modules/npm/docs/public/cli-commands/npm-adduser/index.html +0 -146
- package/node_modules/npm/docs/public/cli-commands/npm-audit/index.html +0 -168
- package/node_modules/npm/docs/public/cli-commands/npm-bin/index.html +0 -97
- package/node_modules/npm/docs/public/cli-commands/npm-bugs/index.html +0 -117
- package/node_modules/npm/docs/public/cli-commands/npm-build/index.html +0 -103
- package/node_modules/npm/docs/public/cli-commands/npm-bundle/index.html +0 -94
- package/node_modules/npm/docs/public/cli-commands/npm-cache/index.html +0 -148
- package/node_modules/npm/docs/public/cli-commands/npm-ci/index.html +0 -125
- package/node_modules/npm/docs/public/cli-commands/npm-completion/index.html +0 -107
- package/node_modules/npm/docs/public/cli-commands/npm-config/index.html +0 -131
- package/node_modules/npm/docs/public/cli-commands/npm-dedupe/index.html +0 -124
- package/node_modules/npm/docs/public/cli-commands/npm-deprecate/index.html +0 -103
- package/node_modules/npm/docs/public/cli-commands/npm-dist-tag/index.html +0 -152
- package/node_modules/npm/docs/public/cli-commands/npm-docs/index.html +0 -118
- package/node_modules/npm/docs/public/cli-commands/npm-doctor/index.html +0 -166
- package/node_modules/npm/docs/public/cli-commands/npm-edit/index.html +0 -113
- package/node_modules/npm/docs/public/cli-commands/npm-explore/index.html +0 -117
- package/node_modules/npm/docs/public/cli-commands/npm-fund/index.html +0 -131
- package/node_modules/npm/docs/public/cli-commands/npm-help/index.html +0 -110
- package/node_modules/npm/docs/public/cli-commands/npm-help-search/index.html +0 -108
- package/node_modules/npm/docs/public/cli-commands/npm-hook/index.html +0 -122
- package/node_modules/npm/docs/public/cli-commands/npm-init/index.html +0 -129
- package/node_modules/npm/docs/public/cli-commands/npm-install/index.html +0 -471
- package/node_modules/npm/docs/public/cli-commands/npm-install-ci-test/index.html +0 -96
- package/node_modules/npm/docs/public/cli-commands/npm-install-test/index.html +0 -105
- package/node_modules/npm/docs/public/cli-commands/npm-link/index.html +0 -137
- package/node_modules/npm/docs/public/cli-commands/npm-logout/index.html +0 -112
- package/node_modules/npm/docs/public/cli-commands/npm-ls/index.html +0 -179
- package/node_modules/npm/docs/public/cli-commands/npm-org/index.html +0 -110
- package/node_modules/npm/docs/public/cli-commands/npm-outdated/index.html +0 -181
- package/node_modules/npm/docs/public/cli-commands/npm-owner/index.html +0 -117
- package/node_modules/npm/docs/public/cli-commands/npm-pack/index.html +0 -105
- package/node_modules/npm/docs/public/cli-commands/npm-ping/index.html +0 -98
- package/node_modules/npm/docs/public/cli-commands/npm-prefix/index.html +0 -101
- package/node_modules/npm/docs/public/cli-commands/npm-profile/index.html +0 -151
- package/node_modules/npm/docs/public/cli-commands/npm-prune/index.html +0 -111
- package/node_modules/npm/docs/public/cli-commands/npm-publish/index.html +0 -143
- package/node_modules/npm/docs/public/cli-commands/npm-rebuild/index.html +0 -96
- package/node_modules/npm/docs/public/cli-commands/npm-repo/index.html +0 -104
- package/node_modules/npm/docs/public/cli-commands/npm-restart/index.html +0 -116
- package/node_modules/npm/docs/public/cli-commands/npm-root/index.html +0 -97
- package/node_modules/npm/docs/public/cli-commands/npm-run-script/index.html +0 -146
- package/node_modules/npm/docs/public/cli-commands/npm-search/index.html +0 -171
- package/node_modules/npm/docs/public/cli-commands/npm-shrinkwrap/index.html +0 -104
- package/node_modules/npm/docs/public/cli-commands/npm-star/index.html +0 -99
- package/node_modules/npm/docs/public/cli-commands/npm-stars/index.html +0 -99
- package/node_modules/npm/docs/public/cli-commands/npm-start/index.html +0 -101
- package/node_modules/npm/docs/public/cli-commands/npm-stop/index.html +0 -97
- package/node_modules/npm/docs/public/cli-commands/npm-team/index.html +0 -128
- package/node_modules/npm/docs/public/cli-commands/npm-test/index.html +0 -99
- package/node_modules/npm/docs/public/cli-commands/npm-token/index.html +0 -136
- package/node_modules/npm/docs/public/cli-commands/npm-uninstall/index.html +0 -121
- package/node_modules/npm/docs/public/cli-commands/npm-unpublish/index.html +0 -109
- package/node_modules/npm/docs/public/cli-commands/npm-update/index.html +0 -170
- package/node_modules/npm/docs/public/cli-commands/npm-version/index.html +0 -183
- package/node_modules/npm/docs/public/cli-commands/npm-view/index.html +0 -148
- package/node_modules/npm/docs/public/cli-commands/npm-whoami/index.html +0 -95
- package/node_modules/npm/docs/public/configuring-npm/folders/index.html +0 -243
- package/node_modules/npm/docs/public/configuring-npm/install/index.html +0 -126
- package/node_modules/npm/docs/public/configuring-npm/npmrc/index.html +0 -148
- package/node_modules/npm/docs/public/configuring-npm/package-json/index.html +0 -714
- package/node_modules/npm/docs/public/configuring-npm/package-lock-json/index.html +0 -189
- package/node_modules/npm/docs/public/configuring-npm/package-locks/index.html +0 -217
- package/node_modules/npm/docs/public/configuring-npm/shrinkwrap-json/index.html +0 -105
- package/node_modules/npm/docs/public/icons/icon-144x144.png +0 -0
- package/node_modules/npm/docs/public/icons/icon-192x192.png +0 -0
- package/node_modules/npm/docs/public/icons/icon-256x256.png +0 -0
- package/node_modules/npm/docs/public/icons/icon-384x384.png +0 -0
- package/node_modules/npm/docs/public/icons/icon-48x48.png +0 -0
- package/node_modules/npm/docs/public/icons/icon-512x512.png +0 -0
- package/node_modules/npm/docs/public/icons/icon-72x72.png +0 -0
- package/node_modules/npm/docs/public/icons/icon-96x96.png +0 -0
- package/node_modules/npm/docs/public/index.html +0 -131
- package/node_modules/npm/docs/public/static/d/2215187023.json +0 -1
- package/node_modules/npm/docs/public/static/d/2417117884.json +0 -1
- package/node_modules/npm/docs/public/static/network-icon-f659855f70bb0e12addd96250807c241.svg +0 -1
- package/node_modules/npm/docs/public/styles.e93b5499b63484750fba.css +0 -1
- package/node_modules/npm/docs/public/using-npm/config/index.html +0 -1164
- package/node_modules/npm/docs/public/using-npm/developers/index.html +0 -262
- package/node_modules/npm/docs/public/using-npm/disputes/index.html +0 -195
- package/node_modules/npm/docs/public/using-npm/orgs/index.html +0 -147
- package/node_modules/npm/docs/public/using-npm/registry/index.html +0 -159
- package/node_modules/npm/docs/public/using-npm/removal/index.html +0 -119
- package/node_modules/npm/docs/public/using-npm/scope/index.html +0 -162
- package/node_modules/npm/docs/public/using-npm/scripts/index.html +0 -326
- package/node_modules/npm/docs/public/using-npm/semver/index.html +0 -438
- package/node_modules/npm/docs/src/components/Accordion.js +0 -57
- package/node_modules/npm/docs/src/components/Button.js +0 -22
- package/node_modules/npm/docs/src/components/DocLinks.js +0 -72
- package/node_modules/npm/docs/src/components/FoundTypo.js +0 -23
- package/node_modules/npm/docs/src/components/MobileSidebar.js +0 -33
- package/node_modules/npm/docs/src/components/Sidebar.js +0 -30
- package/node_modules/npm/docs/src/components/home/DarkBlock.js +0 -40
- package/node_modules/npm/docs/src/components/home/FeatureCard.js +0 -39
- package/node_modules/npm/docs/src/components/home/Features.js +0 -83
- package/node_modules/npm/docs/src/components/home/Footer.js +0 -29
- package/node_modules/npm/docs/src/components/home/Terminal.js +0 -120
- package/node_modules/npm/docs/src/components/home/Windows.js +0 -73
- package/node_modules/npm/docs/src/components/home/cubes.js +0 -101
- package/node_modules/npm/docs/src/components/home/hero.js +0 -25
- package/node_modules/npm/docs/src/components/layout.js +0 -24
- package/node_modules/npm/docs/src/components/links.js +0 -50
- package/node_modules/npm/docs/src/components/navbar.js +0 -136
- package/node_modules/npm/docs/src/components/scripts.js +0 -27
- package/node_modules/npm/docs/src/components/seo.js +0 -88
- package/node_modules/npm/docs/src/images/background-boxes.svg +0 -2782
- package/node_modules/npm/docs/src/images/background-cubes.svg +0 -2767
- package/node_modules/npm/docs/src/images/background-rectangles.svg +0 -1
- package/node_modules/npm/docs/src/images/bracket.svg +0 -1
- package/node_modules/npm/docs/src/images/cli-logo.svg +0 -1
- package/node_modules/npm/docs/src/images/down-carrot.svg +0 -1
- package/node_modules/npm/docs/src/images/hamburger-close.svg +0 -1
- package/node_modules/npm/docs/src/images/hamburger.svg +0 -1
- package/node_modules/npm/docs/src/images/manager-icon.svg +0 -1
- package/node_modules/npm/docs/src/images/network-icon.svg +0 -1
- package/node_modules/npm/docs/src/images/npm-icon.png +0 -0
- package/node_modules/npm/docs/src/images/orange-cube.svg +0 -1
- package/node_modules/npm/docs/src/images/pink-gradient-cube.svg +0 -1
- package/node_modules/npm/docs/src/images/purple-cube.svg +0 -1
- package/node_modules/npm/docs/src/images/purple-gradient-cube.svg +0 -1
- package/node_modules/npm/docs/src/images/red-cube.svg +0 -1
- package/node_modules/npm/docs/src/images/right-shadow-box.svg +0 -2809
- package/node_modules/npm/docs/src/images/terminal-icon.svg +0 -1
- package/node_modules/npm/docs/src/images/test-icon.svg +0 -1
- package/node_modules/npm/docs/src/images/up-carrot.svg +0 -1
- package/node_modules/npm/docs/src/images/x.svg +0 -1
- package/node_modules/npm/docs/src/main.css +0 -167
- package/node_modules/npm/docs/src/pages/404.js +0 -12
- package/node_modules/npm/docs/src/pages/index.js +0 -16
- package/node_modules/npm/docs/src/templates/Page.js +0 -40
- package/node_modules/npm/docs/src/theme.js +0 -50
- package/node_modules/npm/man/man7/disputes.7 +0 -149
- package/node_modules/npm/node_modules/balanced-match/.npmignore +0 -5
- package/node_modules/npm/node_modules/combined-stream/lib/defer.js +0 -26
- package/node_modules/npm/node_modules/dezalgo/.travis.yml +0 -7
- package/node_modules/npm/node_modules/dezalgo/test/basic.js +0 -29
- package/node_modules/npm/node_modules/glob/changelog.md +0 -67
- package/node_modules/npm/node_modules/meant/.github/workflows/ci.yml +0 -20
- package/node_modules/npm/node_modules/meant/test.js +0 -11
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/.travis.yml +0 -8
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/LICENSE +0 -18
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/example/parse.js +0 -2
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/index.js +0 -249
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/package.json +0 -45
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/readme.markdown +0 -98
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/all_bool.js +0 -32
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/bool.js +0 -178
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/dash.js +0 -31
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/default_bool.js +0 -35
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/dotted.js +0 -22
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/kv_short.js +0 -16
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/long.js +0 -31
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/num.js +0 -36
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/parse.js +0 -197
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/parse_modified.js +0 -9
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/proto.js +0 -60
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/short.js +0 -67
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/stop_early.js +0 -15
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/unknown.js +0 -102
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/whitespace.js +0 -8
- package/node_modules/npm/node_modules/psl/.eslintignore +0 -1
- package/node_modules/npm/node_modules/psl/.eslintrc +0 -11
- package/node_modules/npm/node_modules/psl/.travis.yml +0 -6
- package/node_modules/npm/node_modules/psl/karma.conf.js +0 -38
- package/node_modules/npm/node_modules/psl/yarn.lock +0 -4532
- package/node_modules/npm/node_modules/punycode/package.json +0 -60
- package/node_modules/npm/node_modules/punycode/punycode.js +0 -533
- package/node_modules/npm/node_modules/qs/.eslintignore +0 -1
- package/node_modules/npm/node_modules/qs/LICENSE +0 -28
- package/node_modules/npm/node_modules/qs/test/.eslintrc +0 -15
- package/node_modules/npm/node_modules/qw/README.md~ +0 -27
- package/node_modules/npm/node_modules/sshpk/.npmignore +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2018 Joyent, Inc.
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
read: read,
|
|
@@ -15,6 +15,7 @@ var pem = require('./pem');
|
|
|
15
15
|
var ssh = require('./ssh');
|
|
16
16
|
var rfc4253 = require('./rfc4253');
|
|
17
17
|
var dnssec = require('./dnssec');
|
|
18
|
+
var putty = require('./putty');
|
|
18
19
|
|
|
19
20
|
var DNSSEC_PRIVKEY_HEADER_PREFIX = 'Private-key-format: v1';
|
|
20
21
|
|
|
@@ -26,6 +27,8 @@ function read(buf, options) {
|
|
|
26
27
|
return (ssh.read(buf, options));
|
|
27
28
|
if (buf.match(/^\s*ecdsa-/))
|
|
28
29
|
return (ssh.read(buf, options));
|
|
30
|
+
if (buf.match(/^putty-user-key-file-2:/i))
|
|
31
|
+
return (putty.read(buf, options));
|
|
29
32
|
if (findDNSSECHeader(buf))
|
|
30
33
|
return (dnssec.read(buf, options));
|
|
31
34
|
buf = Buffer.from(buf, 'binary');
|
|
@@ -35,6 +38,8 @@ function read(buf, options) {
|
|
|
35
38
|
return (pem.read(buf, options));
|
|
36
39
|
if (findSSHHeader(buf))
|
|
37
40
|
return (ssh.read(buf, options));
|
|
41
|
+
if (findPuTTYHeader(buf))
|
|
42
|
+
return (putty.read(buf, options));
|
|
38
43
|
if (findDNSSECHeader(buf))
|
|
39
44
|
return (dnssec.read(buf, options));
|
|
40
45
|
}
|
|
@@ -43,6 +48,18 @@ function read(buf, options) {
|
|
|
43
48
|
throw (new Error('Failed to auto-detect format of key'));
|
|
44
49
|
}
|
|
45
50
|
|
|
51
|
+
function findPuTTYHeader(buf) {
|
|
52
|
+
var offset = 0;
|
|
53
|
+
while (offset < buf.length &&
|
|
54
|
+
(buf[offset] === 32 || buf[offset] === 10 || buf[offset] === 9))
|
|
55
|
+
++offset;
|
|
56
|
+
if (offset + 22 <= buf.length &&
|
|
57
|
+
buf.slice(offset, offset + 22).toString('ascii').toLowerCase() ===
|
|
58
|
+
'putty-user-key-file-2:')
|
|
59
|
+
return (true);
|
|
60
|
+
return (false);
|
|
61
|
+
}
|
|
62
|
+
|
|
46
63
|
function findSSHHeader(buf) {
|
|
47
64
|
var offset = 0;
|
|
48
65
|
while (offset < buf.length &&
|
|
@@ -122,8 +122,23 @@ function fromBuffer(data, algo, partial) {
|
|
|
122
122
|
cert.validFrom = int64ToDate(sshbuf.readInt64());
|
|
123
123
|
cert.validUntil = int64ToDate(sshbuf.readInt64());
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
var exts = [];
|
|
126
|
+
var extbuf = new SSHBuffer({ buffer: sshbuf.readBuffer() });
|
|
127
|
+
var ext;
|
|
128
|
+
while (!extbuf.atEnd()) {
|
|
129
|
+
ext = { critical: true };
|
|
130
|
+
ext.name = extbuf.readString();
|
|
131
|
+
ext.data = extbuf.readBuffer();
|
|
132
|
+
exts.push(ext);
|
|
133
|
+
}
|
|
134
|
+
extbuf = new SSHBuffer({ buffer: sshbuf.readBuffer() });
|
|
135
|
+
while (!extbuf.atEnd()) {
|
|
136
|
+
ext = { critical: false };
|
|
137
|
+
ext.name = extbuf.readString();
|
|
138
|
+
ext.data = extbuf.readBuffer();
|
|
139
|
+
exts.push(ext);
|
|
140
|
+
}
|
|
141
|
+
cert.signatures.openssh.exts = exts;
|
|
127
142
|
|
|
128
143
|
/* reserved */
|
|
129
144
|
sshbuf.readBuffer();
|
|
@@ -278,13 +293,27 @@ function toBuffer(cert, noSig) {
|
|
|
278
293
|
buf.writeInt64(dateToInt64(cert.validFrom));
|
|
279
294
|
buf.writeInt64(dateToInt64(cert.validUntil));
|
|
280
295
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
296
|
+
var exts = sig.exts;
|
|
297
|
+
if (exts === undefined)
|
|
298
|
+
exts = [];
|
|
284
299
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
300
|
+
var extbuf = new SSHBuffer({});
|
|
301
|
+
exts.forEach(function (ext) {
|
|
302
|
+
if (ext.critical !== true)
|
|
303
|
+
return;
|
|
304
|
+
extbuf.writeString(ext.name);
|
|
305
|
+
extbuf.writeBuffer(ext.data);
|
|
306
|
+
});
|
|
307
|
+
buf.writeBuffer(extbuf.toBuffer());
|
|
308
|
+
|
|
309
|
+
extbuf = new SSHBuffer({});
|
|
310
|
+
exts.forEach(function (ext) {
|
|
311
|
+
if (ext.critical === true)
|
|
312
|
+
return;
|
|
313
|
+
extbuf.writeString(ext.name);
|
|
314
|
+
extbuf.writeBuffer(ext.data);
|
|
315
|
+
});
|
|
316
|
+
buf.writeBuffer(extbuf.toBuffer());
|
|
288
317
|
|
|
289
318
|
/* reserved */
|
|
290
319
|
buf.writeBuffer(Buffer.alloc(0));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2018 Joyent, Inc.
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
read: read,
|
|
@@ -21,6 +21,29 @@ var rfc4253 = require('./rfc4253');
|
|
|
21
21
|
|
|
22
22
|
var errors = require('../errors');
|
|
23
23
|
|
|
24
|
+
var OID_PBES2 = '1.2.840.113549.1.5.13';
|
|
25
|
+
var OID_PBKDF2 = '1.2.840.113549.1.5.12';
|
|
26
|
+
|
|
27
|
+
var OID_TO_CIPHER = {
|
|
28
|
+
'1.2.840.113549.3.7': '3des-cbc',
|
|
29
|
+
'2.16.840.1.101.3.4.1.2': 'aes128-cbc',
|
|
30
|
+
'2.16.840.1.101.3.4.1.42': 'aes256-cbc'
|
|
31
|
+
};
|
|
32
|
+
var CIPHER_TO_OID = {};
|
|
33
|
+
Object.keys(OID_TO_CIPHER).forEach(function (k) {
|
|
34
|
+
CIPHER_TO_OID[OID_TO_CIPHER[k]] = k;
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
var OID_TO_HASH = {
|
|
38
|
+
'1.2.840.113549.2.7': 'sha1',
|
|
39
|
+
'1.2.840.113549.2.9': 'sha256',
|
|
40
|
+
'1.2.840.113549.2.11': 'sha512'
|
|
41
|
+
};
|
|
42
|
+
var HASH_TO_OID = {};
|
|
43
|
+
Object.keys(OID_TO_HASH).forEach(function (k) {
|
|
44
|
+
HASH_TO_OID[OID_TO_HASH[k]] = k;
|
|
45
|
+
});
|
|
46
|
+
|
|
24
47
|
/*
|
|
25
48
|
* For reading we support both PKCS#1 and PKCS#8. If we find a private key,
|
|
26
49
|
* we just take the public component of it and use that.
|
|
@@ -32,14 +55,22 @@ function read(buf, options, forceType) {
|
|
|
32
55
|
buf = buf.toString('ascii');
|
|
33
56
|
}
|
|
34
57
|
|
|
35
|
-
var lines = buf.trim().split(
|
|
58
|
+
var lines = buf.trim().split(/[\r\n]+/g);
|
|
36
59
|
|
|
37
|
-
var m
|
|
38
|
-
|
|
60
|
+
var m;
|
|
61
|
+
var si = -1;
|
|
62
|
+
while (!m && si < lines.length) {
|
|
63
|
+
m = lines[++si].match(/*JSSTYLED*/
|
|
64
|
+
/[-]+[ ]*BEGIN ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);
|
|
65
|
+
}
|
|
39
66
|
assert.ok(m, 'invalid PEM header');
|
|
40
67
|
|
|
41
|
-
var m2
|
|
42
|
-
|
|
68
|
+
var m2;
|
|
69
|
+
var ei = lines.length;
|
|
70
|
+
while (!m2 && ei > 0) {
|
|
71
|
+
m2 = lines[--ei].match(/*JSSTYLED*/
|
|
72
|
+
/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);
|
|
73
|
+
}
|
|
43
74
|
assert.ok(m2, 'invalid PEM footer');
|
|
44
75
|
|
|
45
76
|
/* Begin and end banners must match key type */
|
|
@@ -53,6 +84,8 @@ function read(buf, options, forceType) {
|
|
|
53
84
|
alg = m[1].trim();
|
|
54
85
|
}
|
|
55
86
|
|
|
87
|
+
lines = lines.slice(si, ei + 1);
|
|
88
|
+
|
|
56
89
|
var headers = {};
|
|
57
90
|
while (true) {
|
|
58
91
|
lines = lines.slice(1);
|
|
@@ -63,6 +96,10 @@ function read(buf, options, forceType) {
|
|
|
63
96
|
headers[m[1].toLowerCase()] = m[2];
|
|
64
97
|
}
|
|
65
98
|
|
|
99
|
+
/* Chop off the first and last lines */
|
|
100
|
+
lines = lines.slice(0, -1).join('');
|
|
101
|
+
buf = Buffer.from(lines, 'base64');
|
|
102
|
+
|
|
66
103
|
var cipher, key, iv;
|
|
67
104
|
if (headers['proc-type']) {
|
|
68
105
|
var parts = headers['proc-type'].split(',');
|
|
@@ -85,9 +122,70 @@ function read(buf, options, forceType) {
|
|
|
85
122
|
}
|
|
86
123
|
}
|
|
87
124
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
125
|
+
if (alg && alg.toLowerCase() === 'encrypted') {
|
|
126
|
+
var eder = new asn1.BerReader(buf);
|
|
127
|
+
var pbesEnd;
|
|
128
|
+
eder.readSequence();
|
|
129
|
+
|
|
130
|
+
eder.readSequence();
|
|
131
|
+
pbesEnd = eder.offset + eder.length;
|
|
132
|
+
|
|
133
|
+
var method = eder.readOID();
|
|
134
|
+
if (method !== OID_PBES2) {
|
|
135
|
+
throw (new Error('Unsupported PEM/PKCS8 encryption ' +
|
|
136
|
+
'scheme: ' + method));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
eder.readSequence(); /* PBES2-params */
|
|
140
|
+
|
|
141
|
+
eder.readSequence(); /* keyDerivationFunc */
|
|
142
|
+
var kdfEnd = eder.offset + eder.length;
|
|
143
|
+
var kdfOid = eder.readOID();
|
|
144
|
+
if (kdfOid !== OID_PBKDF2)
|
|
145
|
+
throw (new Error('Unsupported PBES2 KDF: ' + kdfOid));
|
|
146
|
+
eder.readSequence();
|
|
147
|
+
var salt = eder.readString(asn1.Ber.OctetString, true);
|
|
148
|
+
var iterations = eder.readInt();
|
|
149
|
+
var hashAlg = 'sha1';
|
|
150
|
+
if (eder.offset < kdfEnd) {
|
|
151
|
+
eder.readSequence();
|
|
152
|
+
var hashAlgOid = eder.readOID();
|
|
153
|
+
hashAlg = OID_TO_HASH[hashAlgOid];
|
|
154
|
+
if (hashAlg === undefined) {
|
|
155
|
+
throw (new Error('Unsupported PBKDF2 hash: ' +
|
|
156
|
+
hashAlgOid));
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
eder._offset = kdfEnd;
|
|
160
|
+
|
|
161
|
+
eder.readSequence(); /* encryptionScheme */
|
|
162
|
+
var cipherOid = eder.readOID();
|
|
163
|
+
cipher = OID_TO_CIPHER[cipherOid];
|
|
164
|
+
if (cipher === undefined) {
|
|
165
|
+
throw (new Error('Unsupported PBES2 cipher: ' +
|
|
166
|
+
cipherOid));
|
|
167
|
+
}
|
|
168
|
+
iv = eder.readString(asn1.Ber.OctetString, true);
|
|
169
|
+
|
|
170
|
+
eder._offset = pbesEnd;
|
|
171
|
+
buf = eder.readString(asn1.Ber.OctetString, true);
|
|
172
|
+
|
|
173
|
+
if (typeof (options.passphrase) === 'string') {
|
|
174
|
+
options.passphrase = Buffer.from(
|
|
175
|
+
options.passphrase, 'utf-8');
|
|
176
|
+
}
|
|
177
|
+
if (!Buffer.isBuffer(options.passphrase)) {
|
|
178
|
+
throw (new errors.KeyEncryptedError(
|
|
179
|
+
options.filename, 'PEM'));
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
var cinfo = utils.opensshCipherInfo(cipher);
|
|
183
|
+
|
|
184
|
+
cipher = cinfo.opensslName;
|
|
185
|
+
key = utils.pbkdf2(hashAlg, salt, iterations, cinfo.keySize,
|
|
186
|
+
options.passphrase);
|
|
187
|
+
alg = undefined;
|
|
188
|
+
}
|
|
91
189
|
|
|
92
190
|
if (cipher && key && iv) {
|
|
93
191
|
var cipherStream = crypto.createDecipheriv(cipher, key, iv);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2018 Joyent, Inc.
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
read: read,
|
|
5
5
|
readPkcs8: readPkcs8,
|
|
6
6
|
write: write,
|
|
7
7
|
writePkcs8: writePkcs8,
|
|
8
|
+
pkcs8ToBuffer: pkcs8ToBuffer,
|
|
8
9
|
|
|
9
10
|
readECDSACurve: readECDSACurve,
|
|
10
11
|
writeECDSACurve: writeECDSACurve
|
|
@@ -300,10 +301,22 @@ function readPkcs8ECDSAPrivate(der) {
|
|
|
300
301
|
assert.equal(version[0], 1, 'unknown version of ECDSA key');
|
|
301
302
|
|
|
302
303
|
var d = der.readString(asn1.Ber.OctetString, true);
|
|
303
|
-
|
|
304
|
+
var Q;
|
|
304
305
|
|
|
305
|
-
|
|
306
|
-
|
|
306
|
+
if (der.peek() == 0xa0) {
|
|
307
|
+
der.readSequence(0xa0);
|
|
308
|
+
der._offset += der.length;
|
|
309
|
+
}
|
|
310
|
+
if (der.peek() == 0xa1) {
|
|
311
|
+
der.readSequence(0xa1);
|
|
312
|
+
Q = der.readString(asn1.Ber.BitString, true);
|
|
313
|
+
Q = utils.ecNormalize(Q);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
if (Q === undefined) {
|
|
317
|
+
var pub = utils.publicFromPrivateECDSA(curveName, d);
|
|
318
|
+
Q = pub.part.Q.data;
|
|
319
|
+
}
|
|
307
320
|
|
|
308
321
|
var key = {
|
|
309
322
|
type: 'ecdsa',
|
|
@@ -412,6 +425,12 @@ function readPkcs8X25519Private(der) {
|
|
|
412
425
|
return (new PrivateKey(key));
|
|
413
426
|
}
|
|
414
427
|
|
|
428
|
+
function pkcs8ToBuffer(key) {
|
|
429
|
+
var der = new asn1.BerWriter();
|
|
430
|
+
writePkcs8(der, key);
|
|
431
|
+
return (der.buffer);
|
|
432
|
+
}
|
|
433
|
+
|
|
415
434
|
function writePkcs8(der, key) {
|
|
416
435
|
der.startSequence();
|
|
417
436
|
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
// Copyright 2018 Joyent, Inc.
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
read: read,
|
|
5
|
+
write: write
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
var assert = require('assert-plus');
|
|
9
|
+
var Buffer = require('safer-buffer').Buffer;
|
|
10
|
+
var rfc4253 = require('./rfc4253');
|
|
11
|
+
var Key = require('../key');
|
|
12
|
+
var SSHBuffer = require('../ssh-buffer');
|
|
13
|
+
var crypto = require('crypto');
|
|
14
|
+
var PrivateKey = require('../private-key');
|
|
15
|
+
|
|
16
|
+
var errors = require('../errors');
|
|
17
|
+
|
|
18
|
+
// https://tartarus.org/~simon/putty-prerel-snapshots/htmldoc/AppendixC.html
|
|
19
|
+
function read(buf, options) {
|
|
20
|
+
var lines = buf.toString('ascii').split(/[\r\n]+/);
|
|
21
|
+
var found = false;
|
|
22
|
+
var parts;
|
|
23
|
+
var si = 0;
|
|
24
|
+
var formatVersion;
|
|
25
|
+
while (si < lines.length) {
|
|
26
|
+
parts = splitHeader(lines[si++]);
|
|
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
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (!found) {
|
|
39
|
+
throw (new Error('No PuTTY format first line found'));
|
|
40
|
+
}
|
|
41
|
+
var alg = parts[1];
|
|
42
|
+
|
|
43
|
+
parts = splitHeader(lines[si++]);
|
|
44
|
+
assert.equal(parts[0].toLowerCase(), 'encryption');
|
|
45
|
+
var encryption = parts[1];
|
|
46
|
+
|
|
47
|
+
parts = splitHeader(lines[si++]);
|
|
48
|
+
assert.equal(parts[0].toLowerCase(), 'comment');
|
|
49
|
+
var comment = parts[1];
|
|
50
|
+
|
|
51
|
+
parts = splitHeader(lines[si++]);
|
|
52
|
+
assert.equal(parts[0].toLowerCase(), 'public-lines');
|
|
53
|
+
var publicLines = parseInt(parts[1], 10);
|
|
54
|
+
if (!isFinite(publicLines) || publicLines < 0 ||
|
|
55
|
+
publicLines > lines.length) {
|
|
56
|
+
throw (new Error('Invalid public-lines count'));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
var publicBuf = Buffer.from(
|
|
60
|
+
lines.slice(si, si + publicLines).join(''), 'base64');
|
|
61
|
+
var keyType = rfc4253.algToKeyType(alg);
|
|
62
|
+
var key = rfc4253.read(publicBuf);
|
|
63
|
+
if (key.type !== keyType) {
|
|
64
|
+
throw (new Error('Outer key algorithm mismatch'));
|
|
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
|
+
|
|
138
|
+
key.comment = comment;
|
|
139
|
+
return (key);
|
|
140
|
+
}
|
|
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
|
+
|
|
154
|
+
function splitHeader(line) {
|
|
155
|
+
var idx = line.indexOf(':');
|
|
156
|
+
if (idx === -1)
|
|
157
|
+
return (null);
|
|
158
|
+
var header = line.slice(0, idx);
|
|
159
|
+
++idx;
|
|
160
|
+
while (line[idx] === ' ')
|
|
161
|
+
++idx;
|
|
162
|
+
var rest = line.slice(idx);
|
|
163
|
+
return ([header, rest]);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function write(key, options) {
|
|
167
|
+
assert.object(key);
|
|
168
|
+
if (!Key.isKey(key))
|
|
169
|
+
throw (new Error('Must be a public key'));
|
|
170
|
+
|
|
171
|
+
var alg = rfc4253.keyTypeToAlg(key);
|
|
172
|
+
var buf = rfc4253.write(key);
|
|
173
|
+
var comment = key.comment || '';
|
|
174
|
+
|
|
175
|
+
var b64 = buf.toString('base64');
|
|
176
|
+
var lines = wrap(b64, 64);
|
|
177
|
+
|
|
178
|
+
lines.unshift('Public-Lines: ' + lines.length);
|
|
179
|
+
lines.unshift('Comment: ' + comment);
|
|
180
|
+
lines.unshift('Encryption: none');
|
|
181
|
+
lines.unshift('PuTTY-User-Key-File-2: ' + alg);
|
|
182
|
+
|
|
183
|
+
return (Buffer.from(lines.join('\n') + '\n'));
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function wrap(txt, len) {
|
|
187
|
+
var lines = [];
|
|
188
|
+
var pos = 0;
|
|
189
|
+
while (pos < txt.length) {
|
|
190
|
+
lines.push(txt.slice(pos, pos + 64));
|
|
191
|
+
pos += 64;
|
|
192
|
+
}
|
|
193
|
+
return (lines);
|
|
194
|
+
}
|
|
@@ -29,14 +29,24 @@ function read(buf, options) {
|
|
|
29
29
|
|
|
30
30
|
var lines = buf.trim().split(/[\r\n]+/g);
|
|
31
31
|
|
|
32
|
-
var m
|
|
33
|
-
|
|
32
|
+
var m;
|
|
33
|
+
var si = -1;
|
|
34
|
+
while (!m && si < lines.length) {
|
|
35
|
+
m = lines[++si].match(/*JSSTYLED*/
|
|
36
|
+
/[-]+[ ]*BEGIN CERTIFICATE[ ]*[-]+/);
|
|
37
|
+
}
|
|
34
38
|
assert.ok(m, 'invalid PEM header');
|
|
35
39
|
|
|
36
|
-
var m2
|
|
37
|
-
|
|
40
|
+
var m2;
|
|
41
|
+
var ei = lines.length;
|
|
42
|
+
while (!m2 && ei > 0) {
|
|
43
|
+
m2 = lines[--ei].match(/*JSSTYLED*/
|
|
44
|
+
/[-]+[ ]*END CERTIFICATE[ ]*[-]+/);
|
|
45
|
+
}
|
|
38
46
|
assert.ok(m2, 'invalid PEM footer');
|
|
39
47
|
|
|
48
|
+
lines = lines.slice(si, ei + 1);
|
|
49
|
+
|
|
40
50
|
var headers = {};
|
|
41
51
|
while (true) {
|
|
42
52
|
lines = lines.slice(1);
|
|
@@ -203,6 +203,14 @@ function readDate(der) {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
function writeDate(der, date) {
|
|
207
|
+
if (date.getUTCFullYear() >= 2050 || date.getUTCFullYear() < 1950) {
|
|
208
|
+
der.writeString(dateToGTime(date), asn1.Ber.GeneralizedTime);
|
|
209
|
+
} else {
|
|
210
|
+
der.writeString(dateToUTCTime(date), asn1.Ber.UTCTime);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
206
214
|
/* RFC5280, section 4.2.1.6 (GeneralName type) */
|
|
207
215
|
var ALTNAME = {
|
|
208
216
|
OtherName: Local(0),
|
|
@@ -242,7 +250,8 @@ function readExtension(cert, buf, der) {
|
|
|
242
250
|
var extId = der.readOID();
|
|
243
251
|
var id;
|
|
244
252
|
var sig = cert.signatures.x509;
|
|
245
|
-
sig.extras.exts
|
|
253
|
+
if (!sig.extras.exts)
|
|
254
|
+
sig.extras.exts = [];
|
|
246
255
|
|
|
247
256
|
var critical;
|
|
248
257
|
if (der.peek() === asn1.Ber.Boolean)
|
|
@@ -414,9 +423,11 @@ function gTimeToDate(t) {
|
|
|
414
423
|
return (d);
|
|
415
424
|
}
|
|
416
425
|
|
|
417
|
-
function zeroPad(n) {
|
|
426
|
+
function zeroPad(n, m) {
|
|
427
|
+
if (m === undefined)
|
|
428
|
+
m = 2;
|
|
418
429
|
var s = '' + n;
|
|
419
|
-
while (s.length <
|
|
430
|
+
while (s.length < m)
|
|
420
431
|
s = '0' + s;
|
|
421
432
|
return (s);
|
|
422
433
|
}
|
|
@@ -433,6 +444,18 @@ function dateToUTCTime(d) {
|
|
|
433
444
|
return (s);
|
|
434
445
|
}
|
|
435
446
|
|
|
447
|
+
function dateToGTime(d) {
|
|
448
|
+
var s = '';
|
|
449
|
+
s += zeroPad(d.getUTCFullYear(), 4);
|
|
450
|
+
s += zeroPad(d.getUTCMonth() + 1);
|
|
451
|
+
s += zeroPad(d.getUTCDate());
|
|
452
|
+
s += zeroPad(d.getUTCHours());
|
|
453
|
+
s += zeroPad(d.getUTCMinutes());
|
|
454
|
+
s += zeroPad(d.getUTCSeconds());
|
|
455
|
+
s += 'Z';
|
|
456
|
+
return (s);
|
|
457
|
+
}
|
|
458
|
+
|
|
436
459
|
function sign(cert, key) {
|
|
437
460
|
if (cert.signatures.x509 === undefined)
|
|
438
461
|
cert.signatures.x509 = {};
|
|
@@ -531,8 +554,8 @@ function writeTBSCert(cert, der) {
|
|
|
531
554
|
cert.issuer.toAsn1(der);
|
|
532
555
|
|
|
533
556
|
der.startSequence();
|
|
534
|
-
der
|
|
535
|
-
der
|
|
557
|
+
writeDate(der, cert.validFrom);
|
|
558
|
+
writeDate(der, cert.validUntil);
|
|
536
559
|
der.endSequence();
|
|
537
560
|
|
|
538
561
|
var subject = cert.subjects[0];
|