step-node-agent 3.16.3 → 3.18.0
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/asn1/Jenkinsfile +65 -0
- package/node_modules/asn1/package.json +5 -5
- package/node_modules/body-parser/HISTORY.md +15 -0
- package/node_modules/body-parser/README.md +25 -12
- package/node_modules/body-parser/package.json +23 -23
- package/node_modules/bytes/History.md +5 -0
- package/node_modules/bytes/Readme.md +42 -16
- package/node_modules/bytes/index.js +5 -1
- package/node_modules/bytes/package.json +9 -8
- package/node_modules/content-disposition/HISTORY.md +5 -0
- package/node_modules/content-disposition/README.md +3 -9
- package/node_modules/content-disposition/index.js +1 -1
- package/node_modules/content-disposition/package.json +16 -16
- package/node_modules/cookie/HISTORY.md +5 -0
- package/node_modules/cookie/README.md +4 -0
- package/node_modules/cookie/index.js +5 -1
- package/node_modules/cookie/package.json +11 -11
- package/node_modules/express/History.md +33 -0
- package/node_modules/express/Readme.md +8 -5
- package/node_modules/express/lib/application.js +1 -1
- package/node_modules/express/lib/request.js +1 -1
- package/node_modules/express/lib/response.js +16 -11
- package/node_modules/express/lib/router/index.js +6 -0
- package/node_modules/express/lib/utils.js +2 -6
- package/node_modules/express/package.json +26 -25
- package/node_modules/glob/README.md +3 -0
- package/node_modules/glob/common.js +2 -0
- package/node_modules/glob/glob.js +4 -5
- package/node_modules/glob/package.json +5 -4
- package/node_modules/glob/sync.js +4 -5
- package/node_modules/graceful-fs/README.md +11 -1
- package/node_modules/graceful-fs/graceful-fs.js +105 -49
- package/node_modules/graceful-fs/package.json +4 -4
- package/node_modules/graceful-fs/polyfills.js +4 -2
- package/node_modules/http-errors/HISTORY.md +16 -0
- package/node_modules/http-errors/README.md +12 -6
- package/node_modules/http-errors/index.js +35 -2
- package/node_modules/http-errors/package.json +19 -19
- package/node_modules/inherits/inherits.js +2 -0
- package/node_modules/inherits/inherits_browser.js +18 -14
- package/node_modules/inherits/package.json +6 -6
- package/node_modules/is-callable/.editorconfig +5 -0
- package/node_modules/is-callable/.nycrc +0 -4
- package/node_modules/is-callable/CHANGELOG.md +14 -0
- package/node_modules/is-callable/README.md +14 -15
- package/node_modules/is-callable/index.js +1 -1
- package/node_modules/is-callable/package.json +20 -28
- package/node_modules/is-callable/test/index.js +22 -50
- package/node_modules/is-core-module/.eslintrc +0 -1
- package/node_modules/is-core-module/CHANGELOG.md +37 -0
- package/node_modules/is-core-module/core.json +65 -61
- package/node_modules/is-core-module/index.js +1 -1
- package/node_modules/is-core-module/package.json +11 -10
- package/node_modules/is-core-module/test/index.js +23 -1
- package/node_modules/json-schema/LICENSE +195 -0
- package/node_modules/json-schema/README.md +2 -4
- package/node_modules/json-schema/lib/links.js +1 -2
- package/node_modules/json-schema/lib/validate.js +7 -9
- package/node_modules/json-schema/package.json +8 -14
- package/node_modules/jsprim/CHANGES.md +4 -0
- package/node_modules/jsprim/package.json +8 -8
- package/node_modules/mime-db/HISTORY.md +19 -0
- package/node_modules/mime-db/db.json +93 -1
- package/node_modules/mime-db/package.json +10 -10
- package/node_modules/mime-types/HISTORY.md +20 -3
- package/node_modules/mime-types/package.json +10 -10
- package/node_modules/npm/CHANGELOG.md +30 -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/lib/auth/legacy.js +1 -1
- package/node_modules/npm/lib/profile.js +2 -2
- package/node_modules/npm/man/man1/npm-README.1 +1 -1
- package/node_modules/npm/man/man1/npm-access.1 +1 -1
- package/node_modules/npm/man/man1/npm-adduser.1 +1 -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/json-schema/LICENSE +195 -0
- package/node_modules/npm/node_modules/json-schema/README.md +2 -4
- package/node_modules/npm/node_modules/json-schema/lib/links.js +1 -2
- package/node_modules/npm/node_modules/json-schema/lib/validate.js +7 -9
- package/node_modules/npm/node_modules/json-schema/package.json +16 -22
- package/node_modules/npm/node_modules/jsprim/CHANGES.md +4 -0
- package/node_modules/npm/node_modules/jsprim/CONTRIBUTING.md +19 -0
- package/node_modules/npm/node_modules/jsprim/package.json +16 -16
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.pyc +0 -0
- package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
- package/node_modules/npm/node_modules/path-parse/index.js +17 -35
- package/node_modules/npm/node_modules/path-parse/package.json +14 -17
- package/node_modules/npm/node_modules/tar/lib/extract.js +4 -3
- package/node_modules/npm/node_modules/tar/lib/list.js +4 -3
- package/node_modules/npm/node_modules/tar/lib/mkdir.js +55 -48
- package/node_modules/npm/node_modules/tar/lib/normalize-windows-path.js +8 -0
- package/node_modules/npm/node_modules/tar/lib/pack.js +8 -18
- package/node_modules/npm/node_modules/tar/lib/path-reservations.js +149 -0
- package/node_modules/npm/node_modules/tar/lib/read-entry.js +4 -3
- package/node_modules/npm/node_modules/tar/lib/replace.js +2 -1
- package/node_modules/npm/node_modules/tar/lib/strip-absolute-path.js +24 -0
- package/node_modules/npm/node_modules/tar/lib/strip-trailing-slashes.js +24 -0
- package/node_modules/npm/node_modules/tar/lib/unpack.js +321 -96
- package/node_modules/npm/node_modules/tar/lib/write-entry.js +178 -82
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/package.json +77 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/LICENSE +15 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/README.md +204 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/iterator.js +8 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/package.json +63 -0
- package/node_modules/npm/node_modules/tar/node_modules/yallist/yallist.js +426 -0
- package/node_modules/npm/node_modules/tar/package.json +29 -26
- package/node_modules/npm/package.json +6 -5
- package/node_modules/qs/.editorconfig +9 -0
- package/node_modules/qs/.eslintignore +2 -1
- package/node_modules/qs/.eslintrc +15 -1
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +103 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +34 -0
- package/node_modules/qs/dist/qs.js +117 -67
- package/node_modules/qs/lib/formats.js +9 -4
- package/node_modules/qs/lib/parse.js +29 -14
- package/node_modules/qs/lib/stringify.js +55 -46
- package/node_modules/qs/lib/utils.js +23 -2
- package/node_modules/qs/package.json +31 -20
- package/node_modules/qs/test/parse.js +97 -1
- package/node_modules/qs/test/stringify.js +115 -1
- package/node_modules/qs/test/utils.js +1 -1
- package/node_modules/raw-body/HISTORY.md +14 -0
- package/node_modules/raw-body/README.md +3 -5
- package/node_modules/raw-body/package.json +21 -21
- package/node_modules/request/node_modules/qs/.editorconfig +14 -1
- package/node_modules/request/node_modules/qs/.eslintrc +21 -3
- package/node_modules/request/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/request/node_modules/qs/.nycrc +13 -0
- package/node_modules/request/node_modules/qs/CHANGELOG.md +24 -0
- package/node_modules/request/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/request/node_modules/qs/README.md +54 -19
- package/node_modules/request/node_modules/qs/bower.json +21 -0
- package/node_modules/request/node_modules/qs/component.json +15 -0
- package/node_modules/request/node_modules/qs/dist/qs.js +35 -25
- package/node_modules/request/node_modules/qs/lib/formats.js +1 -1
- package/node_modules/request/node_modules/qs/lib/parse.js +6 -5
- package/node_modules/request/node_modules/qs/lib/stringify.js +21 -14
- package/node_modules/request/node_modules/qs/lib/utils.js +7 -5
- package/node_modules/request/node_modules/qs/package.json +21 -19
- package/node_modules/request/node_modules/qs/test/parse.js +79 -4
- package/node_modules/request/node_modules/qs/test/stringify.js +45 -0
- package/node_modules/request/node_modules/qs/test/utils.js +31 -0
- package/node_modules/resolve/.eslintrc +34 -8
- package/node_modules/resolve/.github/FUNDING.yml +12 -0
- package/node_modules/resolve/appveyor.yml +4 -2
- package/node_modules/resolve/async.js +3 -0
- package/node_modules/resolve/bin/resolve +50 -0
- package/node_modules/resolve/lib/async.js +10 -1
- package/node_modules/resolve/lib/core.js +1 -2
- package/node_modules/resolve/lib/core.json +85 -16
- package/node_modules/resolve/lib/homedir.js +24 -0
- package/node_modules/resolve/lib/node-modules-paths.js +1 -1
- package/node_modules/resolve/lib/sync.js +14 -5
- package/node_modules/resolve/package.json +26 -15
- package/node_modules/resolve/readme.markdown +35 -13
- package/node_modules/resolve/sync.js +3 -0
- package/node_modules/resolve/test/home_paths.js +127 -0
- package/node_modules/resolve/test/home_paths_sync.js +114 -0
- package/node_modules/resolve/test/mock_sync.js +2 -4
- package/node_modules/resolve/test/node_path.js +1 -1
- package/node_modules/resolve/test/resolver/invalid_main/package.json +1 -1
- package/node_modules/resolve/test/resolver/malformed_package_json/index.js +0 -0
- package/node_modules/resolve/test/resolver/malformed_package_json/package.json +1 -0
- package/node_modules/resolve/test/resolver.js +99 -3
- package/node_modules/resolve/test/resolver_sync.js +310 -23
- package/node_modules/safe-buffer/index.js +3 -0
- package/node_modules/safe-buffer/package.json +21 -7
- package/node_modules/send/HISTORY.md +10 -0
- package/node_modules/send/README.md +4 -6
- package/node_modules/send/index.js +7 -3
- package/node_modules/send/node_modules/ms/index.js +3 -3
- package/node_modules/send/node_modules/ms/license.md +1 -1
- package/node_modules/send/node_modules/ms/package.json +8 -7
- package/node_modules/send/node_modules/ms/readme.md +1 -2
- package/node_modules/send/package.json +19 -19
- package/node_modules/serve-static/HISTORY.md +8 -0
- package/node_modules/serve-static/README.md +9 -11
- package/node_modules/serve-static/package.json +19 -19
- package/node_modules/setprototypeof/README.md +1 -1
- package/node_modules/setprototypeof/index.js +1 -1
- package/node_modules/setprototypeof/package.json +9 -7
- package/node_modules/shelljs/package.json +4 -4
- package/node_modules/shelljs/src/exec.js +19 -1
- package/node_modules/signal-exit/README.md +1 -1
- package/node_modules/signal-exit/index.js +167 -130
- package/node_modules/signal-exit/package.json +13 -13
- package/node_modules/sshpk/Jenkinsfile +86 -0
- package/node_modules/sshpk/lib/formats/putty.js +99 -4
- package/node_modules/sshpk/lib/private-key.js +1 -0
- package/node_modules/sshpk/package.json +4 -4
- package/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
- package/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
- package/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
- package/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
- package/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
- package/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
- package/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
- package/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
- package/node_modules/supports-preserve-symlinks-flag/package.json +74 -0
- package/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/README.md +3 -3
- package/node_modules/toidentifier/index.js +2 -0
- package/node_modules/toidentifier/package.json +19 -15
- package/node_modules/underscore/amd/_collectNonEnumProps.js +1 -1
- package/node_modules/underscore/amd/_setup.js +1 -1
- package/node_modules/underscore/amd/sample.js +2 -2
- package/node_modules/underscore/cjs/_collectNonEnumProps.js +1 -1
- package/node_modules/underscore/cjs/_setup.js +1 -1
- package/node_modules/underscore/cjs/sample.js +2 -2
- package/node_modules/underscore/modules/_collectNonEnumProps.js +1 -1
- package/node_modules/underscore/modules/_setup.js +1 -1
- package/node_modules/underscore/modules/index.js +1 -1
- package/node_modules/underscore/modules/sample.js +2 -2
- package/node_modules/underscore/package.json +4 -4
- package/node_modules/underscore/underscore-esm-min.js +2 -2
- package/node_modules/underscore/underscore-esm-min.js.map +1 -1
- package/node_modules/underscore/underscore-esm.js +17 -17
- package/node_modules/underscore/underscore-esm.js.map +1 -1
- package/node_modules/underscore/underscore-min.js +2 -2
- package/node_modules/underscore/underscore-min.js.map +1 -1
- package/node_modules/underscore/underscore-node-f.cjs +17 -17
- package/node_modules/underscore/underscore-node-f.cjs.map +1 -1
- package/node_modules/underscore/underscore-node.cjs +1 -1
- package/node_modules/underscore/underscore-node.mjs +1 -1
- package/node_modules/underscore/underscore-umd-min.js +2 -2
- package/node_modules/underscore/underscore-umd-min.js.map +1 -1
- package/node_modules/underscore/underscore-umd.js +17 -17
- package/node_modules/underscore/underscore-umd.js.map +1 -1
- package/node_modules/underscore/underscore.js +17 -17
- package/package.json +9 -9
- package/node_modules/glob/changelog.md +0 -67
- package/node_modules/hosted-git-info/CHANGELOG.md +0 -151
- package/node_modules/hosted-git-info/LICENSE +0 -13
- package/node_modules/hosted-git-info/README.md +0 -133
- package/node_modules/hosted-git-info/git-host-info.js +0 -79
- package/node_modules/hosted-git-info/git-host.js +0 -156
- package/node_modules/hosted-git-info/index.js +0 -148
- package/node_modules/hosted-git-info/package.json +0 -44
- package/node_modules/is-callable/.github/main.workflow +0 -14
- package/node_modules/is-core-module/.eslintignore +0 -1
- package/node_modules/json-parse-better-errors/CHANGELOG.md +0 -46
- package/node_modules/json-parse-better-errors/LICENSE.md +0 -7
- package/node_modules/json-parse-better-errors/README.md +0 -46
- package/node_modules/json-parse-better-errors/index.js +0 -38
- package/node_modules/json-parse-better-errors/package.json +0 -49
- package/node_modules/json-schema/draft-00/hyper-schema +0 -68
- package/node_modules/json-schema/draft-00/json-ref +0 -26
- package/node_modules/json-schema/draft-00/links +0 -33
- package/node_modules/json-schema/draft-00/schema +0 -155
- package/node_modules/json-schema/draft-01/hyper-schema +0 -68
- package/node_modules/json-schema/draft-01/json-ref +0 -26
- package/node_modules/json-schema/draft-01/links +0 -33
- package/node_modules/json-schema/draft-01/schema +0 -155
- package/node_modules/json-schema/draft-02/hyper-schema +0 -68
- package/node_modules/json-schema/draft-02/json-ref +0 -26
- package/node_modules/json-schema/draft-02/links +0 -35
- package/node_modules/json-schema/draft-02/schema +0 -166
- package/node_modules/json-schema/draft-03/examples/address +0 -20
- package/node_modules/json-schema/draft-03/examples/calendar +0 -53
- package/node_modules/json-schema/draft-03/examples/card +0 -105
- package/node_modules/json-schema/draft-03/examples/geo +0 -8
- package/node_modules/json-schema/draft-03/examples/interfaces +0 -23
- package/node_modules/json-schema/draft-03/hyper-schema +0 -60
- package/node_modules/json-schema/draft-03/json-ref +0 -26
- package/node_modules/json-schema/draft-03/links +0 -35
- package/node_modules/json-schema/draft-03/schema +0 -174
- package/node_modules/json-schema/draft-04/hyper-schema +0 -60
- package/node_modules/json-schema/draft-04/links +0 -41
- package/node_modules/json-schema/draft-04/schema +0 -189
- package/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
- package/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
- package/node_modules/json-schema/test/tests.js +0 -95
- package/node_modules/normalize-package-data/AUTHORS +0 -4
- package/node_modules/normalize-package-data/LICENSE +0 -30
- package/node_modules/normalize-package-data/README.md +0 -106
- package/node_modules/normalize-package-data/lib/extract_description.js +0 -14
- package/node_modules/normalize-package-data/lib/fixer.js +0 -418
- package/node_modules/normalize-package-data/lib/make_warning.js +0 -23
- package/node_modules/normalize-package-data/lib/normalize.js +0 -39
- package/node_modules/normalize-package-data/lib/safe_format.js +0 -9
- package/node_modules/normalize-package-data/lib/typos.json +0 -25
- package/node_modules/normalize-package-data/lib/warning_messages.json +0 -30
- package/node_modules/normalize-package-data/package.json +0 -35
- package/node_modules/npm/node_modules/json-schema/draft-00/hyper-schema +0 -68
- package/node_modules/npm/node_modules/json-schema/draft-00/json-ref +0 -26
- package/node_modules/npm/node_modules/json-schema/draft-00/links +0 -33
- package/node_modules/npm/node_modules/json-schema/draft-00/schema +0 -155
- package/node_modules/npm/node_modules/json-schema/draft-01/hyper-schema +0 -68
- package/node_modules/npm/node_modules/json-schema/draft-01/json-ref +0 -26
- package/node_modules/npm/node_modules/json-schema/draft-01/links +0 -33
- package/node_modules/npm/node_modules/json-schema/draft-01/schema +0 -155
- package/node_modules/npm/node_modules/json-schema/draft-02/hyper-schema +0 -68
- package/node_modules/npm/node_modules/json-schema/draft-02/json-ref +0 -26
- package/node_modules/npm/node_modules/json-schema/draft-02/links +0 -35
- package/node_modules/npm/node_modules/json-schema/draft-02/schema +0 -166
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/address +0 -20
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/calendar +0 -53
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/card +0 -105
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/geo +0 -8
- package/node_modules/npm/node_modules/json-schema/draft-03/examples/interfaces +0 -23
- package/node_modules/npm/node_modules/json-schema/draft-03/hyper-schema +0 -60
- package/node_modules/npm/node_modules/json-schema/draft-03/json-ref +0 -26
- package/node_modules/npm/node_modules/json-schema/draft-03/links +0 -35
- package/node_modules/npm/node_modules/json-schema/draft-03/schema +0 -174
- package/node_modules/npm/node_modules/json-schema/draft-04/hyper-schema +0 -60
- package/node_modules/npm/node_modules/json-schema/draft-04/links +0 -41
- package/node_modules/npm/node_modules/json-schema/draft-04/schema +0 -189
- package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
- package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
- package/node_modules/npm/node_modules/json-schema/test/tests.js +0 -95
- package/node_modules/npm/node_modules/path-parse/.travis.yml +0 -9
- package/node_modules/npm/node_modules/path-parse/test.js +0 -77
- package/node_modules/qs/LICENSE +0 -28
- package/node_modules/qs/test/.eslintrc +0 -17
- package/node_modules/qs/test/index.js +0 -7
- package/node_modules/request/node_modules/qs/.eslintignore +0 -1
- package/node_modules/request/node_modules/qs/LICENSE +0 -28
- package/node_modules/request/node_modules/qs/test/.eslintrc +0 -15
- package/node_modules/resolve/.eslintignore +0 -1
- package/node_modules/resolve/test/.eslintrc +0 -5
- package/node_modules/signal-exit/CHANGELOG.md +0 -35
- package/node_modules/spdx-correct/LICENSE +0 -202
- package/node_modules/spdx-correct/README.md +0 -14
- package/node_modules/spdx-correct/index.js +0 -364
- package/node_modules/spdx-correct/package.json +0 -43
- package/node_modules/spdx-exceptions/README.md +0 -36
- package/node_modules/spdx-exceptions/index.json +0 -40
- package/node_modules/spdx-exceptions/package.json +0 -21
- package/node_modules/spdx-expression-parse/AUTHORS +0 -4
- package/node_modules/spdx-expression-parse/LICENSE +0 -22
- package/node_modules/spdx-expression-parse/README.md +0 -91
- package/node_modules/spdx-expression-parse/index.js +0 -8
- package/node_modules/spdx-expression-parse/package.json +0 -43
- package/node_modules/spdx-expression-parse/parse.js +0 -138
- package/node_modules/spdx-expression-parse/scan.js +0 -131
- package/node_modules/spdx-license-ids/README.md +0 -52
- package/node_modules/spdx-license-ids/deprecated.json +0 -26
- package/node_modules/spdx-license-ids/index.json +0 -432
- package/node_modules/spdx-license-ids/package.json +0 -44
- package/node_modules/sshpk/.npmignore +0 -9
- package/node_modules/validate-npm-package-license/LICENSE +0 -202
- package/node_modules/validate-npm-package-license/README.md +0 -113
- package/node_modules/validate-npm-package-license/index.js +0 -86
- package/node_modules/validate-npm-package-license/package.json +0 -32
|
@@ -45,7 +45,7 @@ var tryFunctionObject = function tryFunctionToStr(value) {
|
|
|
45
45
|
var toStr = Object.prototype.toString;
|
|
46
46
|
var fnClass = '[object Function]';
|
|
47
47
|
var genClass = '[object GeneratorFunction]';
|
|
48
|
-
var hasToStringTag = typeof Symbol === 'function' &&
|
|
48
|
+
var hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag`
|
|
49
49
|
/* globals document: false */
|
|
50
50
|
var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
|
|
51
51
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "is-callable",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Jordan Harband",
|
|
6
6
|
"email": "ljharb@gmail.com",
|
|
@@ -20,27 +20,18 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"scripts": {
|
|
23
|
-
"
|
|
23
|
+
"prepublishOnly": "safe-publish-latest",
|
|
24
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
24
25
|
"pretest": "npm run --silent lint",
|
|
25
|
-
"test": "npm run
|
|
26
|
-
"posttest": "
|
|
27
|
-
"tests-only": "
|
|
28
|
-
"test:stock": "node test",
|
|
29
|
-
"test:staging": "node --es-staging test",
|
|
30
|
-
"coverage": "npm run --silent istanbul",
|
|
31
|
-
"covert": "covert test",
|
|
32
|
-
"covert:quiet": "covert test --quiet",
|
|
33
|
-
"istanbul": "npm run --silent istanbul:clean && npm run --silent istanbul:std && npm run --silent istanbul:harmony && npm run --silent istanbul:merge && istanbul check",
|
|
34
|
-
"istanbul:clean": "rimraf coverage coverage-std coverage-harmony",
|
|
35
|
-
"istanbul:merge": "istanbul-merge --out coverage/coverage.raw.json coverage-harmony/coverage.raw.json coverage-std/coverage.raw.json && istanbul report html",
|
|
36
|
-
"istanbul:harmony": "node --harmony ./node_modules/istanbul/lib/cli.js cover test --dir coverage-harmony",
|
|
37
|
-
"istanbul:std": "istanbul cover test --report html --dir coverage-std",
|
|
26
|
+
"test": "npm run tests-only --",
|
|
27
|
+
"posttest": "aud --production",
|
|
28
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
38
29
|
"prelint": "eclint check *",
|
|
39
30
|
"lint": "eslint ."
|
|
40
31
|
},
|
|
41
32
|
"repository": {
|
|
42
33
|
"type": "git",
|
|
43
|
-
"url": "git://github.com/
|
|
34
|
+
"url": "git://github.com/inspect-js/is-callable.git"
|
|
44
35
|
},
|
|
45
36
|
"keywords": [
|
|
46
37
|
"Function",
|
|
@@ -54,22 +45,23 @@
|
|
|
54
45
|
"toStringTag",
|
|
55
46
|
"@@toStringTag"
|
|
56
47
|
],
|
|
57
|
-
"dependencies": {},
|
|
58
48
|
"devDependencies": {
|
|
59
|
-
"@ljharb/eslint-config": "^17.
|
|
60
|
-
"aud": "^1.1.
|
|
61
|
-
"
|
|
49
|
+
"@ljharb/eslint-config": "^17.6.0",
|
|
50
|
+
"aud": "^1.1.5",
|
|
51
|
+
"available-typed-arrays": "^1.0.4",
|
|
62
52
|
"eclint": "^2.8.1",
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
53
|
+
"es-value-fixtures": "^1.2.1",
|
|
54
|
+
"eslint": "^7.32.0",
|
|
55
|
+
"for-each": "^0.3.3",
|
|
56
|
+
"has-tostringtag": "^1.0.0",
|
|
67
57
|
"make-arrow-function": "^1.2.0",
|
|
68
58
|
"make-async-function": "^1.0.0",
|
|
69
59
|
"make-generator-function": "^2.0.0",
|
|
60
|
+
"nyc": "^10.3.2",
|
|
61
|
+
"object-inspect": "^1.11.0",
|
|
70
62
|
"rimraf": "^2.7.1",
|
|
71
63
|
"safe-publish-latest": "^1.1.4",
|
|
72
|
-
"tape": "^5.
|
|
64
|
+
"tape": "^5.3.0"
|
|
73
65
|
},
|
|
74
66
|
"testling": {
|
|
75
67
|
"files": "test/index.js",
|
|
@@ -98,7 +90,7 @@
|
|
|
98
90
|
]
|
|
99
91
|
}
|
|
100
92
|
|
|
101
|
-
,"_resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.
|
|
102
|
-
,"_integrity": "sha512-
|
|
103
|
-
,"_from": "is-callable@1.2.
|
|
93
|
+
,"_resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz"
|
|
94
|
+
,"_integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w=="
|
|
95
|
+
,"_from": "is-callable@1.2.4"
|
|
104
96
|
}
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
var test = require('tape');
|
|
7
7
|
var isCallable = require('../');
|
|
8
|
-
var
|
|
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')();
|
|
9
13
|
var generators = require('make-generator-function')();
|
|
10
14
|
var arrows = require('make-arrow-function').list();
|
|
11
15
|
var asyncs = require('make-async-function').list();
|
|
@@ -15,7 +19,6 @@ try {
|
|
|
15
19
|
weirdlyCommentedArrowFn = Function('return cl/*/**/=>/**/ass - 1;')();
|
|
16
20
|
/* eslint-enable no-new-func */
|
|
17
21
|
} catch (e) { /**/ }
|
|
18
|
-
var forEach = require('foreach');
|
|
19
22
|
|
|
20
23
|
var noop = function () {};
|
|
21
24
|
var classFake = function classFake() { }; // eslint-disable-line func-name-matching
|
|
@@ -63,46 +66,32 @@ var classAnonymous = invokeFunction('"use strict"; return class{}');
|
|
|
63
66
|
var classAnonymousCommentedOneLine = invokeFunction('"use strict"; return class/*/*/{}');
|
|
64
67
|
|
|
65
68
|
test('not callables', function (t) {
|
|
66
|
-
t.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
t.notOk(isCallable(new Date()), 'new Date() is not callable');
|
|
79
|
-
|
|
80
|
-
t.test('numbers', function (st) {
|
|
81
|
-
st.notOk(isCallable(42), 'number is not callable');
|
|
82
|
-
st.notOk(isCallable(Object(42)), 'number object is not callable');
|
|
83
|
-
st.notOk(isCallable(NaN), 'NaN is not callable');
|
|
84
|
-
st.notOk(isCallable(Infinity), 'Infinity is not callable');
|
|
85
|
-
st.end();
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
t.test('strings', function (st) {
|
|
89
|
-
st.notOk(isCallable('foo'), 'string primitive is not callable');
|
|
90
|
-
st.notOk(isCallable(Object('foo')), 'string object is not callable');
|
|
91
|
-
st.end();
|
|
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');
|
|
92
81
|
});
|
|
93
82
|
|
|
94
83
|
t.test('non-function with function in its [[Prototype]] chain', function (st) {
|
|
95
84
|
var Foo = function Bar() {};
|
|
96
85
|
Foo.prototype = noop;
|
|
97
|
-
st.equal(
|
|
98
|
-
st.equal(
|
|
86
|
+
st.equal(isCallable(Foo), true, 'sanity check: Foo is callable');
|
|
87
|
+
st.equal(isCallable(new Foo()), false, 'instance of Foo is not callable');
|
|
99
88
|
st.end();
|
|
100
89
|
});
|
|
101
90
|
|
|
102
91
|
t.end();
|
|
103
92
|
});
|
|
104
93
|
|
|
105
|
-
test('@@toStringTag', { skip: !
|
|
94
|
+
test('@@toStringTag', { skip: !hasToStringTag }, function (t) {
|
|
106
95
|
var fakeFunction = {
|
|
107
96
|
toString: function () { return String(return3); },
|
|
108
97
|
valueOf: return3
|
|
@@ -114,18 +103,6 @@ test('@@toStringTag', { skip: !hasSymbols || !Symbol.toStringTag }, function (t)
|
|
|
114
103
|
t.end();
|
|
115
104
|
});
|
|
116
105
|
|
|
117
|
-
var typedArrayNames = [
|
|
118
|
-
'Int8Array',
|
|
119
|
-
'Uint8Array',
|
|
120
|
-
'Uint8ClampedArray',
|
|
121
|
-
'Int16Array',
|
|
122
|
-
'Uint16Array',
|
|
123
|
-
'Int32Array',
|
|
124
|
-
'Uint32Array',
|
|
125
|
-
'Float32Array',
|
|
126
|
-
'Float64Array'
|
|
127
|
-
];
|
|
128
|
-
|
|
129
106
|
test('Functions', function (t) {
|
|
130
107
|
t.ok(isCallable(noop), 'function is callable');
|
|
131
108
|
t.ok(isCallable(classFake), 'function with name containing "class" is callable');
|
|
@@ -134,14 +111,9 @@ test('Functions', function (t) {
|
|
|
134
111
|
t.end();
|
|
135
112
|
});
|
|
136
113
|
|
|
137
|
-
test('Typed Arrays', function (st) {
|
|
114
|
+
test('Typed Arrays', { skip: typedArrayNames.length === 0 }, function (st) {
|
|
138
115
|
forEach(typedArrayNames, function (typedArray) {
|
|
139
|
-
|
|
140
|
-
if (typeof global[typedArray] === 'undefined') {
|
|
141
|
-
st.comment('# SKIP typed array "' + typedArray + '" not supported');
|
|
142
|
-
} else {
|
|
143
|
-
st.ok(isCallable(global[typedArray]), typedArray + ' is callable');
|
|
144
|
-
}
|
|
116
|
+
st.ok(isCallable(global[typedArray]), typedArray + ' is callable');
|
|
145
117
|
});
|
|
146
118
|
st.end();
|
|
147
119
|
});
|
|
@@ -5,6 +5,43 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v2.8.1](https://github.com/inspect-js/is-core-module/compare/v2.8.0...v2.8.1) - 2022-01-05
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [actions] reuse common workflows [`cd2cf9b`](https://github.com/inspect-js/is-core-module/commit/cd2cf9b3b66c8d328f65610efe41e9325db7716d)
|
|
13
|
+
- [Fix] update node 0.4 results [`062195d`](https://github.com/inspect-js/is-core-module/commit/062195d89f0876a88b95d378b43f7fcc1205bc5b)
|
|
14
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`0790b62`](https://github.com/inspect-js/is-core-module/commit/0790b6222848c6167132f9f73acc3520fa8d1298)
|
|
15
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`7d139a6`](https://github.com/inspect-js/is-core-module/commit/7d139a6d767709eabf0a0251e074ec1fb230c06e)
|
|
16
|
+
- [Tests] run `nyc` in `tests-only`, not `test` [`780e8a0`](https://github.com/inspect-js/is-core-module/commit/780e8a049951c71cf78b1707f0871c48a28bde14)
|
|
17
|
+
|
|
18
|
+
## [v2.8.0](https://github.com/inspect-js/is-core-module/compare/v2.7.0...v2.8.0) - 2021-10-14
|
|
19
|
+
|
|
20
|
+
### Commits
|
|
21
|
+
|
|
22
|
+
- [actions] update codecov uploader [`0cfe94e`](https://github.com/inspect-js/is-core-module/commit/0cfe94e106a7d005ea03e008c0a21dec13a77904)
|
|
23
|
+
- [New] add `readline/promises` to node v17+ [`4f78c30`](https://github.com/inspect-js/is-core-module/commit/4f78c3008b1b58b4db6dc91d99610b1bc859da7e)
|
|
24
|
+
- [Tests] node ^14.18 supports `node:` prefixes for CJS [`43e2f17`](https://github.com/inspect-js/is-core-module/commit/43e2f177452cea2f0eaf34f61b5407217bbdb6f4)
|
|
25
|
+
|
|
26
|
+
## [v2.7.0](https://github.com/inspect-js/is-core-module/compare/v2.6.0...v2.7.0) - 2021-09-27
|
|
27
|
+
|
|
28
|
+
### Commits
|
|
29
|
+
|
|
30
|
+
- [New] node `v14.18` added `node:`-prefixed core modules to `require` [`6d943ab`](https://github.com/inspect-js/is-core-module/commit/6d943abe81382b9bbe344384d80fbfebe1cc0526)
|
|
31
|
+
- [Tests] add coverage for Object.prototype pollution [`c6baf5f`](https://github.com/inspect-js/is-core-module/commit/c6baf5f942311a1945c1af41167bb80b84df2af7)
|
|
32
|
+
- [Dev Deps] update `@ljharb/eslint-config` [`6717f00`](https://github.com/inspect-js/is-core-module/commit/6717f000d063ea57beb772bded36c2f056ac404c)
|
|
33
|
+
- [eslint] fix linter warning [`594c10b`](https://github.com/inspect-js/is-core-module/commit/594c10bb7d39d7eb00925c90924199ff596184b2)
|
|
34
|
+
- [meta] add `sideEffects` flag [`c32cfa5`](https://github.com/inspect-js/is-core-module/commit/c32cfa5195632944c4dd4284a142b8476e75be13)
|
|
35
|
+
|
|
36
|
+
## [v2.6.0](https://github.com/inspect-js/is-core-module/compare/v2.5.0...v2.6.0) - 2021-08-17
|
|
37
|
+
|
|
38
|
+
### Commits
|
|
39
|
+
|
|
40
|
+
- [Dev Deps] update `eslint`, `tape` [`6cc928f`](https://github.com/inspect-js/is-core-module/commit/6cc928f8a4bba66aeeccc4f6beeac736d4bd3081)
|
|
41
|
+
- [New] add `stream/consumers` to node `>= 16.7` [`a1a423e`](https://github.com/inspect-js/is-core-module/commit/a1a423e467e4cc27df180234fad5bab45943e67d)
|
|
42
|
+
- [Refactor] Remove duplicated `&&` operand [`86faea7`](https://github.com/inspect-js/is-core-module/commit/86faea738213a2433c62d1098488dc9314dca832)
|
|
43
|
+
- [Tests] include prereleases [`a4da7a6`](https://github.com/inspect-js/is-core-module/commit/a4da7a6abf7568e2aa4fd98e69452179f1850963)
|
|
44
|
+
|
|
8
45
|
## [v2.5.0](https://github.com/inspect-js/is-core-module/compare/v2.4.0...v2.5.0) - 2021-07-12
|
|
9
46
|
|
|
10
47
|
### Commits
|
|
@@ -1,132 +1,136 @@
|
|
|
1
1
|
{
|
|
2
2
|
"assert": true,
|
|
3
|
-
"node:assert": ">= 16",
|
|
3
|
+
"node:assert": [">= 14.18 && < 15", ">= 16"],
|
|
4
4
|
"assert/strict": ">= 15",
|
|
5
5
|
"node:assert/strict": ">= 16",
|
|
6
6
|
"async_hooks": ">= 8",
|
|
7
|
-
"node:async_hooks": ">= 16",
|
|
8
|
-
"buffer_ieee754": "< 0.9.7",
|
|
7
|
+
"node:async_hooks": [">= 14.18 && < 15", ">= 16"],
|
|
8
|
+
"buffer_ieee754": ">= 0.5 && < 0.9.7",
|
|
9
9
|
"buffer": true,
|
|
10
|
-
"node:buffer": ">= 16",
|
|
10
|
+
"node:buffer": [">= 14.18 && < 15", ">= 16"],
|
|
11
11
|
"child_process": true,
|
|
12
|
-
"node:child_process": ">= 16",
|
|
13
|
-
"cluster":
|
|
14
|
-
"node:cluster": ">= 16",
|
|
12
|
+
"node:child_process": [">= 14.18 && < 15", ">= 16"],
|
|
13
|
+
"cluster": ">= 0.5",
|
|
14
|
+
"node:cluster": [">= 14.18 && < 15", ">= 16"],
|
|
15
15
|
"console": true,
|
|
16
|
-
"node:console": ">= 16",
|
|
16
|
+
"node:console": [">= 14.18 && < 15", ">= 16"],
|
|
17
17
|
"constants": true,
|
|
18
|
-
"node:constants": ">= 16",
|
|
18
|
+
"node:constants": [">= 14.18 && < 15", ">= 16"],
|
|
19
19
|
"crypto": true,
|
|
20
|
-
"node:crypto": ">= 16",
|
|
20
|
+
"node:crypto": [">= 14.18 && < 15", ">= 16"],
|
|
21
21
|
"_debug_agent": ">= 1 && < 8",
|
|
22
22
|
"_debugger": "< 8",
|
|
23
23
|
"dgram": true,
|
|
24
|
-
"node:dgram": ">= 16",
|
|
24
|
+
"node:dgram": [">= 14.18 && < 15", ">= 16"],
|
|
25
25
|
"diagnostics_channel": [">= 14.17 && < 15", ">= 15.1"],
|
|
26
|
-
"node:diagnostics_channel": ">= 16",
|
|
26
|
+
"node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
|
|
27
27
|
"dns": true,
|
|
28
|
-
"node:dns": ">= 16",
|
|
28
|
+
"node:dns": [">= 14.18 && < 15", ">= 16"],
|
|
29
29
|
"dns/promises": ">= 15",
|
|
30
30
|
"node:dns/promises": ">= 16",
|
|
31
31
|
"domain": ">= 0.7.12",
|
|
32
|
-
"node:domain": ">= 16",
|
|
32
|
+
"node:domain": [">= 14.18 && < 15", ">= 16"],
|
|
33
33
|
"events": true,
|
|
34
|
-
"node:events": ">= 16",
|
|
34
|
+
"node:events": [">= 14.18 && < 15", ">= 16"],
|
|
35
35
|
"freelist": "< 6",
|
|
36
36
|
"fs": true,
|
|
37
|
-
"node:fs": ">= 16",
|
|
37
|
+
"node:fs": [">= 14.18 && < 15", ">= 16"],
|
|
38
38
|
"fs/promises": [">= 10 && < 10.1", ">= 14"],
|
|
39
|
-
"node:fs/promises": ">= 16",
|
|
39
|
+
"node:fs/promises": [">= 14.18 && < 15", ">= 16"],
|
|
40
40
|
"_http_agent": ">= 0.11.1",
|
|
41
|
-
"node:_http_agent": ">= 16",
|
|
41
|
+
"node:_http_agent": [">= 14.18 && < 15", ">= 16"],
|
|
42
42
|
"_http_client": ">= 0.11.1",
|
|
43
|
-
"node:_http_client": ">= 16",
|
|
43
|
+
"node:_http_client": [">= 14.18 && < 15", ">= 16"],
|
|
44
44
|
"_http_common": ">= 0.11.1",
|
|
45
|
-
"node:_http_common": ">= 16",
|
|
45
|
+
"node:_http_common": [">= 14.18 && < 15", ">= 16"],
|
|
46
46
|
"_http_incoming": ">= 0.11.1",
|
|
47
|
-
"node:_http_incoming": ">= 16",
|
|
47
|
+
"node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
|
|
48
48
|
"_http_outgoing": ">= 0.11.1",
|
|
49
|
-
"node:_http_outgoing": ">= 16",
|
|
49
|
+
"node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
|
|
50
50
|
"_http_server": ">= 0.11.1",
|
|
51
|
-
"node:_http_server": ">= 16",
|
|
51
|
+
"node:_http_server": [">= 14.18 && < 15", ">= 16"],
|
|
52
52
|
"http": true,
|
|
53
|
-
"node:http": ">= 16",
|
|
53
|
+
"node:http": [">= 14.18 && < 15", ">= 16"],
|
|
54
54
|
"http2": ">= 8.8",
|
|
55
|
-
"node:http2": ">= 16",
|
|
55
|
+
"node:http2": [">= 14.18 && < 15", ">= 16"],
|
|
56
56
|
"https": true,
|
|
57
|
-
"node:https": ">= 16",
|
|
57
|
+
"node:https": [">= 14.18 && < 15", ">= 16"],
|
|
58
58
|
"inspector": ">= 8",
|
|
59
|
-
"node:inspector": ">= 16",
|
|
59
|
+
"node:inspector": [">= 14.18 && < 15", ">= 16"],
|
|
60
60
|
"_linklist": "< 8",
|
|
61
61
|
"module": true,
|
|
62
|
-
"node:module": ">= 16",
|
|
62
|
+
"node:module": [">= 14.18 && < 15", ">= 16"],
|
|
63
63
|
"net": true,
|
|
64
|
-
"node:net": ">= 16",
|
|
64
|
+
"node:net": [">= 14.18 && < 15", ">= 16"],
|
|
65
65
|
"node-inspect/lib/_inspect": ">= 7.6 && < 12",
|
|
66
66
|
"node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
|
|
67
67
|
"node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
|
|
68
68
|
"os": true,
|
|
69
|
-
"node:os": ">= 16",
|
|
69
|
+
"node:os": [">= 14.18 && < 15", ">= 16"],
|
|
70
70
|
"path": true,
|
|
71
|
-
"node:path": ">= 16",
|
|
71
|
+
"node:path": [">= 14.18 && < 15", ">= 16"],
|
|
72
72
|
"path/posix": ">= 15.3",
|
|
73
73
|
"node:path/posix": ">= 16",
|
|
74
74
|
"path/win32": ">= 15.3",
|
|
75
75
|
"node:path/win32": ">= 16",
|
|
76
76
|
"perf_hooks": ">= 8.5",
|
|
77
|
-
"node:perf_hooks": ">= 16",
|
|
77
|
+
"node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
|
|
78
78
|
"process": ">= 1",
|
|
79
|
-
"node:process": ">= 16",
|
|
80
|
-
"punycode":
|
|
81
|
-
"node:punycode": ">= 16",
|
|
79
|
+
"node:process": [">= 14.18 && < 15", ">= 16"],
|
|
80
|
+
"punycode": ">= 0.5",
|
|
81
|
+
"node:punycode": [">= 14.18 && < 15", ">= 16"],
|
|
82
82
|
"querystring": true,
|
|
83
|
-
"node:querystring": ">= 16",
|
|
83
|
+
"node:querystring": [">= 14.18 && < 15", ">= 16"],
|
|
84
84
|
"readline": true,
|
|
85
|
-
"node:readline": ">= 16",
|
|
85
|
+
"node:readline": [">= 14.18 && < 15", ">= 16"],
|
|
86
|
+
"readline/promises": ">= 17",
|
|
87
|
+
"node:readline/promises": ">= 17",
|
|
86
88
|
"repl": true,
|
|
87
|
-
"node:repl": ">= 16",
|
|
89
|
+
"node:repl": [">= 14.18 && < 15", ">= 16"],
|
|
88
90
|
"smalloc": ">= 0.11.5 && < 3",
|
|
89
91
|
"_stream_duplex": ">= 0.9.4",
|
|
90
|
-
"node:_stream_duplex": ">= 16",
|
|
92
|
+
"node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
|
|
91
93
|
"_stream_transform": ">= 0.9.4",
|
|
92
|
-
"node:_stream_transform": ">= 16",
|
|
94
|
+
"node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
|
|
93
95
|
"_stream_wrap": ">= 1.4.1",
|
|
94
|
-
"node:_stream_wrap": ">= 16",
|
|
96
|
+
"node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
|
|
95
97
|
"_stream_passthrough": ">= 0.9.4",
|
|
96
|
-
"node:_stream_passthrough": ">= 16",
|
|
98
|
+
"node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
|
|
97
99
|
"_stream_readable": ">= 0.9.4",
|
|
98
|
-
"node:_stream_readable": ">= 16",
|
|
100
|
+
"node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
|
|
99
101
|
"_stream_writable": ">= 0.9.4",
|
|
100
|
-
"node:_stream_writable": ">= 16",
|
|
102
|
+
"node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
|
|
101
103
|
"stream": true,
|
|
102
|
-
"node:stream": ">= 16",
|
|
104
|
+
"node:stream": [">= 14.18 && < 15", ">= 16"],
|
|
105
|
+
"stream/consumers": ">= 16.7",
|
|
106
|
+
"node:stream/consumers": ">= 16.7",
|
|
103
107
|
"stream/promises": ">= 15",
|
|
104
108
|
"node:stream/promises": ">= 16",
|
|
105
109
|
"stream/web": ">= 16.5",
|
|
106
110
|
"node:stream/web": ">= 16.5",
|
|
107
111
|
"string_decoder": true,
|
|
108
|
-
"node:string_decoder": ">= 16",
|
|
109
|
-
"sys": [">= 0.
|
|
110
|
-
"node:sys": ">= 16",
|
|
112
|
+
"node:string_decoder": [">= 14.18 && < 15", ">= 16"],
|
|
113
|
+
"sys": [">= 0.4 && < 0.7", ">= 0.8"],
|
|
114
|
+
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
|
111
115
|
"timers": true,
|
|
112
|
-
"node:timers": ">= 16",
|
|
116
|
+
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
|
113
117
|
"timers/promises": ">= 15",
|
|
114
118
|
"node:timers/promises": ">= 16",
|
|
115
119
|
"_tls_common": ">= 0.11.13",
|
|
116
|
-
"node:_tls_common": ">= 16",
|
|
120
|
+
"node:_tls_common": [">= 14.18 && < 15", ">= 16"],
|
|
117
121
|
"_tls_legacy": ">= 0.11.3 && < 10",
|
|
118
122
|
"_tls_wrap": ">= 0.11.3",
|
|
119
|
-
"node:_tls_wrap": ">= 16",
|
|
123
|
+
"node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
|
|
120
124
|
"tls": true,
|
|
121
|
-
"node:tls": ">= 16",
|
|
125
|
+
"node:tls": [">= 14.18 && < 15", ">= 16"],
|
|
122
126
|
"trace_events": ">= 10",
|
|
123
|
-
"node:trace_events": ">= 16",
|
|
127
|
+
"node:trace_events": [">= 14.18 && < 15", ">= 16"],
|
|
124
128
|
"tty": true,
|
|
125
|
-
"node:tty": ">= 16",
|
|
129
|
+
"node:tty": [">= 14.18 && < 15", ">= 16"],
|
|
126
130
|
"url": true,
|
|
127
|
-
"node:url": ">= 16",
|
|
131
|
+
"node:url": [">= 14.18 && < 15", ">= 16"],
|
|
128
132
|
"util": true,
|
|
129
|
-
"node:util": ">= 16",
|
|
133
|
+
"node:util": [">= 14.18 && < 15", ">= 16"],
|
|
130
134
|
"util/types": ">= 15.3",
|
|
131
135
|
"node:util/types": ">= 16",
|
|
132
136
|
"v8/tools/arguments": ">= 10 && < 12",
|
|
@@ -137,12 +141,12 @@
|
|
|
137
141
|
"v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
138
142
|
"v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
139
143
|
"v8": ">= 1",
|
|
140
|
-
"node:v8": ">= 16",
|
|
144
|
+
"node:v8": [">= 14.18 && < 15", ">= 16"],
|
|
141
145
|
"vm": true,
|
|
142
|
-
"node:vm": ">= 16",
|
|
146
|
+
"node:vm": [">= 14.18 && < 15", ">= 16"],
|
|
143
147
|
"wasi": ">= 13.4 && < 13.5",
|
|
144
148
|
"worker_threads": ">= 11.7",
|
|
145
|
-
"node:worker_threads": ">= 16",
|
|
146
|
-
"zlib":
|
|
147
|
-
"node:zlib": ">= 16"
|
|
149
|
+
"node:worker_threads": [">= 14.18 && < 15", ">= 16"],
|
|
150
|
+
"zlib": ">= 0.5",
|
|
151
|
+
"node:zlib": [">= 14.18 && < 15", ">= 16"]
|
|
148
152
|
}
|
|
@@ -44,7 +44,7 @@ function versionIncluded(nodeVersion, specifierValue) {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
var current = typeof nodeVersion === 'undefined'
|
|
47
|
-
? process.versions && process.versions.node
|
|
47
|
+
? process.versions && process.versions.node
|
|
48
48
|
: nodeVersion;
|
|
49
49
|
|
|
50
50
|
if (typeof current !== 'string') {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "is-core-module",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"description": "Is this specifier a node.js core module?",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"sideEffects": false,
|
|
6
7
|
"exports": {
|
|
7
8
|
".": [
|
|
8
9
|
{
|
|
@@ -17,8 +18,8 @@
|
|
|
17
18
|
"prepublishOnly": "safe-publish-latest",
|
|
18
19
|
"lint": "eslint .",
|
|
19
20
|
"pretest": "npm run lint",
|
|
20
|
-
"tests-only": "tape 'test/**/*.js'",
|
|
21
|
-
"test": "
|
|
21
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
22
|
+
"test": "npm run tests-only",
|
|
22
23
|
"posttest": "aud --production",
|
|
23
24
|
"version": "auto-changelog && git add CHANGELOG.md",
|
|
24
25
|
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
@@ -48,14 +49,14 @@
|
|
|
48
49
|
"has": "^1.0.3"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
|
-
"@ljharb/eslint-config": "^
|
|
52
|
+
"@ljharb/eslint-config": "^20.1.0",
|
|
52
53
|
"aud": "^1.1.5",
|
|
53
54
|
"auto-changelog": "^2.3.0",
|
|
54
|
-
"eslint": "^
|
|
55
|
+
"eslint": "^8.6.0",
|
|
55
56
|
"nyc": "^10.3.2",
|
|
56
|
-
"safe-publish-latest": "^
|
|
57
|
+
"safe-publish-latest": "^2.0.0",
|
|
57
58
|
"semver": "^6.3.0",
|
|
58
|
-
"tape": "^5.
|
|
59
|
+
"tape": "^5.4.0"
|
|
59
60
|
},
|
|
60
61
|
"auto-changelog": {
|
|
61
62
|
"output": "CHANGELOG.md",
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
"hideCredit": true
|
|
67
68
|
}
|
|
68
69
|
|
|
69
|
-
,"_resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.
|
|
70
|
-
,"_integrity": "sha512-
|
|
71
|
-
,"_from": "is-core-module@2.
|
|
70
|
+
,"_resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz"
|
|
71
|
+
,"_integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA=="
|
|
72
|
+
,"_from": "is-core-module@2.8.1"
|
|
72
73
|
}
|
|
@@ -6,7 +6,7 @@ var semver = require('semver');
|
|
|
6
6
|
var isCore = require('../');
|
|
7
7
|
var data = require('../core.json');
|
|
8
8
|
|
|
9
|
-
var supportsNodePrefix = semver.satisfies(process.versions.node, '>= 16');
|
|
9
|
+
var supportsNodePrefix = semver.satisfies(process.versions.node, '^14.18 || >= 16', { includePrerelease: true });
|
|
10
10
|
|
|
11
11
|
test('core modules', function (t) {
|
|
12
12
|
t.test('isCore()', function (st) {
|
|
@@ -104,5 +104,27 @@ test('core modules', function (t) {
|
|
|
104
104
|
st.end();
|
|
105
105
|
});
|
|
106
106
|
|
|
107
|
+
t.test('Object.prototype pollution', function (st) {
|
|
108
|
+
/* eslint no-extend-native: 1 */
|
|
109
|
+
var nonKey = 'not a core module';
|
|
110
|
+
st.teardown(function () {
|
|
111
|
+
delete Object.prototype.fs;
|
|
112
|
+
delete Object.prototype.path;
|
|
113
|
+
delete Object.prototype.http;
|
|
114
|
+
delete Object.prototype[nonKey];
|
|
115
|
+
});
|
|
116
|
+
Object.prototype.fs = false;
|
|
117
|
+
Object.prototype.path = '>= 999999999';
|
|
118
|
+
Object.prototype.http = data.http;
|
|
119
|
+
Object.prototype[nonKey] = true;
|
|
120
|
+
|
|
121
|
+
st.equal(isCore('fs'), true, 'fs is a core module even if Object.prototype lies');
|
|
122
|
+
st.equal(isCore('path'), true, 'path is a core module even if Object.prototype lies');
|
|
123
|
+
st.equal(isCore('http'), true, 'path is a core module even if Object.prototype matches data');
|
|
124
|
+
st.equal(isCore(nonKey), false, '"' + nonKey + '" is not a core module even if Object.prototype lies');
|
|
125
|
+
|
|
126
|
+
st.end();
|
|
127
|
+
});
|
|
128
|
+
|
|
107
129
|
t.end();
|
|
108
130
|
});
|