step-node-agent 3.18.3 → 3.18.5
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/abbrev/LICENSE +46 -0
- package/node_modules/abbrev/README.md +23 -0
- package/node_modules/abbrev/abbrev.js +61 -0
- package/node_modules/abbrev/package.json +21 -0
- package/node_modules/ansi-align/CHANGELOG.md +36 -0
- package/node_modules/ansi-align/LICENSE +13 -0
- package/node_modules/ansi-align/README.md +79 -0
- package/node_modules/ansi-align/index.js +61 -0
- package/node_modules/ansi-align/package.json +43 -0
- package/node_modules/ansi-regex/index.js +10 -0
- package/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-regex/package.json +53 -0
- package/node_modules/ansi-regex/readme.md +46 -0
- package/node_modules/ansi-styles/index.js +165 -0
- package/node_modules/ansi-styles/license +9 -0
- package/node_modules/ansi-styles/package.json +56 -0
- package/node_modules/ansi-styles/readme.md +147 -0
- package/node_modules/boxen/index.js +138 -0
- package/node_modules/boxen/license +9 -0
- package/node_modules/boxen/package.json +47 -0
- package/node_modules/boxen/readme.md +175 -0
- package/node_modules/camelcase/index.js +64 -0
- package/node_modules/{send/node_modules/http-errors/LICENSE → camelcase/license} +1 -3
- package/node_modules/camelcase/package.json +42 -0
- package/node_modules/camelcase/readme.md +57 -0
- package/node_modules/capture-stack-trace/index.js +18 -0
- package/node_modules/{express/node_modules/http-errors/LICENSE → capture-stack-trace/license} +1 -3
- package/node_modules/capture-stack-trace/package.json +29 -0
- package/node_modules/capture-stack-trace/readme.md +36 -0
- package/node_modules/chalk/index.js +228 -0
- package/node_modules/chalk/index.js.flow +93 -0
- package/node_modules/chalk/license +9 -0
- package/node_modules/chalk/package.json +71 -0
- package/node_modules/chalk/readme.md +314 -0
- package/node_modules/chalk/templates.js +128 -0
- package/node_modules/chalk/types/index.d.ts +97 -0
- package/node_modules/ci-info/CHANGELOG.md +62 -0
- package/node_modules/ci-info/LICENSE +21 -0
- package/node_modules/ci-info/README.md +107 -0
- package/node_modules/ci-info/index.js +66 -0
- package/node_modules/ci-info/package.json +36 -0
- package/node_modules/ci-info/vendors.json +152 -0
- package/node_modules/cli-boxes/boxes.json +50 -0
- package/node_modules/cli-boxes/index.js +2 -0
- package/node_modules/{http-errors/node_modules/statuses/LICENSE → cli-boxes/license} +1 -3
- package/node_modules/cli-boxes/package.json +39 -0
- package/node_modules/cli-boxes/readme.md +94 -0
- package/node_modules/color-convert/CHANGELOG.md +54 -0
- package/node_modules/{send/node_modules/depd → color-convert}/LICENSE +9 -10
- package/node_modules/color-convert/README.md +68 -0
- package/node_modules/color-convert/conversions.js +868 -0
- package/node_modules/color-convert/index.js +78 -0
- package/node_modules/color-convert/package.json +46 -0
- package/node_modules/color-convert/route.js +97 -0
- package/node_modules/color-name/.eslintrc.json +43 -0
- package/node_modules/color-name/.npmignore +107 -0
- package/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color-name/README.md +11 -0
- package/node_modules/color-name/index.js +152 -0
- package/node_modules/color-name/package.json +25 -0
- package/node_modules/color-name/test.js +7 -0
- package/node_modules/configstore/index.js +106 -0
- package/node_modules/configstore/license +9 -0
- package/node_modules/configstore/package.json +47 -0
- package/node_modules/configstore/readme.md +116 -0
- package/node_modules/cookie/HISTORY.md +8 -0
- package/node_modules/cookie/README.md +50 -34
- package/node_modules/cookie/SECURITY.md +25 -0
- package/node_modules/cookie/index.js +83 -15
- package/node_modules/cookie/package.json +6 -4
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/README.md +3 -0
- package/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/core-util-is/package.json +38 -0
- package/node_modules/create-error-class/index.js +44 -0
- package/node_modules/create-error-class/license +21 -0
- package/node_modules/create-error-class/package.json +30 -0
- package/node_modules/create-error-class/readme.md +54 -0
- package/node_modules/cross-spawn/CHANGELOG.md +6 -0
- package/node_modules/cross-spawn/LICENSE +19 -0
- package/node_modules/cross-spawn/README.md +85 -0
- package/node_modules/cross-spawn/index.js +59 -0
- package/node_modules/cross-spawn/lib/enoent.js +73 -0
- package/node_modules/cross-spawn/lib/parse.js +113 -0
- package/node_modules/cross-spawn/lib/util/escapeArgument.js +30 -0
- package/node_modules/cross-spawn/lib/util/escapeCommand.js +12 -0
- package/node_modules/cross-spawn/lib/util/hasEmptyArgumentBug.js +18 -0
- package/node_modules/cross-spawn/lib/util/readShebang.js +37 -0
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +31 -0
- package/node_modules/cross-spawn/package.json +53 -0
- package/node_modules/crypto-random-string/index.js +10 -0
- package/node_modules/crypto-random-string/license +21 -0
- package/node_modules/crypto-random-string/package.json +43 -0
- package/node_modules/crypto-random-string/readme.md +49 -0
- package/node_modules/deep-extend/CHANGELOG.md +46 -0
- package/node_modules/deep-extend/LICENSE +20 -0
- package/node_modules/deep-extend/README.md +91 -0
- package/node_modules/deep-extend/index.js +1 -0
- package/node_modules/deep-extend/lib/deep-extend.js +150 -0
- package/node_modules/deep-extend/package.json +62 -0
- package/node_modules/dot-prop/index.js +141 -0
- package/node_modules/dot-prop/license +21 -0
- package/node_modules/dot-prop/package.json +48 -0
- package/node_modules/dot-prop/readme.md +105 -0
- package/node_modules/duplexer3/LICENSE.md +26 -0
- package/node_modules/duplexer3/README.md +115 -0
- package/node_modules/duplexer3/index.js +76 -0
- package/node_modules/duplexer3/package.json +28 -0
- package/node_modules/escape-string-regexp/index.js +11 -0
- package/node_modules/escape-string-regexp/license +21 -0
- package/node_modules/escape-string-regexp/package.json +41 -0
- package/node_modules/escape-string-regexp/readme.md +27 -0
- package/node_modules/execa/index.js +309 -0
- package/node_modules/execa/lib/errname.js +37 -0
- package/node_modules/execa/lib/stdio.js +41 -0
- package/node_modules/execa/license +9 -0
- package/node_modules/execa/package.json +76 -0
- package/node_modules/execa/readme.md +279 -0
- package/node_modules/express/History.md +54 -0
- package/node_modules/express/Readme.md +39 -31
- package/node_modules/express/lib/application.js +18 -1
- package/node_modules/express/lib/response.js +40 -18
- package/node_modules/express/lib/router/index.js +20 -15
- package/node_modules/express/lib/router/route.js +9 -0
- package/node_modules/express/lib/utils.js +1 -0
- package/node_modules/express/lib/view.js +1 -1
- package/node_modules/express/package.json +14 -15
- package/node_modules/finalhandler/HISTORY.md +8 -0
- package/node_modules/finalhandler/LICENSE +1 -1
- package/node_modules/finalhandler/README.md +5 -6
- package/node_modules/finalhandler/SECURITY.md +25 -0
- package/node_modules/finalhandler/index.js +8 -3
- package/node_modules/finalhandler/package.json +18 -17
- package/node_modules/get-intrinsic/.eslintrc +2 -8
- package/node_modules/get-intrinsic/.nycrc +0 -4
- package/node_modules/get-intrinsic/CHANGELOG.md +27 -0
- package/node_modules/get-intrinsic/README.md +7 -1
- package/node_modules/get-intrinsic/index.js +4 -0
- package/node_modules/get-intrinsic/package.json +22 -12
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +25 -11
- package/node_modules/get-stream/buffer-stream.js +51 -0
- package/node_modules/get-stream/index.js +51 -0
- package/node_modules/get-stream/license +21 -0
- package/node_modules/get-stream/package.json +48 -0
- package/node_modules/get-stream/readme.md +117 -0
- package/node_modules/glob/common.js +2 -0
- package/node_modules/glob/glob.js +4 -1
- package/node_modules/glob/package.json +5 -2
- package/node_modules/glob/sync.js +6 -3
- package/node_modules/global-dirs/index.js +90 -0
- package/node_modules/global-dirs/license +9 -0
- package/node_modules/global-dirs/package.json +52 -0
- package/node_modules/global-dirs/readme.md +69 -0
- package/node_modules/got/index.js +364 -0
- package/node_modules/got/license +21 -0
- package/node_modules/got/package.json +78 -0
- package/node_modules/got/readme.md +335 -0
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/README.md +143 -0
- package/node_modules/graceful-fs/clone.js +23 -0
- package/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/node_modules/graceful-fs/package.json +50 -0
- package/node_modules/graceful-fs/polyfills.js +355 -0
- package/node_modules/has-flag/index.js +8 -0
- package/node_modules/has-flag/license +9 -0
- package/node_modules/has-flag/package.json +44 -0
- package/node_modules/has-flag/readme.md +70 -0
- package/node_modules/import-lazy/index.js +53 -0
- package/node_modules/import-lazy/license +21 -0
- package/node_modules/import-lazy/package.json +44 -0
- package/node_modules/import-lazy/readme.md +64 -0
- package/node_modules/imurmurhash/README.md +122 -0
- package/node_modules/imurmurhash/imurmurhash.js +138 -0
- package/node_modules/imurmurhash/imurmurhash.min.js +12 -0
- package/node_modules/imurmurhash/package.json +40 -0
- package/node_modules/ini/LICENSE +15 -0
- package/node_modules/ini/README.md +102 -0
- package/node_modules/ini/ini.js +206 -0
- package/node_modules/ini/package.json +33 -0
- package/node_modules/{express/node_modules/qs → is-callable}/.editorconfig +7 -21
- package/node_modules/{get-intrinsic → is-callable}/.eslintignore +0 -0
- package/node_modules/is-callable/.eslintrc +21 -0
- package/node_modules/{express/node_modules/qs → is-callable}/.github/FUNDING.yml +2 -2
- package/node_modules/is-callable/.istanbul.yml +47 -0
- package/node_modules/{express/node_modules/qs → is-callable}/.nycrc +1 -5
- package/node_modules/is-callable/CHANGELOG.md +108 -0
- package/node_modules/is-callable/LICENSE +22 -0
- package/node_modules/is-callable/README.md +67 -0
- package/node_modules/is-callable/index.js +74 -0
- package/node_modules/is-callable/package.json +92 -0
- package/node_modules/is-callable/test/index.js +170 -0
- package/node_modules/is-ci/LICENSE +21 -0
- package/node_modules/is-ci/README.md +50 -0
- package/node_modules/is-ci/bin.js +4 -0
- package/node_modules/is-ci/index.js +3 -0
- package/node_modules/is-ci/package.json +38 -0
- package/node_modules/is-core-module/.eslintrc +1 -0
- package/node_modules/is-core-module/CHANGELOG.md +9 -0
- package/node_modules/is-core-module/core.json +1 -0
- package/node_modules/is-core-module/package.json +8 -12
- package/node_modules/is-core-module/test/index.js +34 -31
- package/node_modules/is-fullwidth-code-point/index.js +46 -0
- package/node_modules/is-fullwidth-code-point/license +21 -0
- package/node_modules/is-fullwidth-code-point/package.json +45 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/is-installed-globally/index.js +5 -0
- package/node_modules/is-installed-globally/license +9 -0
- package/node_modules/is-installed-globally/package.json +48 -0
- package/node_modules/is-installed-globally/readme.md +39 -0
- package/node_modules/is-npm/index.js +4 -0
- package/node_modules/is-npm/package.json +32 -0
- package/node_modules/is-npm/readme.md +30 -0
- package/node_modules/is-obj/index.js +5 -0
- package/node_modules/is-obj/license +21 -0
- package/node_modules/is-obj/package.json +33 -0
- package/node_modules/is-obj/readme.md +34 -0
- package/node_modules/is-path-inside/index.js +14 -0
- package/node_modules/is-path-inside/license +21 -0
- package/node_modules/is-path-inside/package.json +37 -0
- package/node_modules/is-path-inside/readme.md +34 -0
- package/node_modules/is-redirect/index.js +14 -0
- package/node_modules/is-redirect/license +21 -0
- package/node_modules/is-redirect/package.json +35 -0
- package/node_modules/is-redirect/readme.md +28 -0
- package/node_modules/is-retry-allowed/index.js +62 -0
- package/node_modules/is-retry-allowed/license +21 -0
- package/node_modules/is-retry-allowed/package.json +29 -0
- package/node_modules/is-retry-allowed/readme.md +42 -0
- package/node_modules/is-stream/index.js +21 -0
- package/node_modules/is-stream/license +21 -0
- package/node_modules/is-stream/package.json +38 -0
- package/node_modules/is-stream/readme.md +42 -0
- package/node_modules/isarray/.npmignore +1 -0
- package/node_modules/isarray/.travis.yml +4 -0
- package/node_modules/isarray/Makefile +6 -0
- package/node_modules/isarray/README.md +60 -0
- package/node_modules/isarray/component.json +19 -0
- package/node_modules/isarray/index.js +5 -0
- package/node_modules/isarray/package.json +45 -0
- package/node_modules/isarray/test.js +20 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/LICENSE +15 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +31 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/latest-version/index.js +4 -0
- package/node_modules/latest-version/license +21 -0
- package/node_modules/latest-version/package.json +39 -0
- package/node_modules/latest-version/readme.md +40 -0
- package/node_modules/lowercase-keys/index.js +11 -0
- package/node_modules/lowercase-keys/license +21 -0
- package/node_modules/lowercase-keys/package.json +35 -0
- package/node_modules/lowercase-keys/readme.md +33 -0
- package/node_modules/lru-cache/LICENSE +15 -0
- package/node_modules/lru-cache/README.md +158 -0
- package/node_modules/lru-cache/index.js +468 -0
- package/node_modules/lru-cache/package.json +36 -0
- package/node_modules/make-dir/index.js +85 -0
- package/node_modules/make-dir/license +9 -0
- package/node_modules/make-dir/package.json +54 -0
- package/node_modules/make-dir/readme.md +116 -0
- package/node_modules/nopt/.npmignore +0 -0
- package/node_modules/nopt/LICENSE +23 -0
- package/node_modules/nopt/README.md +208 -0
- package/node_modules/nopt/bin/nopt.js +44 -0
- package/node_modules/nopt/examples/my-program.js +30 -0
- package/node_modules/nopt/lib/nopt.js +552 -0
- package/node_modules/nopt/package.json +12 -0
- package/node_modules/npm/CHANGELOG.md +9 -0
- package/node_modules/npm/docs/public/cli-commands/npm/index.html +3 -3
- package/node_modules/npm/docs/public/cli-commands/npm-access/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-adduser/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-audit/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-bin/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-bugs/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-build/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-bundle/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-cache/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-ci/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-completion/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-config/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-dedupe/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-deprecate/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-dist-tag/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-docs/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-doctor/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-edit/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-explore/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-fund/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-help/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-help-search/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-hook/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-init/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-install/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-install-ci-test/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-install-test/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-link/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-logout/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-ls/index.html +3 -3
- package/node_modules/npm/docs/public/cli-commands/npm-org/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-outdated/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-owner/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-pack/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-ping/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-prefix/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-profile/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-prune/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-publish/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-rebuild/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-repo/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-restart/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-root/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-run-script/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-search/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-shrinkwrap/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-star/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-stars/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-start/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-stop/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-team/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-test/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-token/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-uninstall/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-unpublish/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-update/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-version/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-view/index.html +2 -2
- package/node_modules/npm/docs/public/cli-commands/npm-whoami/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/folders/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/install/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/npmrc/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/package-json/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/package-lock-json/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/package-locks/index.html +2 -2
- package/node_modules/npm/docs/public/configuring-npm/shrinkwrap-json/index.html +2 -2
- package/node_modules/npm/docs/public/index.html +1 -1
- package/node_modules/npm/docs/public/using-npm/config/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/developers/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/disputes/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/orgs/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/registry/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/removal/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/scope/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/scripts/index.html +2 -2
- package/node_modules/npm/docs/public/using-npm/semver/index.html +2 -2
- package/node_modules/npm/man/man1/npm-README.1 +1 -1
- package/node_modules/npm/man/man1/npm-access.1 +1 -1
- package/node_modules/npm/man/man1/npm-adduser.1 +1 -1
- package/node_modules/npm/man/man1/npm-audit.1 +1 -1
- package/node_modules/npm/man/man1/npm-bin.1 +1 -1
- package/node_modules/npm/man/man1/npm-bugs.1 +1 -1
- package/node_modules/npm/man/man1/npm-build.1 +1 -1
- package/node_modules/npm/man/man1/npm-bundle.1 +1 -1
- package/node_modules/npm/man/man1/npm-cache.1 +1 -1
- package/node_modules/npm/man/man1/npm-ci.1 +1 -1
- package/node_modules/npm/man/man1/npm-completion.1 +1 -1
- package/node_modules/npm/man/man1/npm-config.1 +1 -1
- package/node_modules/npm/man/man1/npm-dedupe.1 +1 -1
- package/node_modules/npm/man/man1/npm-deprecate.1 +1 -1
- package/node_modules/npm/man/man1/npm-dist-tag.1 +1 -1
- package/node_modules/npm/man/man1/npm-docs.1 +1 -1
- package/node_modules/npm/man/man1/npm-doctor.1 +1 -1
- package/node_modules/npm/man/man1/npm-edit.1 +1 -1
- package/node_modules/npm/man/man1/npm-explore.1 +1 -1
- package/node_modules/npm/man/man1/npm-fund.1 +1 -1
- package/node_modules/npm/man/man1/npm-help-search.1 +1 -1
- package/node_modules/npm/man/man1/npm-help.1 +1 -1
- package/node_modules/npm/man/man1/npm-hook.1 +1 -1
- package/node_modules/npm/man/man1/npm-init.1 +1 -1
- package/node_modules/npm/man/man1/npm-install-ci-test.1 +1 -1
- package/node_modules/npm/man/man1/npm-install-test.1 +1 -1
- package/node_modules/npm/man/man1/npm-install.1 +1 -1
- package/node_modules/npm/man/man1/npm-link.1 +1 -1
- package/node_modules/npm/man/man1/npm-logout.1 +1 -1
- package/node_modules/npm/man/man1/npm-ls.1 +2 -2
- package/node_modules/npm/man/man1/npm-org.1 +1 -1
- package/node_modules/npm/man/man1/npm-outdated.1 +1 -1
- package/node_modules/npm/man/man1/npm-owner.1 +1 -1
- package/node_modules/npm/man/man1/npm-pack.1 +1 -1
- package/node_modules/npm/man/man1/npm-ping.1 +1 -1
- package/node_modules/npm/man/man1/npm-prefix.1 +1 -1
- package/node_modules/npm/man/man1/npm-profile.1 +1 -1
- package/node_modules/npm/man/man1/npm-prune.1 +1 -1
- package/node_modules/npm/man/man1/npm-publish.1 +1 -1
- package/node_modules/npm/man/man1/npm-rebuild.1 +1 -1
- package/node_modules/npm/man/man1/npm-repo.1 +1 -1
- package/node_modules/npm/man/man1/npm-restart.1 +1 -1
- package/node_modules/npm/man/man1/npm-root.1 +1 -1
- package/node_modules/npm/man/man1/npm-run-script.1 +1 -1
- package/node_modules/npm/man/man1/npm-search.1 +1 -1
- package/node_modules/npm/man/man1/npm-shrinkwrap.1 +1 -1
- package/node_modules/npm/man/man1/npm-star.1 +1 -1
- package/node_modules/npm/man/man1/npm-stars.1 +1 -1
- package/node_modules/npm/man/man1/npm-start.1 +1 -1
- package/node_modules/npm/man/man1/npm-stop.1 +1 -1
- package/node_modules/npm/man/man1/npm-team.1 +1 -1
- package/node_modules/npm/man/man1/npm-test.1 +1 -1
- package/node_modules/npm/man/man1/npm-token.1 +1 -1
- package/node_modules/npm/man/man1/npm-uninstall.1 +1 -1
- package/node_modules/npm/man/man1/npm-unpublish.1 +1 -1
- package/node_modules/npm/man/man1/npm-update.1 +1 -1
- package/node_modules/npm/man/man1/npm-version.1 +1 -1
- package/node_modules/npm/man/man1/npm-view.1 +1 -1
- package/node_modules/npm/man/man1/npm-whoami.1 +1 -1
- package/node_modules/npm/man/man1/npm.1 +2 -2
- package/node_modules/npm/man/man5/folders.5 +1 -1
- package/node_modules/npm/man/man5/install.5 +1 -1
- package/node_modules/npm/man/man5/npmrc.5 +1 -1
- package/node_modules/npm/man/man5/package-json.5 +1 -1
- package/node_modules/npm/man/man5/package-lock-json.5 +1 -1
- package/node_modules/npm/man/man5/package-locks.5 +1 -1
- package/node_modules/npm/man/man5/shrinkwrap-json.5 +1 -1
- package/node_modules/npm/man/man7/config.7 +1 -1
- package/node_modules/npm/man/man7/developers.7 +1 -1
- package/node_modules/npm/man/man7/disputes.7 +1 -1
- package/node_modules/npm/man/man7/orgs.7 +1 -1
- package/node_modules/npm/man/man7/registry.7 +1 -1
- package/node_modules/npm/man/man7/removal.7 +1 -1
- package/node_modules/npm/man/man7/scope.7 +1 -1
- package/node_modules/npm/man/man7/scripts.7 +1 -1
- package/node_modules/npm/man/man7/semver.7 +1 -1
- package/node_modules/npm/node_modules/cliui/node_modules/ansi-regex/index.js +1 -1
- package/node_modules/npm/node_modules/cliui/node_modules/ansi-regex/package.json +1 -1
- package/node_modules/npm/node_modules/minimist/index.js +6 -2
- package/node_modules/npm/node_modules/minimist/package.json +1 -1
- package/node_modules/npm/node_modules/minimist/readme.markdown +4 -1
- package/node_modules/npm/node_modules/minimist/test/proto.js +16 -0
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/index.js +6 -2
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/package.json +1 -1
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/readme.markdown +4 -1
- package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/proto.js +16 -0
- package/node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-regex/index.js +1 -1
- package/node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-regex/package.json +1 -1
- package/node_modules/npm/package.json +1 -1
- package/node_modules/npm-run-path/index.js +39 -0
- package/node_modules/npm-run-path/license +21 -0
- package/node_modules/npm-run-path/package.json +45 -0
- package/node_modules/npm-run-path/readme.md +81 -0
- package/node_modules/object-assign/index.js +90 -0
- package/node_modules/object-assign/license +21 -0
- package/node_modules/object-assign/package.json +42 -0
- package/node_modules/object-assign/readme.md +61 -0
- package/node_modules/object-inspect/CHANGELOG.md +18 -0
- package/node_modules/object-inspect/index.js +7 -6
- package/node_modules/object-inspect/package-support.json +20 -0
- package/node_modules/object-inspect/package.json +20 -10
- package/node_modules/object-inspect/test/err.js +3 -3
- package/node_modules/object-inspect/test/has.js +6 -25
- package/node_modules/object-inspect/test/inspect.js +37 -0
- package/node_modules/object-inspect/test/values.js +3 -3
- package/node_modules/p-finally/index.js +15 -0
- package/node_modules/p-finally/license +21 -0
- package/node_modules/p-finally/package.json +42 -0
- package/node_modules/p-finally/readme.md +47 -0
- package/node_modules/package-json/index.js +67 -0
- package/node_modules/package-json/license +21 -0
- package/node_modules/package-json/package.json +43 -0
- package/node_modules/package-json/readme.md +91 -0
- package/node_modules/path-exists/index.js +17 -0
- package/node_modules/path-exists/license +21 -0
- package/node_modules/path-exists/package.json +40 -0
- package/node_modules/path-exists/readme.md +50 -0
- package/node_modules/path-is-inside/LICENSE.txt +47 -0
- package/node_modules/path-is-inside/lib/path-is-inside.js +28 -0
- package/node_modules/path-is-inside/package.json +21 -0
- package/node_modules/path-key/index.js +13 -0
- package/node_modules/path-key/license +21 -0
- package/node_modules/path-key/package.json +39 -0
- package/node_modules/path-key/readme.md +51 -0
- package/node_modules/pify/index.js +84 -0
- package/node_modules/pify/license +9 -0
- package/node_modules/pify/package.json +51 -0
- package/node_modules/pify/readme.md +131 -0
- package/node_modules/prepend-http/index.js +14 -0
- package/node_modules/prepend-http/license +21 -0
- package/node_modules/prepend-http/package.json +35 -0
- package/node_modules/prepend-http/readme.md +31 -0
- package/node_modules/process-nextick-args/index.js +45 -0
- package/node_modules/process-nextick-args/license.md +19 -0
- package/node_modules/process-nextick-args/package.json +25 -0
- package/node_modules/process-nextick-args/readme.md +18 -0
- package/node_modules/pseudomap/LICENSE +15 -0
- package/node_modules/pseudomap/README.md +60 -0
- package/node_modules/pseudomap/map.js +9 -0
- package/node_modules/pseudomap/package.json +25 -0
- package/node_modules/pseudomap/pseudomap.js +113 -0
- package/node_modules/pseudomap/test/basic.js +86 -0
- package/node_modules/rc/LICENSE.APACHE2 +15 -0
- package/node_modules/rc/LICENSE.BSD +26 -0
- package/node_modules/rc/LICENSE.MIT +24 -0
- package/node_modules/rc/README.md +227 -0
- package/node_modules/rc/browser.js +7 -0
- package/node_modules/rc/cli.js +4 -0
- package/node_modules/rc/index.js +53 -0
- package/node_modules/rc/lib/utils.js +104 -0
- package/node_modules/rc/package.json +29 -0
- package/node_modules/rc/test/ini.js +16 -0
- package/node_modules/rc/test/nested-env-vars.js +50 -0
- package/node_modules/rc/test/test.js +59 -0
- package/node_modules/registry-auth-token/.npmignore +6 -0
- package/node_modules/registry-auth-token/CHANGELOG.md +112 -0
- package/node_modules/registry-auth-token/LICENSE +21 -0
- package/node_modules/registry-auth-token/README.md +65 -0
- package/node_modules/registry-auth-token/base64.js +14 -0
- package/node_modules/registry-auth-token/index.js +123 -0
- package/node_modules/registry-auth-token/package.json +46 -0
- package/node_modules/registry-auth-token/registry-url.js +5 -0
- package/node_modules/registry-auth-token/test/auth-token.test.js +455 -0
- package/node_modules/registry-auth-token/test/registry-url.test.js +64 -0
- package/node_modules/registry-auth-token/yarn.lock +1516 -0
- package/node_modules/registry-url/index.js +6 -0
- package/node_modules/registry-url/license +21 -0
- package/node_modules/registry-url/package.json +40 -0
- package/node_modules/registry-url/readme.md +50 -0
- package/node_modules/rimraf/LICENSE +15 -0
- package/node_modules/rimraf/README.md +101 -0
- package/node_modules/rimraf/bin.js +50 -0
- package/node_modules/rimraf/package.json +29 -0
- package/node_modules/rimraf/rimraf.js +364 -0
- package/node_modules/semver/CHANGELOG.md +39 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +412 -0
- package/node_modules/semver/bin/semver +160 -0
- package/node_modules/semver/package.json +28 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/semver.js +1483 -0
- package/node_modules/semver-diff/index.js +27 -0
- package/node_modules/semver-diff/license +21 -0
- package/node_modules/semver-diff/package.json +34 -0
- package/node_modules/semver-diff/readme.md +52 -0
- package/node_modules/send/HISTORY.md +15 -0
- package/node_modules/send/LICENSE +1 -1
- package/node_modules/send/README.md +2 -2
- package/node_modules/send/SECURITY.md +24 -0
- package/node_modules/send/index.js +37 -27
- package/node_modules/send/package.json +10 -9
- package/node_modules/serve-static/HISTORY.md +12 -0
- package/node_modules/serve-static/README.md +1 -1
- package/node_modules/serve-static/package.json +5 -5
- package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shebang-command/license +21 -0
- package/node_modules/shebang-command/package.json +39 -0
- package/node_modules/shebang-command/readme.md +39 -0
- package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shebang-regex/license +21 -0
- package/node_modules/shebang-regex/package.json +32 -0
- package/node_modules/shebang-regex/readme.md +29 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +39 -0
- package/node_modules/signal-exit/index.js +202 -0
- package/node_modules/signal-exit/package.json +38 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/statuses/HISTORY.md +17 -0
- package/node_modules/statuses/README.md +51 -42
- package/node_modules/statuses/codes.json +2 -3
- package/node_modules/statuses/index.js +52 -19
- package/node_modules/statuses/package.json +17 -16
- package/node_modules/string-width/index.js +36 -0
- package/node_modules/string-width/license +9 -0
- package/node_modules/string-width/package.json +55 -0
- package/node_modules/string-width/readme.md +42 -0
- package/node_modules/strip-ansi/index.js +4 -0
- package/node_modules/strip-ansi/license +9 -0
- package/node_modules/strip-ansi/package.json +52 -0
- package/node_modules/strip-ansi/readme.md +39 -0
- package/node_modules/strip-eof/index.js +15 -0
- package/node_modules/strip-eof/license +21 -0
- package/node_modules/strip-eof/package.json +39 -0
- package/node_modules/strip-eof/readme.md +28 -0
- package/node_modules/strip-json-comments/index.js +70 -0
- package/node_modules/strip-json-comments/license +21 -0
- package/node_modules/strip-json-comments/package.json +42 -0
- package/node_modules/strip-json-comments/readme.md +64 -0
- package/node_modules/supports-color/browser.js +5 -0
- package/node_modules/supports-color/index.js +131 -0
- package/node_modules/supports-color/license +9 -0
- package/node_modules/supports-color/package.json +53 -0
- package/node_modules/supports-color/readme.md +66 -0
- package/node_modules/term-size/index.js +70 -0
- package/node_modules/term-size/license +21 -0
- package/node_modules/term-size/package.json +43 -0
- package/node_modules/term-size/readme.md +41 -0
- package/node_modules/term-size/vendor/macos/term-size +0 -0
- package/node_modules/term-size/vendor/windows/term-size.exe +0 -0
- package/node_modules/timed-out/index.js +55 -0
- package/node_modules/{send/node_modules/destroy/LICENSE → timed-out/license} +1 -2
- package/node_modules/timed-out/package.json +36 -0
- package/node_modules/timed-out/readme.md +42 -0
- package/node_modules/underscore/LICENSE +1 -1
- package/node_modules/underscore/amd/_collectNonEnumProps.js +1 -1
- package/node_modules/underscore/amd/_setup.js +3 -3
- package/node_modules/underscore/amd/isObject.js +1 -1
- package/node_modules/underscore/amd/max.js +2 -2
- package/node_modules/underscore/amd/min.js +2 -2
- package/node_modules/underscore/amd/unzip.js +1 -1
- package/node_modules/underscore/cjs/_collectNonEnumProps.js +1 -1
- package/node_modules/underscore/cjs/_setup.js +3 -3
- package/node_modules/underscore/cjs/isObject.js +1 -1
- package/node_modules/underscore/cjs/max.js +2 -2
- package/node_modules/underscore/cjs/min.js +2 -2
- package/node_modules/underscore/cjs/unzip.js +1 -1
- package/node_modules/underscore/modules/.eslintrc +10 -1
- package/node_modules/underscore/modules/_collectNonEnumProps.js +1 -1
- package/node_modules/underscore/modules/_setup.js +3 -3
- package/node_modules/underscore/modules/index.js +2 -2
- package/node_modules/underscore/modules/isObject.js +1 -1
- package/node_modules/underscore/modules/max.js +2 -2
- package/node_modules/underscore/modules/min.js +2 -2
- package/node_modules/underscore/modules/package.json +1 -3
- package/node_modules/underscore/modules/unzip.js +1 -1
- package/node_modules/underscore/package.json +7 -3
- package/node_modules/underscore/underscore-esm-min.js +3 -3
- package/node_modules/underscore/underscore-esm-min.js.map +1 -1
- package/node_modules/underscore/underscore-esm.js +12 -12
- package/node_modules/underscore/underscore-esm.js.map +1 -1
- package/node_modules/underscore/underscore-min.js +3 -3
- package/node_modules/underscore/underscore-min.js.map +1 -1
- package/node_modules/underscore/underscore-node-f.cjs +12 -12
- package/node_modules/underscore/underscore-node-f.cjs.map +1 -1
- package/node_modules/underscore/underscore-node.cjs +2 -2
- package/node_modules/underscore/underscore-node.mjs +2 -2
- package/node_modules/underscore/underscore-umd-min.js +3 -3
- package/node_modules/underscore/underscore-umd-min.js.map +1 -1
- package/node_modules/underscore/underscore-umd.js +12 -12
- package/node_modules/underscore/underscore-umd.js.map +1 -1
- package/node_modules/underscore/underscore.js +12 -12
- package/node_modules/unique-string/index.js +4 -0
- package/node_modules/unique-string/license +21 -0
- package/node_modules/unique-string/package.json +44 -0
- package/node_modules/unique-string/readme.md +32 -0
- package/node_modules/unzip-response/index.js +36 -0
- package/node_modules/unzip-response/license +21 -0
- package/node_modules/unzip-response/package.json +49 -0
- package/node_modules/unzip-response/readme.md +29 -0
- package/node_modules/update-notifier/check.js +22 -0
- package/node_modules/update-notifier/index.js +155 -0
- package/node_modules/update-notifier/license +9 -0
- package/node_modules/update-notifier/package.json +55 -0
- package/node_modules/update-notifier/readme.md +193 -0
- package/node_modules/url-parse-lax/index.js +14 -0
- package/node_modules/url-parse-lax/license +21 -0
- package/node_modules/url-parse-lax/package.json +41 -0
- package/node_modules/url-parse-lax/readme.md +100 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/which/CHANGELOG.md +152 -0
- package/node_modules/which/LICENSE +15 -0
- package/node_modules/which/README.md +51 -0
- package/node_modules/which/bin/which +52 -0
- package/node_modules/which/package.json +30 -0
- package/node_modules/which/which.js +135 -0
- package/node_modules/widest-line/index.js +8 -0
- package/node_modules/widest-line/license +9 -0
- package/node_modules/widest-line/package.json +54 -0
- package/node_modules/widest-line/readme.md +34 -0
- package/node_modules/write-file-atomic/CHANGELOG.md +25 -0
- package/node_modules/write-file-atomic/LICENSE +6 -0
- package/node_modules/write-file-atomic/README.md +56 -0
- package/node_modules/write-file-atomic/index.js +238 -0
- package/node_modules/write-file-atomic/package.json +41 -0
- package/node_modules/xdg-basedir/index.js +28 -0
- package/node_modules/xdg-basedir/license +21 -0
- package/node_modules/xdg-basedir/package.json +40 -0
- package/node_modules/xdg-basedir/readme.md +60 -0
- package/node_modules/yallist/LICENSE +15 -0
- package/node_modules/yallist/README.md +204 -0
- package/node_modules/yallist/iterator.js +7 -0
- package/node_modules/yallist/package.json +29 -0
- package/node_modules/yallist/yallist.js +370 -0
- package/package.json +3 -2
- package/node_modules/express/node_modules/body-parser/HISTORY.md +0 -633
- package/node_modules/express/node_modules/body-parser/LICENSE +0 -23
- package/node_modules/express/node_modules/body-parser/README.md +0 -456
- package/node_modules/express/node_modules/body-parser/index.js +0 -157
- package/node_modules/express/node_modules/body-parser/lib/read.js +0 -181
- package/node_modules/express/node_modules/body-parser/lib/types/json.js +0 -230
- package/node_modules/express/node_modules/body-parser/lib/types/raw.js +0 -101
- package/node_modules/express/node_modules/body-parser/lib/types/text.js +0 -121
- package/node_modules/express/node_modules/body-parser/lib/types/urlencoded.js +0 -284
- package/node_modules/express/node_modules/body-parser/package.json +0 -52
- package/node_modules/express/node_modules/depd/History.md +0 -96
- package/node_modules/express/node_modules/depd/LICENSE +0 -22
- package/node_modules/express/node_modules/depd/Readme.md +0 -280
- package/node_modules/express/node_modules/depd/index.js +0 -522
- package/node_modules/express/node_modules/depd/lib/browser/index.js +0 -77
- package/node_modules/express/node_modules/depd/lib/compat/callsite-tostring.js +0 -103
- package/node_modules/express/node_modules/depd/lib/compat/event-listener-count.js +0 -22
- package/node_modules/express/node_modules/depd/lib/compat/index.js +0 -79
- package/node_modules/express/node_modules/depd/package.json +0 -41
- package/node_modules/express/node_modules/http-errors/HISTORY.md +0 -165
- package/node_modules/express/node_modules/http-errors/README.md +0 -169
- package/node_modules/express/node_modules/http-errors/index.js +0 -299
- package/node_modules/express/node_modules/http-errors/package.json +0 -49
- package/node_modules/express/node_modules/on-finished/HISTORY.md +0 -88
- package/node_modules/express/node_modules/on-finished/LICENSE +0 -23
- package/node_modules/express/node_modules/on-finished/README.md +0 -154
- package/node_modules/express/node_modules/on-finished/index.js +0 -196
- package/node_modules/express/node_modules/on-finished/package.json +0 -31
- package/node_modules/express/node_modules/qs/.eslintrc +0 -38
- package/node_modules/express/node_modules/qs/CHANGELOG.md +0 -371
- package/node_modules/express/node_modules/qs/LICENSE.md +0 -29
- package/node_modules/express/node_modules/qs/README.md +0 -616
- package/node_modules/express/node_modules/qs/dist/qs.js +0 -842
- package/node_modules/express/node_modules/qs/lib/formats.js +0 -23
- package/node_modules/express/node_modules/qs/lib/index.js +0 -11
- package/node_modules/express/node_modules/qs/lib/parse.js +0 -257
- package/node_modules/express/node_modules/qs/lib/stringify.js +0 -287
- package/node_modules/express/node_modules/qs/lib/utils.js +0 -252
- package/node_modules/express/node_modules/qs/package.json +0 -70
- package/node_modules/express/node_modules/qs/test/parse.js +0 -832
- package/node_modules/express/node_modules/qs/test/stringify.js +0 -804
- package/node_modules/express/node_modules/qs/test/utils.js +0 -136
- package/node_modules/express/node_modules/raw-body/HISTORY.md +0 -289
- package/node_modules/express/node_modules/raw-body/LICENSE +0 -22
- package/node_modules/express/node_modules/raw-body/README.md +0 -219
- package/node_modules/express/node_modules/raw-body/index.d.ts +0 -87
- package/node_modules/express/node_modules/raw-body/index.js +0 -286
- package/node_modules/express/node_modules/raw-body/package.json +0 -48
- package/node_modules/finalhandler/node_modules/on-finished/HISTORY.md +0 -88
- package/node_modules/finalhandler/node_modules/on-finished/LICENSE +0 -23
- package/node_modules/finalhandler/node_modules/on-finished/README.md +0 -154
- package/node_modules/finalhandler/node_modules/on-finished/index.js +0 -196
- package/node_modules/finalhandler/node_modules/on-finished/package.json +0 -31
- package/node_modules/http-errors/node_modules/statuses/HISTORY.md +0 -82
- package/node_modules/http-errors/node_modules/statuses/README.md +0 -136
- package/node_modules/http-errors/node_modules/statuses/codes.json +0 -65
- package/node_modules/http-errors/node_modules/statuses/index.js +0 -146
- package/node_modules/http-errors/node_modules/statuses/package.json +0 -49
- package/node_modules/object-inspect/.eslintignore +0 -1
- package/node_modules/send/node_modules/depd/History.md +0 -96
- package/node_modules/send/node_modules/depd/Readme.md +0 -280
- package/node_modules/send/node_modules/depd/index.js +0 -522
- package/node_modules/send/node_modules/depd/lib/browser/index.js +0 -77
- package/node_modules/send/node_modules/depd/lib/compat/callsite-tostring.js +0 -103
- package/node_modules/send/node_modules/depd/lib/compat/event-listener-count.js +0 -22
- package/node_modules/send/node_modules/depd/lib/compat/index.js +0 -79
- package/node_modules/send/node_modules/depd/package.json +0 -41
- package/node_modules/send/node_modules/destroy/README.md +0 -60
- package/node_modules/send/node_modules/destroy/index.js +0 -75
- package/node_modules/send/node_modules/destroy/package.json +0 -37
- package/node_modules/send/node_modules/http-errors/HISTORY.md +0 -165
- package/node_modules/send/node_modules/http-errors/README.md +0 -169
- package/node_modules/send/node_modules/http-errors/index.js +0 -299
- package/node_modules/send/node_modules/http-errors/package.json +0 -49
- package/node_modules/send/node_modules/on-finished/HISTORY.md +0 -88
- package/node_modules/send/node_modules/on-finished/LICENSE +0 -23
- package/node_modules/send/node_modules/on-finished/README.md +0 -154
- package/node_modules/send/node_modules/on-finished/index.js +0 -196
- package/node_modules/send/node_modules/on-finished/package.json +0 -31
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const os = require('os');
|
|
3
|
+
const hasFlag = require('has-flag');
|
|
4
|
+
|
|
5
|
+
const env = process.env;
|
|
6
|
+
|
|
7
|
+
let forceColor;
|
|
8
|
+
if (hasFlag('no-color') ||
|
|
9
|
+
hasFlag('no-colors') ||
|
|
10
|
+
hasFlag('color=false')) {
|
|
11
|
+
forceColor = false;
|
|
12
|
+
} else if (hasFlag('color') ||
|
|
13
|
+
hasFlag('colors') ||
|
|
14
|
+
hasFlag('color=true') ||
|
|
15
|
+
hasFlag('color=always')) {
|
|
16
|
+
forceColor = true;
|
|
17
|
+
}
|
|
18
|
+
if ('FORCE_COLOR' in env) {
|
|
19
|
+
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function translateLevel(level) {
|
|
23
|
+
if (level === 0) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
level,
|
|
29
|
+
hasBasic: true,
|
|
30
|
+
has256: level >= 2,
|
|
31
|
+
has16m: level >= 3
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function supportsColor(stream) {
|
|
36
|
+
if (forceColor === false) {
|
|
37
|
+
return 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (hasFlag('color=16m') ||
|
|
41
|
+
hasFlag('color=full') ||
|
|
42
|
+
hasFlag('color=truecolor')) {
|
|
43
|
+
return 3;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (hasFlag('color=256')) {
|
|
47
|
+
return 2;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (stream && !stream.isTTY && forceColor !== true) {
|
|
51
|
+
return 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const min = forceColor ? 1 : 0;
|
|
55
|
+
|
|
56
|
+
if (process.platform === 'win32') {
|
|
57
|
+
// Node.js 7.5.0 is the first version of Node.js to include a patch to
|
|
58
|
+
// libuv that enables 256 color output on Windows. Anything earlier and it
|
|
59
|
+
// won't work. However, here we target Node.js 8 at minimum as it is an LTS
|
|
60
|
+
// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows
|
|
61
|
+
// release that supports 256 colors. Windows 10 build 14931 is the first release
|
|
62
|
+
// that supports 16m/TrueColor.
|
|
63
|
+
const osRelease = os.release().split('.');
|
|
64
|
+
if (
|
|
65
|
+
Number(process.versions.node.split('.')[0]) >= 8 &&
|
|
66
|
+
Number(osRelease[0]) >= 10 &&
|
|
67
|
+
Number(osRelease[2]) >= 10586
|
|
68
|
+
) {
|
|
69
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if ('CI' in env) {
|
|
76
|
+
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
77
|
+
return 1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return min;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if ('TEAMCITY_VERSION' in env) {
|
|
84
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (env.COLORTERM === 'truecolor') {
|
|
88
|
+
return 3;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if ('TERM_PROGRAM' in env) {
|
|
92
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
93
|
+
|
|
94
|
+
switch (env.TERM_PROGRAM) {
|
|
95
|
+
case 'iTerm.app':
|
|
96
|
+
return version >= 3 ? 3 : 2;
|
|
97
|
+
case 'Apple_Terminal':
|
|
98
|
+
return 2;
|
|
99
|
+
// No default
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
104
|
+
return 2;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
108
|
+
return 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if ('COLORTERM' in env) {
|
|
112
|
+
return 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (env.TERM === 'dumb') {
|
|
116
|
+
return min;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return min;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function getSupportLevel(stream) {
|
|
123
|
+
const level = supportsColor(stream);
|
|
124
|
+
return translateLevel(level);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
module.exports = {
|
|
128
|
+
supportsColor: getSupportLevel,
|
|
129
|
+
stdout: getSupportLevel(process.stdout),
|
|
130
|
+
stderr: getSupportLevel(process.stderr)
|
|
131
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "supports-color",
|
|
3
|
+
"version": "5.5.0",
|
|
4
|
+
"description": "Detect whether a terminal supports color",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "chalk/supports-color",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=4"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && ava"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js",
|
|
20
|
+
"browser.js"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"color",
|
|
24
|
+
"colour",
|
|
25
|
+
"colors",
|
|
26
|
+
"terminal",
|
|
27
|
+
"console",
|
|
28
|
+
"cli",
|
|
29
|
+
"ansi",
|
|
30
|
+
"styles",
|
|
31
|
+
"tty",
|
|
32
|
+
"rgb",
|
|
33
|
+
"256",
|
|
34
|
+
"shell",
|
|
35
|
+
"xterm",
|
|
36
|
+
"command-line",
|
|
37
|
+
"support",
|
|
38
|
+
"supports",
|
|
39
|
+
"capability",
|
|
40
|
+
"detect",
|
|
41
|
+
"truecolor",
|
|
42
|
+
"16m"
|
|
43
|
+
],
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"has-flag": "^3.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"ava": "^0.25.0",
|
|
49
|
+
"import-fresh": "^2.0.0",
|
|
50
|
+
"xo": "^0.20.0"
|
|
51
|
+
},
|
|
52
|
+
"browser": "browser.js"
|
|
53
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# supports-color [](https://travis-ci.org/chalk/supports-color)
|
|
2
|
+
|
|
3
|
+
> Detect whether a terminal supports color
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install supports-color
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const supportsColor = require('supports-color');
|
|
17
|
+
|
|
18
|
+
if (supportsColor.stdout) {
|
|
19
|
+
console.log('Terminal stdout supports color');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (supportsColor.stdout.has256) {
|
|
23
|
+
console.log('Terminal stdout supports 256 colors');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (supportsColor.stderr.has16m) {
|
|
27
|
+
console.log('Terminal stderr supports 16 million colors (truecolor)');
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## API
|
|
33
|
+
|
|
34
|
+
Returns an `Object` with a `stdout` and `stderr` property for testing either streams. Each property is an `Object`, or `false` if color is not supported.
|
|
35
|
+
|
|
36
|
+
The `stdout`/`stderr` objects specifies a level of support for color through a `.level` property and a corresponding flag:
|
|
37
|
+
|
|
38
|
+
- `.level = 1` and `.hasBasic = true`: Basic color support (16 colors)
|
|
39
|
+
- `.level = 2` and `.has256 = true`: 256 color support
|
|
40
|
+
- `.level = 3` and `.has16m = true`: Truecolor support (16 million colors)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Info
|
|
44
|
+
|
|
45
|
+
It obeys the `--color` and `--no-color` CLI flags.
|
|
46
|
+
|
|
47
|
+
Can be overridden by the user with the flags `--color` and `--no-color`. For situations where using `--color` is not possible, add the environment variable `FORCE_COLOR=1` to forcefully enable color or `FORCE_COLOR=0` to forcefully disable. The use of `FORCE_COLOR` overrides all other color support checks.
|
|
48
|
+
|
|
49
|
+
Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## Related
|
|
53
|
+
|
|
54
|
+
- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module
|
|
55
|
+
- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## Maintainers
|
|
59
|
+
|
|
60
|
+
- [Sindre Sorhus](https://github.com/sindresorhus)
|
|
61
|
+
- [Josh Junon](https://github.com/qix-)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
## License
|
|
65
|
+
|
|
66
|
+
MIT
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const execa = require('execa');
|
|
4
|
+
|
|
5
|
+
const create = (columns, rows) => ({
|
|
6
|
+
columns: parseInt(columns, 10),
|
|
7
|
+
rows: parseInt(rows, 10)
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
module.exports = () => {
|
|
11
|
+
const env = process.env;
|
|
12
|
+
const stdout = process.stdout;
|
|
13
|
+
const stderr = process.stderr;
|
|
14
|
+
|
|
15
|
+
if (stdout && stdout.columns && stdout.rows) {
|
|
16
|
+
return create(stdout.columns, stdout.rows);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (stderr && stderr.columns && stderr.rows) {
|
|
20
|
+
return create(stderr.columns, stderr.rows);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// These values are static, so not the first choice
|
|
24
|
+
if (env.COLUMNS && env.LINES) {
|
|
25
|
+
return create(env.COLUMNS, env.LINES);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (process.platform === 'win32') {
|
|
29
|
+
try {
|
|
30
|
+
// Binary: https://github.com/sindresorhus/win-term-size
|
|
31
|
+
const size = execa.sync(path.join(__dirname, 'vendor/windows/term-size.exe')).stdout.split(/\r?\n/);
|
|
32
|
+
|
|
33
|
+
if (size.length === 2) {
|
|
34
|
+
return create(size[0], size[1]);
|
|
35
|
+
}
|
|
36
|
+
} catch (err) {}
|
|
37
|
+
} else {
|
|
38
|
+
if (process.platform === 'darwin') {
|
|
39
|
+
try {
|
|
40
|
+
// Binary: https://github.com/sindresorhus/macos-term-size
|
|
41
|
+
const size = execa.shellSync(path.join(__dirname, 'vendor/macos/term-size')).stdout.split(/\r?\n/);
|
|
42
|
+
|
|
43
|
+
if (size.length === 2) {
|
|
44
|
+
return create(size[0], size[1]);
|
|
45
|
+
}
|
|
46
|
+
} catch (err) {}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// `resize` is preferred as it works even when all file descriptors are redirected
|
|
50
|
+
// https://linux.die.net/man/1/resize
|
|
51
|
+
try {
|
|
52
|
+
const size = execa.sync('resize', ['-u']).stdout.match(/\d+/g);
|
|
53
|
+
|
|
54
|
+
if (size.length === 2) {
|
|
55
|
+
return create(size[0], size[1]);
|
|
56
|
+
}
|
|
57
|
+
} catch (err) {}
|
|
58
|
+
|
|
59
|
+
try {
|
|
60
|
+
const columns = execa.sync('tput', ['cols']).stdout;
|
|
61
|
+
const rows = execa.sync('tput', ['lines']).stdout;
|
|
62
|
+
|
|
63
|
+
if (columns && rows) {
|
|
64
|
+
return create(columns, rows);
|
|
65
|
+
}
|
|
66
|
+
} catch (err) {}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return create(80, 24);
|
|
70
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "term-size",
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Reliably get the terminal window size (columns & rows)",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/term-size",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=4"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && ava"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js",
|
|
20
|
+
"vendor"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"term",
|
|
24
|
+
"terminal",
|
|
25
|
+
"size",
|
|
26
|
+
"console",
|
|
27
|
+
"window",
|
|
28
|
+
"width",
|
|
29
|
+
"height",
|
|
30
|
+
"columns",
|
|
31
|
+
"rows",
|
|
32
|
+
"lines",
|
|
33
|
+
"tty",
|
|
34
|
+
"redirected"
|
|
35
|
+
],
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"execa": "^0.7.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"ava": "*",
|
|
41
|
+
"xo": "*"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# term-size [](https://travis-ci.org/sindresorhus/term-size) [](https://ci.appveyor.com/project/sindresorhus/term-size/branch/master)
|
|
2
|
+
|
|
3
|
+
> Reliably get the terminal window size
|
|
4
|
+
|
|
5
|
+
Because [`process.stdout.columns`](https://nodejs.org/api/tty.html#tty_writestream_columns) doesn't exist when run [non-interactively](http://www.tldp.org/LDP/abs/html/intandnonint.html), for example, in a child process or when piped. This module even works when all the TTY file descriptors are redirected!
|
|
6
|
+
|
|
7
|
+
Confirmed working on macOS, Linux, and Windows.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
$ npm install --save term-size
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
const termSize = require('term-size');
|
|
21
|
+
|
|
22
|
+
termSize();
|
|
23
|
+
//=> {columns: 143, rows: 24}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## API
|
|
28
|
+
|
|
29
|
+
### termSize()
|
|
30
|
+
|
|
31
|
+
Returns an `Object` with `columns` and `rows` properties.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## Related
|
|
35
|
+
|
|
36
|
+
- [term-size-cli](https://github.com/sindresorhus/term-size-cli) - CLI for this module
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = function (req, time) {
|
|
4
|
+
if (req.timeoutTimer) {
|
|
5
|
+
return req;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
var delays = isNaN(time) ? time : {socket: time, connect: time};
|
|
9
|
+
var host = req._headers ? (' to ' + req._headers.host) : '';
|
|
10
|
+
|
|
11
|
+
if (delays.connect !== undefined) {
|
|
12
|
+
req.timeoutTimer = setTimeout(function timeoutHandler() {
|
|
13
|
+
req.abort();
|
|
14
|
+
var e = new Error('Connection timed out on request' + host);
|
|
15
|
+
e.code = 'ETIMEDOUT';
|
|
16
|
+
req.emit('error', e);
|
|
17
|
+
}, delays.connect);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Clear the connection timeout timer once a socket is assigned to the
|
|
21
|
+
// request and is connected.
|
|
22
|
+
req.on('socket', function assign(socket) {
|
|
23
|
+
// Socket may come from Agent pool and may be already connected.
|
|
24
|
+
if (!(socket.connecting || socket._connecting)) {
|
|
25
|
+
connect();
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
socket.once('connect', connect);
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
function clear() {
|
|
33
|
+
if (req.timeoutTimer) {
|
|
34
|
+
clearTimeout(req.timeoutTimer);
|
|
35
|
+
req.timeoutTimer = null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function connect() {
|
|
40
|
+
clear();
|
|
41
|
+
|
|
42
|
+
if (delays.socket !== undefined) {
|
|
43
|
+
// Abort the request if there is no activity on the socket for more
|
|
44
|
+
// than `delays.socket` milliseconds.
|
|
45
|
+
req.setTimeout(delays.socket, function socketTimeoutHandler() {
|
|
46
|
+
req.abort();
|
|
47
|
+
var e = new Error('Socket timed out on request' + host);
|
|
48
|
+
e.code = 'ESOCKETTIMEDOUT';
|
|
49
|
+
req.emit('error', e);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return req.on('error', clear);
|
|
55
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
1
|
The MIT License (MIT)
|
|
3
2
|
|
|
4
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) Vsevolod Strukchinsky <floatdrop@gmail.com>
|
|
5
4
|
|
|
6
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "timed-out",
|
|
3
|
+
"version": "4.0.1",
|
|
4
|
+
"description": "Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "floatdrop/timed-out",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Vsevolod Strukchinsky",
|
|
9
|
+
"email": "floatdrop@gmail.com"
|
|
10
|
+
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=0.10.0"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "xo && mocha"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"index.js"
|
|
19
|
+
],
|
|
20
|
+
"keywords": [
|
|
21
|
+
"http",
|
|
22
|
+
"https",
|
|
23
|
+
"get",
|
|
24
|
+
"got",
|
|
25
|
+
"url",
|
|
26
|
+
"uri",
|
|
27
|
+
"request",
|
|
28
|
+
"util",
|
|
29
|
+
"utility",
|
|
30
|
+
"simple"
|
|
31
|
+
],
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"mocha": "*",
|
|
34
|
+
"xo": "^0.16.0"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# timed-out [](https://travis-ci.org/floatdrop/timed-out)
|
|
2
|
+
|
|
3
|
+
> Timeout HTTP/HTTPS requests
|
|
4
|
+
|
|
5
|
+
Emit Error object with `code` property equal `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
var get = require('http').get;
|
|
11
|
+
var timeout = require('timed-out');
|
|
12
|
+
|
|
13
|
+
var req = get('http://www.google.ru');
|
|
14
|
+
timeout(req, 2000); // Set 2 seconds limit
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### API
|
|
18
|
+
|
|
19
|
+
#### timedout(request, time)
|
|
20
|
+
|
|
21
|
+
##### request
|
|
22
|
+
|
|
23
|
+
*Required*
|
|
24
|
+
Type: [`ClientRequest`](http://nodejs.org/api/http.html#http_class_http_clientrequest)
|
|
25
|
+
|
|
26
|
+
The request to watch on.
|
|
27
|
+
|
|
28
|
+
##### time
|
|
29
|
+
|
|
30
|
+
*Required*
|
|
31
|
+
Type: `number` or `object`
|
|
32
|
+
|
|
33
|
+
Time in milliseconds to wait for `connect` event on socket and also time to wait on inactive socket.
|
|
34
|
+
|
|
35
|
+
Or you can pass Object with following fields:
|
|
36
|
+
|
|
37
|
+
- `connect` - time to wait for connection
|
|
38
|
+
- `socket` - time to wait for activity on socket
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
MIT © [Vsevolod Strukchinsky](floatdrop@gmail.com)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c) 2009-
|
|
1
|
+
Copyright (c) 2009-2022 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person
|
|
4
4
|
obtaining a copy of this software and associated documentation
|
|
@@ -23,7 +23,7 @@ define(['./_setup', './isFunction', './_has'], function (_setup, isFunction, _ha
|
|
|
23
23
|
keys = emulatedSet(keys);
|
|
24
24
|
var nonEnumIdx = _setup.nonEnumerableProps.length;
|
|
25
25
|
var constructor = obj.constructor;
|
|
26
|
-
var proto = isFunction(constructor) && constructor.prototype || _setup.ObjProto;
|
|
26
|
+
var proto = (isFunction(constructor) && constructor.prototype) || _setup.ObjProto;
|
|
27
27
|
|
|
28
28
|
// Constructor is a special case.
|
|
29
29
|
var prop = 'constructor';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
define(['exports'], function (exports) {
|
|
2
2
|
|
|
3
3
|
// Current version.
|
|
4
|
-
var VERSION = '1.13.
|
|
4
|
+
var VERSION = '1.13.4';
|
|
5
5
|
|
|
6
6
|
// Establish the root object, `window` (`self`) in the browser, `global`
|
|
7
7
|
// on the server, or `this` in some virtual machines. We use `self`
|
|
8
8
|
// instead of `window` for `WebWorker` support.
|
|
9
|
-
var root = typeof self == 'object' && self.self === self && self ||
|
|
10
|
-
typeof global == 'object' && global.global === global && global ||
|
|
9
|
+
var root = (typeof self == 'object' && self.self === self && self) ||
|
|
10
|
+
(typeof global == 'object' && global.global === global && global) ||
|
|
11
11
|
Function('return this')() ||
|
|
12
12
|
{};
|
|
13
13
|
|
|
@@ -4,7 +4,7 @@ define(['./_isArrayLike', './values', './_cb', './each'], function (_isArrayLike
|
|
|
4
4
|
function max(obj, iteratee, context) {
|
|
5
5
|
var result = -Infinity, lastComputed = -Infinity,
|
|
6
6
|
value, computed;
|
|
7
|
-
if (iteratee == null || typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null) {
|
|
7
|
+
if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {
|
|
8
8
|
obj = _isArrayLike(obj) ? obj : values(obj);
|
|
9
9
|
for (var i = 0, length = obj.length; i < length; i++) {
|
|
10
10
|
value = obj[i];
|
|
@@ -16,7 +16,7 @@ define(['./_isArrayLike', './values', './_cb', './each'], function (_isArrayLike
|
|
|
16
16
|
iteratee = _cb(iteratee, context);
|
|
17
17
|
each(obj, function(v, index, list) {
|
|
18
18
|
computed = iteratee(v, index, list);
|
|
19
|
-
if (computed > lastComputed || computed === -Infinity && result === -Infinity) {
|
|
19
|
+
if (computed > lastComputed || (computed === -Infinity && result === -Infinity)) {
|
|
20
20
|
result = v;
|
|
21
21
|
lastComputed = computed;
|
|
22
22
|
}
|
|
@@ -4,7 +4,7 @@ define(['./_isArrayLike', './values', './_cb', './each'], function (_isArrayLike
|
|
|
4
4
|
function min(obj, iteratee, context) {
|
|
5
5
|
var result = Infinity, lastComputed = Infinity,
|
|
6
6
|
value, computed;
|
|
7
|
-
if (iteratee == null || typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null) {
|
|
7
|
+
if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {
|
|
8
8
|
obj = _isArrayLike(obj) ? obj : values(obj);
|
|
9
9
|
for (var i = 0, length = obj.length; i < length; i++) {
|
|
10
10
|
value = obj[i];
|
|
@@ -16,7 +16,7 @@ define(['./_isArrayLike', './values', './_cb', './each'], function (_isArrayLike
|
|
|
16
16
|
iteratee = _cb(iteratee, context);
|
|
17
17
|
each(obj, function(v, index, list) {
|
|
18
18
|
computed = iteratee(v, index, list);
|
|
19
|
-
if (computed < lastComputed || computed === Infinity && result === Infinity) {
|
|
19
|
+
if (computed < lastComputed || (computed === Infinity && result === Infinity)) {
|
|
20
20
|
result = v;
|
|
21
21
|
lastComputed = computed;
|
|
22
22
|
}
|
|
@@ -3,7 +3,7 @@ define(['./max', './_getLength', './pluck'], function (max, _getLength, pluck) {
|
|
|
3
3
|
// Complement of zip. Unzip accepts an array of arrays and groups
|
|
4
4
|
// each array's elements on shared indices.
|
|
5
5
|
function unzip(array) {
|
|
6
|
-
var length = array && max(array, _getLength).length || 0;
|
|
6
|
+
var length = (array && max(array, _getLength).length) || 0;
|
|
7
7
|
var result = Array(length);
|
|
8
8
|
|
|
9
9
|
for (var index = 0; index < length; index++) {
|