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,552 @@
|
|
|
1
|
+
// info about each config option.
|
|
2
|
+
|
|
3
|
+
var debug = process.env.DEBUG_NOPT || process.env.NOPT_DEBUG
|
|
4
|
+
? function () { console.error.apply(console, arguments) }
|
|
5
|
+
: function () {}
|
|
6
|
+
|
|
7
|
+
var url = require("url")
|
|
8
|
+
, path = require("path")
|
|
9
|
+
, Stream = require("stream").Stream
|
|
10
|
+
, abbrev = require("abbrev")
|
|
11
|
+
|
|
12
|
+
module.exports = exports = nopt
|
|
13
|
+
exports.clean = clean
|
|
14
|
+
|
|
15
|
+
exports.typeDefs =
|
|
16
|
+
{ String : { type: String, validate: validateString }
|
|
17
|
+
, Boolean : { type: Boolean, validate: validateBoolean }
|
|
18
|
+
, url : { type: url, validate: validateUrl }
|
|
19
|
+
, Number : { type: Number, validate: validateNumber }
|
|
20
|
+
, path : { type: path, validate: validatePath }
|
|
21
|
+
, Stream : { type: Stream, validate: validateStream }
|
|
22
|
+
, Date : { type: Date, validate: validateDate }
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function nopt (types, shorthands, args, slice) {
|
|
26
|
+
args = args || process.argv
|
|
27
|
+
types = types || {}
|
|
28
|
+
shorthands = shorthands || {}
|
|
29
|
+
if (typeof slice !== "number") slice = 2
|
|
30
|
+
|
|
31
|
+
debug(types, shorthands, args, slice)
|
|
32
|
+
|
|
33
|
+
args = args.slice(slice)
|
|
34
|
+
var data = {}
|
|
35
|
+
, key
|
|
36
|
+
, remain = []
|
|
37
|
+
, cooked = args
|
|
38
|
+
, original = args.slice(0)
|
|
39
|
+
|
|
40
|
+
parse(args, data, remain, types, shorthands)
|
|
41
|
+
// now data is full
|
|
42
|
+
clean(data, types, exports.typeDefs)
|
|
43
|
+
data.argv = {remain:remain,cooked:cooked,original:original}
|
|
44
|
+
data.argv.toString = function () {
|
|
45
|
+
return this.original.map(JSON.stringify).join(" ")
|
|
46
|
+
}
|
|
47
|
+
return data
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function clean (data, types, typeDefs) {
|
|
51
|
+
typeDefs = typeDefs || exports.typeDefs
|
|
52
|
+
var remove = {}
|
|
53
|
+
, typeDefault = [false, true, null, String, Number]
|
|
54
|
+
|
|
55
|
+
Object.keys(data).forEach(function (k) {
|
|
56
|
+
if (k === "argv") return
|
|
57
|
+
var val = data[k]
|
|
58
|
+
, isArray = Array.isArray(val)
|
|
59
|
+
, type = types[k]
|
|
60
|
+
if (!isArray) val = [val]
|
|
61
|
+
if (!type) type = typeDefault
|
|
62
|
+
if (type === Array) type = typeDefault.concat(Array)
|
|
63
|
+
if (!Array.isArray(type)) type = [type]
|
|
64
|
+
|
|
65
|
+
debug("val=%j", val)
|
|
66
|
+
debug("types=", type)
|
|
67
|
+
val = val.map(function (val) {
|
|
68
|
+
// if it's an unknown value, then parse false/true/null/numbers/dates
|
|
69
|
+
if (typeof val === "string") {
|
|
70
|
+
debug("string %j", val)
|
|
71
|
+
val = val.trim()
|
|
72
|
+
if ((val === "null" && ~type.indexOf(null))
|
|
73
|
+
|| (val === "true" &&
|
|
74
|
+
(~type.indexOf(true) || ~type.indexOf(Boolean)))
|
|
75
|
+
|| (val === "false" &&
|
|
76
|
+
(~type.indexOf(false) || ~type.indexOf(Boolean)))) {
|
|
77
|
+
val = JSON.parse(val)
|
|
78
|
+
debug("jsonable %j", val)
|
|
79
|
+
} else if (~type.indexOf(Number) && !isNaN(val)) {
|
|
80
|
+
debug("convert to number", val)
|
|
81
|
+
val = +val
|
|
82
|
+
} else if (~type.indexOf(Date) && !isNaN(Date.parse(val))) {
|
|
83
|
+
debug("convert to date", val)
|
|
84
|
+
val = new Date(val)
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (!types.hasOwnProperty(k)) {
|
|
89
|
+
return val
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// allow `--no-blah` to set 'blah' to null if null is allowed
|
|
93
|
+
if (val === false && ~type.indexOf(null) &&
|
|
94
|
+
!(~type.indexOf(false) || ~type.indexOf(Boolean))) {
|
|
95
|
+
val = null
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
var d = {}
|
|
99
|
+
d[k] = val
|
|
100
|
+
debug("prevalidated val", d, val, types[k])
|
|
101
|
+
if (!validate(d, k, val, types[k], typeDefs)) {
|
|
102
|
+
if (exports.invalidHandler) {
|
|
103
|
+
exports.invalidHandler(k, val, types[k], data)
|
|
104
|
+
} else if (exports.invalidHandler !== false) {
|
|
105
|
+
debug("invalid: "+k+"="+val, types[k])
|
|
106
|
+
}
|
|
107
|
+
return remove
|
|
108
|
+
}
|
|
109
|
+
debug("validated val", d, val, types[k])
|
|
110
|
+
return d[k]
|
|
111
|
+
}).filter(function (val) { return val !== remove })
|
|
112
|
+
|
|
113
|
+
if (!val.length) delete data[k]
|
|
114
|
+
else if (isArray) {
|
|
115
|
+
debug(isArray, data[k], val)
|
|
116
|
+
data[k] = val
|
|
117
|
+
} else data[k] = val[0]
|
|
118
|
+
|
|
119
|
+
debug("k=%s val=%j", k, val, data[k])
|
|
120
|
+
})
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function validateString (data, k, val) {
|
|
124
|
+
data[k] = String(val)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function validatePath (data, k, val) {
|
|
128
|
+
data[k] = path.resolve(String(val))
|
|
129
|
+
return true
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function validateNumber (data, k, val) {
|
|
133
|
+
debug("validate Number %j %j %j", k, val, isNaN(val))
|
|
134
|
+
if (isNaN(val)) return false
|
|
135
|
+
data[k] = +val
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function validateDate (data, k, val) {
|
|
139
|
+
debug("validate Date %j %j %j", k, val, Date.parse(val))
|
|
140
|
+
var s = Date.parse(val)
|
|
141
|
+
if (isNaN(s)) return false
|
|
142
|
+
data[k] = new Date(val)
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function validateBoolean (data, k, val) {
|
|
146
|
+
if (val instanceof Boolean) val = val.valueOf()
|
|
147
|
+
else if (typeof val === "string") {
|
|
148
|
+
if (!isNaN(val)) val = !!(+val)
|
|
149
|
+
else if (val === "null" || val === "false") val = false
|
|
150
|
+
else val = true
|
|
151
|
+
} else val = !!val
|
|
152
|
+
data[k] = val
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
function validateUrl (data, k, val) {
|
|
156
|
+
val = url.parse(String(val))
|
|
157
|
+
if (!val.host) return false
|
|
158
|
+
data[k] = val.href
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function validateStream (data, k, val) {
|
|
162
|
+
if (!(val instanceof Stream)) return false
|
|
163
|
+
data[k] = val
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function validate (data, k, val, type, typeDefs) {
|
|
167
|
+
// arrays are lists of types.
|
|
168
|
+
if (Array.isArray(type)) {
|
|
169
|
+
for (var i = 0, l = type.length; i < l; i ++) {
|
|
170
|
+
if (type[i] === Array) continue
|
|
171
|
+
if (validate(data, k, val, type[i], typeDefs)) return true
|
|
172
|
+
}
|
|
173
|
+
delete data[k]
|
|
174
|
+
return false
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// an array of anything?
|
|
178
|
+
if (type === Array) return true
|
|
179
|
+
|
|
180
|
+
// NaN is poisonous. Means that something is not allowed.
|
|
181
|
+
if (type !== type) {
|
|
182
|
+
debug("Poison NaN", k, val, type)
|
|
183
|
+
delete data[k]
|
|
184
|
+
return false
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// explicit list of values
|
|
188
|
+
if (val === type) {
|
|
189
|
+
debug("Explicitly allowed %j", val)
|
|
190
|
+
// if (isArray) (data[k] = data[k] || []).push(val)
|
|
191
|
+
// else data[k] = val
|
|
192
|
+
data[k] = val
|
|
193
|
+
return true
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// now go through the list of typeDefs, validate against each one.
|
|
197
|
+
var ok = false
|
|
198
|
+
, types = Object.keys(typeDefs)
|
|
199
|
+
for (var i = 0, l = types.length; i < l; i ++) {
|
|
200
|
+
debug("test type %j %j %j", k, val, types[i])
|
|
201
|
+
var t = typeDefs[types[i]]
|
|
202
|
+
if (t && type === t.type) {
|
|
203
|
+
var d = {}
|
|
204
|
+
ok = false !== t.validate(d, k, val)
|
|
205
|
+
val = d[k]
|
|
206
|
+
if (ok) {
|
|
207
|
+
// if (isArray) (data[k] = data[k] || []).push(val)
|
|
208
|
+
// else data[k] = val
|
|
209
|
+
data[k] = val
|
|
210
|
+
break
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
debug("OK? %j (%j %j %j)", ok, k, val, types[i])
|
|
215
|
+
|
|
216
|
+
if (!ok) delete data[k]
|
|
217
|
+
return ok
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function parse (args, data, remain, types, shorthands) {
|
|
221
|
+
debug("parse", args, data, remain)
|
|
222
|
+
|
|
223
|
+
var key = null
|
|
224
|
+
, abbrevs = abbrev(Object.keys(types))
|
|
225
|
+
, shortAbbr = abbrev(Object.keys(shorthands))
|
|
226
|
+
|
|
227
|
+
for (var i = 0; i < args.length; i ++) {
|
|
228
|
+
var arg = args[i]
|
|
229
|
+
debug("arg", arg)
|
|
230
|
+
|
|
231
|
+
if (arg.match(/^-{2,}$/)) {
|
|
232
|
+
// done with keys.
|
|
233
|
+
// the rest are args.
|
|
234
|
+
remain.push.apply(remain, args.slice(i + 1))
|
|
235
|
+
args[i] = "--"
|
|
236
|
+
break
|
|
237
|
+
}
|
|
238
|
+
if (arg.charAt(0) === "-") {
|
|
239
|
+
if (arg.indexOf("=") !== -1) {
|
|
240
|
+
var v = arg.split("=")
|
|
241
|
+
arg = v.shift()
|
|
242
|
+
v = v.join("=")
|
|
243
|
+
args.splice.apply(args, [i, 1].concat([arg, v]))
|
|
244
|
+
}
|
|
245
|
+
// see if it's a shorthand
|
|
246
|
+
// if so, splice and back up to re-parse it.
|
|
247
|
+
var shRes = resolveShort(arg, shorthands, shortAbbr, abbrevs)
|
|
248
|
+
debug("arg=%j shRes=%j", arg, shRes)
|
|
249
|
+
if (shRes) {
|
|
250
|
+
debug(arg, shRes)
|
|
251
|
+
args.splice.apply(args, [i, 1].concat(shRes))
|
|
252
|
+
if (arg !== shRes[0]) {
|
|
253
|
+
i --
|
|
254
|
+
continue
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
arg = arg.replace(/^-+/, "")
|
|
258
|
+
var no = false
|
|
259
|
+
while (arg.toLowerCase().indexOf("no-") === 0) {
|
|
260
|
+
no = !no
|
|
261
|
+
arg = arg.substr(3)
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
if (abbrevs[arg]) arg = abbrevs[arg]
|
|
265
|
+
|
|
266
|
+
var isArray = types[arg] === Array ||
|
|
267
|
+
Array.isArray(types[arg]) && types[arg].indexOf(Array) !== -1
|
|
268
|
+
|
|
269
|
+
var val
|
|
270
|
+
, la = args[i + 1]
|
|
271
|
+
|
|
272
|
+
var isBool = no ||
|
|
273
|
+
types[arg] === Boolean ||
|
|
274
|
+
Array.isArray(types[arg]) && types[arg].indexOf(Boolean) !== -1 ||
|
|
275
|
+
(la === "false" &&
|
|
276
|
+
(types[arg] === null ||
|
|
277
|
+
Array.isArray(types[arg]) && ~types[arg].indexOf(null)))
|
|
278
|
+
|
|
279
|
+
if (isBool) {
|
|
280
|
+
// just set and move along
|
|
281
|
+
val = !no
|
|
282
|
+
// however, also support --bool true or --bool false
|
|
283
|
+
if (la === "true" || la === "false") {
|
|
284
|
+
val = JSON.parse(la)
|
|
285
|
+
la = null
|
|
286
|
+
if (no) val = !val
|
|
287
|
+
i ++
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// also support "foo":[Boolean, "bar"] and "--foo bar"
|
|
291
|
+
if (Array.isArray(types[arg]) && la) {
|
|
292
|
+
if (~types[arg].indexOf(la)) {
|
|
293
|
+
// an explicit type
|
|
294
|
+
val = la
|
|
295
|
+
i ++
|
|
296
|
+
} else if ( la === "null" && ~types[arg].indexOf(null) ) {
|
|
297
|
+
// null allowed
|
|
298
|
+
val = null
|
|
299
|
+
i ++
|
|
300
|
+
} else if ( !la.match(/^-{2,}[^-]/) &&
|
|
301
|
+
!isNaN(la) &&
|
|
302
|
+
~types[arg].indexOf(Number) ) {
|
|
303
|
+
// number
|
|
304
|
+
val = +la
|
|
305
|
+
i ++
|
|
306
|
+
} else if ( !la.match(/^-[^-]/) && ~types[arg].indexOf(String) ) {
|
|
307
|
+
// string
|
|
308
|
+
val = la
|
|
309
|
+
i ++
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
if (isArray) (data[arg] = data[arg] || []).push(val)
|
|
314
|
+
else data[arg] = val
|
|
315
|
+
|
|
316
|
+
continue
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
if (la && la.match(/^-{2,}$/)) {
|
|
320
|
+
la = undefined
|
|
321
|
+
i --
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
val = la === undefined ? true : la
|
|
325
|
+
if (isArray) (data[arg] = data[arg] || []).push(val)
|
|
326
|
+
else data[arg] = val
|
|
327
|
+
|
|
328
|
+
i ++
|
|
329
|
+
continue
|
|
330
|
+
}
|
|
331
|
+
remain.push(arg)
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
function resolveShort (arg, shorthands, shortAbbr, abbrevs) {
|
|
336
|
+
// handle single-char shorthands glommed together, like
|
|
337
|
+
// npm ls -glp, but only if there is one dash, and only if
|
|
338
|
+
// all of the chars are single-char shorthands, and it's
|
|
339
|
+
// not a match to some other abbrev.
|
|
340
|
+
arg = arg.replace(/^-+/, '')
|
|
341
|
+
if (abbrevs[arg] && !shorthands[arg]) {
|
|
342
|
+
return null
|
|
343
|
+
}
|
|
344
|
+
if (shortAbbr[arg]) {
|
|
345
|
+
arg = shortAbbr[arg]
|
|
346
|
+
} else {
|
|
347
|
+
var singles = shorthands.___singles
|
|
348
|
+
if (!singles) {
|
|
349
|
+
singles = Object.keys(shorthands).filter(function (s) {
|
|
350
|
+
return s.length === 1
|
|
351
|
+
}).reduce(function (l,r) { l[r] = true ; return l }, {})
|
|
352
|
+
shorthands.___singles = singles
|
|
353
|
+
}
|
|
354
|
+
var chrs = arg.split("").filter(function (c) {
|
|
355
|
+
return singles[c]
|
|
356
|
+
})
|
|
357
|
+
if (chrs.join("") === arg) return chrs.map(function (c) {
|
|
358
|
+
return shorthands[c]
|
|
359
|
+
}).reduce(function (l, r) {
|
|
360
|
+
return l.concat(r)
|
|
361
|
+
}, [])
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
if (shorthands[arg] && !Array.isArray(shorthands[arg])) {
|
|
365
|
+
shorthands[arg] = shorthands[arg].split(/\s+/)
|
|
366
|
+
}
|
|
367
|
+
return shorthands[arg]
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
if (module === require.main) {
|
|
371
|
+
var assert = require("assert")
|
|
372
|
+
, util = require("util")
|
|
373
|
+
|
|
374
|
+
, shorthands =
|
|
375
|
+
{ s : ["--loglevel", "silent"]
|
|
376
|
+
, d : ["--loglevel", "info"]
|
|
377
|
+
, dd : ["--loglevel", "verbose"]
|
|
378
|
+
, ddd : ["--loglevel", "silly"]
|
|
379
|
+
, noreg : ["--no-registry"]
|
|
380
|
+
, reg : ["--registry"]
|
|
381
|
+
, "no-reg" : ["--no-registry"]
|
|
382
|
+
, silent : ["--loglevel", "silent"]
|
|
383
|
+
, verbose : ["--loglevel", "verbose"]
|
|
384
|
+
, h : ["--usage"]
|
|
385
|
+
, H : ["--usage"]
|
|
386
|
+
, "?" : ["--usage"]
|
|
387
|
+
, help : ["--usage"]
|
|
388
|
+
, v : ["--version"]
|
|
389
|
+
, f : ["--force"]
|
|
390
|
+
, desc : ["--description"]
|
|
391
|
+
, "no-desc" : ["--no-description"]
|
|
392
|
+
, "local" : ["--no-global"]
|
|
393
|
+
, l : ["--long"]
|
|
394
|
+
, p : ["--parseable"]
|
|
395
|
+
, porcelain : ["--parseable"]
|
|
396
|
+
, g : ["--global"]
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
, types =
|
|
400
|
+
{ aoa: Array
|
|
401
|
+
, nullstream: [null, Stream]
|
|
402
|
+
, date: Date
|
|
403
|
+
, str: String
|
|
404
|
+
, browser : String
|
|
405
|
+
, cache : path
|
|
406
|
+
, color : ["always", Boolean]
|
|
407
|
+
, depth : Number
|
|
408
|
+
, description : Boolean
|
|
409
|
+
, dev : Boolean
|
|
410
|
+
, editor : path
|
|
411
|
+
, force : Boolean
|
|
412
|
+
, global : Boolean
|
|
413
|
+
, globalconfig : path
|
|
414
|
+
, group : [String, Number]
|
|
415
|
+
, gzipbin : String
|
|
416
|
+
, logfd : [Number, Stream]
|
|
417
|
+
, loglevel : ["silent","win","error","warn","info","verbose","silly"]
|
|
418
|
+
, long : Boolean
|
|
419
|
+
, "node-version" : [false, String]
|
|
420
|
+
, npaturl : url
|
|
421
|
+
, npat : Boolean
|
|
422
|
+
, "onload-script" : [false, String]
|
|
423
|
+
, outfd : [Number, Stream]
|
|
424
|
+
, parseable : Boolean
|
|
425
|
+
, pre: Boolean
|
|
426
|
+
, prefix: path
|
|
427
|
+
, proxy : url
|
|
428
|
+
, "rebuild-bundle" : Boolean
|
|
429
|
+
, registry : url
|
|
430
|
+
, searchopts : String
|
|
431
|
+
, searchexclude: [null, String]
|
|
432
|
+
, shell : path
|
|
433
|
+
, t: [Array, String]
|
|
434
|
+
, tag : String
|
|
435
|
+
, tar : String
|
|
436
|
+
, tmp : path
|
|
437
|
+
, "unsafe-perm" : Boolean
|
|
438
|
+
, usage : Boolean
|
|
439
|
+
, user : String
|
|
440
|
+
, username : String
|
|
441
|
+
, userconfig : path
|
|
442
|
+
, version : Boolean
|
|
443
|
+
, viewer: path
|
|
444
|
+
, _exit : Boolean
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
; [["-v", {version:true}, []]
|
|
448
|
+
,["---v", {version:true}, []]
|
|
449
|
+
,["ls -s --no-reg connect -d",
|
|
450
|
+
{loglevel:"info",registry:null},["ls","connect"]]
|
|
451
|
+
,["ls ---s foo",{loglevel:"silent"},["ls","foo"]]
|
|
452
|
+
,["ls --registry blargle", {}, ["ls"]]
|
|
453
|
+
,["--no-registry", {registry:null}, []]
|
|
454
|
+
,["--no-color true", {color:false}, []]
|
|
455
|
+
,["--no-color false", {color:true}, []]
|
|
456
|
+
,["--no-color", {color:false}, []]
|
|
457
|
+
,["--color false", {color:false}, []]
|
|
458
|
+
,["--color --logfd 7", {logfd:7,color:true}, []]
|
|
459
|
+
,["--color=true", {color:true}, []]
|
|
460
|
+
,["--logfd=10", {logfd:10}, []]
|
|
461
|
+
,["--tmp=/tmp -tar=gtar",{tmp:"/tmp",tar:"gtar"},[]]
|
|
462
|
+
,["--tmp=tmp -tar=gtar",
|
|
463
|
+
{tmp:path.resolve(process.cwd(), "tmp"),tar:"gtar"},[]]
|
|
464
|
+
,["--logfd x", {}, []]
|
|
465
|
+
,["a -true -- -no-false", {true:true},["a","-no-false"]]
|
|
466
|
+
,["a -no-false", {false:false},["a"]]
|
|
467
|
+
,["a -no-no-true", {true:true}, ["a"]]
|
|
468
|
+
,["a -no-no-no-false", {false:false}, ["a"]]
|
|
469
|
+
,["---NO-no-No-no-no-no-nO-no-no"+
|
|
470
|
+
"-No-no-no-no-no-no-no-no-no"+
|
|
471
|
+
"-no-no-no-no-NO-NO-no-no-no-no-no-no"+
|
|
472
|
+
"-no-body-can-do-the-boogaloo-like-I-do"
|
|
473
|
+
,{"body-can-do-the-boogaloo-like-I-do":false}, []]
|
|
474
|
+
,["we are -no-strangers-to-love "+
|
|
475
|
+
"--you-know the-rules --and so-do-i "+
|
|
476
|
+
"---im-thinking-of=a-full-commitment "+
|
|
477
|
+
"--no-you-would-get-this-from-any-other-guy "+
|
|
478
|
+
"--no-gonna-give-you-up "+
|
|
479
|
+
"-no-gonna-let-you-down=true "+
|
|
480
|
+
"--no-no-gonna-run-around false "+
|
|
481
|
+
"--desert-you=false "+
|
|
482
|
+
"--make-you-cry false "+
|
|
483
|
+
"--no-tell-a-lie "+
|
|
484
|
+
"--no-no-and-hurt-you false"
|
|
485
|
+
,{"strangers-to-love":false
|
|
486
|
+
,"you-know":"the-rules"
|
|
487
|
+
,"and":"so-do-i"
|
|
488
|
+
,"you-would-get-this-from-any-other-guy":false
|
|
489
|
+
,"gonna-give-you-up":false
|
|
490
|
+
,"gonna-let-you-down":false
|
|
491
|
+
,"gonna-run-around":false
|
|
492
|
+
,"desert-you":false
|
|
493
|
+
,"make-you-cry":false
|
|
494
|
+
,"tell-a-lie":false
|
|
495
|
+
,"and-hurt-you":false
|
|
496
|
+
},["we", "are"]]
|
|
497
|
+
,["-t one -t two -t three"
|
|
498
|
+
,{t: ["one", "two", "three"]}
|
|
499
|
+
,[]]
|
|
500
|
+
,["-t one -t null -t three four five null"
|
|
501
|
+
,{t: ["one", "null", "three"]}
|
|
502
|
+
,["four", "five", "null"]]
|
|
503
|
+
,["-t foo"
|
|
504
|
+
,{t:["foo"]}
|
|
505
|
+
,[]]
|
|
506
|
+
,["--no-t"
|
|
507
|
+
,{t:["false"]}
|
|
508
|
+
,[]]
|
|
509
|
+
,["-no-no-t"
|
|
510
|
+
,{t:["true"]}
|
|
511
|
+
,[]]
|
|
512
|
+
,["-aoa one -aoa null -aoa 100"
|
|
513
|
+
,{aoa:["one", null, 100]}
|
|
514
|
+
,[]]
|
|
515
|
+
,["-str 100"
|
|
516
|
+
,{str:"100"}
|
|
517
|
+
,[]]
|
|
518
|
+
,["--color always"
|
|
519
|
+
,{color:"always"}
|
|
520
|
+
,[]]
|
|
521
|
+
,["--no-nullstream"
|
|
522
|
+
,{nullstream:null}
|
|
523
|
+
,[]]
|
|
524
|
+
,["--nullstream false"
|
|
525
|
+
,{nullstream:null}
|
|
526
|
+
,[]]
|
|
527
|
+
,["--notadate 2011-01-25"
|
|
528
|
+
,{notadate: "2011-01-25"}
|
|
529
|
+
,[]]
|
|
530
|
+
,["--date 2011-01-25"
|
|
531
|
+
,{date: new Date("2011-01-25")}
|
|
532
|
+
,[]]
|
|
533
|
+
].forEach(function (test) {
|
|
534
|
+
var argv = test[0].split(/\s+/)
|
|
535
|
+
, opts = test[1]
|
|
536
|
+
, rem = test[2]
|
|
537
|
+
, actual = nopt(types, shorthands, argv, 0)
|
|
538
|
+
, parsed = actual.argv
|
|
539
|
+
delete actual.argv
|
|
540
|
+
console.log(util.inspect(actual, false, 2, true), parsed.remain)
|
|
541
|
+
for (var i in opts) {
|
|
542
|
+
var e = JSON.stringify(opts[i])
|
|
543
|
+
, a = JSON.stringify(actual[i] === undefined ? null : actual[i])
|
|
544
|
+
if (e && typeof e === "object") {
|
|
545
|
+
assert.deepEqual(e, a)
|
|
546
|
+
} else {
|
|
547
|
+
assert.equal(e, a)
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
assert.deepEqual(rem, parsed.remain)
|
|
551
|
+
})
|
|
552
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{ "name" : "nopt"
|
|
2
|
+
, "version" : "1.0.10"
|
|
3
|
+
, "description" : "Option parsing for Node, supporting types, shorthands, etc. Used by npm."
|
|
4
|
+
, "author" : "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)"
|
|
5
|
+
, "main" : "lib/nopt.js"
|
|
6
|
+
, "scripts" : { "test" : "node lib/nopt.js" }
|
|
7
|
+
, "repository" : "http://github.com/isaacs/nopt"
|
|
8
|
+
, "bin" : "./bin/nopt.js"
|
|
9
|
+
, "license" :
|
|
10
|
+
{ "type" : "MIT"
|
|
11
|
+
, "url" : "https://github.com/isaacs/nopt/raw/master/LICENSE" }
|
|
12
|
+
, "dependencies" : { "abbrev" : "1" }}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.14.17 (2022-04-28)
|
|
2
|
+
|
|
3
|
+
### DEPENDENCIES
|
|
4
|
+
|
|
5
|
+
* [`a869ec48b`](https://github.com/npm/cli/commit/a869ec48b9481c10302378e6c2d94fe36e4c81c2)
|
|
6
|
+
`ansi-regex@4.1.1`
|
|
7
|
+
* [`a869ec48b`](https://github.com/npm/cli/commit/a869ec48b9481c10302378e6c2d94fe36e4c81c2)
|
|
8
|
+
`minimist@1.2.6`
|
|
9
|
+
|
|
1
10
|
## 6.14.16 (2022-01-19)
|
|
2
11
|
|
|
3
12
|
### CHORE
|