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
|
@@ -54,7 +54,7 @@ if (!fs[gracefulQueue]) {
|
|
|
54
54
|
return fs$close.call(fs, fd, function (err) {
|
|
55
55
|
// This function uses the graceful-fs shared queue
|
|
56
56
|
if (!err) {
|
|
57
|
-
|
|
57
|
+
resetQueue()
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
if (typeof cb === 'function')
|
|
@@ -72,7 +72,7 @@ if (!fs[gracefulQueue]) {
|
|
|
72
72
|
function closeSync (fd) {
|
|
73
73
|
// This function uses the graceful-fs shared queue
|
|
74
74
|
fs$closeSync.apply(fs, arguments)
|
|
75
|
-
|
|
75
|
+
resetQueue()
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
Object.defineProperty(closeSync, previousSymbol, {
|
|
@@ -114,14 +114,13 @@ function patch (fs) {
|
|
|
114
114
|
|
|
115
115
|
return go$readFile(path, options, cb)
|
|
116
116
|
|
|
117
|
-
function go$readFile (path, options, cb) {
|
|
117
|
+
function go$readFile (path, options, cb, startTime) {
|
|
118
118
|
return fs$readFile(path, options, function (err) {
|
|
119
119
|
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
|
120
|
-
enqueue([go$readFile, [path, options, cb]])
|
|
120
|
+
enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()])
|
|
121
121
|
else {
|
|
122
122
|
if (typeof cb === 'function')
|
|
123
123
|
cb.apply(this, arguments)
|
|
124
|
-
retry()
|
|
125
124
|
}
|
|
126
125
|
})
|
|
127
126
|
}
|
|
@@ -135,14 +134,13 @@ function patch (fs) {
|
|
|
135
134
|
|
|
136
135
|
return go$writeFile(path, data, options, cb)
|
|
137
136
|
|
|
138
|
-
function go$writeFile (path, data, options, cb) {
|
|
137
|
+
function go$writeFile (path, data, options, cb, startTime) {
|
|
139
138
|
return fs$writeFile(path, data, options, function (err) {
|
|
140
139
|
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
|
141
|
-
enqueue([go$writeFile, [path, data, options, cb]])
|
|
140
|
+
enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
|
|
142
141
|
else {
|
|
143
142
|
if (typeof cb === 'function')
|
|
144
143
|
cb.apply(this, arguments)
|
|
145
|
-
retry()
|
|
146
144
|
}
|
|
147
145
|
})
|
|
148
146
|
}
|
|
@@ -157,14 +155,13 @@ function patch (fs) {
|
|
|
157
155
|
|
|
158
156
|
return go$appendFile(path, data, options, cb)
|
|
159
157
|
|
|
160
|
-
function go$appendFile (path, data, options, cb) {
|
|
158
|
+
function go$appendFile (path, data, options, cb, startTime) {
|
|
161
159
|
return fs$appendFile(path, data, options, function (err) {
|
|
162
160
|
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
|
163
|
-
enqueue([go$appendFile, [path, data, options, cb]])
|
|
161
|
+
enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
|
|
164
162
|
else {
|
|
165
163
|
if (typeof cb === 'function')
|
|
166
164
|
cb.apply(this, arguments)
|
|
167
|
-
retry()
|
|
168
165
|
}
|
|
169
166
|
})
|
|
170
167
|
}
|
|
@@ -178,49 +175,43 @@ function patch (fs) {
|
|
|
178
175
|
cb = flags
|
|
179
176
|
flags = 0
|
|
180
177
|
}
|
|
181
|
-
return
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
if (
|
|
186
|
-
cb.
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
178
|
+
return go$copyFile(src, dest, flags, cb)
|
|
179
|
+
|
|
180
|
+
function go$copyFile (src, dest, flags, cb, startTime) {
|
|
181
|
+
return fs$copyFile(src, dest, flags, function (err) {
|
|
182
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
|
183
|
+
enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()])
|
|
184
|
+
else {
|
|
185
|
+
if (typeof cb === 'function')
|
|
186
|
+
cb.apply(this, arguments)
|
|
187
|
+
}
|
|
188
|
+
})
|
|
189
|
+
}
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
var fs$readdir = fs.readdir
|
|
193
193
|
fs.readdir = readdir
|
|
194
194
|
function readdir (path, options, cb) {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
args.push(options)
|
|
198
|
-
} else {
|
|
199
|
-
cb = options
|
|
200
|
-
}
|
|
201
|
-
args.push(go$readdir$cb)
|
|
202
|
-
|
|
203
|
-
return go$readdir(args)
|
|
195
|
+
if (typeof options === 'function')
|
|
196
|
+
cb = options, options = null
|
|
204
197
|
|
|
205
|
-
|
|
206
|
-
if (files && files.sort)
|
|
207
|
-
files.sort()
|
|
198
|
+
return go$readdir(path, options, cb)
|
|
208
199
|
|
|
209
|
-
|
|
210
|
-
|
|
200
|
+
function go$readdir (path, options, cb, startTime) {
|
|
201
|
+
return fs$readdir(path, options, function (err, files) {
|
|
202
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
|
203
|
+
enqueue([go$readdir, [path, options, cb], err, startTime || Date.now(), Date.now()])
|
|
204
|
+
else {
|
|
205
|
+
if (files && files.sort)
|
|
206
|
+
files.sort()
|
|
211
207
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
208
|
+
if (typeof cb === 'function')
|
|
209
|
+
cb.call(this, err, files)
|
|
210
|
+
}
|
|
211
|
+
})
|
|
217
212
|
}
|
|
218
213
|
}
|
|
219
214
|
|
|
220
|
-
function go$readdir (args) {
|
|
221
|
-
return fs$readdir.apply(fs, args)
|
|
222
|
-
}
|
|
223
|
-
|
|
224
215
|
if (process.version.substr(0, 4) === 'v0.8') {
|
|
225
216
|
var legStreams = legacy(fs)
|
|
226
217
|
ReadStream = legStreams.ReadStream
|
|
@@ -343,14 +334,13 @@ function patch (fs) {
|
|
|
343
334
|
|
|
344
335
|
return go$open(path, flags, mode, cb)
|
|
345
336
|
|
|
346
|
-
function go$open (path, flags, mode, cb) {
|
|
337
|
+
function go$open (path, flags, mode, cb, startTime) {
|
|
347
338
|
return fs$open(path, flags, mode, function (err, fd) {
|
|
348
339
|
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
|
349
|
-
enqueue([go$open, [path, flags, mode, cb]])
|
|
340
|
+
enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()])
|
|
350
341
|
else {
|
|
351
342
|
if (typeof cb === 'function')
|
|
352
343
|
cb.apply(this, arguments)
|
|
353
|
-
retry()
|
|
354
344
|
}
|
|
355
345
|
})
|
|
356
346
|
}
|
|
@@ -362,12 +352,78 @@ function patch (fs) {
|
|
|
362
352
|
function enqueue (elem) {
|
|
363
353
|
debug('ENQUEUE', elem[0].name, elem[1])
|
|
364
354
|
fs[gracefulQueue].push(elem)
|
|
355
|
+
retry()
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// keep track of the timeout between retry() calls
|
|
359
|
+
var retryTimer
|
|
360
|
+
|
|
361
|
+
// reset the startTime and lastTime to now
|
|
362
|
+
// this resets the start of the 60 second overall timeout as well as the
|
|
363
|
+
// delay between attempts so that we'll retry these jobs sooner
|
|
364
|
+
function resetQueue () {
|
|
365
|
+
var now = Date.now()
|
|
366
|
+
for (var i = 0; i < fs[gracefulQueue].length; ++i) {
|
|
367
|
+
// entries that are only a length of 2 are from an older version, don't
|
|
368
|
+
// bother modifying those since they'll be retried anyway.
|
|
369
|
+
if (fs[gracefulQueue][i].length > 2) {
|
|
370
|
+
fs[gracefulQueue][i][3] = now // startTime
|
|
371
|
+
fs[gracefulQueue][i][4] = now // lastTime
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
// call retry to make sure we're actively processing the queue
|
|
375
|
+
retry()
|
|
365
376
|
}
|
|
366
377
|
|
|
367
378
|
function retry () {
|
|
379
|
+
// clear the timer and remove it to help prevent unintended concurrency
|
|
380
|
+
clearTimeout(retryTimer)
|
|
381
|
+
retryTimer = undefined
|
|
382
|
+
|
|
383
|
+
if (fs[gracefulQueue].length === 0)
|
|
384
|
+
return
|
|
385
|
+
|
|
368
386
|
var elem = fs[gracefulQueue].shift()
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
387
|
+
var fn = elem[0]
|
|
388
|
+
var args = elem[1]
|
|
389
|
+
// these items may be unset if they were added by an older graceful-fs
|
|
390
|
+
var err = elem[2]
|
|
391
|
+
var startTime = elem[3]
|
|
392
|
+
var lastTime = elem[4]
|
|
393
|
+
|
|
394
|
+
// if we don't have a startTime we have no way of knowing if we've waited
|
|
395
|
+
// long enough, so go ahead and retry this item now
|
|
396
|
+
if (startTime === undefined) {
|
|
397
|
+
debug('RETRY', fn.name, args)
|
|
398
|
+
fn.apply(null, args)
|
|
399
|
+
} else if (Date.now() - startTime >= 60000) {
|
|
400
|
+
// it's been more than 60 seconds total, bail now
|
|
401
|
+
debug('TIMEOUT', fn.name, args)
|
|
402
|
+
var cb = args.pop()
|
|
403
|
+
if (typeof cb === 'function')
|
|
404
|
+
cb.call(null, err)
|
|
405
|
+
} else {
|
|
406
|
+
// the amount of time between the last attempt and right now
|
|
407
|
+
var sinceAttempt = Date.now() - lastTime
|
|
408
|
+
// the amount of time between when we first tried, and when we last tried
|
|
409
|
+
// rounded up to at least 1
|
|
410
|
+
var sinceStart = Math.max(lastTime - startTime, 1)
|
|
411
|
+
// backoff. wait longer than the total time we've been retrying, but only
|
|
412
|
+
// up to a maximum of 100ms
|
|
413
|
+
var desiredDelay = Math.min(sinceStart * 1.2, 100)
|
|
414
|
+
// it's been long enough since the last retry, do it again
|
|
415
|
+
if (sinceAttempt >= desiredDelay) {
|
|
416
|
+
debug('RETRY', fn.name, args)
|
|
417
|
+
fn.apply(null, args.concat([startTime]))
|
|
418
|
+
} else {
|
|
419
|
+
// if we can't do this job yet, push it to the end of the queue
|
|
420
|
+
// and let the next iteration check again
|
|
421
|
+
fs[gracefulQueue].push(elem)
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// schedule our next run if one isn't already scheduled
|
|
426
|
+
if (retryTimer === undefined) {
|
|
427
|
+
retryTimer = setTimeout(retry, 0)
|
|
372
428
|
}
|
|
373
429
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graceful-fs",
|
|
3
3
|
"description": "A drop-in replacement for fs, making various improvements.",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.9",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/isaacs/node-graceful-fs"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"clone.js"
|
|
49
49
|
]
|
|
50
50
|
|
|
51
|
-
,"_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.
|
|
52
|
-
,"_integrity": "sha512-
|
|
53
|
-
,"_from": "graceful-fs@4.2.
|
|
51
|
+
,"_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz"
|
|
52
|
+
,"_integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ=="
|
|
53
|
+
,"_from": "graceful-fs@4.2.9"
|
|
54
54
|
}
|
|
@@ -310,8 +310,10 @@ function patch (fs) {
|
|
|
310
310
|
return function (target, options) {
|
|
311
311
|
var stats = options ? orig.call(fs, target, options)
|
|
312
312
|
: orig.call(fs, target)
|
|
313
|
-
if (stats
|
|
314
|
-
|
|
313
|
+
if (stats) {
|
|
314
|
+
if (stats.uid < 0) stats.uid += 0x100000000
|
|
315
|
+
if (stats.gid < 0) stats.gid += 0x100000000
|
|
316
|
+
}
|
|
315
317
|
return stats;
|
|
316
318
|
}
|
|
317
319
|
}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
2021-11-14 / 1.8.1
|
|
2
|
+
==================
|
|
3
|
+
|
|
4
|
+
* deps: toidentifier@1.0.1
|
|
5
|
+
|
|
6
|
+
2020-06-29 / 1.8.0
|
|
7
|
+
==================
|
|
8
|
+
|
|
9
|
+
* Add `isHttpError` export to determine if value is an HTTP error
|
|
10
|
+
* deps: setprototypeof@1.2.0
|
|
11
|
+
|
|
12
|
+
2019-06-24 / 1.7.3
|
|
13
|
+
==================
|
|
14
|
+
|
|
15
|
+
* deps: inherits@2.0.4
|
|
16
|
+
|
|
1
17
|
2019-02-18 / 1.7.2
|
|
2
18
|
==================
|
|
3
19
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[![NPM Version][npm-version-image]][npm-url]
|
|
4
4
|
[![NPM Downloads][npm-downloads-image]][node-url]
|
|
5
5
|
[![Node.js Version][node-image]][node-url]
|
|
6
|
-
[![Build Status][
|
|
6
|
+
[![Build Status][ci-image]][ci-url]
|
|
7
7
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
8
8
|
|
|
9
9
|
Create HTTP errors for Express, Koa, Connect, etc. with ease.
|
|
@@ -53,8 +53,6 @@ This is the current API, currently extracted from Koa and subject to change.
|
|
|
53
53
|
Create a new error object with the given message `msg`.
|
|
54
54
|
The error object inherits from `createError.HttpError`.
|
|
55
55
|
|
|
56
|
-
<!-- eslint-disable no-undef, no-unused-vars -->
|
|
57
|
-
|
|
58
56
|
```js
|
|
59
57
|
var err = createError(404, 'This video does not exist!')
|
|
60
58
|
```
|
|
@@ -70,7 +68,7 @@ properties. This will not alter the inheritance of the given
|
|
|
70
68
|
`error` object, and the modified `error` object is the
|
|
71
69
|
return value.
|
|
72
70
|
|
|
73
|
-
<!-- eslint-disable no-redeclare
|
|
71
|
+
<!-- eslint-disable no-redeclare -->
|
|
74
72
|
|
|
75
73
|
```js
|
|
76
74
|
fs.readFile('foo.txt', function (err, buf) {
|
|
@@ -88,13 +86,19 @@ fs.readFile('foo.txt', function (err, buf) {
|
|
|
88
86
|
- `error` - the error object to extend
|
|
89
87
|
- `properties` - custom properties to attach to the object
|
|
90
88
|
|
|
89
|
+
### createError.isHttpError(val)
|
|
90
|
+
|
|
91
|
+
Determine if the provided `val` is an `HttpError`. This will return `true`
|
|
92
|
+
if the error inherits from the `HttpError` constructor of this module or
|
|
93
|
+
matches the "duck type" for an error this module creates. All outputs from
|
|
94
|
+
the `createError` factory will return `true` for this function, including
|
|
95
|
+
if an non-`HttpError` was passed into the factory.
|
|
96
|
+
|
|
91
97
|
### new createError\[code || name\](\[msg]\))
|
|
92
98
|
|
|
93
99
|
Create a new error object with the given message `msg`.
|
|
94
100
|
The error object inherits from `createError.HttpError`.
|
|
95
101
|
|
|
96
|
-
<!-- eslint-disable no-undef, no-unused-vars -->
|
|
97
|
-
|
|
98
102
|
```js
|
|
99
103
|
var err = new createError.NotFound()
|
|
100
104
|
```
|
|
@@ -152,6 +156,8 @@ var err = new createError.NotFound()
|
|
|
152
156
|
|
|
153
157
|
[MIT](LICENSE)
|
|
154
158
|
|
|
159
|
+
[ci-image]: https://badgen.net/github/checks/jshttp/http-errors/master?label=ci
|
|
160
|
+
[ci-url]: https://github.com/jshttp/http-errors/actions?query=workflow%3Aci
|
|
155
161
|
[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/http-errors/master
|
|
156
162
|
[coveralls-url]: https://coveralls.io/r/jshttp/http-errors?branch=master
|
|
157
163
|
[node-image]: https://badgen.net/npm/node/http-errors
|
|
@@ -25,6 +25,7 @@ var toIdentifier = require('toidentifier')
|
|
|
25
25
|
|
|
26
26
|
module.exports = createError
|
|
27
27
|
module.exports.HttpError = createHttpErrorConstructor()
|
|
28
|
+
module.exports.isHttpError = createIsHttpErrorFunction(module.exports.HttpError)
|
|
28
29
|
|
|
29
30
|
// Populate exports for all constructors
|
|
30
31
|
populateConstructorExports(module.exports, statuses.codes, module.exports.HttpError)
|
|
@@ -130,7 +131,7 @@ function createHttpErrorConstructor () {
|
|
|
130
131
|
*/
|
|
131
132
|
|
|
132
133
|
function createClientErrorConstructor (HttpError, name, code) {
|
|
133
|
-
var className = name
|
|
134
|
+
var className = toClassName(name)
|
|
134
135
|
|
|
135
136
|
function ClientError (message) {
|
|
136
137
|
// create the error object
|
|
@@ -172,13 +173,34 @@ function createClientErrorConstructor (HttpError, name, code) {
|
|
|
172
173
|
return ClientError
|
|
173
174
|
}
|
|
174
175
|
|
|
176
|
+
/**
|
|
177
|
+
* Create function to test is a value is a HttpError.
|
|
178
|
+
* @private
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
function createIsHttpErrorFunction (HttpError) {
|
|
182
|
+
return function isHttpError (val) {
|
|
183
|
+
if (!val || typeof val !== 'object') {
|
|
184
|
+
return false
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (val instanceof HttpError) {
|
|
188
|
+
return true
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return val instanceof Error &&
|
|
192
|
+
typeof val.expose === 'boolean' &&
|
|
193
|
+
typeof val.statusCode === 'number' && val.status === val.statusCode
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
175
197
|
/**
|
|
176
198
|
* Create a constructor for a server error.
|
|
177
199
|
* @private
|
|
178
200
|
*/
|
|
179
201
|
|
|
180
202
|
function createServerErrorConstructor (HttpError, name, code) {
|
|
181
|
-
var className = name
|
|
203
|
+
var className = toClassName(name)
|
|
182
204
|
|
|
183
205
|
function ServerError (message) {
|
|
184
206
|
// create the error object
|
|
@@ -264,3 +286,14 @@ function populateConstructorExports (exports, codes, HttpError) {
|
|
|
264
286
|
exports["I'mateapot"] = deprecate.function(exports.ImATeapot,
|
|
265
287
|
'"I\'mateapot"; use "ImATeapot" instead')
|
|
266
288
|
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Get a class name from a name identifier.
|
|
292
|
+
* @private
|
|
293
|
+
*/
|
|
294
|
+
|
|
295
|
+
function toClassName (name) {
|
|
296
|
+
return name.substr(-5) !== 'Error'
|
|
297
|
+
? name + 'Error'
|
|
298
|
+
: name
|
|
299
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "http-errors",
|
|
3
3
|
"description": "Create HTTP error objects",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.8.1",
|
|
5
5
|
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Alan Plum <me@pluma.io>",
|
|
@@ -11,30 +11,30 @@
|
|
|
11
11
|
"repository": "jshttp/http-errors",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"depd": "~1.1.2",
|
|
14
|
-
"inherits": "2.0.
|
|
15
|
-
"setprototypeof": "1.
|
|
14
|
+
"inherits": "2.0.4",
|
|
15
|
+
"setprototypeof": "1.2.0",
|
|
16
16
|
"statuses": ">= 1.5.0 < 2",
|
|
17
|
-
"toidentifier": "1.0.
|
|
17
|
+
"toidentifier": "1.0.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"eslint": "
|
|
21
|
-
"eslint-config-standard": "
|
|
22
|
-
"eslint-plugin-import": "2.
|
|
23
|
-
"eslint-plugin-markdown": "
|
|
24
|
-
"eslint-plugin-node": "
|
|
25
|
-
"eslint-plugin-promise": "
|
|
26
|
-
"eslint-plugin-standard": "4.
|
|
27
|
-
"
|
|
28
|
-
"
|
|
20
|
+
"eslint": "7.32.0",
|
|
21
|
+
"eslint-config-standard": "14.1.1",
|
|
22
|
+
"eslint-plugin-import": "2.25.3",
|
|
23
|
+
"eslint-plugin-markdown": "2.2.1",
|
|
24
|
+
"eslint-plugin-node": "11.1.0",
|
|
25
|
+
"eslint-plugin-promise": "5.1.1",
|
|
26
|
+
"eslint-plugin-standard": "4.1.0",
|
|
27
|
+
"mocha": "9.1.3",
|
|
28
|
+
"nyc": "15.1.0"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">= 0.6"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
|
-
"lint": "eslint
|
|
34
|
+
"lint": "eslint . && node ./scripts/lint-readme-list.js",
|
|
35
35
|
"test": "mocha --reporter spec --bail",
|
|
36
|
-
"test-
|
|
37
|
-
"test-
|
|
36
|
+
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
|
37
|
+
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
40
40
|
"http",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"README.md"
|
|
48
48
|
]
|
|
49
49
|
|
|
50
|
-
,"_resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.
|
|
51
|
-
,"_integrity": "sha512-
|
|
52
|
-
,"_from": "http-errors@1.
|
|
50
|
+
,"_resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz"
|
|
51
|
+
,"_integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g=="
|
|
52
|
+
,"_from": "http-errors@1.8.1"
|
|
53
53
|
}
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
if (typeof Object.create === 'function') {
|
|
2
2
|
// implementation from standard node.js 'util' module
|
|
3
3
|
module.exports = function inherits(ctor, superCtor) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
if (superCtor) {
|
|
5
|
+
ctor.super_ = superCtor
|
|
6
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
7
|
+
constructor: {
|
|
8
|
+
value: ctor,
|
|
9
|
+
enumerable: false,
|
|
10
|
+
writable: true,
|
|
11
|
+
configurable: true
|
|
12
|
+
}
|
|
13
|
+
})
|
|
14
|
+
}
|
|
13
15
|
};
|
|
14
16
|
} else {
|
|
15
17
|
// old school shim for old browsers
|
|
16
18
|
module.exports = function inherits(ctor, superCtor) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
if (superCtor) {
|
|
20
|
+
ctor.super_ = superCtor
|
|
21
|
+
var TempCtor = function () {}
|
|
22
|
+
TempCtor.prototype = superCtor.prototype
|
|
23
|
+
ctor.prototype = new TempCtor()
|
|
24
|
+
ctor.prototype.constructor = ctor
|
|
25
|
+
}
|
|
22
26
|
}
|
|
23
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inherits",
|
|
3
3
|
"description": "Browser-friendly inheritance fully compatible with standard node.js inherits()",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.4",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"inheritance",
|
|
7
7
|
"class",
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"repository": "git://github.com/isaacs/inherits",
|
|
18
18
|
"license": "ISC",
|
|
19
19
|
"scripts": {
|
|
20
|
-
"test": "
|
|
20
|
+
"test": "tap"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"tap": "^
|
|
23
|
+
"tap": "^14.2.4"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"inherits.js",
|
|
27
27
|
"inherits_browser.js"
|
|
28
28
|
]
|
|
29
29
|
|
|
30
|
-
,"_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.
|
|
31
|
-
,"_integrity": "
|
|
32
|
-
,"_from": "inherits@2.0.
|
|
30
|
+
,"_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz"
|
|
31
|
+
,"_integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
|
32
|
+
,"_from": "inherits@2.0.4"
|
|
33
33
|
}
|
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
1
15
|
1.2.3 / 2021-01-31
|
|
2
16
|
=================
|
|
3
17
|
* [Fix] `document.all` is callable (do not use `document.all`!)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# is-callable <sup>[![Version Badge][2]][1]</sup>
|
|
2
2
|
|
|
3
|
-
[![
|
|
3
|
+
[![github actions][actions-image]][actions-url]
|
|
4
|
+
[![coverage][codecov-image]][codecov-url]
|
|
4
5
|
[![dependency status][5]][6]
|
|
5
6
|
[![dev dependency status][7]][8]
|
|
6
7
|
[![License][license-image]][license-url]
|
|
@@ -8,8 +9,6 @@
|
|
|
8
9
|
|
|
9
10
|
[![npm badge][11]][1]
|
|
10
11
|
|
|
11
|
-
[![browser support][9]][10]
|
|
12
|
-
|
|
13
12
|
Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.
|
|
14
13
|
|
|
15
14
|
## Example
|
|
@@ -52,17 +51,17 @@ npm install is-callable
|
|
|
52
51
|
Simply clone the repo, `npm install`, and run `npm test`
|
|
53
52
|
|
|
54
53
|
[1]: https://npmjs.org/package/is-callable
|
|
55
|
-
[2]:
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[7]: https://david-dm.org/ljharb/is-callable/dev-status.svg
|
|
61
|
-
[8]: https://david-dm.org/ljharb/is-callable#info=devDependencies
|
|
62
|
-
[9]: https://ci.testling.com/ljharb/is-callable.png
|
|
63
|
-
[10]: https://ci.testling.com/ljharb/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
|
|
64
59
|
[11]: https://nodei.co/npm/is-callable.png?downloads=true&stars=true
|
|
65
|
-
[license-image]:
|
|
60
|
+
[license-image]: https://img.shields.io/npm/l/is-callable.svg
|
|
66
61
|
[license-url]: LICENSE
|
|
67
|
-
[downloads-image]:
|
|
68
|
-
[downloads-url]:
|
|
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
|