step-node-agent 3.17.0 → 3.18.1
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/accepts/HISTORY.md +7 -0
- package/node_modules/accepts/README.md +3 -5
- package/node_modules/accepts/package.json +18 -18
- 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 +44 -0
- package/node_modules/is-core-module/core.json +67 -61
- package/node_modules/is-core-module/index.js +1 -1
- package/node_modules/is-core-module/package.json +12 -11
- 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/negotiator/HISTORY.md +5 -0
- package/node_modules/negotiator/README.md +3 -3
- package/node_modules/negotiator/index.js +4 -46
- package/node_modules/negotiator/lib/language.js +3 -3
- package/node_modules/negotiator/package.json +11 -11
- 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 +169 -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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[![NPM Version][npm-version-image]][npm-url]
|
|
4
4
|
[![NPM Downloads][npm-downloads-image]][npm-url]
|
|
5
5
|
[![Node.js Version][node-version-image]][node-version-url]
|
|
6
|
-
[![Build Status][
|
|
6
|
+
[![Build Status][github-actions-ci-image]][github-actions-ci-url]
|
|
7
7
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
8
8
|
|
|
9
9
|
Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator).
|
|
@@ -29,8 +29,6 @@ $ npm install accepts
|
|
|
29
29
|
|
|
30
30
|
## API
|
|
31
31
|
|
|
32
|
-
<!-- eslint-disable no-unused-vars -->
|
|
33
|
-
|
|
34
32
|
```js
|
|
35
33
|
var accepts = require('accepts')
|
|
36
34
|
```
|
|
@@ -133,10 +131,10 @@ curl -I -H'Accept: text/html' http://localhost:3000/
|
|
|
133
131
|
|
|
134
132
|
[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/accepts/master
|
|
135
133
|
[coveralls-url]: https://coveralls.io/r/jshttp/accepts?branch=master
|
|
134
|
+
[github-actions-ci-image]: https://badgen.net/github/checks/jshttp/accepts/master?label=ci
|
|
135
|
+
[github-actions-ci-url]: https://github.com/jshttp/accepts/actions/workflows/ci.yml
|
|
136
136
|
[node-version-image]: https://badgen.net/npm/node/accepts
|
|
137
137
|
[node-version-url]: https://nodejs.org/en/download
|
|
138
138
|
[npm-downloads-image]: https://badgen.net/npm/dm/accepts
|
|
139
139
|
[npm-url]: https://npmjs.org/package/accepts
|
|
140
140
|
[npm-version-image]: https://badgen.net/npm/v/accepts
|
|
141
|
-
[travis-image]: https://badgen.net/travis/jshttp/accepts/master
|
|
142
|
-
[travis-url]: https://travis-ci.org/jshttp/accepts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "accepts",
|
|
3
3
|
"description": "Higher-level content negotiation",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.8",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
7
7
|
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
|
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": "jshttp/accepts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"mime-types": "~2.1.
|
|
13
|
-
"negotiator": "0.6.
|
|
12
|
+
"mime-types": "~2.1.34",
|
|
13
|
+
"negotiator": "0.6.3"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"deep-equal": "1.0.1",
|
|
17
|
-
"eslint": "
|
|
18
|
-
"eslint-config-standard": "
|
|
19
|
-
"eslint-plugin-import": "2.
|
|
20
|
-
"eslint-plugin-markdown": "
|
|
21
|
-
"eslint-plugin-node": "
|
|
22
|
-
"eslint-plugin-promise": "4.
|
|
23
|
-
"eslint-plugin-standard": "4.
|
|
24
|
-
"mocha": "
|
|
25
|
-
"nyc": "
|
|
17
|
+
"eslint": "7.32.0",
|
|
18
|
+
"eslint-config-standard": "14.1.1",
|
|
19
|
+
"eslint-plugin-import": "2.25.4",
|
|
20
|
+
"eslint-plugin-markdown": "2.2.1",
|
|
21
|
+
"eslint-plugin-node": "11.1.0",
|
|
22
|
+
"eslint-plugin-promise": "4.3.1",
|
|
23
|
+
"eslint-plugin-standard": "4.1.0",
|
|
24
|
+
"mocha": "9.2.0",
|
|
25
|
+
"nyc": "15.1.0"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"LICENSE",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"node": ">= 0.6"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
|
-
"lint": "eslint
|
|
36
|
+
"lint": "eslint .",
|
|
37
37
|
"test": "mocha --reporter spec --check-leaks --bail test/",
|
|
38
|
-
"test-
|
|
39
|
-
"test-
|
|
38
|
+
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
|
39
|
+
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
42
42
|
"content",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"accepts"
|
|
46
46
|
]
|
|
47
47
|
|
|
48
|
-
,"_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.
|
|
49
|
-
,"_integrity": "sha512-
|
|
50
|
-
,"_from": "accepts@1.3.
|
|
48
|
+
,"_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz"
|
|
49
|
+
,"_integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw=="
|
|
50
|
+
,"_from": "accepts@1.3.8"
|
|
51
51
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@Library('jenkins-joylib@v1.0.8') _
|
|
2
|
+
|
|
3
|
+
pipeline {
|
|
4
|
+
|
|
5
|
+
agent none
|
|
6
|
+
|
|
7
|
+
options {
|
|
8
|
+
buildDiscarder(logRotator(numToKeepStr: '45'))
|
|
9
|
+
timestamps()
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
stages {
|
|
13
|
+
stage('top') {
|
|
14
|
+
parallel {
|
|
15
|
+
stage('v4-zone') {
|
|
16
|
+
agent {
|
|
17
|
+
label joyCommonLabels(image_ver: '15.4.1')
|
|
18
|
+
}
|
|
19
|
+
tools {
|
|
20
|
+
nodejs 'sdcnode-v4-zone'
|
|
21
|
+
}
|
|
22
|
+
stages {
|
|
23
|
+
stage('check') {
|
|
24
|
+
steps{
|
|
25
|
+
sh('make check')
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
stage('test') {
|
|
29
|
+
steps{
|
|
30
|
+
sh('make test')
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
stage('v6-zone64') {
|
|
37
|
+
agent {
|
|
38
|
+
label joyCommonLabels(image_ver: '18.4.0')
|
|
39
|
+
}
|
|
40
|
+
tools {
|
|
41
|
+
nodejs 'sdcnode-v6-zone64'
|
|
42
|
+
}
|
|
43
|
+
stages {
|
|
44
|
+
stage('check') {
|
|
45
|
+
steps{
|
|
46
|
+
sh('make check')
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
stage('test') {
|
|
50
|
+
steps{
|
|
51
|
+
sh('make test')
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
post {
|
|
61
|
+
always {
|
|
62
|
+
joySlackNotifications()
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
],
|
|
9
9
|
"name": "asn1",
|
|
10
10
|
"description": "Contains parsers and serializers for ASN.1 (currently BER only)",
|
|
11
|
-
"version": "0.2.
|
|
11
|
+
"version": "0.2.6",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "
|
|
14
|
+
"url": "https://github.com/joyent/node-asn1.git"
|
|
15
15
|
},
|
|
16
16
|
"main": "lib/index.js",
|
|
17
17
|
"dependencies": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT"
|
|
31
31
|
|
|
32
|
-
,"_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.
|
|
33
|
-
,"_integrity": "sha512-
|
|
34
|
-
,"_from": "asn1@0.2.
|
|
32
|
+
,"_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz"
|
|
33
|
+
,"_integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ=="
|
|
34
|
+
,"_from": "asn1@0.2.6"
|
|
35
35
|
}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
1.19.1 / 2021-12-10
|
|
2
|
+
===================
|
|
3
|
+
|
|
4
|
+
* deps: bytes@3.1.1
|
|
5
|
+
* deps: http-errors@1.8.1
|
|
6
|
+
- deps: inherits@2.0.4
|
|
7
|
+
- deps: toidentifier@1.0.1
|
|
8
|
+
- deps: setprototypeof@1.2.0
|
|
9
|
+
* deps: qs@6.9.6
|
|
10
|
+
* deps: raw-body@2.4.2
|
|
11
|
+
- deps: bytes@3.1.1
|
|
12
|
+
- deps: http-errors@1.8.1
|
|
13
|
+
* deps: safe-buffer@5.2.1
|
|
14
|
+
* deps: type-is@~1.6.18
|
|
15
|
+
|
|
1
16
|
1.19.0 / 2019-04-25
|
|
2
17
|
===================
|
|
3
18
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[![NPM Version][npm-image]][npm-url]
|
|
4
4
|
[![NPM Downloads][downloads-image]][downloads-url]
|
|
5
|
-
[![Build Status][
|
|
5
|
+
[![Build Status][github-actions-ci-image]][github-actions-ci-url]
|
|
6
6
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
7
7
|
|
|
8
8
|
Node.js body parsing middleware.
|
|
@@ -49,8 +49,6 @@ $ npm install body-parser
|
|
|
49
49
|
|
|
50
50
|
## API
|
|
51
51
|
|
|
52
|
-
<!-- eslint-disable no-unused-vars -->
|
|
53
|
-
|
|
54
52
|
```js
|
|
55
53
|
var bodyParser = require('body-parser')
|
|
56
54
|
```
|
|
@@ -281,14 +279,15 @@ encoding of the request. The parsing can be aborted by throwing an error.
|
|
|
281
279
|
|
|
282
280
|
## Errors
|
|
283
281
|
|
|
284
|
-
The middlewares provided by this module create errors
|
|
285
|
-
|
|
286
|
-
property that contains the suggested
|
|
287
|
-
|
|
288
|
-
`type` property to determine the type of
|
|
289
|
-
`message`, and a `body` property containing
|
|
282
|
+
The middlewares provided by this module create errors using the
|
|
283
|
+
[`http-errors` module](https://www.npmjs.com/package/http-errors). The errors
|
|
284
|
+
will typically have a `status`/`statusCode` property that contains the suggested
|
|
285
|
+
HTTP response code, an `expose` property to determine if the `message` property
|
|
286
|
+
should be displayed to the client, a `type` property to determine the type of
|
|
287
|
+
error without matching against the `message`, and a `body` property containing
|
|
288
|
+
the read body, if available.
|
|
290
289
|
|
|
291
|
-
The following are the common errors
|
|
290
|
+
The following are the common errors created, though any error can come through
|
|
292
291
|
for various reasons.
|
|
293
292
|
|
|
294
293
|
### content encoding unsupported
|
|
@@ -299,6 +298,20 @@ contained an encoding but the "inflation" option was set to `false`. The
|
|
|
299
298
|
`'encoding.unsupported'`, and the `charset` property will be set to the
|
|
300
299
|
encoding that is unsupported.
|
|
301
300
|
|
|
301
|
+
### entity parse failed
|
|
302
|
+
|
|
303
|
+
This error will occur when the request contained an entity that could not be
|
|
304
|
+
parsed by the middleware. The `status` property is set to `400`, the `type`
|
|
305
|
+
property is set to `'entity.parse.failed'`, and the `body` property is set to
|
|
306
|
+
the entity value that failed parsing.
|
|
307
|
+
|
|
308
|
+
### entity verify failed
|
|
309
|
+
|
|
310
|
+
This error will occur when the request contained an entity that could not be
|
|
311
|
+
failed verification by the defined `verify` option. The `status` property is
|
|
312
|
+
set to `403`, the `type` property is set to `'entity.verify.failed'`, and the
|
|
313
|
+
`body` property is set to the entity value that failed verification.
|
|
314
|
+
|
|
302
315
|
### request aborted
|
|
303
316
|
|
|
304
317
|
This error will occur when the request is aborted by the client before reading
|
|
@@ -435,9 +448,9 @@ app.use(bodyParser.text({ type: 'text/html' }))
|
|
|
435
448
|
|
|
436
449
|
[npm-image]: https://img.shields.io/npm/v/body-parser.svg
|
|
437
450
|
[npm-url]: https://npmjs.org/package/body-parser
|
|
438
|
-
[travis-image]: https://img.shields.io/travis/expressjs/body-parser/master.svg
|
|
439
|
-
[travis-url]: https://travis-ci.org/expressjs/body-parser
|
|
440
451
|
[coveralls-image]: https://img.shields.io/coveralls/expressjs/body-parser/master.svg
|
|
441
452
|
[coveralls-url]: https://coveralls.io/r/expressjs/body-parser?branch=master
|
|
442
453
|
[downloads-image]: https://img.shields.io/npm/dm/body-parser.svg
|
|
443
454
|
[downloads-url]: https://npmjs.org/package/body-parser
|
|
455
|
+
[github-actions-ci-image]: https://img.shields.io/github/workflow/status/expressjs/body-parser/ci/master?label=ci
|
|
456
|
+
[github-actions-ci-url]: https://github.com/expressjs/body-parser?query=workflow%3Aci
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "body-parser",
|
|
3
3
|
"description": "Node.js body parsing middleware",
|
|
4
|
-
"version": "1.19.
|
|
4
|
+
"version": "1.19.1",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
7
7
|
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
|
|
@@ -9,30 +9,30 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": "expressjs/body-parser",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"bytes": "3.1.
|
|
12
|
+
"bytes": "3.1.1",
|
|
13
13
|
"content-type": "~1.0.4",
|
|
14
14
|
"debug": "2.6.9",
|
|
15
15
|
"depd": "~1.1.2",
|
|
16
|
-
"http-errors": "1.
|
|
16
|
+
"http-errors": "1.8.1",
|
|
17
17
|
"iconv-lite": "0.4.24",
|
|
18
18
|
"on-finished": "~2.3.0",
|
|
19
|
-
"qs": "6.
|
|
20
|
-
"raw-body": "2.4.
|
|
21
|
-
"type-is": "~1.6.
|
|
19
|
+
"qs": "6.9.6",
|
|
20
|
+
"raw-body": "2.4.2",
|
|
21
|
+
"type-is": "~1.6.18"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"eslint": "
|
|
25
|
-
"eslint-config-standard": "
|
|
26
|
-
"eslint-plugin-import": "2.
|
|
27
|
-
"eslint-plugin-markdown": "
|
|
28
|
-
"eslint-plugin-node": "
|
|
29
|
-
"eslint-plugin-promise": "
|
|
30
|
-
"eslint-plugin-standard": "4.
|
|
31
|
-
"istanbul": "0.4.5",
|
|
24
|
+
"eslint": "7.32.0",
|
|
25
|
+
"eslint-config-standard": "14.1.1",
|
|
26
|
+
"eslint-plugin-import": "2.25.3",
|
|
27
|
+
"eslint-plugin-markdown": "2.2.1",
|
|
28
|
+
"eslint-plugin-node": "11.1.0",
|
|
29
|
+
"eslint-plugin-promise": "5.2.0",
|
|
30
|
+
"eslint-plugin-standard": "4.1.0",
|
|
32
31
|
"methods": "1.1.2",
|
|
33
|
-
"mocha": "
|
|
34
|
-
"
|
|
35
|
-
"
|
|
32
|
+
"mocha": "9.1.3",
|
|
33
|
+
"nyc": "15.1.0",
|
|
34
|
+
"safe-buffer": "5.2.1",
|
|
35
|
+
"supertest": "6.1.6"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"lib/",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"node": ">= 0.8"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
|
-
"lint": "eslint
|
|
47
|
+
"lint": "eslint .",
|
|
48
48
|
"test": "mocha --require test/support/env --reporter spec --check-leaks --bail test/",
|
|
49
|
-
"test-
|
|
50
|
-
"test-
|
|
49
|
+
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
|
50
|
+
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
,"_resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.
|
|
54
|
-
,"_integrity": "sha512-
|
|
55
|
-
,"_from": "body-parser@1.19.
|
|
53
|
+
,"_resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.1.tgz"
|
|
54
|
+
,"_integrity": "sha512-8ljfQi5eBk8EJfECMrgqNGWPEY5jWP+1IzkzkGdFFEwFQZZyaZ21UqdaHktgiMlH0xLHqIFtE/u2OYE5dOtViA=="
|
|
55
|
+
,"_from": "body-parser@1.19.1"
|
|
56
56
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[![NPM Version][npm-image]][npm-url]
|
|
4
4
|
[![NPM Downloads][downloads-image]][downloads-url]
|
|
5
|
-
[![Build Status][
|
|
5
|
+
[![Build Status][ci-image]][ci-url]
|
|
6
6
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
7
7
|
|
|
8
8
|
Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa.
|
|
@@ -23,6 +23,33 @@ $ npm install bytes
|
|
|
23
23
|
var bytes = require('bytes');
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
#### bytes(number|string value, [options]): number|string|null
|
|
27
|
+
|
|
28
|
+
Default export function. Delegates to either `bytes.format` or `bytes.parse` based on the type of `value`.
|
|
29
|
+
|
|
30
|
+
**Arguments**
|
|
31
|
+
|
|
32
|
+
| Name | Type | Description |
|
|
33
|
+
|---------|----------|--------------------|
|
|
34
|
+
| value | `number`|`string` | Number value to format or string value to parse |
|
|
35
|
+
| options | `Object` | Conversion options for `format` |
|
|
36
|
+
|
|
37
|
+
**Returns**
|
|
38
|
+
|
|
39
|
+
| Name | Type | Description |
|
|
40
|
+
|---------|------------------|-------------------------------------------------|
|
|
41
|
+
| results | `string`|`number`|`null` | Return null upon error. Numeric value in bytes, or string value otherwise. |
|
|
42
|
+
|
|
43
|
+
**Example**
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
bytes(1024);
|
|
47
|
+
// output: '1KB'
|
|
48
|
+
|
|
49
|
+
bytes('1KB');
|
|
50
|
+
// output: 1024
|
|
51
|
+
```
|
|
52
|
+
|
|
26
53
|
#### bytes.format(number value, [options]): string|null
|
|
27
54
|
|
|
28
55
|
Format the given value in bytes into a string. If the value is negative, it is kept as such. If it is a float, it is
|
|
@@ -41,7 +68,7 @@ Format the given value in bytes into a string. If the value is negative, it is k
|
|
|
41
68
|
|-------------------|--------|-----------------------------------------------------------------------------------------|
|
|
42
69
|
| decimalPlaces | `number`|`null` | Maximum number of decimal places to include in output. Default value to `2`. |
|
|
43
70
|
| fixedDecimals | `boolean`|`null` | Whether to always display the maximum number of decimal places. Default value to `false` |
|
|
44
|
-
| thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and
|
|
71
|
+
| thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and `'.'`... Default value to `''`. |
|
|
45
72
|
| unit | `string`|`null` | The unit in which the result will be returned (B/KB/MB/GB/TB). Default value to `''` (which means auto detect). |
|
|
46
73
|
| unitSeparator | `string`|`null` | Separator to use between number and unit. Default value to `''`. |
|
|
47
74
|
|
|
@@ -54,21 +81,20 @@ Format the given value in bytes into a string. If the value is negative, it is k
|
|
|
54
81
|
**Example**
|
|
55
82
|
|
|
56
83
|
```js
|
|
57
|
-
bytes(1024);
|
|
84
|
+
bytes.format(1024);
|
|
58
85
|
// output: '1KB'
|
|
59
86
|
|
|
60
|
-
bytes(1000);
|
|
87
|
+
bytes.format(1000);
|
|
61
88
|
// output: '1000B'
|
|
62
89
|
|
|
63
|
-
bytes(1000, {thousandsSeparator: ' '});
|
|
90
|
+
bytes.format(1000, {thousandsSeparator: ' '});
|
|
64
91
|
// output: '1 000B'
|
|
65
92
|
|
|
66
|
-
bytes(1024 * 1.7, {decimalPlaces: 0});
|
|
93
|
+
bytes.format(1024 * 1.7, {decimalPlaces: 0});
|
|
67
94
|
// output: '2KB'
|
|
68
95
|
|
|
69
|
-
bytes(1024, {unitSeparator: ' '});
|
|
96
|
+
bytes.format(1024, {unitSeparator: ' '});
|
|
70
97
|
// output: '1 KB'
|
|
71
|
-
|
|
72
98
|
```
|
|
73
99
|
|
|
74
100
|
#### bytes.parse(string|number value): number|null
|
|
@@ -102,25 +128,25 @@ The units are in powers of two, not ten. This means 1kb = 1024b according to thi
|
|
|
102
128
|
**Example**
|
|
103
129
|
|
|
104
130
|
```js
|
|
105
|
-
bytes('1KB');
|
|
131
|
+
bytes.parse('1KB');
|
|
106
132
|
// output: 1024
|
|
107
133
|
|
|
108
|
-
bytes('1024');
|
|
134
|
+
bytes.parse('1024');
|
|
109
135
|
// output: 1024
|
|
110
136
|
|
|
111
|
-
bytes(1024);
|
|
112
|
-
// output:
|
|
137
|
+
bytes.parse(1024);
|
|
138
|
+
// output: 1024
|
|
113
139
|
```
|
|
114
140
|
|
|
115
|
-
## License
|
|
141
|
+
## License
|
|
116
142
|
|
|
117
143
|
[MIT](LICENSE)
|
|
118
144
|
|
|
145
|
+
[ci-image]: https://badgen.net/github/checks/visionmedia/bytes.js/master?label=ci
|
|
146
|
+
[ci-url]: https://github.com/visionmedia/bytes.js/actions?query=workflow%3Aci
|
|
119
147
|
[coveralls-image]: https://badgen.net/coveralls/c/github/visionmedia/bytes.js/master
|
|
120
148
|
[coveralls-url]: https://coveralls.io/r/visionmedia/bytes.js?branch=master
|
|
121
149
|
[downloads-image]: https://badgen.net/npm/dm/bytes
|
|
122
150
|
[downloads-url]: https://npmjs.org/package/bytes
|
|
123
|
-
[npm-image]: https://badgen.net/npm/
|
|
151
|
+
[npm-image]: https://badgen.net/npm/v/bytes
|
|
124
152
|
[npm-url]: https://npmjs.org/package/bytes
|
|
125
|
-
[travis-image]: https://badgen.net/travis/visionmedia/bytes.js/master
|
|
126
|
-
[travis-url]: https://travis-ci.org/visionmedia/bytes.js
|
|
@@ -117,7 +117,11 @@ function format(value, options) {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
if (thousandsSeparator) {
|
|
120
|
-
str = str.
|
|
120
|
+
str = str.split('.').map(function (s, i) {
|
|
121
|
+
return i === 0
|
|
122
|
+
? s.replace(formatThousandsRegExp, thousandsSeparator)
|
|
123
|
+
: s
|
|
124
|
+
}).join('.');
|
|
121
125
|
}
|
|
122
126
|
|
|
123
127
|
return str + unitSeparator + unit;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bytes",
|
|
3
3
|
"description": "Utility to parse a string bytes to bytes and vice-versa",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.1",
|
|
5
5
|
"author": "TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Jed Watson <jed.watson@me.com>",
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
],
|
|
20
20
|
"repository": "visionmedia/bytes.js",
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"eslint": "
|
|
23
|
-
"
|
|
24
|
-
"
|
|
22
|
+
"eslint": "7.32.0",
|
|
23
|
+
"eslint-plugin-markdown": "2.2.1",
|
|
24
|
+
"mocha": "9.1.3",
|
|
25
|
+
"nyc": "15.1.0"
|
|
25
26
|
},
|
|
26
27
|
"files": [
|
|
27
28
|
"History.md",
|
|
@@ -35,11 +36,11 @@
|
|
|
35
36
|
"scripts": {
|
|
36
37
|
"lint": "eslint .",
|
|
37
38
|
"test": "mocha --check-leaks --reporter spec",
|
|
38
|
-
"test-ci": "nyc --reporter=text npm test",
|
|
39
|
+
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
|
39
40
|
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
,"_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.
|
|
43
|
-
,"_integrity": "sha512-
|
|
44
|
-
,"_from": "bytes@3.1.
|
|
43
|
+
,"_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.1.tgz"
|
|
44
|
+
,"_integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg=="
|
|
45
|
+
,"_from": "bytes@3.1.1"
|
|
45
46
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[![NPM Version][npm-image]][npm-url]
|
|
4
4
|
[![NPM Downloads][downloads-image]][downloads-url]
|
|
5
5
|
[![Node.js Version][node-version-image]][node-version-url]
|
|
6
|
-
[![Build Status][
|
|
6
|
+
[![Build Status][github-actions-ci-image]][github-actions-ci-url]
|
|
7
7
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
8
8
|
|
|
9
9
|
Create and parse HTTP `Content-Disposition` header
|
|
@@ -16,8 +16,6 @@ $ npm install content-disposition
|
|
|
16
16
|
|
|
17
17
|
## API
|
|
18
18
|
|
|
19
|
-
<!-- eslint-disable no-unused-vars -->
|
|
20
|
-
|
|
21
19
|
```js
|
|
22
20
|
var contentDisposition = require('content-disposition')
|
|
23
21
|
```
|
|
@@ -28,8 +26,6 @@ Create an attachment `Content-Disposition` header value using the given file nam
|
|
|
28
26
|
if supplied. The `filename` is optional and if no file name is desired, but you
|
|
29
27
|
want to specify `options`, set `filename` to `undefined`.
|
|
30
28
|
|
|
31
|
-
<!-- eslint-disable no-undef -->
|
|
32
|
-
|
|
33
29
|
```js
|
|
34
30
|
res.setHeader('Content-Disposition', contentDisposition('∫ maths.pdf'))
|
|
35
31
|
```
|
|
@@ -70,8 +66,6 @@ it). The type is normalized to lower-case.
|
|
|
70
66
|
|
|
71
67
|
### contentDisposition.parse(string)
|
|
72
68
|
|
|
73
|
-
<!-- eslint-disable no-undef, no-unused-vars -->
|
|
74
|
-
|
|
75
69
|
```js
|
|
76
70
|
var disposition = contentDisposition.parse('attachment; filename="EURO rates.txt"; filename*=UTF-8\'\'%e2%82%ac%20rates.txt')
|
|
77
71
|
```
|
|
@@ -140,9 +134,9 @@ $ npm test
|
|
|
140
134
|
[npm-url]: https://npmjs.org/package/content-disposition
|
|
141
135
|
[node-version-image]: https://img.shields.io/node/v/content-disposition.svg
|
|
142
136
|
[node-version-url]: https://nodejs.org/en/download
|
|
143
|
-
[travis-image]: https://img.shields.io/travis/jshttp/content-disposition.svg
|
|
144
|
-
[travis-url]: https://travis-ci.org/jshttp/content-disposition
|
|
145
137
|
[coveralls-image]: https://img.shields.io/coveralls/jshttp/content-disposition.svg
|
|
146
138
|
[coveralls-url]: https://coveralls.io/r/jshttp/content-disposition?branch=master
|
|
147
139
|
[downloads-image]: https://img.shields.io/npm/dm/content-disposition.svg
|
|
148
140
|
[downloads-url]: https://npmjs.org/package/content-disposition
|
|
141
|
+
[github-actions-ci-image]: https://img.shields.io/github/workflow/status/jshttp/content-disposition/ci/master?label=ci
|
|
142
|
+
[github-actions-ci-url]: https://github.com/jshttp/content-disposition?query=workflow%3Aci
|