step-node-agent 3.20.2 → 3.21.1
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/body-parser/HISTORY.md +8 -0
- package/node_modules/body-parser/README.md +11 -10
- package/node_modules/body-parser/lib/types/json.js +15 -4
- package/node_modules/body-parser/package.json +8 -8
- 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/express/node_modules/body-parser/HISTORY.md +657 -0
- package/node_modules/express/node_modules/body-parser/LICENSE +23 -0
- package/node_modules/express/node_modules/body-parser/README.md +464 -0
- package/node_modules/express/node_modules/body-parser/SECURITY.md +25 -0
- package/node_modules/express/node_modules/body-parser/index.js +156 -0
- package/node_modules/express/node_modules/body-parser/lib/read.js +205 -0
- package/node_modules/express/node_modules/body-parser/lib/types/json.js +236 -0
- package/node_modules/express/node_modules/body-parser/lib/types/raw.js +101 -0
- package/node_modules/express/node_modules/body-parser/lib/types/text.js +121 -0
- package/node_modules/express/node_modules/body-parser/lib/types/urlencoded.js +284 -0
- package/node_modules/express/node_modules/body-parser/package.json +56 -0
- package/node_modules/express/node_modules/raw-body/HISTORY.md +303 -0
- package/node_modules/express/node_modules/raw-body/LICENSE +22 -0
- package/node_modules/express/node_modules/raw-body/README.md +223 -0
- package/node_modules/express/node_modules/raw-body/SECURITY.md +24 -0
- package/node_modules/express/node_modules/raw-body/index.d.ts +87 -0
- package/node_modules/express/node_modules/raw-body/index.js +329 -0
- package/node_modules/express/node_modules/raw-body/package.json +49 -0
- 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}/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/node_modules/raw-body/HISTORY.md +5 -0
- package/node_modules/raw-body/README.md +1 -1
- package/node_modules/raw-body/index.js +7 -0
- package/node_modules/raw-body/package.json +7 -7
- 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
- /package/node_modules/npm/node_modules/{punycode → tough-cookie/node_modules/punycode}/LICENSE-MIT.txt +0 -0
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
25
|
/**
|
|
26
|
-
* bluebird build version 3.
|
|
26
|
+
* bluebird build version 3.7.2
|
|
27
27
|
* Features enabled: core, race, call_get, generators, map, nodeify, promisify, props, reduce, settle, some, using, timers, filter, any, each
|
|
28
28
|
*/
|
|
29
29
|
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Promise=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof _dereq_=="function"&&_dereq_;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof _dereq_=="function"&&_dereq_;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
|
@@ -55,7 +55,6 @@ var firstLineError;
|
|
|
55
55
|
try {throw new Error(); } catch (e) {firstLineError = e;}
|
|
56
56
|
var schedule = _dereq_("./schedule");
|
|
57
57
|
var Queue = _dereq_("./queue");
|
|
58
|
-
var util = _dereq_("./util");
|
|
59
58
|
|
|
60
59
|
function Async() {
|
|
61
60
|
this._customScheduler = false;
|
|
@@ -63,7 +62,6 @@ function Async() {
|
|
|
63
62
|
this._lateQueue = new Queue(16);
|
|
64
63
|
this._normalQueue = new Queue(16);
|
|
65
64
|
this._haveDrainedQueues = false;
|
|
66
|
-
this._trampolineEnabled = true;
|
|
67
65
|
var self = this;
|
|
68
66
|
this.drainQueues = function () {
|
|
69
67
|
self._drainQueues();
|
|
@@ -82,16 +80,6 @@ Async.prototype.hasCustomScheduler = function() {
|
|
|
82
80
|
return this._customScheduler;
|
|
83
81
|
};
|
|
84
82
|
|
|
85
|
-
Async.prototype.enableTrampoline = function() {
|
|
86
|
-
this._trampolineEnabled = true;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
Async.prototype.disableTrampolineIfNecessary = function() {
|
|
90
|
-
if (util.hasDevTools) {
|
|
91
|
-
this._trampolineEnabled = false;
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
|
|
95
83
|
Async.prototype.haveItemsQueued = function () {
|
|
96
84
|
return this._isTickUsed || this._haveDrainedQueues;
|
|
97
85
|
};
|
|
@@ -140,43 +128,10 @@ function AsyncSettlePromises(promise) {
|
|
|
140
128
|
this._queueTick();
|
|
141
129
|
}
|
|
142
130
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
Async.prototype.settlePromises = AsyncSettlePromises;
|
|
147
|
-
} else {
|
|
148
|
-
Async.prototype.invokeLater = function (fn, receiver, arg) {
|
|
149
|
-
if (this._trampolineEnabled) {
|
|
150
|
-
AsyncInvokeLater.call(this, fn, receiver, arg);
|
|
151
|
-
} else {
|
|
152
|
-
this._schedule(function() {
|
|
153
|
-
setTimeout(function() {
|
|
154
|
-
fn.call(receiver, arg);
|
|
155
|
-
}, 100);
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
Async.prototype.invoke = function (fn, receiver, arg) {
|
|
161
|
-
if (this._trampolineEnabled) {
|
|
162
|
-
AsyncInvoke.call(this, fn, receiver, arg);
|
|
163
|
-
} else {
|
|
164
|
-
this._schedule(function() {
|
|
165
|
-
fn.call(receiver, arg);
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
};
|
|
131
|
+
Async.prototype.invokeLater = AsyncInvokeLater;
|
|
132
|
+
Async.prototype.invoke = AsyncInvoke;
|
|
133
|
+
Async.prototype.settlePromises = AsyncSettlePromises;
|
|
169
134
|
|
|
170
|
-
Async.prototype.settlePromises = function(promise) {
|
|
171
|
-
if (this._trampolineEnabled) {
|
|
172
|
-
AsyncSettlePromises.call(this, promise);
|
|
173
|
-
} else {
|
|
174
|
-
this._schedule(function() {
|
|
175
|
-
promise._settlePromises();
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
135
|
|
|
181
136
|
function _drainQueue(queue) {
|
|
182
137
|
while (queue.length() > 0) {
|
|
@@ -216,7 +171,7 @@ Async.prototype._reset = function () {
|
|
|
216
171
|
module.exports = Async;
|
|
217
172
|
module.exports.firstLineError = firstLineError;
|
|
218
173
|
|
|
219
|
-
},{"./queue":26,"./schedule":29
|
|
174
|
+
},{"./queue":26,"./schedule":29}],3:[function(_dereq_,module,exports){
|
|
220
175
|
"use strict";
|
|
221
176
|
module.exports = function(Promise, INTERNAL, tryConvertToPromise, debug) {
|
|
222
177
|
var calledBind = false;
|
|
@@ -671,8 +626,8 @@ return Context;
|
|
|
671
626
|
|
|
672
627
|
},{}],9:[function(_dereq_,module,exports){
|
|
673
628
|
"use strict";
|
|
674
|
-
module.exports = function(Promise, Context
|
|
675
|
-
|
|
629
|
+
module.exports = function(Promise, Context,
|
|
630
|
+
enableAsyncHooks, disableAsyncHooks) {
|
|
676
631
|
var async = Promise._async;
|
|
677
632
|
var Warning = _dereq_("./errors").Warning;
|
|
678
633
|
var util = _dereq_("./util");
|
|
@@ -702,6 +657,34 @@ var longStackTraces = !!(util.env("BLUEBIRD_LONG_STACK_TRACES") != 0 &&
|
|
|
702
657
|
var wForgottenReturn = util.env("BLUEBIRD_W_FORGOTTEN_RETURN") != 0 &&
|
|
703
658
|
(warnings || !!util.env("BLUEBIRD_W_FORGOTTEN_RETURN"));
|
|
704
659
|
|
|
660
|
+
var deferUnhandledRejectionCheck;
|
|
661
|
+
(function() {
|
|
662
|
+
var promises = [];
|
|
663
|
+
|
|
664
|
+
function unhandledRejectionCheck() {
|
|
665
|
+
for (var i = 0; i < promises.length; ++i) {
|
|
666
|
+
promises[i]._notifyUnhandledRejection();
|
|
667
|
+
}
|
|
668
|
+
unhandledRejectionClear();
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
function unhandledRejectionClear() {
|
|
672
|
+
promises.length = 0;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
deferUnhandledRejectionCheck = function(promise) {
|
|
676
|
+
promises.push(promise);
|
|
677
|
+
setTimeout(unhandledRejectionCheck, 1);
|
|
678
|
+
};
|
|
679
|
+
|
|
680
|
+
es5.defineProperty(Promise, "_unhandledRejectionCheck", {
|
|
681
|
+
value: unhandledRejectionCheck
|
|
682
|
+
});
|
|
683
|
+
es5.defineProperty(Promise, "_unhandledRejectionClear", {
|
|
684
|
+
value: unhandledRejectionClear
|
|
685
|
+
});
|
|
686
|
+
})();
|
|
687
|
+
|
|
705
688
|
Promise.prototype.suppressUnhandledRejections = function() {
|
|
706
689
|
var target = this._target();
|
|
707
690
|
target._bitField = ((target._bitField & (~1048576)) |
|
|
@@ -711,10 +694,7 @@ Promise.prototype.suppressUnhandledRejections = function() {
|
|
|
711
694
|
Promise.prototype._ensurePossibleRejectionHandled = function () {
|
|
712
695
|
if ((this._bitField & 524288) !== 0) return;
|
|
713
696
|
this._setRejectionIsUnhandled();
|
|
714
|
-
|
|
715
|
-
setTimeout(function() {
|
|
716
|
-
self._notifyUnhandledRejection();
|
|
717
|
-
}, 1);
|
|
697
|
+
deferUnhandledRejectionCheck(this);
|
|
718
698
|
};
|
|
719
699
|
|
|
720
700
|
Promise.prototype._notifyUnhandledRejectionIsHandled = function () {
|
|
@@ -772,19 +752,13 @@ Promise.prototype._warn = function(message, shouldUseOwnTrace, promise) {
|
|
|
772
752
|
};
|
|
773
753
|
|
|
774
754
|
Promise.onPossiblyUnhandledRejection = function (fn) {
|
|
775
|
-
var
|
|
776
|
-
possiblyUnhandledRejection =
|
|
777
|
-
typeof fn === "function" ? (domain === null ?
|
|
778
|
-
fn : util.domainBind(domain, fn))
|
|
779
|
-
: undefined;
|
|
755
|
+
var context = Promise._getContext();
|
|
756
|
+
possiblyUnhandledRejection = util.contextBind(context, fn);
|
|
780
757
|
};
|
|
781
758
|
|
|
782
759
|
Promise.onUnhandledRejectionHandled = function (fn) {
|
|
783
|
-
var
|
|
784
|
-
unhandledRejectionHandled =
|
|
785
|
-
typeof fn === "function" ? (domain === null ?
|
|
786
|
-
fn : util.domainBind(domain, fn))
|
|
787
|
-
: undefined;
|
|
760
|
+
var context = Promise._getContext();
|
|
761
|
+
unhandledRejectionHandled = util.contextBind(context, fn);
|
|
788
762
|
};
|
|
789
763
|
|
|
790
764
|
var disableLongStackTraces = function() {};
|
|
@@ -805,14 +779,12 @@ Promise.longStackTraces = function () {
|
|
|
805
779
|
Promise.prototype._attachExtraTrace = Promise_attachExtraTrace;
|
|
806
780
|
Promise.prototype._dereferenceTrace = Promise_dereferenceTrace;
|
|
807
781
|
Context.deactivateLongStackTraces();
|
|
808
|
-
async.enableTrampoline();
|
|
809
782
|
config.longStackTraces = false;
|
|
810
783
|
};
|
|
811
784
|
Promise.prototype._captureStackTrace = longStackTracesCaptureStackTrace;
|
|
812
785
|
Promise.prototype._attachExtraTrace = longStackTracesAttachExtraTrace;
|
|
813
786
|
Promise.prototype._dereferenceTrace = longStackTracesDereferenceTrace;
|
|
814
787
|
Context.activateLongStackTraces();
|
|
815
|
-
async.disableTrampolineIfNecessary();
|
|
816
788
|
}
|
|
817
789
|
};
|
|
818
790
|
|
|
@@ -820,43 +792,85 @@ Promise.hasLongStackTraces = function () {
|
|
|
820
792
|
return config.longStackTraces && longStackTracesIsSupported();
|
|
821
793
|
};
|
|
822
794
|
|
|
795
|
+
|
|
796
|
+
var legacyHandlers = {
|
|
797
|
+
unhandledrejection: {
|
|
798
|
+
before: function() {
|
|
799
|
+
var ret = util.global.onunhandledrejection;
|
|
800
|
+
util.global.onunhandledrejection = null;
|
|
801
|
+
return ret;
|
|
802
|
+
},
|
|
803
|
+
after: function(fn) {
|
|
804
|
+
util.global.onunhandledrejection = fn;
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
rejectionhandled: {
|
|
808
|
+
before: function() {
|
|
809
|
+
var ret = util.global.onrejectionhandled;
|
|
810
|
+
util.global.onrejectionhandled = null;
|
|
811
|
+
return ret;
|
|
812
|
+
},
|
|
813
|
+
after: function(fn) {
|
|
814
|
+
util.global.onrejectionhandled = fn;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
};
|
|
818
|
+
|
|
823
819
|
var fireDomEvent = (function() {
|
|
820
|
+
var dispatch = function(legacy, e) {
|
|
821
|
+
if (legacy) {
|
|
822
|
+
var fn;
|
|
823
|
+
try {
|
|
824
|
+
fn = legacy.before();
|
|
825
|
+
return !util.global.dispatchEvent(e);
|
|
826
|
+
} finally {
|
|
827
|
+
legacy.after(fn);
|
|
828
|
+
}
|
|
829
|
+
} else {
|
|
830
|
+
return !util.global.dispatchEvent(e);
|
|
831
|
+
}
|
|
832
|
+
};
|
|
824
833
|
try {
|
|
825
834
|
if (typeof CustomEvent === "function") {
|
|
826
835
|
var event = new CustomEvent("CustomEvent");
|
|
827
836
|
util.global.dispatchEvent(event);
|
|
828
837
|
return function(name, event) {
|
|
838
|
+
name = name.toLowerCase();
|
|
829
839
|
var eventData = {
|
|
830
840
|
detail: event,
|
|
831
841
|
cancelable: true
|
|
832
842
|
};
|
|
843
|
+
var domEvent = new CustomEvent(name, eventData);
|
|
833
844
|
es5.defineProperty(
|
|
834
|
-
|
|
835
|
-
es5.defineProperty(
|
|
836
|
-
|
|
837
|
-
|
|
845
|
+
domEvent, "promise", {value: event.promise});
|
|
846
|
+
es5.defineProperty(
|
|
847
|
+
domEvent, "reason", {value: event.reason});
|
|
848
|
+
|
|
849
|
+
return dispatch(legacyHandlers[name], domEvent);
|
|
838
850
|
};
|
|
839
851
|
} else if (typeof Event === "function") {
|
|
840
852
|
var event = new Event("CustomEvent");
|
|
841
853
|
util.global.dispatchEvent(event);
|
|
842
854
|
return function(name, event) {
|
|
843
|
-
|
|
855
|
+
name = name.toLowerCase();
|
|
856
|
+
var domEvent = new Event(name, {
|
|
844
857
|
cancelable: true
|
|
845
858
|
});
|
|
846
859
|
domEvent.detail = event;
|
|
847
860
|
es5.defineProperty(domEvent, "promise", {value: event.promise});
|
|
848
861
|
es5.defineProperty(domEvent, "reason", {value: event.reason});
|
|
849
|
-
return
|
|
862
|
+
return dispatch(legacyHandlers[name], domEvent);
|
|
850
863
|
};
|
|
851
864
|
} else {
|
|
852
865
|
var event = document.createEvent("CustomEvent");
|
|
853
866
|
event.initCustomEvent("testingtheevent", false, true, {});
|
|
854
867
|
util.global.dispatchEvent(event);
|
|
855
868
|
return function(name, event) {
|
|
869
|
+
name = name.toLowerCase();
|
|
856
870
|
var domEvent = document.createEvent("CustomEvent");
|
|
857
|
-
domEvent.initCustomEvent(name
|
|
871
|
+
domEvent.initCustomEvent(name, false, true,
|
|
858
872
|
event);
|
|
859
|
-
return
|
|
873
|
+
return dispatch(legacyHandlers[name], domEvent);
|
|
860
874
|
};
|
|
861
875
|
}
|
|
862
876
|
} catch (e) {}
|
|
@@ -974,6 +988,18 @@ Promise.config = function(opts) {
|
|
|
974
988
|
Promise.prototype._fireEvent = defaultFireEvent;
|
|
975
989
|
}
|
|
976
990
|
}
|
|
991
|
+
if ("asyncHooks" in opts && util.nodeSupportsAsyncResource) {
|
|
992
|
+
var prev = config.asyncHooks;
|
|
993
|
+
var cur = !!opts.asyncHooks;
|
|
994
|
+
if (prev !== cur) {
|
|
995
|
+
config.asyncHooks = cur;
|
|
996
|
+
if (cur) {
|
|
997
|
+
enableAsyncHooks();
|
|
998
|
+
} else {
|
|
999
|
+
disableAsyncHooks();
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
977
1003
|
return Promise;
|
|
978
1004
|
};
|
|
979
1005
|
|
|
@@ -1571,12 +1597,16 @@ var config = {
|
|
|
1571
1597
|
warnings: warnings,
|
|
1572
1598
|
longStackTraces: false,
|
|
1573
1599
|
cancellation: false,
|
|
1574
|
-
monitoring: false
|
|
1600
|
+
monitoring: false,
|
|
1601
|
+
asyncHooks: false
|
|
1575
1602
|
};
|
|
1576
1603
|
|
|
1577
1604
|
if (longStackTraces) Promise.longStackTraces();
|
|
1578
1605
|
|
|
1579
1606
|
return {
|
|
1607
|
+
asyncHooks: function() {
|
|
1608
|
+
return config.asyncHooks;
|
|
1609
|
+
},
|
|
1580
1610
|
longStackTraces: function() {
|
|
1581
1611
|
return config.longStackTraces;
|
|
1582
1612
|
},
|
|
@@ -2275,8 +2305,7 @@ Promise.spawn = function (generatorFunction) {
|
|
|
2275
2305
|
},{"./errors":12,"./util":36}],17:[function(_dereq_,module,exports){
|
|
2276
2306
|
"use strict";
|
|
2277
2307
|
module.exports =
|
|
2278
|
-
function(Promise, PromiseArray, tryConvertToPromise, INTERNAL, async
|
|
2279
|
-
getDomain) {
|
|
2308
|
+
function(Promise, PromiseArray, tryConvertToPromise, INTERNAL, async) {
|
|
2280
2309
|
var util = _dereq_("./util");
|
|
2281
2310
|
var canEvaluate = util.canEvaluate;
|
|
2282
2311
|
var tryCatch = util.tryCatch;
|
|
@@ -2422,10 +2451,8 @@ Promise.join = function () {
|
|
|
2422
2451
|
|
|
2423
2452
|
if (!ret._isFateSealed()) {
|
|
2424
2453
|
if (holder.asyncNeeded) {
|
|
2425
|
-
var
|
|
2426
|
-
|
|
2427
|
-
holder.fn = util.domainBind(domain, holder.fn);
|
|
2428
|
-
}
|
|
2454
|
+
var context = Promise._getContext();
|
|
2455
|
+
holder.fn = util.contextBind(context, holder.fn);
|
|
2429
2456
|
}
|
|
2430
2457
|
ret._setAsyncGuaranteed();
|
|
2431
2458
|
ret._setOnCancel(holder);
|
|
@@ -2450,7 +2477,6 @@ module.exports = function(Promise,
|
|
|
2450
2477
|
tryConvertToPromise,
|
|
2451
2478
|
INTERNAL,
|
|
2452
2479
|
debug) {
|
|
2453
|
-
var getDomain = Promise._getDomain;
|
|
2454
2480
|
var util = _dereq_("./util");
|
|
2455
2481
|
var tryCatch = util.tryCatch;
|
|
2456
2482
|
var errorObj = util.errorObj;
|
|
@@ -2459,8 +2485,8 @@ var async = Promise._async;
|
|
|
2459
2485
|
function MappingPromiseArray(promises, fn, limit, _filter) {
|
|
2460
2486
|
this.constructor$(promises);
|
|
2461
2487
|
this._promise._captureStackTrace();
|
|
2462
|
-
var
|
|
2463
|
-
this._callback =
|
|
2488
|
+
var context = Promise._getContext();
|
|
2489
|
+
this._callback = util.contextBind(context, fn);
|
|
2464
2490
|
this._preservedValues = _filter === INTERNAL
|
|
2465
2491
|
? new Array(this.length())
|
|
2466
2492
|
: null;
|
|
@@ -2468,6 +2494,14 @@ function MappingPromiseArray(promises, fn, limit, _filter) {
|
|
|
2468
2494
|
this._inFlight = 0;
|
|
2469
2495
|
this._queue = [];
|
|
2470
2496
|
async.invoke(this._asyncInit, this, undefined);
|
|
2497
|
+
if (util.isArray(promises)) {
|
|
2498
|
+
for (var i = 0; i < promises.length; ++i) {
|
|
2499
|
+
var maybePromise = promises[i];
|
|
2500
|
+
if (maybePromise instanceof Promise) {
|
|
2501
|
+
maybePromise.suppressUnhandledRejections();
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2471
2505
|
}
|
|
2472
2506
|
util.inherits(MappingPromiseArray, PromiseArray);
|
|
2473
2507
|
|
|
@@ -2797,20 +2831,42 @@ var apiRejection = function(msg) {
|
|
|
2797
2831
|
function Proxyable() {}
|
|
2798
2832
|
var UNDEFINED_BINDING = {};
|
|
2799
2833
|
var util = _dereq_("./util");
|
|
2834
|
+
util.setReflectHandler(reflectHandler);
|
|
2800
2835
|
|
|
2801
|
-
var getDomain
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
var ret = process.domain;
|
|
2805
|
-
if (ret === undefined) ret = null;
|
|
2806
|
-
return ret;
|
|
2807
|
-
};
|
|
2808
|
-
} else {
|
|
2809
|
-
getDomain = function() {
|
|
2836
|
+
var getDomain = function() {
|
|
2837
|
+
var domain = process.domain;
|
|
2838
|
+
if (domain === undefined) {
|
|
2810
2839
|
return null;
|
|
2840
|
+
}
|
|
2841
|
+
return domain;
|
|
2842
|
+
};
|
|
2843
|
+
var getContextDefault = function() {
|
|
2844
|
+
return null;
|
|
2845
|
+
};
|
|
2846
|
+
var getContextDomain = function() {
|
|
2847
|
+
return {
|
|
2848
|
+
domain: getDomain(),
|
|
2849
|
+
async: null
|
|
2811
2850
|
};
|
|
2812
|
-
}
|
|
2813
|
-
util.
|
|
2851
|
+
};
|
|
2852
|
+
var AsyncResource = util.isNode && util.nodeSupportsAsyncResource ?
|
|
2853
|
+
_dereq_("async_hooks").AsyncResource : null;
|
|
2854
|
+
var getContextAsyncHooks = function() {
|
|
2855
|
+
return {
|
|
2856
|
+
domain: getDomain(),
|
|
2857
|
+
async: new AsyncResource("Bluebird::Promise")
|
|
2858
|
+
};
|
|
2859
|
+
};
|
|
2860
|
+
var getContext = util.isNode ? getContextDomain : getContextDefault;
|
|
2861
|
+
util.notEnumerableProp(Promise, "_getContext", getContext);
|
|
2862
|
+
var enableAsyncHooks = function() {
|
|
2863
|
+
getContext = getContextAsyncHooks;
|
|
2864
|
+
util.notEnumerableProp(Promise, "_getContext", getContextAsyncHooks);
|
|
2865
|
+
};
|
|
2866
|
+
var disableAsyncHooks = function() {
|
|
2867
|
+
getContext = getContextDomain;
|
|
2868
|
+
util.notEnumerableProp(Promise, "_getContext", getContextDomain);
|
|
2869
|
+
};
|
|
2814
2870
|
|
|
2815
2871
|
var es5 = _dereq_("./es5");
|
|
2816
2872
|
var Async = _dereq_("./async");
|
|
@@ -2834,7 +2890,9 @@ var PromiseArray =
|
|
|
2834
2890
|
var Context = _dereq_("./context")(Promise);
|
|
2835
2891
|
/*jshint unused:false*/
|
|
2836
2892
|
var createContext = Context.create;
|
|
2837
|
-
|
|
2893
|
+
|
|
2894
|
+
var debug = _dereq_("./debuggability")(Promise, Context,
|
|
2895
|
+
enableAsyncHooks, disableAsyncHooks);
|
|
2838
2896
|
var CapturedTrace = debug.CapturedTrace;
|
|
2839
2897
|
var PassThroughHandlerContext =
|
|
2840
2898
|
_dereq_("./finally")(Promise, tryConvertToPromise, NEXT_FILTER);
|
|
@@ -3031,7 +3089,7 @@ Promise.prototype._then = function (
|
|
|
3031
3089
|
this._fireEvent("promiseChained", this, promise);
|
|
3032
3090
|
}
|
|
3033
3091
|
|
|
3034
|
-
var
|
|
3092
|
+
var context = getContext();
|
|
3035
3093
|
if (!((bitField & 50397184) === 0)) {
|
|
3036
3094
|
var handler, value, settler = target._settlePromiseCtx;
|
|
3037
3095
|
if (((bitField & 33554432) !== 0)) {
|
|
@@ -3049,15 +3107,14 @@ Promise.prototype._then = function (
|
|
|
3049
3107
|
}
|
|
3050
3108
|
|
|
3051
3109
|
async.invoke(settler, target, {
|
|
3052
|
-
handler:
|
|
3053
|
-
: (typeof handler === "function" &&
|
|
3054
|
-
util.domainBind(domain, handler)),
|
|
3110
|
+
handler: util.contextBind(context, handler),
|
|
3055
3111
|
promise: promise,
|
|
3056
3112
|
receiver: receiver,
|
|
3057
3113
|
value: value
|
|
3058
3114
|
});
|
|
3059
3115
|
} else {
|
|
3060
|
-
target._addCallbacks(didFulfill, didReject, promise,
|
|
3116
|
+
target._addCallbacks(didFulfill, didReject, promise,
|
|
3117
|
+
receiver, context);
|
|
3061
3118
|
}
|
|
3062
3119
|
|
|
3063
3120
|
return promise;
|
|
@@ -3118,7 +3175,15 @@ Promise.prototype._setWillBeCancelled = function() {
|
|
|
3118
3175
|
|
|
3119
3176
|
Promise.prototype._setAsyncGuaranteed = function() {
|
|
3120
3177
|
if (async.hasCustomScheduler()) return;
|
|
3121
|
-
|
|
3178
|
+
var bitField = this._bitField;
|
|
3179
|
+
this._bitField = bitField |
|
|
3180
|
+
(((bitField & 536870912) >> 2) ^
|
|
3181
|
+
134217728);
|
|
3182
|
+
};
|
|
3183
|
+
|
|
3184
|
+
Promise.prototype._setNoAsyncGuarantee = function() {
|
|
3185
|
+
this._bitField = (this._bitField | 536870912) &
|
|
3186
|
+
(~134217728);
|
|
3122
3187
|
};
|
|
3123
3188
|
|
|
3124
3189
|
Promise.prototype._receiverAt = function (index) {
|
|
@@ -3173,7 +3238,7 @@ Promise.prototype._addCallbacks = function (
|
|
|
3173
3238
|
reject,
|
|
3174
3239
|
promise,
|
|
3175
3240
|
receiver,
|
|
3176
|
-
|
|
3241
|
+
context
|
|
3177
3242
|
) {
|
|
3178
3243
|
var index = this._length();
|
|
3179
3244
|
|
|
@@ -3186,12 +3251,10 @@ Promise.prototype._addCallbacks = function (
|
|
|
3186
3251
|
this._promise0 = promise;
|
|
3187
3252
|
this._receiver0 = receiver;
|
|
3188
3253
|
if (typeof fulfill === "function") {
|
|
3189
|
-
this._fulfillmentHandler0 =
|
|
3190
|
-
domain === null ? fulfill : util.domainBind(domain, fulfill);
|
|
3254
|
+
this._fulfillmentHandler0 = util.contextBind(context, fulfill);
|
|
3191
3255
|
}
|
|
3192
3256
|
if (typeof reject === "function") {
|
|
3193
|
-
this._rejectionHandler0 =
|
|
3194
|
-
domain === null ? reject : util.domainBind(domain, reject);
|
|
3257
|
+
this._rejectionHandler0 = util.contextBind(context, reject);
|
|
3195
3258
|
}
|
|
3196
3259
|
} else {
|
|
3197
3260
|
var base = index * 4 - 4;
|
|
@@ -3199,11 +3262,11 @@ Promise.prototype._addCallbacks = function (
|
|
|
3199
3262
|
this[base + 3] = receiver;
|
|
3200
3263
|
if (typeof fulfill === "function") {
|
|
3201
3264
|
this[base + 0] =
|
|
3202
|
-
|
|
3265
|
+
util.contextBind(context, fulfill);
|
|
3203
3266
|
}
|
|
3204
3267
|
if (typeof reject === "function") {
|
|
3205
3268
|
this[base + 1] =
|
|
3206
|
-
|
|
3269
|
+
util.contextBind(context, reject);
|
|
3207
3270
|
}
|
|
3208
3271
|
}
|
|
3209
3272
|
this._setLength(index + 1);
|
|
@@ -3223,6 +3286,7 @@ Promise.prototype._resolveCallback = function(value, shouldBind) {
|
|
|
3223
3286
|
|
|
3224
3287
|
if (shouldBind) this._propagateFrom(maybePromise, 2);
|
|
3225
3288
|
|
|
3289
|
+
|
|
3226
3290
|
var promise = maybePromise._target();
|
|
3227
3291
|
|
|
3228
3292
|
if (promise === this) {
|
|
@@ -3239,7 +3303,7 @@ Promise.prototype._resolveCallback = function(value, shouldBind) {
|
|
|
3239
3303
|
}
|
|
3240
3304
|
this._setFollowing();
|
|
3241
3305
|
this._setLength(0);
|
|
3242
|
-
this._setFollowee(
|
|
3306
|
+
this._setFollowee(maybePromise);
|
|
3243
3307
|
} else if (((bitField & 33554432) !== 0)) {
|
|
3244
3308
|
this._fulfill(promise._value());
|
|
3245
3309
|
} else if (((bitField & 16777216) !== 0)) {
|
|
@@ -3530,9 +3594,9 @@ _dereq_("./cancel")(Promise, PromiseArray, apiRejection, debug);
|
|
|
3530
3594
|
_dereq_("./direct_resolve")(Promise);
|
|
3531
3595
|
_dereq_("./synchronous_inspection")(Promise);
|
|
3532
3596
|
_dereq_("./join")(
|
|
3533
|
-
Promise, PromiseArray, tryConvertToPromise, INTERNAL, async
|
|
3597
|
+
Promise, PromiseArray, tryConvertToPromise, INTERNAL, async);
|
|
3534
3598
|
Promise.Promise = Promise;
|
|
3535
|
-
Promise.version = "3.
|
|
3599
|
+
Promise.version = "3.7.2";
|
|
3536
3600
|
_dereq_('./call_get.js')(Promise);
|
|
3537
3601
|
_dereq_('./generators.js')(Promise, apiRejection, INTERNAL, tryConvertToPromise, Proxyable, debug);
|
|
3538
3602
|
_dereq_('./map.js')(Promise, PromiseArray, apiRejection, tryConvertToPromise, INTERNAL, debug);
|
|
@@ -3573,7 +3637,7 @@ _dereq_('./filter.js')(Promise, INTERNAL);
|
|
|
3573
3637
|
|
|
3574
3638
|
};
|
|
3575
3639
|
|
|
3576
|
-
},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(_dereq_,module,exports){
|
|
3640
|
+
},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36,"async_hooks":undefined}],23:[function(_dereq_,module,exports){
|
|
3577
3641
|
"use strict";
|
|
3578
3642
|
module.exports = function(Promise, INTERNAL, tryConvertToPromise,
|
|
3579
3643
|
apiRejection, Proxyable) {
|
|
@@ -3592,6 +3656,7 @@ function PromiseArray(values) {
|
|
|
3592
3656
|
var promise = this._promise = new Promise(INTERNAL);
|
|
3593
3657
|
if (values instanceof Promise) {
|
|
3594
3658
|
promise._propagateFrom(values, 3);
|
|
3659
|
+
values.suppressUnhandledRejections();
|
|
3595
3660
|
}
|
|
3596
3661
|
promise._setOnCancel(this);
|
|
3597
3662
|
this._values = values;
|
|
@@ -4330,14 +4395,13 @@ module.exports = function(Promise,
|
|
|
4330
4395
|
tryConvertToPromise,
|
|
4331
4396
|
INTERNAL,
|
|
4332
4397
|
debug) {
|
|
4333
|
-
var getDomain = Promise._getDomain;
|
|
4334
4398
|
var util = _dereq_("./util");
|
|
4335
4399
|
var tryCatch = util.tryCatch;
|
|
4336
4400
|
|
|
4337
4401
|
function ReductionPromiseArray(promises, fn, initialValue, _each) {
|
|
4338
4402
|
this.constructor$(promises);
|
|
4339
|
-
var
|
|
4340
|
-
this._fn =
|
|
4403
|
+
var context = Promise._getContext();
|
|
4404
|
+
this._fn = util.contextBind(context, fn);
|
|
4341
4405
|
if (initialValue !== undefined) {
|
|
4342
4406
|
initialValue = Promise.resolve(initialValue);
|
|
4343
4407
|
initialValue._attachCancellationCallback(this);
|
|
@@ -4357,8 +4421,8 @@ function ReductionPromiseArray(promises, fn, initialValue, _each) {
|
|
|
4357
4421
|
util.inherits(ReductionPromiseArray, PromiseArray);
|
|
4358
4422
|
|
|
4359
4423
|
ReductionPromiseArray.prototype._gotAccum = function(accum) {
|
|
4360
|
-
if (this._eachValues !== undefined &&
|
|
4361
|
-
this._eachValues !== null &&
|
|
4424
|
+
if (this._eachValues !== undefined &&
|
|
4425
|
+
this._eachValues !== null &&
|
|
4362
4426
|
accum !== INTERNAL) {
|
|
4363
4427
|
this._eachValues.push(accum);
|
|
4364
4428
|
}
|
|
@@ -4414,6 +4478,13 @@ ReductionPromiseArray.prototype._iterate = function (values) {
|
|
|
4414
4478
|
|
|
4415
4479
|
this._currentCancellable = value;
|
|
4416
4480
|
|
|
4481
|
+
for (var j = i; j < length; ++j) {
|
|
4482
|
+
var maybePromise = values[j];
|
|
4483
|
+
if (maybePromise instanceof Promise) {
|
|
4484
|
+
maybePromise.suppressUnhandledRejections();
|
|
4485
|
+
}
|
|
4486
|
+
}
|
|
4487
|
+
|
|
4417
4488
|
if (!value.isRejected()) {
|
|
4418
4489
|
for (; i < length; ++i) {
|
|
4419
4490
|
var ctx = {
|
|
@@ -4423,7 +4494,12 @@ ReductionPromiseArray.prototype._iterate = function (values) {
|
|
|
4423
4494
|
length: length,
|
|
4424
4495
|
array: this
|
|
4425
4496
|
};
|
|
4497
|
+
|
|
4426
4498
|
value = value._then(gotAccum, undefined, undefined, ctx, undefined);
|
|
4499
|
+
|
|
4500
|
+
if ((i & 127) === 0) {
|
|
4501
|
+
value._setNoAsyncGuarantee();
|
|
4502
|
+
}
|
|
4427
4503
|
}
|
|
4428
4504
|
}
|
|
4429
4505
|
|
|
@@ -4600,6 +4676,10 @@ Promise.settle = function (promises) {
|
|
|
4600
4676
|
return new SettledPromiseArray(promises).promise();
|
|
4601
4677
|
};
|
|
4602
4678
|
|
|
4679
|
+
Promise.allSettled = function (promises) {
|
|
4680
|
+
return new SettledPromiseArray(promises).promise();
|
|
4681
|
+
};
|
|
4682
|
+
|
|
4603
4683
|
Promise.prototype.settle = function () {
|
|
4604
4684
|
return Promise.settle(this);
|
|
4605
4685
|
};
|
|
@@ -5600,18 +5680,42 @@ function getNativePromise() {
|
|
|
5600
5680
|
if (typeof Promise === "function") {
|
|
5601
5681
|
try {
|
|
5602
5682
|
var promise = new Promise(function(){});
|
|
5603
|
-
if (
|
|
5683
|
+
if (classString(promise) === "[object Promise]") {
|
|
5604
5684
|
return Promise;
|
|
5605
5685
|
}
|
|
5606
5686
|
} catch (e) {}
|
|
5607
5687
|
}
|
|
5608
5688
|
}
|
|
5609
5689
|
|
|
5610
|
-
|
|
5611
|
-
|
|
5690
|
+
var reflectHandler;
|
|
5691
|
+
function contextBind(ctx, cb) {
|
|
5692
|
+
if (ctx === null ||
|
|
5693
|
+
typeof cb !== "function" ||
|
|
5694
|
+
cb === reflectHandler) {
|
|
5695
|
+
return cb;
|
|
5696
|
+
}
|
|
5697
|
+
|
|
5698
|
+
if (ctx.domain !== null) {
|
|
5699
|
+
cb = ctx.domain.bind(cb);
|
|
5700
|
+
}
|
|
5701
|
+
|
|
5702
|
+
var async = ctx.async;
|
|
5703
|
+
if (async !== null) {
|
|
5704
|
+
var old = cb;
|
|
5705
|
+
cb = function() {
|
|
5706
|
+
var args = (new Array(2)).concat([].slice.call(arguments));;
|
|
5707
|
+
args[0] = old;
|
|
5708
|
+
args[1] = this;
|
|
5709
|
+
return async.runInAsyncScope.apply(async, args);
|
|
5710
|
+
};
|
|
5711
|
+
}
|
|
5712
|
+
return cb;
|
|
5612
5713
|
}
|
|
5613
5714
|
|
|
5614
5715
|
var ret = {
|
|
5716
|
+
setReflectHandler: function(fn) {
|
|
5717
|
+
reflectHandler = fn;
|
|
5718
|
+
},
|
|
5615
5719
|
isClass: isClass,
|
|
5616
5720
|
isIdentifier: isIdentifier,
|
|
5617
5721
|
inheritedDataKeys: inheritedDataKeys,
|
|
@@ -5638,29 +5742,37 @@ var ret = {
|
|
|
5638
5742
|
markAsOriginatingFromRejection: markAsOriginatingFromRejection,
|
|
5639
5743
|
classString: classString,
|
|
5640
5744
|
copyDescriptors: copyDescriptors,
|
|
5641
|
-
hasDevTools: typeof chrome !== "undefined" && chrome &&
|
|
5642
|
-
typeof chrome.loadTimes === "function",
|
|
5643
5745
|
isNode: isNode,
|
|
5644
5746
|
hasEnvVariables: hasEnvVariables,
|
|
5645
5747
|
env: env,
|
|
5646
5748
|
global: globalObject,
|
|
5647
5749
|
getNativePromise: getNativePromise,
|
|
5648
|
-
|
|
5750
|
+
contextBind: contextBind
|
|
5649
5751
|
};
|
|
5650
5752
|
ret.isRecentNode = ret.isNode && (function() {
|
|
5651
5753
|
var version;
|
|
5652
|
-
if (process.versions && process.versions.node) {
|
|
5754
|
+
if (process.versions && process.versions.node) {
|
|
5653
5755
|
version = process.versions.node.split(".").map(Number);
|
|
5654
5756
|
} else if (process.version) {
|
|
5655
5757
|
version = process.version.split(".").map(Number);
|
|
5656
5758
|
}
|
|
5657
5759
|
return (version[0] === 0 && version[1] > 10) || (version[0] > 0);
|
|
5658
5760
|
})();
|
|
5761
|
+
ret.nodeSupportsAsyncResource = ret.isNode && (function() {
|
|
5762
|
+
var supportsAsync = false;
|
|
5763
|
+
try {
|
|
5764
|
+
var res = _dereq_("async_hooks").AsyncResource;
|
|
5765
|
+
supportsAsync = typeof res.prototype.runInAsyncScope === "function";
|
|
5766
|
+
} catch (e) {
|
|
5767
|
+
supportsAsync = false;
|
|
5768
|
+
}
|
|
5769
|
+
return supportsAsync;
|
|
5770
|
+
})();
|
|
5659
5771
|
|
|
5660
5772
|
if (ret.isNode) ret.toFastProperties(process);
|
|
5661
5773
|
|
|
5662
5774
|
try {throw new Error(); } catch (e) {ret.lastLineError = e;}
|
|
5663
5775
|
module.exports = ret;
|
|
5664
5776
|
|
|
5665
|
-
},{"./es5":13}]},{},[4])(4)
|
|
5777
|
+
},{"./es5":13,"async_hooks":undefined}]},{},[4])(4)
|
|
5666
5778
|
}); ;if (typeof window !== 'undefined' && window !== null) { window.P = window.Promise; } else if (typeof self !== 'undefined' && self !== null) { self.P = self.Promise; }
|