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
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
root = true
|
|
2
2
|
|
|
3
3
|
[*]
|
|
4
|
-
indent_style =
|
|
4
|
+
indent_style = tab
|
|
5
5
|
indent_size = 4
|
|
6
6
|
end_of_line = lf
|
|
7
7
|
charset = utf-8
|
|
8
8
|
trim_trailing_whitespace = true
|
|
9
9
|
insert_final_newline = true
|
|
10
|
-
max_line_length =
|
|
11
|
-
quote_type = single
|
|
12
|
-
|
|
13
|
-
[test/*]
|
|
14
|
-
max_line_length = off
|
|
15
|
-
|
|
16
|
-
[LICENSE.md]
|
|
17
|
-
indent_size = off
|
|
10
|
+
max_line_length = 150
|
|
18
11
|
|
|
19
|
-
[
|
|
12
|
+
[CHANGELOG.md]
|
|
13
|
+
indent_style = space
|
|
14
|
+
indent_size = 2
|
|
20
15
|
max_line_length = off
|
|
21
16
|
|
|
22
17
|
[*.json]
|
|
@@ -25,16 +20,7 @@ max_line_length = off
|
|
|
25
20
|
[Makefile]
|
|
26
21
|
max_line_length = off
|
|
27
22
|
|
|
28
|
-
[
|
|
29
|
-
indent_style = space
|
|
30
|
-
indent_size = 2
|
|
31
|
-
|
|
32
|
-
[LICENSE]
|
|
33
|
-
indent_size = 2
|
|
34
|
-
max_line_length = off
|
|
35
|
-
|
|
36
|
-
[coverage/**/*]
|
|
37
|
-
indent_size = off
|
|
23
|
+
[coverage*/**/*]
|
|
38
24
|
indent_style = off
|
|
39
|
-
|
|
25
|
+
indent_size = off
|
|
40
26
|
max_line_length = off
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
|
|
4
|
+
"extends": "@ljharb",
|
|
5
|
+
|
|
6
|
+
"rules": {
|
|
7
|
+
"id-length": 0,
|
|
8
|
+
"max-statements": [2, 14],
|
|
9
|
+
"max-statements-per-line": [2, { "max": 2 }],
|
|
10
|
+
"operator-linebreak": [2, "before"],
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"overrides": [
|
|
14
|
+
{
|
|
15
|
+
"files": "test/**",
|
|
16
|
+
"rules": {
|
|
17
|
+
"no-throw-literal": 0,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
}
|
|
@@ -4,9 +4,9 @@ github: [ljharb]
|
|
|
4
4
|
patreon: # Replace with a single Patreon username
|
|
5
5
|
open_collective: # Replace with a single Open Collective username
|
|
6
6
|
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
-
tidelift: npm/
|
|
7
|
+
tidelift: npm/is-callable
|
|
8
8
|
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
9
|
liberapay: # Replace with a single Liberapay username
|
|
10
10
|
issuehunt: # Replace with a single IssueHunt username
|
|
11
11
|
otechie: # Replace with a single Otechie username
|
|
12
|
-
custom: # Replace with
|
|
12
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
verbose: false
|
|
2
|
+
instrumentation:
|
|
3
|
+
root: .
|
|
4
|
+
extensions:
|
|
5
|
+
- .js
|
|
6
|
+
- .jsx
|
|
7
|
+
default-excludes: true
|
|
8
|
+
excludes: []
|
|
9
|
+
variable: __coverage__
|
|
10
|
+
compact: true
|
|
11
|
+
preserve-comments: false
|
|
12
|
+
complete-copy: false
|
|
13
|
+
save-baseline: false
|
|
14
|
+
baseline-file: ./coverage/coverage-baseline.raw.json
|
|
15
|
+
include-all-sources: false
|
|
16
|
+
include-pid: false
|
|
17
|
+
es-modules: false
|
|
18
|
+
auto-wrap: false
|
|
19
|
+
reporting:
|
|
20
|
+
print: summary
|
|
21
|
+
reports:
|
|
22
|
+
- html
|
|
23
|
+
dir: ./coverage
|
|
24
|
+
summarizer: pkg
|
|
25
|
+
report-config: {}
|
|
26
|
+
watermarks:
|
|
27
|
+
statements: [50, 80]
|
|
28
|
+
functions: [50, 80]
|
|
29
|
+
branches: [50, 80]
|
|
30
|
+
lines: [50, 80]
|
|
31
|
+
hooks:
|
|
32
|
+
hook-run-in-context: false
|
|
33
|
+
post-require-hook: null
|
|
34
|
+
handle-sigint: false
|
|
35
|
+
check:
|
|
36
|
+
global:
|
|
37
|
+
statements: 100
|
|
38
|
+
lines: 100
|
|
39
|
+
branches: 100
|
|
40
|
+
functions: 100
|
|
41
|
+
excludes: []
|
|
42
|
+
each:
|
|
43
|
+
statements: 100
|
|
44
|
+
lines: 100
|
|
45
|
+
branches: 100
|
|
46
|
+
functions: 100
|
|
47
|
+
excludes: []
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
1.2.4 / 2021-08-05
|
|
2
|
+
=================
|
|
3
|
+
* [Fix] use `has-tostringtag` approach to behave correctly in the presence of symbol shams
|
|
4
|
+
* [readme] fix repo URLs
|
|
5
|
+
* [readme] add actions and codecov badges
|
|
6
|
+
* [readme] remove defunct badges
|
|
7
|
+
* [meta] ignore eclint checking coverage output
|
|
8
|
+
* [meta] use `prepublishOnly` script for npm 7+
|
|
9
|
+
* [actions] use `node/install` instead of `node/run`; use `codecov` action
|
|
10
|
+
* [actions] remove unused workflow file
|
|
11
|
+
* [Tests] run `nyc` on all tests; use `tape` runner
|
|
12
|
+
* [Tests] use `available-typed-arrays`, `for-each`, `has-symbols`, `object-inspect`
|
|
13
|
+
* [Dev Deps] update `available-typed-arrays`, `eslint`, `@ljharb/eslint-config`, `aud`, `object-inspect`, `tape`
|
|
14
|
+
|
|
15
|
+
1.2.3 / 2021-01-31
|
|
16
|
+
=================
|
|
17
|
+
* [Fix] `document.all` is callable (do not use `document.all`!)
|
|
18
|
+
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape`
|
|
19
|
+
* [Tests] migrate tests to Github Actions
|
|
20
|
+
* [actions] add "Allow Edits" workflow
|
|
21
|
+
* [actions] switch Automatic Rebase workflow to `pull_request_target` event
|
|
22
|
+
|
|
23
|
+
1.2.2 / 2020-09-21
|
|
24
|
+
=================
|
|
25
|
+
* [Fix] include actual fix from 579179e
|
|
26
|
+
* [Dev Deps] update `eslint`
|
|
27
|
+
|
|
28
|
+
1.2.1 / 2020-09-09
|
|
29
|
+
=================
|
|
30
|
+
* [Fix] phantomjs‘ Reflect.apply does not throw properly on a bad array-like
|
|
31
|
+
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`
|
|
32
|
+
* [meta] fix eclint error
|
|
33
|
+
|
|
34
|
+
1.2.0 / 2020-06-02
|
|
35
|
+
=================
|
|
36
|
+
* [New] use `Reflect.apply`‑based callability detection
|
|
37
|
+
* [readme] add install instructions (#55)
|
|
38
|
+
* [meta] only run `aud` on prod deps
|
|
39
|
+
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `make-arrow-function`, `make-generator-function`; add `aud`, `safe-publish-latest`, `make-async-function`
|
|
40
|
+
* [Tests] add tests for function proxies (#53, #25)
|
|
41
|
+
|
|
42
|
+
1.1.5 / 2019-12-18
|
|
43
|
+
=================
|
|
44
|
+
* [meta] remove unused Makefile and associated utilities
|
|
45
|
+
* [meta] add `funding` field; add FUNDING.yml
|
|
46
|
+
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `semver`, `tape`, `covert`, `rimraf`
|
|
47
|
+
* [Tests] use shared travis configs
|
|
48
|
+
* [Tests] use `eccheck` over `editorconfig-tools`
|
|
49
|
+
* [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops
|
|
50
|
+
* [Tests] remove `jscs`
|
|
51
|
+
* [actions] add automatic rebasing / merge commit blocking
|
|
52
|
+
|
|
53
|
+
1.1.4 / 2018-07-02
|
|
54
|
+
=================
|
|
55
|
+
* [Fix] improve `class` and arrow function detection (#30, #31)
|
|
56
|
+
* [Tests] on all latest node minors; improve matrix
|
|
57
|
+
* [Dev Deps] update all dev deps
|
|
58
|
+
|
|
59
|
+
1.1.3 / 2016-02-27
|
|
60
|
+
=================
|
|
61
|
+
* [Fix] ensure “class “ doesn’t screw up “class” detection
|
|
62
|
+
* [Tests] up to `node` `v5.7`, `v4.3`
|
|
63
|
+
* [Dev Deps] update to `eslint` v2, `@ljharb/eslint-config`, `jscs`
|
|
64
|
+
|
|
65
|
+
1.1.2 / 2016-01-15
|
|
66
|
+
=================
|
|
67
|
+
* [Fix] Make sure comments don’t screw up “class” detection (#4)
|
|
68
|
+
* [Tests] up to `node` `v5.3`
|
|
69
|
+
* [Tests] Add `parallelshell`, run both `--es-staging` and stock tests at once
|
|
70
|
+
* [Dev Deps] update `tape`, `jscs`, `nsp`, `eslint`, `@ljharb/eslint-config`
|
|
71
|
+
* [Refactor] convert `isNonES6ClassFn` into `isES6ClassFn`
|
|
72
|
+
|
|
73
|
+
1.1.1 / 2015-11-30
|
|
74
|
+
=================
|
|
75
|
+
* [Fix] do not throw when a non-function has a function in its [[Prototype]] (#2)
|
|
76
|
+
* [Dev Deps] update `tape`, `eslint`, `@ljharb/eslint-config`, `jscs`, `nsp`, `semver`
|
|
77
|
+
* [Tests] up to `node` `v5.1`
|
|
78
|
+
* [Tests] no longer allow node 0.8 to fail.
|
|
79
|
+
* [Tests] fix npm upgrades in older nodes
|
|
80
|
+
|
|
81
|
+
1.1.0 / 2015-10-02
|
|
82
|
+
=================
|
|
83
|
+
* [Fix] Some browsers report TypedArray constructors as `typeof object`
|
|
84
|
+
* [New] return false for "class" constructors, when possible.
|
|
85
|
+
* [Tests] up to `io.js` `v3.3`, `node` `v4.1`
|
|
86
|
+
* [Dev Deps] update `eslint`, `editorconfig-tools`, `nsp`, `tape`, `semver`, `jscs`, `covert`, `make-arrow-function`
|
|
87
|
+
* [Docs] Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG
|
|
88
|
+
|
|
89
|
+
1.0.4 / 2015-01-30
|
|
90
|
+
=================
|
|
91
|
+
* If @@toStringTag is not present, use the old-school Object#toString test.
|
|
92
|
+
|
|
93
|
+
1.0.3 / 2015-01-29
|
|
94
|
+
=================
|
|
95
|
+
* Add tests to ensure arrow functions are callable.
|
|
96
|
+
* Refactor to aid optimization of non-try/catch code.
|
|
97
|
+
|
|
98
|
+
1.0.2 / 2015-01-29
|
|
99
|
+
=================
|
|
100
|
+
* Fix broken package.json
|
|
101
|
+
|
|
102
|
+
1.0.1 / 2015-01-29
|
|
103
|
+
=================
|
|
104
|
+
* Add early exit for typeof not "function"
|
|
105
|
+
|
|
106
|
+
1.0.0 / 2015-01-29
|
|
107
|
+
=================
|
|
108
|
+
* Initial release.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Jordan Harband
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# is-callable <sup>[![Version Badge][2]][1]</sup>
|
|
2
|
+
|
|
3
|
+
[![github actions][actions-image]][actions-url]
|
|
4
|
+
[![coverage][codecov-image]][codecov-url]
|
|
5
|
+
[![dependency status][5]][6]
|
|
6
|
+
[![dev dependency status][7]][8]
|
|
7
|
+
[![License][license-image]][license-url]
|
|
8
|
+
[![Downloads][downloads-image]][downloads-url]
|
|
9
|
+
|
|
10
|
+
[![npm badge][11]][1]
|
|
11
|
+
|
|
12
|
+
Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
var isCallable = require('is-callable');
|
|
18
|
+
var assert = require('assert');
|
|
19
|
+
|
|
20
|
+
assert.notOk(isCallable(undefined));
|
|
21
|
+
assert.notOk(isCallable(null));
|
|
22
|
+
assert.notOk(isCallable(false));
|
|
23
|
+
assert.notOk(isCallable(true));
|
|
24
|
+
assert.notOk(isCallable([]));
|
|
25
|
+
assert.notOk(isCallable({}));
|
|
26
|
+
assert.notOk(isCallable(/a/g));
|
|
27
|
+
assert.notOk(isCallable(new RegExp('a', 'g')));
|
|
28
|
+
assert.notOk(isCallable(new Date()));
|
|
29
|
+
assert.notOk(isCallable(42));
|
|
30
|
+
assert.notOk(isCallable(NaN));
|
|
31
|
+
assert.notOk(isCallable(Infinity));
|
|
32
|
+
assert.notOk(isCallable(new Number(42)));
|
|
33
|
+
assert.notOk(isCallable('foo'));
|
|
34
|
+
assert.notOk(isCallable(Object('foo')));
|
|
35
|
+
|
|
36
|
+
assert.ok(isCallable(function () {}));
|
|
37
|
+
assert.ok(isCallable(function* () {}));
|
|
38
|
+
assert.ok(isCallable(x => x * x));
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Install
|
|
42
|
+
|
|
43
|
+
Install with
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
npm install is-callable
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Tests
|
|
50
|
+
|
|
51
|
+
Simply clone the repo, `npm install`, and run `npm test`
|
|
52
|
+
|
|
53
|
+
[1]: https://npmjs.org/package/is-callable
|
|
54
|
+
[2]: https://versionbadg.es/inspect-js/is-callable.svg
|
|
55
|
+
[5]: https://david-dm.org/inspect-js/is-callable.svg
|
|
56
|
+
[6]: https://david-dm.org/inspect-js/is-callable
|
|
57
|
+
[7]: https://david-dm.org/inspect-js/is-callable/dev-status.svg
|
|
58
|
+
[8]: https://david-dm.org/inspect-js/is-callable#info=devDependencies
|
|
59
|
+
[11]: https://nodei.co/npm/is-callable.png?downloads=true&stars=true
|
|
60
|
+
[license-image]: https://img.shields.io/npm/l/is-callable.svg
|
|
61
|
+
[license-url]: LICENSE
|
|
62
|
+
[downloads-image]: https://img.shields.io/npm/dm/is-callable.svg
|
|
63
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=is-callable
|
|
64
|
+
[codecov-image]: https://codecov.io/gh/inspect-js/is-callable/branch/main/graphs/badge.svg
|
|
65
|
+
[codecov-url]: https://app.codecov.io/gh/inspect-js/is-callable/
|
|
66
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-callable
|
|
67
|
+
[actions-url]: https://github.com/inspect-js/is-callable/actions
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var fnToStr = Function.prototype.toString;
|
|
4
|
+
var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
|
|
5
|
+
var badArrayLike;
|
|
6
|
+
var isCallableMarker;
|
|
7
|
+
if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
|
|
8
|
+
try {
|
|
9
|
+
badArrayLike = Object.defineProperty({}, 'length', {
|
|
10
|
+
get: function () {
|
|
11
|
+
throw isCallableMarker;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
isCallableMarker = {};
|
|
15
|
+
// eslint-disable-next-line no-throw-literal
|
|
16
|
+
reflectApply(function () { throw 42; }, null, badArrayLike);
|
|
17
|
+
} catch (_) {
|
|
18
|
+
if (_ !== isCallableMarker) {
|
|
19
|
+
reflectApply = null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
} else {
|
|
23
|
+
reflectApply = null;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var constructorRegex = /^\s*class\b/;
|
|
27
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
28
|
+
try {
|
|
29
|
+
var fnStr = fnToStr.call(value);
|
|
30
|
+
return constructorRegex.test(fnStr);
|
|
31
|
+
} catch (e) {
|
|
32
|
+
return false; // not a function
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
37
|
+
try {
|
|
38
|
+
if (isES6ClassFn(value)) { return false; }
|
|
39
|
+
fnToStr.call(value);
|
|
40
|
+
return true;
|
|
41
|
+
} catch (e) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var toStr = Object.prototype.toString;
|
|
46
|
+
var fnClass = '[object Function]';
|
|
47
|
+
var genClass = '[object GeneratorFunction]';
|
|
48
|
+
var hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag`
|
|
49
|
+
/* globals document: false */
|
|
50
|
+
var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
|
|
51
|
+
|
|
52
|
+
module.exports = reflectApply
|
|
53
|
+
? function isCallable(value) {
|
|
54
|
+
if (value === documentDotAll) { return true; }
|
|
55
|
+
if (!value) { return false; }
|
|
56
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
57
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
58
|
+
try {
|
|
59
|
+
reflectApply(value, null, badArrayLike);
|
|
60
|
+
} catch (e) {
|
|
61
|
+
if (e !== isCallableMarker) { return false; }
|
|
62
|
+
}
|
|
63
|
+
return !isES6ClassFn(value);
|
|
64
|
+
}
|
|
65
|
+
: function isCallable(value) {
|
|
66
|
+
if (value === documentDotAll) { return true; }
|
|
67
|
+
if (!value) { return false; }
|
|
68
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
69
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
70
|
+
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
71
|
+
if (isES6ClassFn(value)) { return false; }
|
|
72
|
+
var strClass = toStr.call(value);
|
|
73
|
+
return strClass === fnClass || strClass === genClass;
|
|
74
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "is-callable",
|
|
3
|
+
"version": "1.2.4",
|
|
4
|
+
"author": {
|
|
5
|
+
"name": "Jordan Harband",
|
|
6
|
+
"email": "ljharb@gmail.com",
|
|
7
|
+
"url": "http://ljharb.codes"
|
|
8
|
+
},
|
|
9
|
+
"funding": {
|
|
10
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
11
|
+
},
|
|
12
|
+
"contributors": [
|
|
13
|
+
{
|
|
14
|
+
"name": "Jordan Harband",
|
|
15
|
+
"email": "ljharb@gmail.com",
|
|
16
|
+
"url": "http://ljharb.codes"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"description": "Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"main": "index.js",
|
|
22
|
+
"scripts": {
|
|
23
|
+
"prepublishOnly": "safe-publish-latest",
|
|
24
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
25
|
+
"pretest": "npm run --silent lint",
|
|
26
|
+
"test": "npm run tests-only --",
|
|
27
|
+
"posttest": "aud --production",
|
|
28
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
29
|
+
"prelint": "eclint check *",
|
|
30
|
+
"lint": "eslint ."
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git://github.com/inspect-js/is-callable.git"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"Function",
|
|
38
|
+
"function",
|
|
39
|
+
"callable",
|
|
40
|
+
"generator",
|
|
41
|
+
"generator function",
|
|
42
|
+
"arrow",
|
|
43
|
+
"arrow function",
|
|
44
|
+
"ES6",
|
|
45
|
+
"toStringTag",
|
|
46
|
+
"@@toStringTag"
|
|
47
|
+
],
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@ljharb/eslint-config": "^17.6.0",
|
|
50
|
+
"aud": "^1.1.5",
|
|
51
|
+
"available-typed-arrays": "^1.0.4",
|
|
52
|
+
"eclint": "^2.8.1",
|
|
53
|
+
"es-value-fixtures": "^1.2.1",
|
|
54
|
+
"eslint": "^7.32.0",
|
|
55
|
+
"for-each": "^0.3.3",
|
|
56
|
+
"has-tostringtag": "^1.0.0",
|
|
57
|
+
"make-arrow-function": "^1.2.0",
|
|
58
|
+
"make-async-function": "^1.0.0",
|
|
59
|
+
"make-generator-function": "^2.0.0",
|
|
60
|
+
"nyc": "^10.3.2",
|
|
61
|
+
"object-inspect": "^1.11.0",
|
|
62
|
+
"rimraf": "^2.7.1",
|
|
63
|
+
"safe-publish-latest": "^1.1.4",
|
|
64
|
+
"tape": "^5.3.0"
|
|
65
|
+
},
|
|
66
|
+
"testling": {
|
|
67
|
+
"files": "test/index.js",
|
|
68
|
+
"browsers": [
|
|
69
|
+
"iexplore/6.0..latest",
|
|
70
|
+
"firefox/3.0..6.0",
|
|
71
|
+
"firefox/15.0..latest",
|
|
72
|
+
"firefox/nightly",
|
|
73
|
+
"chrome/4.0..10.0",
|
|
74
|
+
"chrome/20.0..latest",
|
|
75
|
+
"chrome/canary",
|
|
76
|
+
"opera/10.0..latest",
|
|
77
|
+
"opera/next",
|
|
78
|
+
"safari/4.0..latest",
|
|
79
|
+
"ipad/6.0..latest",
|
|
80
|
+
"iphone/6.0..latest",
|
|
81
|
+
"android-browser/4.2"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"engines": {
|
|
85
|
+
"node": ">= 0.4"
|
|
86
|
+
},
|
|
87
|
+
"greenkeeper": {
|
|
88
|
+
"ignore": [
|
|
89
|
+
"rimraf"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/* globals Proxy */
|
|
4
|
+
/* eslint no-magic-numbers: 1 */
|
|
5
|
+
|
|
6
|
+
var test = require('tape');
|
|
7
|
+
var isCallable = require('../');
|
|
8
|
+
var hasToStringTag = require('has-tostringtag/shams')();
|
|
9
|
+
var v = require('es-value-fixtures');
|
|
10
|
+
var forEach = require('for-each');
|
|
11
|
+
var inspect = require('object-inspect');
|
|
12
|
+
var typedArrayNames = require('available-typed-arrays')();
|
|
13
|
+
var generators = require('make-generator-function')();
|
|
14
|
+
var arrows = require('make-arrow-function').list();
|
|
15
|
+
var asyncs = require('make-async-function').list();
|
|
16
|
+
var weirdlyCommentedArrowFn;
|
|
17
|
+
try {
|
|
18
|
+
/* eslint-disable no-new-func */
|
|
19
|
+
weirdlyCommentedArrowFn = Function('return cl/*/**/=>/**/ass - 1;')();
|
|
20
|
+
/* eslint-enable no-new-func */
|
|
21
|
+
} catch (e) { /**/ }
|
|
22
|
+
|
|
23
|
+
var noop = function () {};
|
|
24
|
+
var classFake = function classFake() { }; // eslint-disable-line func-name-matching
|
|
25
|
+
var returnClass = function () { return ' class '; };
|
|
26
|
+
var return3 = function () { return 3; };
|
|
27
|
+
/* for coverage */
|
|
28
|
+
noop();
|
|
29
|
+
classFake();
|
|
30
|
+
returnClass();
|
|
31
|
+
return3();
|
|
32
|
+
/* end for coverage */
|
|
33
|
+
|
|
34
|
+
var proxy;
|
|
35
|
+
if (typeof Proxy === 'function') {
|
|
36
|
+
try {
|
|
37
|
+
proxy = new Proxy(function () {}, {});
|
|
38
|
+
// for coverage
|
|
39
|
+
proxy();
|
|
40
|
+
String(proxy);
|
|
41
|
+
} catch (_) {
|
|
42
|
+
// If `Reflect` is supported, then `Function.prototype.toString` isn't used for callability detection.
|
|
43
|
+
if (typeof Reflect !== 'object') {
|
|
44
|
+
// Older engines throw a `TypeError` when `Function.prototype.toString` is called on a Proxy object.
|
|
45
|
+
proxy = null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
var invokeFunction = function invokeFunctionString(str) {
|
|
51
|
+
var result;
|
|
52
|
+
try {
|
|
53
|
+
/* eslint-disable no-new-func */
|
|
54
|
+
var fn = Function(str);
|
|
55
|
+
/* eslint-enable no-new-func */
|
|
56
|
+
result = fn();
|
|
57
|
+
} catch (e) {}
|
|
58
|
+
return result;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
var classConstructor = invokeFunction('"use strict"; return class Foo {}');
|
|
62
|
+
|
|
63
|
+
var commentedClass = invokeFunction('"use strict"; return class/*kkk*/\n//blah\n Bar\n//blah\n {}');
|
|
64
|
+
var commentedClassOneLine = invokeFunction('"use strict"; return class/**/A{}');
|
|
65
|
+
var classAnonymous = invokeFunction('"use strict"; return class{}');
|
|
66
|
+
var classAnonymousCommentedOneLine = invokeFunction('"use strict"; return class/*/*/{}');
|
|
67
|
+
|
|
68
|
+
test('not callables', function (t) {
|
|
69
|
+
t.notOk(isCallable(), 'implicit undefined is not callable');
|
|
70
|
+
|
|
71
|
+
forEach(v.nonFunctions.concat([
|
|
72
|
+
Object(42),
|
|
73
|
+
Object('foo'),
|
|
74
|
+
NaN,
|
|
75
|
+
[],
|
|
76
|
+
/a/g,
|
|
77
|
+
new RegExp('a', 'g'),
|
|
78
|
+
new Date()
|
|
79
|
+
]), function (nonFunction) {
|
|
80
|
+
t.equal(isCallable(nonFunction), false, inspect(nonFunction) + ' is not callable');
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
t.test('non-function with function in its [[Prototype]] chain', function (st) {
|
|
84
|
+
var Foo = function Bar() {};
|
|
85
|
+
Foo.prototype = noop;
|
|
86
|
+
st.equal(isCallable(Foo), true, 'sanity check: Foo is callable');
|
|
87
|
+
st.equal(isCallable(new Foo()), false, 'instance of Foo is not callable');
|
|
88
|
+
st.end();
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
t.end();
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
test('@@toStringTag', { skip: !hasToStringTag }, function (t) {
|
|
95
|
+
var fakeFunction = {
|
|
96
|
+
toString: function () { return String(return3); },
|
|
97
|
+
valueOf: return3
|
|
98
|
+
};
|
|
99
|
+
fakeFunction[Symbol.toStringTag] = 'Function';
|
|
100
|
+
t.equal(String(fakeFunction), String(return3));
|
|
101
|
+
t.equal(Number(fakeFunction), return3());
|
|
102
|
+
t.notOk(isCallable(fakeFunction), 'fake Function with @@toStringTag "Function" is not callable');
|
|
103
|
+
t.end();
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
test('Functions', function (t) {
|
|
107
|
+
t.ok(isCallable(noop), 'function is callable');
|
|
108
|
+
t.ok(isCallable(classFake), 'function with name containing "class" is callable');
|
|
109
|
+
t.ok(isCallable(returnClass), 'function with string " class " is callable');
|
|
110
|
+
t.ok(isCallable(isCallable), 'isCallable is callable');
|
|
111
|
+
t.end();
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
test('Typed Arrays', { skip: typedArrayNames.length === 0 }, function (st) {
|
|
115
|
+
forEach(typedArrayNames, function (typedArray) {
|
|
116
|
+
st.ok(isCallable(global[typedArray]), typedArray + ' is callable');
|
|
117
|
+
});
|
|
118
|
+
st.end();
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
test('Generators', { skip: generators.length === 0 }, function (t) {
|
|
122
|
+
forEach(generators, function (genFn) {
|
|
123
|
+
t.ok(isCallable(genFn), 'generator function ' + genFn + ' is callable');
|
|
124
|
+
});
|
|
125
|
+
t.end();
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
test('Arrow functions', { skip: arrows.length === 0 }, function (t) {
|
|
129
|
+
forEach(arrows, function (arrowFn) {
|
|
130
|
+
t.ok(isCallable(arrowFn), 'arrow function ' + arrowFn + ' is callable');
|
|
131
|
+
});
|
|
132
|
+
t.ok(isCallable(weirdlyCommentedArrowFn), 'weirdly commented arrow functions are callable');
|
|
133
|
+
t.end();
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
test('"Class" constructors', { skip: !classConstructor || !commentedClass || !commentedClassOneLine || !classAnonymous }, function (t) {
|
|
137
|
+
t.notOk(isCallable(classConstructor), 'class constructors are not callable');
|
|
138
|
+
t.notOk(isCallable(commentedClass), 'class constructors with comments in the signature are not callable');
|
|
139
|
+
t.notOk(isCallable(commentedClassOneLine), 'one-line class constructors with comments in the signature are not callable');
|
|
140
|
+
t.notOk(isCallable(classAnonymous), 'anonymous class constructors are not callable');
|
|
141
|
+
t.notOk(isCallable(classAnonymousCommentedOneLine), 'anonymous one-line class constructors with comments in the signature are not callable');
|
|
142
|
+
t.end();
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
test('`async function`s', { skip: asyncs.length === 0 }, function (t) {
|
|
146
|
+
forEach(asyncs, function (asyncFn) {
|
|
147
|
+
t.ok(isCallable(asyncFn), '`async function` ' + asyncFn + ' is callable');
|
|
148
|
+
});
|
|
149
|
+
t.end();
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
test('proxies of functions', { skip: !proxy }, function (t) {
|
|
153
|
+
t.ok(isCallable(proxy), 'proxies of functions are callable');
|
|
154
|
+
t.end();
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
test('throwing functions', function (t) {
|
|
158
|
+
t.plan(1);
|
|
159
|
+
|
|
160
|
+
var thrower = function (a) { return a.b; };
|
|
161
|
+
t.ok(isCallable(thrower), 'a function that throws is callable');
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
/* globals document: false */
|
|
165
|
+
test('document.all', { skip: typeof document !== 'object' }, function (t) {
|
|
166
|
+
t.notOk(isCallable(document), 'document is not callable');
|
|
167
|
+
t.ok(isCallable(document.all), 'document.all is callable');
|
|
168
|
+
|
|
169
|
+
t.end();
|
|
170
|
+
});
|