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,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "configstore",
|
|
3
|
+
"version": "3.1.5",
|
|
4
|
+
"description": "Easily load and save config without having to think about where and how",
|
|
5
|
+
"license": "BSD-2-Clause",
|
|
6
|
+
"repository": "yeoman/configstore",
|
|
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
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"config",
|
|
23
|
+
"store",
|
|
24
|
+
"storage",
|
|
25
|
+
"conf",
|
|
26
|
+
"configuration",
|
|
27
|
+
"settings",
|
|
28
|
+
"preferences",
|
|
29
|
+
"json",
|
|
30
|
+
"data",
|
|
31
|
+
"persist",
|
|
32
|
+
"persistent",
|
|
33
|
+
"save"
|
|
34
|
+
],
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"dot-prop": "^4.2.1",
|
|
37
|
+
"graceful-fs": "^4.1.2",
|
|
38
|
+
"make-dir": "^1.0.0",
|
|
39
|
+
"unique-string": "^1.0.0",
|
|
40
|
+
"write-file-atomic": "^2.0.0",
|
|
41
|
+
"xdg-basedir": "^3.0.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"ava": "^0.25.0",
|
|
45
|
+
"xo": "^0.20.3"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# configstore [](https://travis-ci.org/yeoman/configstore)
|
|
2
|
+
|
|
3
|
+
> Easily load and persist config without having to think about where and how
|
|
4
|
+
|
|
5
|
+
Config is stored in a JSON file located in `$XDG_CONFIG_HOME` or `~/.config`.<br>
|
|
6
|
+
Example: `~/.config/configstore/some-id.json`
|
|
7
|
+
|
|
8
|
+
*If you need this for Electron, check out [`electron-store`](https://github.com/sindresorhus/electron-store) instead.*
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
const Configstore = require('configstore');
|
|
15
|
+
const pkg = require('./package.json');
|
|
16
|
+
|
|
17
|
+
// create a Configstore instance with an unique ID e.g.
|
|
18
|
+
// Package name and optionally some default values
|
|
19
|
+
const conf = new Configstore(pkg.name, {foo: 'bar'});
|
|
20
|
+
|
|
21
|
+
console.log(conf.get('foo'));
|
|
22
|
+
//=> 'bar'
|
|
23
|
+
|
|
24
|
+
conf.set('awesome', true);
|
|
25
|
+
console.log(conf.get('awesome'));
|
|
26
|
+
//=> true
|
|
27
|
+
|
|
28
|
+
// Use dot-notation to access nested properties
|
|
29
|
+
conf.set('bar.baz', true);
|
|
30
|
+
console.log(conf.get('bar'));
|
|
31
|
+
//=> {baz: true}
|
|
32
|
+
|
|
33
|
+
conf.delete('awesome');
|
|
34
|
+
console.log(conf.get('awesome'));
|
|
35
|
+
//=> undefined
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## API
|
|
40
|
+
|
|
41
|
+
### Configstore(packageName, [defaults], [options])
|
|
42
|
+
|
|
43
|
+
Returns a new instance.
|
|
44
|
+
|
|
45
|
+
#### packageName
|
|
46
|
+
|
|
47
|
+
Type: `string`
|
|
48
|
+
|
|
49
|
+
Name of your package.
|
|
50
|
+
|
|
51
|
+
#### defaults
|
|
52
|
+
|
|
53
|
+
Type: `Object`
|
|
54
|
+
|
|
55
|
+
Default config.
|
|
56
|
+
|
|
57
|
+
#### options
|
|
58
|
+
|
|
59
|
+
##### globalConfigPath
|
|
60
|
+
|
|
61
|
+
Type: `boolean`<br>
|
|
62
|
+
Default: `false`
|
|
63
|
+
|
|
64
|
+
Store the config at `$CONFIG/package-name/config.json` instead of the default `$CONFIG/configstore/package-name.json`. This is not recommended as you might end up conflicting with other tools, rendering the "without having to think" idea moot.
|
|
65
|
+
|
|
66
|
+
### Instance
|
|
67
|
+
|
|
68
|
+
You can use [dot-notation](https://github.com/sindresorhus/dot-prop) in a `key` to access nested properties.
|
|
69
|
+
|
|
70
|
+
### .set(key, value)
|
|
71
|
+
|
|
72
|
+
Set an item.
|
|
73
|
+
|
|
74
|
+
### .set(object)
|
|
75
|
+
|
|
76
|
+
Set multiple items at once.
|
|
77
|
+
|
|
78
|
+
### .get(key)
|
|
79
|
+
|
|
80
|
+
Get an item.
|
|
81
|
+
|
|
82
|
+
### .has(key)
|
|
83
|
+
|
|
84
|
+
Check if an item exists.
|
|
85
|
+
|
|
86
|
+
### .delete(key)
|
|
87
|
+
|
|
88
|
+
Delete an item.
|
|
89
|
+
|
|
90
|
+
### .clear()
|
|
91
|
+
|
|
92
|
+
Delete all items.
|
|
93
|
+
|
|
94
|
+
### .size
|
|
95
|
+
|
|
96
|
+
Get the item count.
|
|
97
|
+
|
|
98
|
+
### .path
|
|
99
|
+
|
|
100
|
+
Get the path to the config file. Can be used to show the user where the config file is located or even better open it for them.
|
|
101
|
+
|
|
102
|
+
### .all
|
|
103
|
+
|
|
104
|
+
Get all the config as an object or replace the current config with an object:
|
|
105
|
+
|
|
106
|
+
```js
|
|
107
|
+
conf.all = {
|
|
108
|
+
hello: 'world'
|
|
109
|
+
};
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
## License
|
|
114
|
+
|
|
115
|
+
[BSD license](http://opensource.org/licenses/bsd-license.php)<br>
|
|
116
|
+
Copyright Google
|
|
@@ -112,9 +112,23 @@ so if both are set, they should point to the same date and time.
|
|
|
112
112
|
Specifies the value for the [`Path` `Set-Cookie` attribute][rfc-6265-5.2.4]. By default, the path
|
|
113
113
|
is considered the ["default path"][rfc-6265-5.1.4].
|
|
114
114
|
|
|
115
|
+
##### priority
|
|
116
|
+
|
|
117
|
+
Specifies the `string` to be the value for the [`Priority` `Set-Cookie` attribute][rfc-west-cookie-priority-00-4.1].
|
|
118
|
+
|
|
119
|
+
- `'low'` will set the `Priority` attribute to `Low`.
|
|
120
|
+
- `'medium'` will set the `Priority` attribute to `Medium`, the default priority when not set.
|
|
121
|
+
- `'high'` will set the `Priority` attribute to `High`.
|
|
122
|
+
|
|
123
|
+
More information about the different priority levels can be found in
|
|
124
|
+
[the specification][rfc-west-cookie-priority-00-4.1].
|
|
125
|
+
|
|
126
|
+
**note** This is an attribute that has not yet been fully standardized, and may change in the future.
|
|
127
|
+
This also means many clients may ignore this attribute until they understand it.
|
|
128
|
+
|
|
115
129
|
##### sameSite
|
|
116
130
|
|
|
117
|
-
Specifies the `boolean` or `string` to be the value for the [`SameSite` `Set-Cookie` attribute][rfc-6265bis-
|
|
131
|
+
Specifies the `boolean` or `string` to be the value for the [`SameSite` `Set-Cookie` attribute][rfc-6265bis-09-5.4.7].
|
|
118
132
|
|
|
119
133
|
- `true` will set the `SameSite` attribute to `Strict` for strict same site enforcement.
|
|
120
134
|
- `false` will not set the `SameSite` attribute.
|
|
@@ -123,7 +137,7 @@ Specifies the `boolean` or `string` to be the value for the [`SameSite` `Set-Coo
|
|
|
123
137
|
- `'strict'` will set the `SameSite` attribute to `Strict` for strict same site enforcement.
|
|
124
138
|
|
|
125
139
|
More information about the different enforcement levels can be found in
|
|
126
|
-
[the specification][rfc-6265bis-
|
|
140
|
+
[the specification][rfc-6265bis-09-5.4.7].
|
|
127
141
|
|
|
128
142
|
**note** This is an attribute that has not yet been fully standardized, and may change in the future.
|
|
129
143
|
This also means many clients may ignore this attribute until they understand it.
|
|
@@ -198,12 +212,12 @@ $ npm test
|
|
|
198
212
|
```
|
|
199
213
|
$ npm run bench
|
|
200
214
|
|
|
201
|
-
> cookie@0.4.
|
|
215
|
+
> cookie@0.4.2 bench
|
|
202
216
|
> node benchmark/index.js
|
|
203
217
|
|
|
204
|
-
node@16.
|
|
205
|
-
v8@9.4.146.24-node.
|
|
206
|
-
uv@1.
|
|
218
|
+
node@16.14.0
|
|
219
|
+
v8@9.4.146.24-node.20
|
|
220
|
+
uv@1.43.0
|
|
207
221
|
zlib@1.2.11
|
|
208
222
|
brotli@1.0.9
|
|
209
223
|
ares@1.18.1
|
|
@@ -211,11 +225,11 @@ $ npm run bench
|
|
|
211
225
|
nghttp2@1.45.1
|
|
212
226
|
napi@8
|
|
213
227
|
llhttp@6.0.4
|
|
214
|
-
openssl@1.1.
|
|
215
|
-
cldr@
|
|
216
|
-
icu@
|
|
217
|
-
tz@
|
|
218
|
-
unicode@
|
|
228
|
+
openssl@1.1.1m+quic
|
|
229
|
+
cldr@40.0
|
|
230
|
+
icu@70.1
|
|
231
|
+
tz@2021a3
|
|
232
|
+
unicode@14.0
|
|
219
233
|
ngtcp2@0.1.0-DEV
|
|
220
234
|
nghttp3@0.1.0-DEV
|
|
221
235
|
|
|
@@ -225,21 +239,22 @@ $ npm run bench
|
|
|
225
239
|
|
|
226
240
|
15 tests completed.
|
|
227
241
|
|
|
228
|
-
parse accounts.google.com x
|
|
229
|
-
parse apple.com x
|
|
230
|
-
parse cloudflare.com x
|
|
231
|
-
parse docs.google.com x
|
|
232
|
-
parse drive.google.com x
|
|
233
|
-
parse en.wikipedia.org x
|
|
234
|
-
parse linkedin.com x
|
|
235
|
-
parse maps.google.com x
|
|
236
|
-
parse microsoft.com x
|
|
237
|
-
parse play.google.com x
|
|
238
|
-
parse plus.google.com x
|
|
239
|
-
parse
|
|
240
|
-
parse
|
|
241
|
-
parse
|
|
242
|
-
parse
|
|
242
|
+
parse accounts.google.com x 2,421,245 ops/sec ±0.80% (188 runs sampled)
|
|
243
|
+
parse apple.com x 2,684,710 ops/sec ±0.59% (189 runs sampled)
|
|
244
|
+
parse cloudflare.com x 2,231,418 ops/sec ±0.76% (186 runs sampled)
|
|
245
|
+
parse docs.google.com x 2,316,357 ops/sec ±1.28% (187 runs sampled)
|
|
246
|
+
parse drive.google.com x 2,363,543 ops/sec ±0.49% (189 runs sampled)
|
|
247
|
+
parse en.wikipedia.org x 839,414 ops/sec ±0.53% (189 runs sampled)
|
|
248
|
+
parse linkedin.com x 553,797 ops/sec ±0.63% (190 runs sampled)
|
|
249
|
+
parse maps.google.com x 1,314,779 ops/sec ±0.72% (189 runs sampled)
|
|
250
|
+
parse microsoft.com x 153,783 ops/sec ±0.53% (190 runs sampled)
|
|
251
|
+
parse play.google.com x 2,249,574 ops/sec ±0.59% (187 runs sampled)
|
|
252
|
+
parse plus.google.com x 2,258,682 ops/sec ±0.60% (188 runs sampled)
|
|
253
|
+
parse sites.google.com x 2,247,069 ops/sec ±0.68% (189 runs sampled)
|
|
254
|
+
parse support.google.com x 1,456,840 ops/sec ±0.70% (187 runs sampled)
|
|
255
|
+
parse www.google.com x 1,046,028 ops/sec ±0.58% (188 runs sampled)
|
|
256
|
+
parse youtu.be x 937,428 ops/sec ±1.47% (190 runs sampled)
|
|
257
|
+
parse youtube.com x 963,878 ops/sec ±0.59% (190 runs sampled)
|
|
243
258
|
|
|
244
259
|
> node benchmark/parse.js
|
|
245
260
|
|
|
@@ -247,20 +262,21 @@ $ npm run bench
|
|
|
247
262
|
|
|
248
263
|
6 tests completed.
|
|
249
264
|
|
|
250
|
-
simple x
|
|
251
|
-
decode x
|
|
252
|
-
unquote x
|
|
253
|
-
duplicates x
|
|
254
|
-
10 cookies x
|
|
255
|
-
100 cookies x
|
|
265
|
+
simple x 2,745,604 ops/sec ±0.77% (185 runs sampled)
|
|
266
|
+
decode x 557,287 ops/sec ±0.60% (188 runs sampled)
|
|
267
|
+
unquote x 2,498,475 ops/sec ±0.55% (189 runs sampled)
|
|
268
|
+
duplicates x 868,591 ops/sec ±0.89% (187 runs sampled)
|
|
269
|
+
10 cookies x 306,745 ops/sec ±0.49% (190 runs sampled)
|
|
270
|
+
100 cookies x 22,414 ops/sec ±2.38% (182 runs sampled)
|
|
256
271
|
```
|
|
257
272
|
|
|
258
273
|
## References
|
|
259
274
|
|
|
260
275
|
- [RFC 6265: HTTP State Management Mechanism][rfc-6265]
|
|
261
|
-
- [Same-site Cookies][rfc-6265bis-
|
|
276
|
+
- [Same-site Cookies][rfc-6265bis-09-5.4.7]
|
|
262
277
|
|
|
263
|
-
[rfc-
|
|
278
|
+
[rfc-west-cookie-priority-00-4.1]: https://tools.ietf.org/html/draft-west-cookie-priority-00#section-4.1
|
|
279
|
+
[rfc-6265bis-09-5.4.7]: https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-09#section-5.4.7
|
|
264
280
|
[rfc-6265]: https://tools.ietf.org/html/rfc6265
|
|
265
281
|
[rfc-6265-5.1.4]: https://tools.ietf.org/html/rfc6265#section-5.1.4
|
|
266
282
|
[rfc-6265-5.2.1]: https://tools.ietf.org/html/rfc6265#section-5.2.1
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Security Policies and Procedures
|
|
2
|
+
|
|
3
|
+
## Reporting a Bug
|
|
4
|
+
|
|
5
|
+
The `cookie` team and community take all security bugs seriously. Thank
|
|
6
|
+
you for improving the security of the project. We appreciate your efforts and
|
|
7
|
+
responsible disclosure and will make every effort to acknowledge your
|
|
8
|
+
contributions.
|
|
9
|
+
|
|
10
|
+
Report security bugs by emailing the current owner(s) of `cookie`. This
|
|
11
|
+
information can be found in the npm registry using the command
|
|
12
|
+
`npm owner ls cookie`.
|
|
13
|
+
If unsure or unable to get the information from the above, open an issue
|
|
14
|
+
in the [project issue tracker](https://github.com/jshttp/cookie/issues)
|
|
15
|
+
asking for the current contact information.
|
|
16
|
+
|
|
17
|
+
To ensure the timely response to your report, please ensure that the entirety
|
|
18
|
+
of the report is contained within the email body and not solely behind a web
|
|
19
|
+
link or an attachment.
|
|
20
|
+
|
|
21
|
+
At least one owner will acknowledge your email within 48 hours, and will send a
|
|
22
|
+
more detailed response within 48 hours indicating the next steps in handling
|
|
23
|
+
your report. After the initial reply to your report, the owners will
|
|
24
|
+
endeavor to keep you informed of the progress towards a fix and full
|
|
25
|
+
announcement, and may ask for additional information or guidance.
|
|
@@ -20,8 +20,7 @@ exports.serialize = serialize;
|
|
|
20
20
|
* @private
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
var
|
|
24
|
-
var encode = encodeURIComponent;
|
|
23
|
+
var __toString = Object.prototype.toString
|
|
25
24
|
|
|
26
25
|
/**
|
|
27
26
|
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
@@ -52,31 +51,42 @@ function parse(str, options) {
|
|
|
52
51
|
|
|
53
52
|
var obj = {}
|
|
54
53
|
var opt = options || {};
|
|
55
|
-
var pairs = str.split(';')
|
|
56
54
|
var dec = opt.decode || decode;
|
|
57
55
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var
|
|
56
|
+
var index = 0
|
|
57
|
+
while (index < str.length) {
|
|
58
|
+
var eqIdx = str.indexOf('=', index)
|
|
61
59
|
|
|
62
|
-
//
|
|
63
|
-
if (
|
|
64
|
-
|
|
60
|
+
// no more cookie pairs
|
|
61
|
+
if (eqIdx === -1) {
|
|
62
|
+
break
|
|
65
63
|
}
|
|
66
64
|
|
|
67
|
-
var
|
|
65
|
+
var endIdx = str.indexOf(';', index)
|
|
66
|
+
|
|
67
|
+
if (endIdx === -1) {
|
|
68
|
+
endIdx = str.length
|
|
69
|
+
} else if (endIdx < eqIdx) {
|
|
70
|
+
// backtrack on prior semicolon
|
|
71
|
+
index = str.lastIndexOf(';', eqIdx - 1) + 1
|
|
72
|
+
continue
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
var key = str.slice(index, eqIdx).trim()
|
|
68
76
|
|
|
69
77
|
// only assign once
|
|
70
|
-
if (undefined
|
|
71
|
-
var val =
|
|
78
|
+
if (undefined === obj[key]) {
|
|
79
|
+
var val = str.slice(eqIdx + 1, endIdx).trim()
|
|
72
80
|
|
|
73
81
|
// quoted values
|
|
74
|
-
if (val
|
|
82
|
+
if (val.charCodeAt(0) === 0x22) {
|
|
75
83
|
val = val.slice(1, -1)
|
|
76
84
|
}
|
|
77
85
|
|
|
78
86
|
obj[key] = tryDecode(val, dec);
|
|
79
87
|
}
|
|
88
|
+
|
|
89
|
+
index = endIdx + 1
|
|
80
90
|
}
|
|
81
91
|
|
|
82
92
|
return obj;
|
|
@@ -145,11 +155,13 @@ function serialize(name, val, options) {
|
|
|
145
155
|
}
|
|
146
156
|
|
|
147
157
|
if (opt.expires) {
|
|
148
|
-
|
|
158
|
+
var expires = opt.expires
|
|
159
|
+
|
|
160
|
+
if (!isDate(expires) || isNaN(expires.valueOf())) {
|
|
149
161
|
throw new TypeError('option expires is invalid');
|
|
150
162
|
}
|
|
151
163
|
|
|
152
|
-
str += '; Expires=' +
|
|
164
|
+
str += '; Expires=' + expires.toUTCString()
|
|
153
165
|
}
|
|
154
166
|
|
|
155
167
|
if (opt.httpOnly) {
|
|
@@ -160,6 +172,26 @@ function serialize(name, val, options) {
|
|
|
160
172
|
str += '; Secure';
|
|
161
173
|
}
|
|
162
174
|
|
|
175
|
+
if (opt.priority) {
|
|
176
|
+
var priority = typeof opt.priority === 'string'
|
|
177
|
+
? opt.priority.toLowerCase()
|
|
178
|
+
: opt.priority
|
|
179
|
+
|
|
180
|
+
switch (priority) {
|
|
181
|
+
case 'low':
|
|
182
|
+
str += '; Priority=Low'
|
|
183
|
+
break
|
|
184
|
+
case 'medium':
|
|
185
|
+
str += '; Priority=Medium'
|
|
186
|
+
break
|
|
187
|
+
case 'high':
|
|
188
|
+
str += '; Priority=High'
|
|
189
|
+
break
|
|
190
|
+
default:
|
|
191
|
+
throw new TypeError('option priority is invalid')
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
163
195
|
if (opt.sameSite) {
|
|
164
196
|
var sameSite = typeof opt.sameSite === 'string'
|
|
165
197
|
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
@@ -185,6 +217,42 @@ function serialize(name, val, options) {
|
|
|
185
217
|
return str;
|
|
186
218
|
}
|
|
187
219
|
|
|
220
|
+
/**
|
|
221
|
+
* URL-decode string value. Optimized to skip native call when no %.
|
|
222
|
+
*
|
|
223
|
+
* @param {string} str
|
|
224
|
+
* @returns {string}
|
|
225
|
+
*/
|
|
226
|
+
|
|
227
|
+
function decode (str) {
|
|
228
|
+
return str.indexOf('%') !== -1
|
|
229
|
+
? decodeURIComponent(str)
|
|
230
|
+
: str
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* URL-encode value.
|
|
235
|
+
*
|
|
236
|
+
* @param {string} str
|
|
237
|
+
* @returns {string}
|
|
238
|
+
*/
|
|
239
|
+
|
|
240
|
+
function encode (val) {
|
|
241
|
+
return encodeURIComponent(val)
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Determine if value is a Date.
|
|
246
|
+
*
|
|
247
|
+
* @param {*} val
|
|
248
|
+
* @private
|
|
249
|
+
*/
|
|
250
|
+
|
|
251
|
+
function isDate (val) {
|
|
252
|
+
return __toString.call(val) === '[object Date]' ||
|
|
253
|
+
val instanceof Date
|
|
254
|
+
}
|
|
255
|
+
|
|
188
256
|
/**
|
|
189
257
|
* Try decoding a string using a decoding function.
|
|
190
258
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cookie",
|
|
3
3
|
"description": "HTTP server cookie parsing and serialization",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"author": "Roman Shtylman <shtylman@gmail.com>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Douglas Christopher Wilson <doug@somethingdoug.com>"
|
|
@@ -17,14 +17,16 @@
|
|
|
17
17
|
"benchmark": "2.1.4",
|
|
18
18
|
"eslint": "7.32.0",
|
|
19
19
|
"eslint-plugin-markdown": "2.2.1",
|
|
20
|
-
"mocha": "9.2.
|
|
20
|
+
"mocha": "9.2.2",
|
|
21
21
|
"nyc": "15.1.0",
|
|
22
|
-
"
|
|
22
|
+
"safe-buffer": "5.2.1",
|
|
23
|
+
"top-sites": "1.1.97"
|
|
23
24
|
},
|
|
24
25
|
"files": [
|
|
25
26
|
"HISTORY.md",
|
|
26
27
|
"LICENSE",
|
|
27
28
|
"README.md",
|
|
29
|
+
"SECURITY.md",
|
|
28
30
|
"index.js"
|
|
29
31
|
],
|
|
30
32
|
"engines": {
|
|
@@ -33,7 +35,7 @@
|
|
|
33
35
|
"scripts": {
|
|
34
36
|
"bench": "node benchmark/index.js",
|
|
35
37
|
"lint": "eslint .",
|
|
36
|
-
"test": "mocha --reporter spec --bail --check-leaks
|
|
38
|
+
"test": "mocha --reporter spec --bail --check-leaks test/",
|
|
37
39
|
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
|
38
40
|
"test-cov": "nyc --reporter=html --reporter=text npm test",
|
|
39
41
|
"update-bench": "node scripts/update-benchmark.js",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright Node.js contributors. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to
|
|
5
|
+
deal in the Software without restriction, including without limitation the
|
|
6
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
18
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
19
|
+
IN THE SOFTWARE.
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
2
|
+
//
|
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
4
|
+
// copy of this software and associated documentation files (the
|
|
5
|
+
// "Software"), to deal in the Software without restriction, including
|
|
6
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
8
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
// following conditions:
|
|
10
|
+
//
|
|
11
|
+
// The above copyright notice and this permission notice shall be included
|
|
12
|
+
// in all copies or substantial portions of the Software.
|
|
13
|
+
//
|
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
15
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
17
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
18
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
19
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
20
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
+
|
|
22
|
+
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
23
|
+
// because it is fragile and can be easily faked with `Object.create()`.
|
|
24
|
+
|
|
25
|
+
function isArray(arg) {
|
|
26
|
+
if (Array.isArray) {
|
|
27
|
+
return Array.isArray(arg);
|
|
28
|
+
}
|
|
29
|
+
return objectToString(arg) === '[object Array]';
|
|
30
|
+
}
|
|
31
|
+
exports.isArray = isArray;
|
|
32
|
+
|
|
33
|
+
function isBoolean(arg) {
|
|
34
|
+
return typeof arg === 'boolean';
|
|
35
|
+
}
|
|
36
|
+
exports.isBoolean = isBoolean;
|
|
37
|
+
|
|
38
|
+
function isNull(arg) {
|
|
39
|
+
return arg === null;
|
|
40
|
+
}
|
|
41
|
+
exports.isNull = isNull;
|
|
42
|
+
|
|
43
|
+
function isNullOrUndefined(arg) {
|
|
44
|
+
return arg == null;
|
|
45
|
+
}
|
|
46
|
+
exports.isNullOrUndefined = isNullOrUndefined;
|
|
47
|
+
|
|
48
|
+
function isNumber(arg) {
|
|
49
|
+
return typeof arg === 'number';
|
|
50
|
+
}
|
|
51
|
+
exports.isNumber = isNumber;
|
|
52
|
+
|
|
53
|
+
function isString(arg) {
|
|
54
|
+
return typeof arg === 'string';
|
|
55
|
+
}
|
|
56
|
+
exports.isString = isString;
|
|
57
|
+
|
|
58
|
+
function isSymbol(arg) {
|
|
59
|
+
return typeof arg === 'symbol';
|
|
60
|
+
}
|
|
61
|
+
exports.isSymbol = isSymbol;
|
|
62
|
+
|
|
63
|
+
function isUndefined(arg) {
|
|
64
|
+
return arg === void 0;
|
|
65
|
+
}
|
|
66
|
+
exports.isUndefined = isUndefined;
|
|
67
|
+
|
|
68
|
+
function isRegExp(re) {
|
|
69
|
+
return objectToString(re) === '[object RegExp]';
|
|
70
|
+
}
|
|
71
|
+
exports.isRegExp = isRegExp;
|
|
72
|
+
|
|
73
|
+
function isObject(arg) {
|
|
74
|
+
return typeof arg === 'object' && arg !== null;
|
|
75
|
+
}
|
|
76
|
+
exports.isObject = isObject;
|
|
77
|
+
|
|
78
|
+
function isDate(d) {
|
|
79
|
+
return objectToString(d) === '[object Date]';
|
|
80
|
+
}
|
|
81
|
+
exports.isDate = isDate;
|
|
82
|
+
|
|
83
|
+
function isError(e) {
|
|
84
|
+
return (objectToString(e) === '[object Error]' || e instanceof Error);
|
|
85
|
+
}
|
|
86
|
+
exports.isError = isError;
|
|
87
|
+
|
|
88
|
+
function isFunction(arg) {
|
|
89
|
+
return typeof arg === 'function';
|
|
90
|
+
}
|
|
91
|
+
exports.isFunction = isFunction;
|
|
92
|
+
|
|
93
|
+
function isPrimitive(arg) {
|
|
94
|
+
return arg === null ||
|
|
95
|
+
typeof arg === 'boolean' ||
|
|
96
|
+
typeof arg === 'number' ||
|
|
97
|
+
typeof arg === 'string' ||
|
|
98
|
+
typeof arg === 'symbol' || // ES6 symbol
|
|
99
|
+
typeof arg === 'undefined';
|
|
100
|
+
}
|
|
101
|
+
exports.isPrimitive = isPrimitive;
|
|
102
|
+
|
|
103
|
+
exports.isBuffer = require('buffer').Buffer.isBuffer;
|
|
104
|
+
|
|
105
|
+
function objectToString(o) {
|
|
106
|
+
return Object.prototype.toString.call(o);
|
|
107
|
+
}
|