step-node-agent 3.17.2 → 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/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-core-module/.eslintrc +0 -1
- package/node_modules/is-core-module/CHANGELOG.md +18 -0
- package/node_modules/is-core-module/core.json +7 -5
- package/node_modules/is-core-module/package.json +10 -10
- package/node_modules/is-core-module/test/index.js +1 -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 +7 -0
- package/node_modules/mime-db/db.json +18 -0
- package/node_modules/mime-db/package.json +7 -7
- package/node_modules/mime-types/HISTORY.md +6 -3
- package/node_modules/mime-types/package.json +8 -8
- package/node_modules/npm/.eslintrc +3 -0
- package/node_modules/npm/CHANGELOG.md +14 -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/package.json +5 -4
- 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/index.js +30 -8
- package/node_modules/signal-exit/package.json +10 -8
- 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/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-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/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/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 -446
- 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
|
@@ -4,18 +4,23 @@
|
|
|
4
4
|
var replace = String.prototype.replace;
|
|
5
5
|
var percentTwenties = /%20/g;
|
|
6
6
|
|
|
7
|
+
var Format = {
|
|
8
|
+
RFC1738: 'RFC1738',
|
|
9
|
+
RFC3986: 'RFC3986'
|
|
10
|
+
};
|
|
11
|
+
|
|
7
12
|
module.exports = {
|
|
8
|
-
'default':
|
|
13
|
+
'default': Format.RFC3986,
|
|
9
14
|
formatters: {
|
|
10
15
|
RFC1738: function (value) {
|
|
11
16
|
return replace.call(value, percentTwenties, '+');
|
|
12
17
|
},
|
|
13
18
|
RFC3986: function (value) {
|
|
14
|
-
return value;
|
|
19
|
+
return String(value);
|
|
15
20
|
}
|
|
16
21
|
},
|
|
17
|
-
RFC1738:
|
|
18
|
-
RFC3986:
|
|
22
|
+
RFC1738: Format.RFC1738,
|
|
23
|
+
RFC3986: Format.RFC3986
|
|
19
24
|
};
|
|
20
25
|
|
|
21
26
|
},{}],2:[function(require,module,exports){
|
|
@@ -37,6 +42,7 @@ module.exports = {
|
|
|
37
42
|
var utils = require('./utils');
|
|
38
43
|
|
|
39
44
|
var has = Object.prototype.hasOwnProperty;
|
|
45
|
+
var isArray = Array.isArray;
|
|
40
46
|
|
|
41
47
|
var defaults = {
|
|
42
48
|
allowDots: false,
|
|
@@ -62,6 +68,14 @@ var interpretNumericEntities = function (str) {
|
|
|
62
68
|
});
|
|
63
69
|
};
|
|
64
70
|
|
|
71
|
+
var parseArrayValue = function (val, options) {
|
|
72
|
+
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
73
|
+
return val.split(',');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return val;
|
|
77
|
+
};
|
|
78
|
+
|
|
65
79
|
// This is what browsers will submit when the ✓ character occurs in an
|
|
66
80
|
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
67
81
|
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
@@ -106,19 +120,24 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
106
120
|
|
|
107
121
|
var key, val;
|
|
108
122
|
if (pos === -1) {
|
|
109
|
-
key = options.decoder(part, defaults.decoder, charset);
|
|
123
|
+
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
110
124
|
val = options.strictNullHandling ? null : '';
|
|
111
125
|
} else {
|
|
112
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset);
|
|
113
|
-
val =
|
|
126
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
127
|
+
val = utils.maybeMap(
|
|
128
|
+
parseArrayValue(part.slice(pos + 1), options),
|
|
129
|
+
function (encodedVal) {
|
|
130
|
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
131
|
+
}
|
|
132
|
+
);
|
|
114
133
|
}
|
|
115
134
|
|
|
116
135
|
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
117
136
|
val = interpretNumericEntities(val);
|
|
118
137
|
}
|
|
119
138
|
|
|
120
|
-
if (
|
|
121
|
-
val = val
|
|
139
|
+
if (part.indexOf('[]=') > -1) {
|
|
140
|
+
val = isArray(val) ? [val] : val;
|
|
122
141
|
}
|
|
123
142
|
|
|
124
143
|
if (has.call(obj, key)) {
|
|
@@ -131,8 +150,8 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
131
150
|
return obj;
|
|
132
151
|
};
|
|
133
152
|
|
|
134
|
-
var parseObject = function (chain, val, options) {
|
|
135
|
-
var leaf = val;
|
|
153
|
+
var parseObject = function (chain, val, options, valuesParsed) {
|
|
154
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
|
136
155
|
|
|
137
156
|
for (var i = chain.length - 1; i >= 0; --i) {
|
|
138
157
|
var obj;
|
|
@@ -166,7 +185,7 @@ var parseObject = function (chain, val, options) {
|
|
|
166
185
|
return leaf;
|
|
167
186
|
};
|
|
168
187
|
|
|
169
|
-
var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
|
|
188
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
170
189
|
if (!givenKey) {
|
|
171
190
|
return;
|
|
172
191
|
}
|
|
@@ -181,7 +200,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
|
|
|
181
200
|
|
|
182
201
|
// Get the parent
|
|
183
202
|
|
|
184
|
-
var segment = brackets.exec(key);
|
|
203
|
+
var segment = options.depth > 0 && brackets.exec(key);
|
|
185
204
|
var parent = segment ? key.slice(0, segment.index) : key;
|
|
186
205
|
|
|
187
206
|
// Stash the parent if it exists
|
|
@@ -201,7 +220,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
|
|
|
201
220
|
// Loop through children appending to the array until we hit depth
|
|
202
221
|
|
|
203
222
|
var i = 0;
|
|
204
|
-
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
223
|
+
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
205
224
|
i += 1;
|
|
206
225
|
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
207
226
|
if (!options.allowPrototypes) {
|
|
@@ -217,7 +236,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
|
|
|
217
236
|
keys.push('[' + key.slice(segment.index) + ']');
|
|
218
237
|
}
|
|
219
238
|
|
|
220
|
-
return parseObject(keys, val, options);
|
|
239
|
+
return parseObject(keys, val, options, valuesParsed);
|
|
221
240
|
};
|
|
222
241
|
|
|
223
242
|
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
@@ -230,7 +249,7 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
230
249
|
}
|
|
231
250
|
|
|
232
251
|
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
233
|
-
throw new
|
|
252
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
234
253
|
}
|
|
235
254
|
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
236
255
|
|
|
@@ -243,7 +262,8 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
243
262
|
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
244
263
|
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
245
264
|
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
246
|
-
|
|
265
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
266
|
+
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
247
267
|
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
248
268
|
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
249
269
|
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
@@ -268,7 +288,7 @@ module.exports = function (str, opts) {
|
|
|
268
288
|
var keys = Object.keys(tempObj);
|
|
269
289
|
for (var i = 0; i < keys.length; ++i) {
|
|
270
290
|
var key = keys[i];
|
|
271
|
-
var newObj = parseKeys(key, tempObj[key], options);
|
|
291
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
272
292
|
obj = utils.merge(obj, newObj, options);
|
|
273
293
|
}
|
|
274
294
|
|
|
@@ -283,14 +303,14 @@ var formats = require('./formats');
|
|
|
283
303
|
var has = Object.prototype.hasOwnProperty;
|
|
284
304
|
|
|
285
305
|
var arrayPrefixGenerators = {
|
|
286
|
-
brackets: function brackets(prefix) {
|
|
306
|
+
brackets: function brackets(prefix) {
|
|
287
307
|
return prefix + '[]';
|
|
288
308
|
},
|
|
289
309
|
comma: 'comma',
|
|
290
|
-
indices: function indices(prefix, key) {
|
|
310
|
+
indices: function indices(prefix, key) {
|
|
291
311
|
return prefix + '[' + key + ']';
|
|
292
312
|
},
|
|
293
|
-
repeat: function repeat(prefix) {
|
|
313
|
+
repeat: function repeat(prefix) {
|
|
294
314
|
return prefix;
|
|
295
315
|
}
|
|
296
316
|
};
|
|
@@ -303,6 +323,7 @@ var pushToArray = function (arr, valueOrArray) {
|
|
|
303
323
|
|
|
304
324
|
var toISO = Date.prototype.toISOString;
|
|
305
325
|
|
|
326
|
+
var defaultFormat = formats['default'];
|
|
306
327
|
var defaults = {
|
|
307
328
|
addQueryPrefix: false,
|
|
308
329
|
allowDots: false,
|
|
@@ -312,17 +333,26 @@ var defaults = {
|
|
|
312
333
|
encode: true,
|
|
313
334
|
encoder: utils.encode,
|
|
314
335
|
encodeValuesOnly: false,
|
|
315
|
-
|
|
336
|
+
format: defaultFormat,
|
|
337
|
+
formatter: formats.formatters[defaultFormat],
|
|
316
338
|
// deprecated
|
|
317
339
|
indices: false,
|
|
318
|
-
serializeDate: function serializeDate(date) {
|
|
340
|
+
serializeDate: function serializeDate(date) {
|
|
319
341
|
return toISO.call(date);
|
|
320
342
|
},
|
|
321
343
|
skipNulls: false,
|
|
322
344
|
strictNullHandling: false
|
|
323
345
|
};
|
|
324
346
|
|
|
325
|
-
var
|
|
347
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
348
|
+
return typeof v === 'string'
|
|
349
|
+
|| typeof v === 'number'
|
|
350
|
+
|| typeof v === 'boolean'
|
|
351
|
+
|| typeof v === 'symbol'
|
|
352
|
+
|| typeof v === 'bigint';
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
var stringify = function stringify(
|
|
326
356
|
object,
|
|
327
357
|
prefix,
|
|
328
358
|
generateArrayPrefix,
|
|
@@ -333,6 +363,7 @@ var stringify = function stringify( // eslint-disable-line func-name-matching
|
|
|
333
363
|
sort,
|
|
334
364
|
allowDots,
|
|
335
365
|
serializeDate,
|
|
366
|
+
format,
|
|
336
367
|
formatter,
|
|
337
368
|
encodeValuesOnly,
|
|
338
369
|
charset
|
|
@@ -343,21 +374,26 @@ var stringify = function stringify( // eslint-disable-line func-name-matching
|
|
|
343
374
|
} else if (obj instanceof Date) {
|
|
344
375
|
obj = serializeDate(obj);
|
|
345
376
|
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
346
|
-
obj =
|
|
377
|
+
obj = utils.maybeMap(obj, function (value) {
|
|
378
|
+
if (value instanceof Date) {
|
|
379
|
+
return serializeDate(value);
|
|
380
|
+
}
|
|
381
|
+
return value;
|
|
382
|
+
});
|
|
347
383
|
}
|
|
348
384
|
|
|
349
385
|
if (obj === null) {
|
|
350
386
|
if (strictNullHandling) {
|
|
351
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset) : prefix;
|
|
387
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
352
388
|
}
|
|
353
389
|
|
|
354
390
|
obj = '';
|
|
355
391
|
}
|
|
356
392
|
|
|
357
|
-
if (
|
|
393
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
358
394
|
if (encoder) {
|
|
359
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset);
|
|
360
|
-
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset))];
|
|
395
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
396
|
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
361
397
|
}
|
|
362
398
|
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
363
399
|
}
|
|
@@ -369,7 +405,10 @@ var stringify = function stringify( // eslint-disable-line func-name-matching
|
|
|
369
405
|
}
|
|
370
406
|
|
|
371
407
|
var objKeys;
|
|
372
|
-
if (isArray(
|
|
408
|
+
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
409
|
+
// we need to join elements in
|
|
410
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
|
|
411
|
+
} else if (isArray(filter)) {
|
|
373
412
|
objKeys = filter;
|
|
374
413
|
} else {
|
|
375
414
|
var keys = Object.keys(obj);
|
|
@@ -378,44 +417,32 @@ var stringify = function stringify( // eslint-disable-line func-name-matching
|
|
|
378
417
|
|
|
379
418
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
380
419
|
var key = objKeys[i];
|
|
420
|
+
var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
|
|
381
421
|
|
|
382
|
-
if (skipNulls &&
|
|
422
|
+
if (skipNulls && value === null) {
|
|
383
423
|
continue;
|
|
384
424
|
}
|
|
385
425
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
generateArrayPrefix,
|
|
407
|
-
strictNullHandling,
|
|
408
|
-
skipNulls,
|
|
409
|
-
encoder,
|
|
410
|
-
filter,
|
|
411
|
-
sort,
|
|
412
|
-
allowDots,
|
|
413
|
-
serializeDate,
|
|
414
|
-
formatter,
|
|
415
|
-
encodeValuesOnly,
|
|
416
|
-
charset
|
|
417
|
-
));
|
|
418
|
-
}
|
|
426
|
+
var keyPrefix = isArray(obj)
|
|
427
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
|
|
428
|
+
: prefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
429
|
+
|
|
430
|
+
pushToArray(values, stringify(
|
|
431
|
+
value,
|
|
432
|
+
keyPrefix,
|
|
433
|
+
generateArrayPrefix,
|
|
434
|
+
strictNullHandling,
|
|
435
|
+
skipNulls,
|
|
436
|
+
encoder,
|
|
437
|
+
filter,
|
|
438
|
+
sort,
|
|
439
|
+
allowDots,
|
|
440
|
+
serializeDate,
|
|
441
|
+
format,
|
|
442
|
+
formatter,
|
|
443
|
+
encodeValuesOnly,
|
|
444
|
+
charset
|
|
445
|
+
));
|
|
419
446
|
}
|
|
420
447
|
|
|
421
448
|
return values;
|
|
@@ -459,6 +486,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
459
486
|
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
460
487
|
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
461
488
|
filter: filter,
|
|
489
|
+
format: format,
|
|
462
490
|
formatter: formatter,
|
|
463
491
|
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
464
492
|
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
@@ -524,6 +552,7 @@ module.exports = function (object, opts) {
|
|
|
524
552
|
options.sort,
|
|
525
553
|
options.allowDots,
|
|
526
554
|
options.serializeDate,
|
|
555
|
+
options.format,
|
|
527
556
|
options.formatter,
|
|
528
557
|
options.encodeValuesOnly,
|
|
529
558
|
options.charset
|
|
@@ -549,6 +578,8 @@ module.exports = function (object, opts) {
|
|
|
549
578
|
},{"./formats":1,"./utils":5}],5:[function(require,module,exports){
|
|
550
579
|
'use strict';
|
|
551
580
|
|
|
581
|
+
var formats = require('./formats');
|
|
582
|
+
|
|
552
583
|
var has = Object.prototype.hasOwnProperty;
|
|
553
584
|
var isArray = Array.isArray;
|
|
554
585
|
|
|
@@ -592,6 +623,7 @@ var arrayToObject = function arrayToObject(source, options) {
|
|
|
592
623
|
};
|
|
593
624
|
|
|
594
625
|
var merge = function merge(target, source, options) {
|
|
626
|
+
/* eslint no-param-reassign: 0 */
|
|
595
627
|
if (!source) {
|
|
596
628
|
return target;
|
|
597
629
|
}
|
|
@@ -668,14 +700,19 @@ var decode = function (str, decoder, charset) {
|
|
|
668
700
|
}
|
|
669
701
|
};
|
|
670
702
|
|
|
671
|
-
var encode = function encode(str, defaultEncoder, charset) {
|
|
703
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
672
704
|
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
673
705
|
// It has been adapted here for stricter adherence to RFC 3986
|
|
674
706
|
if (str.length === 0) {
|
|
675
707
|
return str;
|
|
676
708
|
}
|
|
677
709
|
|
|
678
|
-
var string =
|
|
710
|
+
var string = str;
|
|
711
|
+
if (typeof str === 'symbol') {
|
|
712
|
+
string = Symbol.prototype.toString.call(str);
|
|
713
|
+
} else if (typeof str !== 'string') {
|
|
714
|
+
string = String(str);
|
|
715
|
+
}
|
|
679
716
|
|
|
680
717
|
if (charset === 'iso-8859-1') {
|
|
681
718
|
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
@@ -695,6 +732,7 @@ var encode = function encode(str, defaultEncoder, charset) {
|
|
|
695
732
|
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
696
733
|
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
697
734
|
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
735
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
698
736
|
) {
|
|
699
737
|
out += string.charAt(i);
|
|
700
738
|
continue;
|
|
@@ -766,6 +804,17 @@ var combine = function combine(a, b) {
|
|
|
766
804
|
return [].concat(a, b);
|
|
767
805
|
};
|
|
768
806
|
|
|
807
|
+
var maybeMap = function maybeMap(val, fn) {
|
|
808
|
+
if (isArray(val)) {
|
|
809
|
+
var mapped = [];
|
|
810
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
811
|
+
mapped.push(fn(val[i]));
|
|
812
|
+
}
|
|
813
|
+
return mapped;
|
|
814
|
+
}
|
|
815
|
+
return fn(val);
|
|
816
|
+
};
|
|
817
|
+
|
|
769
818
|
module.exports = {
|
|
770
819
|
arrayToObject: arrayToObject,
|
|
771
820
|
assign: assign,
|
|
@@ -775,8 +824,9 @@ module.exports = {
|
|
|
775
824
|
encode: encode,
|
|
776
825
|
isBuffer: isBuffer,
|
|
777
826
|
isRegExp: isRegExp,
|
|
827
|
+
maybeMap: maybeMap,
|
|
778
828
|
merge: merge
|
|
779
829
|
};
|
|
780
830
|
|
|
781
|
-
},{}]},{},[2])(2)
|
|
831
|
+
},{"./formats":1}]},{},[2])(2)
|
|
782
832
|
});
|
|
@@ -3,16 +3,21 @@
|
|
|
3
3
|
var replace = String.prototype.replace;
|
|
4
4
|
var percentTwenties = /%20/g;
|
|
5
5
|
|
|
6
|
+
var Format = {
|
|
7
|
+
RFC1738: 'RFC1738',
|
|
8
|
+
RFC3986: 'RFC3986'
|
|
9
|
+
};
|
|
10
|
+
|
|
6
11
|
module.exports = {
|
|
7
|
-
'default':
|
|
12
|
+
'default': Format.RFC3986,
|
|
8
13
|
formatters: {
|
|
9
14
|
RFC1738: function (value) {
|
|
10
15
|
return replace.call(value, percentTwenties, '+');
|
|
11
16
|
},
|
|
12
17
|
RFC3986: function (value) {
|
|
13
|
-
return value;
|
|
18
|
+
return String(value);
|
|
14
19
|
}
|
|
15
20
|
},
|
|
16
|
-
RFC1738:
|
|
17
|
-
RFC3986:
|
|
21
|
+
RFC1738: Format.RFC1738,
|
|
22
|
+
RFC3986: Format.RFC3986
|
|
18
23
|
};
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var utils = require('./utils');
|
|
4
4
|
|
|
5
5
|
var has = Object.prototype.hasOwnProperty;
|
|
6
|
+
var isArray = Array.isArray;
|
|
6
7
|
|
|
7
8
|
var defaults = {
|
|
8
9
|
allowDots: false,
|
|
@@ -28,6 +29,14 @@ var interpretNumericEntities = function (str) {
|
|
|
28
29
|
});
|
|
29
30
|
};
|
|
30
31
|
|
|
32
|
+
var parseArrayValue = function (val, options) {
|
|
33
|
+
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
34
|
+
return val.split(',');
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return val;
|
|
38
|
+
};
|
|
39
|
+
|
|
31
40
|
// This is what browsers will submit when the ✓ character occurs in an
|
|
32
41
|
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
33
42
|
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
@@ -72,19 +81,24 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
72
81
|
|
|
73
82
|
var key, val;
|
|
74
83
|
if (pos === -1) {
|
|
75
|
-
key = options.decoder(part, defaults.decoder, charset);
|
|
84
|
+
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
76
85
|
val = options.strictNullHandling ? null : '';
|
|
77
86
|
} else {
|
|
78
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset);
|
|
79
|
-
val =
|
|
87
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
88
|
+
val = utils.maybeMap(
|
|
89
|
+
parseArrayValue(part.slice(pos + 1), options),
|
|
90
|
+
function (encodedVal) {
|
|
91
|
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
92
|
+
}
|
|
93
|
+
);
|
|
80
94
|
}
|
|
81
95
|
|
|
82
96
|
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
83
97
|
val = interpretNumericEntities(val);
|
|
84
98
|
}
|
|
85
99
|
|
|
86
|
-
if (
|
|
87
|
-
val = val
|
|
100
|
+
if (part.indexOf('[]=') > -1) {
|
|
101
|
+
val = isArray(val) ? [val] : val;
|
|
88
102
|
}
|
|
89
103
|
|
|
90
104
|
if (has.call(obj, key)) {
|
|
@@ -97,8 +111,8 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
97
111
|
return obj;
|
|
98
112
|
};
|
|
99
113
|
|
|
100
|
-
var parseObject = function (chain, val, options) {
|
|
101
|
-
var leaf = val;
|
|
114
|
+
var parseObject = function (chain, val, options, valuesParsed) {
|
|
115
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
|
102
116
|
|
|
103
117
|
for (var i = chain.length - 1; i >= 0; --i) {
|
|
104
118
|
var obj;
|
|
@@ -132,7 +146,7 @@ var parseObject = function (chain, val, options) {
|
|
|
132
146
|
return leaf;
|
|
133
147
|
};
|
|
134
148
|
|
|
135
|
-
var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
|
|
149
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
136
150
|
if (!givenKey) {
|
|
137
151
|
return;
|
|
138
152
|
}
|
|
@@ -147,7 +161,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
|
|
|
147
161
|
|
|
148
162
|
// Get the parent
|
|
149
163
|
|
|
150
|
-
var segment = brackets.exec(key);
|
|
164
|
+
var segment = options.depth > 0 && brackets.exec(key);
|
|
151
165
|
var parent = segment ? key.slice(0, segment.index) : key;
|
|
152
166
|
|
|
153
167
|
// Stash the parent if it exists
|
|
@@ -167,7 +181,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
|
|
|
167
181
|
// Loop through children appending to the array until we hit depth
|
|
168
182
|
|
|
169
183
|
var i = 0;
|
|
170
|
-
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
184
|
+
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
171
185
|
i += 1;
|
|
172
186
|
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
173
187
|
if (!options.allowPrototypes) {
|
|
@@ -183,7 +197,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
|
|
|
183
197
|
keys.push('[' + key.slice(segment.index) + ']');
|
|
184
198
|
}
|
|
185
199
|
|
|
186
|
-
return parseObject(keys, val, options);
|
|
200
|
+
return parseObject(keys, val, options, valuesParsed);
|
|
187
201
|
};
|
|
188
202
|
|
|
189
203
|
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
@@ -196,7 +210,7 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
196
210
|
}
|
|
197
211
|
|
|
198
212
|
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
199
|
-
throw new
|
|
213
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
200
214
|
}
|
|
201
215
|
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
202
216
|
|
|
@@ -209,7 +223,8 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
209
223
|
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
210
224
|
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
211
225
|
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
212
|
-
|
|
226
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
227
|
+
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
213
228
|
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
214
229
|
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
215
230
|
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
@@ -234,7 +249,7 @@ module.exports = function (str, opts) {
|
|
|
234
249
|
var keys = Object.keys(tempObj);
|
|
235
250
|
for (var i = 0; i < keys.length; ++i) {
|
|
236
251
|
var key = keys[i];
|
|
237
|
-
var newObj = parseKeys(key, tempObj[key], options);
|
|
252
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
238
253
|
obj = utils.merge(obj, newObj, options);
|
|
239
254
|
}
|
|
240
255
|
|