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
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
4.17.2 / 2021-12-16
|
|
2
|
+
===================
|
|
3
|
+
|
|
4
|
+
* Fix handling of `undefined` in `res.jsonp`
|
|
5
|
+
* Fix handling of `undefined` when `"json escape"` is enabled
|
|
6
|
+
* Fix incorrect middleware execution with unanchored `RegExp`s
|
|
7
|
+
* Fix `res.jsonp(obj, status)` deprecation message
|
|
8
|
+
* Fix typo in `res.is` JSDoc
|
|
9
|
+
* deps: body-parser@1.19.1
|
|
10
|
+
- deps: bytes@3.1.1
|
|
11
|
+
- deps: http-errors@1.8.1
|
|
12
|
+
- deps: qs@6.9.6
|
|
13
|
+
- deps: raw-body@2.4.2
|
|
14
|
+
- deps: safe-buffer@5.2.1
|
|
15
|
+
- deps: type-is@~1.6.18
|
|
16
|
+
* deps: content-disposition@0.5.4
|
|
17
|
+
- deps: safe-buffer@5.2.1
|
|
18
|
+
* deps: cookie@0.4.1
|
|
19
|
+
- Fix `maxAge` option to reject invalid values
|
|
20
|
+
* deps: proxy-addr@~2.0.7
|
|
21
|
+
- Use `req.socket` over deprecated `req.connection`
|
|
22
|
+
- deps: forwarded@0.2.0
|
|
23
|
+
- deps: ipaddr.js@1.9.1
|
|
24
|
+
* deps: qs@6.9.6
|
|
25
|
+
* deps: safe-buffer@5.2.1
|
|
26
|
+
* deps: send@0.17.2
|
|
27
|
+
- deps: http-errors@1.8.1
|
|
28
|
+
- deps: ms@2.1.3
|
|
29
|
+
- pref: ignore empty http tokens
|
|
30
|
+
* deps: serve-static@1.14.2
|
|
31
|
+
- deps: send@0.17.2
|
|
32
|
+
* deps: setprototypeof@1.2.0
|
|
33
|
+
|
|
1
34
|
4.17.1 / 2019-05-25
|
|
2
35
|
===================
|
|
3
36
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[![NPM Version][npm-image]][npm-url]
|
|
6
6
|
[![NPM Downloads][downloads-image]][downloads-url]
|
|
7
|
-
[![Linux Build][
|
|
7
|
+
[![Linux Build][ci-image]][ci-url]
|
|
8
8
|
[![Windows Build][appveyor-image]][appveyor-url]
|
|
9
9
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
10
10
|
|
|
@@ -27,6 +27,9 @@ This is a [Node.js](https://nodejs.org/en/) module available through the
|
|
|
27
27
|
Before installing, [download and install Node.js](https://nodejs.org/en/download/).
|
|
28
28
|
Node.js 0.10 or higher is required.
|
|
29
29
|
|
|
30
|
+
If this is a brand new project, make sure to create a `package.json` first with
|
|
31
|
+
the [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file).
|
|
32
|
+
|
|
30
33
|
Installation is done using the
|
|
31
34
|
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
|
|
32
35
|
|
|
@@ -95,7 +98,7 @@ $ npm start
|
|
|
95
98
|
## Philosophy
|
|
96
99
|
|
|
97
100
|
The Express philosophy is to provide small, robust tooling for HTTP servers, making
|
|
98
|
-
it a great solution for single page applications,
|
|
101
|
+
it a great solution for single page applications, websites, hybrids, or public
|
|
99
102
|
HTTP APIs.
|
|
100
103
|
|
|
101
104
|
Express does not force you to use any specific ORM or template engine. With support for over
|
|
@@ -143,12 +146,12 @@ The current lead maintainer is [Douglas Christopher Wilson](https://github.com/d
|
|
|
143
146
|
|
|
144
147
|
[MIT](LICENSE)
|
|
145
148
|
|
|
149
|
+
[ci-image]: https://img.shields.io/github/workflow/status/expressjs/express/ci/master.svg?label=linux
|
|
150
|
+
[ci-url]: https://github.com/expressjs/express/actions?query=workflow%3Aci
|
|
146
151
|
[npm-image]: https://img.shields.io/npm/v/express.svg
|
|
147
152
|
[npm-url]: https://npmjs.org/package/express
|
|
148
153
|
[downloads-image]: https://img.shields.io/npm/dm/express.svg
|
|
149
|
-
[downloads-url]: https://
|
|
150
|
-
[travis-image]: https://img.shields.io/travis/expressjs/express/master.svg?label=linux
|
|
151
|
-
[travis-url]: https://travis-ci.org/expressjs/express
|
|
154
|
+
[downloads-url]: https://npmcharts.com/compare/express?minimal=true
|
|
152
155
|
[appveyor-image]: https://img.shields.io/appveyor/ci/dougwilson/express/master.svg?label=windows
|
|
153
156
|
[appveyor-url]: https://ci.appveyor.com/project/dougwilson/express
|
|
154
157
|
[coveralls-image]: https://img.shields.io/coveralls/expressjs/express/master.svg
|
|
@@ -276,7 +276,7 @@ app.route = function route(path) {
|
|
|
276
276
|
* In this case EJS provides a `.renderFile()` method with
|
|
277
277
|
* the same signature that Express expects: `(path, options, callback)`,
|
|
278
278
|
* though note that it aliases this method as `ejs.__express` internally
|
|
279
|
-
* so if you're using ".ejs" extensions you
|
|
279
|
+
* so if you're using ".ejs" extensions you don't need to do anything.
|
|
280
280
|
*
|
|
281
281
|
* Some template engines do not follow this convention, the
|
|
282
282
|
* [Consolidate.js](https://github.com/tj/consolidate.js)
|
|
@@ -251,7 +251,7 @@ req.param = function param(name, defaultValue) {
|
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
253
|
* Check if the incoming request contains the "Content-Type"
|
|
254
|
-
* header field, and it contains the
|
|
254
|
+
* header field, and it contains the given mime `type`.
|
|
255
255
|
*
|
|
256
256
|
* Examples:
|
|
257
257
|
*
|
|
@@ -284,9 +284,9 @@ res.jsonp = function jsonp(obj) {
|
|
|
284
284
|
|
|
285
285
|
// allow status / body
|
|
286
286
|
if (arguments.length === 2) {
|
|
287
|
-
// res.
|
|
287
|
+
// res.jsonp(body, status) backwards compat
|
|
288
288
|
if (typeof arguments[1] === 'number') {
|
|
289
|
-
deprecate('res.jsonp(obj, status): Use res.status(status).
|
|
289
|
+
deprecate('res.jsonp(obj, status): Use res.status(status).jsonp(obj) instead');
|
|
290
290
|
this.statusCode = arguments[1];
|
|
291
291
|
} else {
|
|
292
292
|
deprecate('res.jsonp(status, obj): Use res.status(status).jsonp(obj) instead');
|
|
@@ -322,10 +322,15 @@ res.jsonp = function jsonp(obj) {
|
|
|
322
322
|
// restrict callback charset
|
|
323
323
|
callback = callback.replace(/[^\[\]\w$.]/g, '');
|
|
324
324
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
325
|
+
if (body === undefined) {
|
|
326
|
+
// empty argument
|
|
327
|
+
body = ''
|
|
328
|
+
} else if (typeof body === 'string') {
|
|
329
|
+
// replace chars not allowed in JavaScript that are in JSON
|
|
330
|
+
body = body
|
|
331
|
+
.replace(/\u2028/g, '\\u2028')
|
|
332
|
+
.replace(/\u2029/g, '\\u2029')
|
|
333
|
+
}
|
|
329
334
|
|
|
330
335
|
// the /**/ is a specific security mitigation for "Rosetta Flash JSONP abuse"
|
|
331
336
|
// the typeof check is just to reduce client error noise
|
|
@@ -364,7 +369,7 @@ res.sendStatus = function sendStatus(statusCode) {
|
|
|
364
369
|
*
|
|
365
370
|
* Automatically sets the _Content-Type_ response header field.
|
|
366
371
|
* The callback `callback(err)` is invoked when the transfer is complete
|
|
367
|
-
* or when an error occurs. Be sure to check `res.
|
|
372
|
+
* or when an error occurs. Be sure to check `res.headersSent`
|
|
368
373
|
* if you wish to attempt responding, as the header and some data
|
|
369
374
|
* may have already been transferred.
|
|
370
375
|
*
|
|
@@ -446,7 +451,7 @@ res.sendFile = function sendFile(path, options, callback) {
|
|
|
446
451
|
*
|
|
447
452
|
* Automatically sets the _Content-Type_ response header field.
|
|
448
453
|
* The callback `callback(err)` is invoked when the transfer is complete
|
|
449
|
-
* or when an error occurs. Be sure to check `res.
|
|
454
|
+
* or when an error occurs. Be sure to check `res.headersSent`
|
|
450
455
|
* if you wish to attempt responding, as the header and some data
|
|
451
456
|
* may have already been transferred.
|
|
452
457
|
*
|
|
@@ -623,7 +628,7 @@ res.type = function contentType(type) {
|
|
|
623
628
|
* res.send('<p>hey</p>');
|
|
624
629
|
* },
|
|
625
630
|
*
|
|
626
|
-
* '
|
|
631
|
+
* 'application/json': function () {
|
|
627
632
|
* res.send({ message: 'hey' });
|
|
628
633
|
* }
|
|
629
634
|
* });
|
|
@@ -726,7 +731,7 @@ res.append = function append(field, val) {
|
|
|
726
731
|
// concat the new and prev vals
|
|
727
732
|
value = Array.isArray(prev) ? prev.concat(val)
|
|
728
733
|
: Array.isArray(val) ? [prev].concat(val)
|
|
729
|
-
|
|
734
|
+
: [prev, val]
|
|
730
735
|
}
|
|
731
736
|
|
|
732
737
|
return this.set(field, value);
|
|
@@ -1122,7 +1127,7 @@ function stringify (value, replacer, spaces, escape) {
|
|
|
1122
1127
|
? JSON.stringify(value, replacer, spaces)
|
|
1123
1128
|
: JSON.stringify(value);
|
|
1124
1129
|
|
|
1125
|
-
if (escape) {
|
|
1130
|
+
if (escape && typeof json === 'string') {
|
|
1126
1131
|
json = json.replace(/[<>&]/g, function (c) {
|
|
1127
1132
|
switch (c.charCodeAt(0)) {
|
|
1128
1133
|
case 0x3c:
|
|
@@ -287,6 +287,12 @@ proto.handle = function handle(req, res, out) {
|
|
|
287
287
|
|
|
288
288
|
function trim_prefix(layer, layerError, layerPath, path) {
|
|
289
289
|
if (layerPath.length !== 0) {
|
|
290
|
+
// Validate path is a prefix match
|
|
291
|
+
if (layerPath !== path.substr(0, layerPath.length)) {
|
|
292
|
+
next(layerError)
|
|
293
|
+
return
|
|
294
|
+
}
|
|
295
|
+
|
|
290
296
|
// Validate path breaks on a path separator
|
|
291
297
|
var c = path[layerPath.length]
|
|
292
298
|
if (c && c !== '/' && c !== '.') return next(layerError)
|
|
@@ -157,6 +157,7 @@ exports.compileETag = function(val) {
|
|
|
157
157
|
|
|
158
158
|
switch (val) {
|
|
159
159
|
case true:
|
|
160
|
+
case 'weak':
|
|
160
161
|
fn = exports.wetag;
|
|
161
162
|
break;
|
|
162
163
|
case false:
|
|
@@ -164,9 +165,6 @@ exports.compileETag = function(val) {
|
|
|
164
165
|
case 'strong':
|
|
165
166
|
fn = exports.etag;
|
|
166
167
|
break;
|
|
167
|
-
case 'weak':
|
|
168
|
-
fn = exports.wetag;
|
|
169
|
-
break;
|
|
170
168
|
default:
|
|
171
169
|
throw new TypeError('unknown value for etag function: ' + val);
|
|
172
170
|
}
|
|
@@ -191,6 +189,7 @@ exports.compileQueryParser = function compileQueryParser(val) {
|
|
|
191
189
|
|
|
192
190
|
switch (val) {
|
|
193
191
|
case true:
|
|
192
|
+
case 'simple':
|
|
194
193
|
fn = querystring.parse;
|
|
195
194
|
break;
|
|
196
195
|
case false:
|
|
@@ -199,9 +198,6 @@ exports.compileQueryParser = function compileQueryParser(val) {
|
|
|
199
198
|
case 'extended':
|
|
200
199
|
fn = parseExtendedQueryString;
|
|
201
200
|
break;
|
|
202
|
-
case 'simple':
|
|
203
|
-
fn = querystring.parse;
|
|
204
|
-
break;
|
|
205
201
|
default:
|
|
206
202
|
throw new TypeError('unknown value for query parser function: ' + val);
|
|
207
203
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express",
|
|
3
3
|
"description": "Fast, unopinionated, minimalist web framework",
|
|
4
|
-
"version": "4.17.
|
|
4
|
+
"version": "4.17.2",
|
|
5
5
|
"author": "TJ Holowaychuk <tj@vision-media.ca>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Aaron Heckmann <aaron.heckmann+github@gmail.com>",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"framework",
|
|
21
21
|
"sinatra",
|
|
22
22
|
"web",
|
|
23
|
+
"http",
|
|
23
24
|
"rest",
|
|
24
25
|
"restful",
|
|
25
26
|
"router",
|
|
@@ -29,10 +30,10 @@
|
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"accepts": "~1.3.7",
|
|
31
32
|
"array-flatten": "1.1.1",
|
|
32
|
-
"body-parser": "1.19.
|
|
33
|
-
"content-disposition": "0.5.
|
|
33
|
+
"body-parser": "1.19.1",
|
|
34
|
+
"content-disposition": "0.5.4",
|
|
34
35
|
"content-type": "~1.0.4",
|
|
35
|
-
"cookie": "0.4.
|
|
36
|
+
"cookie": "0.4.1",
|
|
36
37
|
"cookie-signature": "1.0.6",
|
|
37
38
|
"debug": "2.6.9",
|
|
38
39
|
"depd": "~1.1.2",
|
|
@@ -46,13 +47,13 @@
|
|
|
46
47
|
"on-finished": "~2.3.0",
|
|
47
48
|
"parseurl": "~1.3.3",
|
|
48
49
|
"path-to-regexp": "0.1.7",
|
|
49
|
-
"proxy-addr": "~2.0.
|
|
50
|
-
"qs": "6.
|
|
50
|
+
"proxy-addr": "~2.0.7",
|
|
51
|
+
"qs": "6.9.6",
|
|
51
52
|
"range-parser": "~1.2.1",
|
|
52
|
-
"safe-buffer": "5.1
|
|
53
|
-
"send": "0.17.
|
|
54
|
-
"serve-static": "1.14.
|
|
55
|
-
"setprototypeof": "1.
|
|
53
|
+
"safe-buffer": "5.2.1",
|
|
54
|
+
"send": "0.17.2",
|
|
55
|
+
"serve-static": "1.14.2",
|
|
56
|
+
"setprototypeof": "1.2.0",
|
|
56
57
|
"statuses": "~1.5.0",
|
|
57
58
|
"type-is": "~1.6.18",
|
|
58
59
|
"utils-merge": "1.0.1",
|
|
@@ -60,22 +61,22 @@
|
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"after": "0.8.2",
|
|
63
|
-
"connect-redis": "3.4.
|
|
64
|
-
"cookie-parser": "
|
|
65
|
-
"cookie-session": "
|
|
66
|
-
"ejs": "
|
|
67
|
-
"eslint": "
|
|
68
|
-
"express-session": "1.
|
|
69
|
-
"hbs": "4.0
|
|
64
|
+
"connect-redis": "3.4.2",
|
|
65
|
+
"cookie-parser": "1.4.6",
|
|
66
|
+
"cookie-session": "2.0.0",
|
|
67
|
+
"ejs": "3.1.6",
|
|
68
|
+
"eslint": "7.32.0",
|
|
69
|
+
"express-session": "1.17.2",
|
|
70
|
+
"hbs": "4.2.0",
|
|
70
71
|
"istanbul": "0.4.5",
|
|
71
|
-
"marked": "0.
|
|
72
|
+
"marked": "0.7.0",
|
|
72
73
|
"method-override": "3.0.0",
|
|
73
|
-
"mocha": "
|
|
74
|
-
"morgan": "1.
|
|
75
|
-
"multiparty": "4.2.
|
|
74
|
+
"mocha": "9.1.3",
|
|
75
|
+
"morgan": "1.10.0",
|
|
76
|
+
"multiparty": "4.2.2",
|
|
76
77
|
"pbkdf2-password": "1.2.1",
|
|
77
78
|
"should": "13.2.3",
|
|
78
|
-
"supertest": "
|
|
79
|
+
"supertest": "6.1.6",
|
|
79
80
|
"vhost": "~3.0.2"
|
|
80
81
|
},
|
|
81
82
|
"engines": {
|
|
@@ -96,7 +97,7 @@
|
|
|
96
97
|
"test-tap": "mocha --require test/support/env --reporter tap --check-leaks test/ test/acceptance/"
|
|
97
98
|
}
|
|
98
99
|
|
|
99
|
-
,"_resolved": "https://registry.npmjs.org/express/-/express-4.17.
|
|
100
|
-
,"_integrity": "sha512-
|
|
101
|
-
,"_from": "express@4.17.
|
|
100
|
+
,"_resolved": "https://registry.npmjs.org/express/-/express-4.17.2.tgz"
|
|
101
|
+
,"_integrity": "sha512-oxlxJxcQlYwqPWKVJJtvQiwHgosH/LrLSPA+H4UxpyvSS6jC5aH+5MoHFM+KABgTOt0APue4w66Ha8jCUo9QGg=="
|
|
102
|
+
,"_from": "express@4.17.2"
|
|
102
103
|
}
|
|
@@ -276,6 +276,9 @@ the filesystem.
|
|
|
276
276
|
* `absolute` Set to true to always receive absolute paths for matched
|
|
277
277
|
files. Unlike `realpath`, this also affects the values returned in
|
|
278
278
|
the `match` event.
|
|
279
|
+
* `fs` File-system object with Node's `fs` API. By default, the built-in
|
|
280
|
+
`fs` module will be used. Set to a volume provided by a library like
|
|
281
|
+
`memfs` to avoid using the "real" file-system.
|
|
279
282
|
|
|
280
283
|
## Comparisons to other fnmatch/glob implementations
|
|
281
284
|
|
|
@@ -10,6 +10,7 @@ function ownProp (obj, field) {
|
|
|
10
10
|
return Object.prototype.hasOwnProperty.call(obj, field)
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
var fs = require("fs")
|
|
13
14
|
var path = require("path")
|
|
14
15
|
var minimatch = require("minimatch")
|
|
15
16
|
var isAbsolute = require("path-is-absolute")
|
|
@@ -75,6 +76,7 @@ function setopts (self, pattern, options) {
|
|
|
75
76
|
self.stat = !!options.stat
|
|
76
77
|
self.noprocess = !!options.noprocess
|
|
77
78
|
self.absolute = !!options.absolute
|
|
79
|
+
self.fs = options.fs || fs
|
|
78
80
|
|
|
79
81
|
self.maxLength = options.maxLength || Infinity
|
|
80
82
|
self.cache = options.cache || Object.create(null)
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
|
|
41
41
|
module.exports = glob
|
|
42
42
|
|
|
43
|
-
var fs = require('fs')
|
|
44
43
|
var rp = require('fs.realpath')
|
|
45
44
|
var minimatch = require('minimatch')
|
|
46
45
|
var Minimatch = minimatch.Minimatch
|
|
@@ -501,7 +500,7 @@ Glob.prototype._readdirInGlobStar = function (abs, cb) {
|
|
|
501
500
|
var lstatcb = inflight(lstatkey, lstatcb_)
|
|
502
501
|
|
|
503
502
|
if (lstatcb)
|
|
504
|
-
fs.lstat(abs, lstatcb)
|
|
503
|
+
self.fs.lstat(abs, lstatcb)
|
|
505
504
|
|
|
506
505
|
function lstatcb_ (er, lstat) {
|
|
507
506
|
if (er && er.code === 'ENOENT')
|
|
@@ -542,7 +541,7 @@ Glob.prototype._readdir = function (abs, inGlobStar, cb) {
|
|
|
542
541
|
}
|
|
543
542
|
|
|
544
543
|
var self = this
|
|
545
|
-
fs.readdir(abs, readdirCb(this, abs, cb))
|
|
544
|
+
self.fs.readdir(abs, readdirCb(this, abs, cb))
|
|
546
545
|
}
|
|
547
546
|
|
|
548
547
|
function readdirCb (self, abs, cb) {
|
|
@@ -746,13 +745,13 @@ Glob.prototype._stat = function (f, cb) {
|
|
|
746
745
|
var self = this
|
|
747
746
|
var statcb = inflight('stat\0' + abs, lstatcb_)
|
|
748
747
|
if (statcb)
|
|
749
|
-
fs.lstat(abs, statcb)
|
|
748
|
+
self.fs.lstat(abs, statcb)
|
|
750
749
|
|
|
751
750
|
function lstatcb_ (er, lstat) {
|
|
752
751
|
if (lstat && lstat.isSymbolicLink()) {
|
|
753
752
|
// If it's a symlink, then treat it as the target, unless
|
|
754
753
|
// the target does not exist, then treat it as a file.
|
|
755
|
-
return fs.stat(abs, function (er, stat) {
|
|
754
|
+
return self.fs.stat(abs, function (er, stat) {
|
|
756
755
|
if (er)
|
|
757
756
|
self._stat2(f, abs, null, lstat, cb)
|
|
758
757
|
else
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
|
3
3
|
"name": "glob",
|
|
4
4
|
"description": "a little globber",
|
|
5
|
-
"version": "7.
|
|
5
|
+
"version": "7.2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git://github.com/isaacs/node-glob.git"
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"path-is-absolute": "^1.0.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
+
"memfs": "^3.2.0",
|
|
28
29
|
"mkdirp": "0",
|
|
29
30
|
"rimraf": "^2.2.8",
|
|
30
31
|
"tap": "^15.0.6",
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
"url": "https://github.com/sponsors/isaacs"
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
,"_resolved": "https://registry.npmjs.org/glob/-/glob-7.
|
|
53
|
-
,"_integrity": "sha512-
|
|
54
|
-
,"_from": "glob@7.
|
|
53
|
+
,"_resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz"
|
|
54
|
+
,"_integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q=="
|
|
55
|
+
,"_from": "glob@7.2.0"
|
|
55
56
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
module.exports = globSync
|
|
2
2
|
globSync.GlobSync = GlobSync
|
|
3
3
|
|
|
4
|
-
var fs = require('fs')
|
|
5
4
|
var rp = require('fs.realpath')
|
|
6
5
|
var minimatch = require('minimatch')
|
|
7
6
|
var Minimatch = minimatch.Minimatch
|
|
@@ -246,7 +245,7 @@ GlobSync.prototype._readdirInGlobStar = function (abs) {
|
|
|
246
245
|
var lstat
|
|
247
246
|
var stat
|
|
248
247
|
try {
|
|
249
|
-
lstat = fs.lstatSync(abs)
|
|
248
|
+
lstat = this.fs.lstatSync(abs)
|
|
250
249
|
} catch (er) {
|
|
251
250
|
if (er.code === 'ENOENT') {
|
|
252
251
|
// lstat failed, doesn't exist
|
|
@@ -283,7 +282,7 @@ GlobSync.prototype._readdir = function (abs, inGlobStar) {
|
|
|
283
282
|
}
|
|
284
283
|
|
|
285
284
|
try {
|
|
286
|
-
return this._readdirEntries(abs, fs.readdirSync(abs))
|
|
285
|
+
return this._readdirEntries(abs, this.fs.readdirSync(abs))
|
|
287
286
|
} catch (er) {
|
|
288
287
|
this._readdirError(abs, er)
|
|
289
288
|
return null
|
|
@@ -442,7 +441,7 @@ GlobSync.prototype._stat = function (f) {
|
|
|
442
441
|
if (!stat) {
|
|
443
442
|
var lstat
|
|
444
443
|
try {
|
|
445
|
-
lstat = fs.lstatSync(abs)
|
|
444
|
+
lstat = this.fs.lstatSync(abs)
|
|
446
445
|
} catch (er) {
|
|
447
446
|
if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
|
|
448
447
|
this.statCache[abs] = false
|
|
@@ -452,7 +451,7 @@ GlobSync.prototype._stat = function (f) {
|
|
|
452
451
|
|
|
453
452
|
if (lstat && lstat.isSymbolicLink()) {
|
|
454
453
|
try {
|
|
455
|
-
stat = fs.statSync(abs)
|
|
454
|
+
stat = this.fs.statSync(abs)
|
|
456
455
|
} catch (er) {
|
|
457
456
|
stat = lstat
|
|
458
457
|
}
|
|
@@ -30,9 +30,19 @@ the directory.
|
|
|
30
30
|
var fs = require('graceful-fs')
|
|
31
31
|
|
|
32
32
|
// now go and do stuff with it...
|
|
33
|
-
fs.
|
|
33
|
+
fs.readFile('some-file-or-whatever', (err, data) => {
|
|
34
|
+
// Do stuff here.
|
|
35
|
+
})
|
|
34
36
|
```
|
|
35
37
|
|
|
38
|
+
## Sync methods
|
|
39
|
+
|
|
40
|
+
This module cannot intercept or handle `EMFILE` or `ENFILE` errors from sync
|
|
41
|
+
methods. If you use sync methods which open file descriptors then you are
|
|
42
|
+
responsible for dealing with any errors.
|
|
43
|
+
|
|
44
|
+
This is a known limitation, not a bug.
|
|
45
|
+
|
|
36
46
|
## Global Patching
|
|
37
47
|
|
|
38
48
|
If you want to patch the global fs module (or any other fs-like
|