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,106 @@
|
|
|
1
|
+
## **6.9.6**
|
|
2
|
+
- [Fix] restore `dist` dir; mistakenly removed in d4f6c32
|
|
3
|
+
|
|
4
|
+
## **6.9.5**
|
|
5
|
+
- [Fix] `stringify`: do not encode parens for RFC1738
|
|
6
|
+
- [Fix] `stringify`: fix arrayFormat comma with empty array/objects (#350)
|
|
7
|
+
- [Refactor] `format`: remove `util.assign` call
|
|
8
|
+
- [meta] add "Allow Edits" workflow; update rebase workflow
|
|
9
|
+
- [actions] switch Automatic Rebase workflow to `pull_request_target` event
|
|
10
|
+
- [Tests] `stringify`: add tests for #378
|
|
11
|
+
- [Tests] migrate tests to Github Actions
|
|
12
|
+
- [Tests] run `nyc` on all tests; use `tape` runner
|
|
13
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `mkdirp`, `object-inspect`, `tape`; add `aud`
|
|
14
|
+
|
|
15
|
+
## **6.9.4**
|
|
16
|
+
- [Fix] `stringify`: when `arrayFormat` is `comma`, respect `serializeDate` (#364)
|
|
17
|
+
- [Refactor] `stringify`: reduce branching (part of #350)
|
|
18
|
+
- [Refactor] move `maybeMap` to `utils`
|
|
19
|
+
- [Dev Deps] update `browserify`, `tape`
|
|
20
|
+
|
|
21
|
+
## **6.9.3**
|
|
22
|
+
- [Fix] proper comma parsing of URL-encoded commas (#361)
|
|
23
|
+
- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336)
|
|
24
|
+
|
|
25
|
+
## **6.9.2**
|
|
26
|
+
- [Fix] `parse`: Fix parsing array from object with `comma` true (#359)
|
|
27
|
+
- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349)
|
|
28
|
+
- [meta] ignore eclint transitive audit warning
|
|
29
|
+
- [meta] fix indentation in package.json
|
|
30
|
+
- [meta] add tidelift marketing copy
|
|
31
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `object-inspect`, `has-symbols`, `tape`, `mkdirp`, `iconv-lite`
|
|
32
|
+
- [actions] add automatic rebasing / merge commit blocking
|
|
33
|
+
|
|
34
|
+
## **6.9.1**
|
|
35
|
+
- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335)
|
|
36
|
+
- [Fix] `parse`: with comma true, do not split non-string values (#334)
|
|
37
|
+
- [meta] add `funding` field
|
|
38
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`
|
|
39
|
+
- [Tests] use shared travis-ci config
|
|
40
|
+
|
|
41
|
+
## **6.9.0**
|
|
42
|
+
- [New] `parse`/`stringify`: Pass extra key/value argument to `decoder` (#333)
|
|
43
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `evalmd`
|
|
44
|
+
- [Tests] `parse`: add passing `arrayFormat` tests
|
|
45
|
+
- [Tests] add `posttest` using `npx aud` to run `npm audit` without a lockfile
|
|
46
|
+
- [Tests] up to `node` `v12.10`, `v11.15`, `v10.16`, `v8.16`
|
|
47
|
+
- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray
|
|
48
|
+
|
|
49
|
+
## **6.8.2**
|
|
50
|
+
- [Fix] proper comma parsing of URL-encoded commas (#361)
|
|
51
|
+
- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336)
|
|
52
|
+
|
|
53
|
+
## **6.8.1**
|
|
54
|
+
- [Fix] `parse`: Fix parsing array from object with `comma` true (#359)
|
|
55
|
+
- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349)
|
|
56
|
+
- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335)
|
|
57
|
+
- [fix] `parse`: with comma true, do not split non-string values (#334)
|
|
58
|
+
- [meta] add tidelift marketing copy
|
|
59
|
+
- [meta] add `funding` field
|
|
60
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `safe-publish-latest`, `evalmd`, `has-symbols`, `iconv-lite`, `mkdirp`, `object-inspect`
|
|
61
|
+
- [Tests] `parse`: add passing `arrayFormat` tests
|
|
62
|
+
- [Tests] use shared travis-ci configs
|
|
63
|
+
- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray
|
|
64
|
+
- [actions] add automatic rebasing / merge commit blocking
|
|
65
|
+
|
|
66
|
+
## **6.8.0**
|
|
67
|
+
- [New] add `depth=false` to preserve the original key; [Fix] `depth=0` should preserve the original key (#326)
|
|
68
|
+
- [New] [Fix] stringify symbols and bigints
|
|
69
|
+
- [Fix] ensure node 0.12 can stringify Symbols
|
|
70
|
+
- [Fix] fix for an impossible situation: when the formatter is called with a non-string value
|
|
71
|
+
- [Refactor] `formats`: tiny bit of cleanup.
|
|
72
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `safe-publish-latest`, `iconv-lite`, `tape`
|
|
73
|
+
- [Tests] add tests for `depth=0` and `depth=false` behavior, both current and intuitive/intended (#326)
|
|
74
|
+
- [Tests] use `eclint` instead of `editorconfig-tools`
|
|
75
|
+
- [docs] readme: add security note
|
|
76
|
+
- [meta] add github sponsorship
|
|
77
|
+
- [meta] add FUNDING.yml
|
|
78
|
+
- [meta] Clean up license text so it’s properly detected as BSD-3-Clause
|
|
79
|
+
|
|
80
|
+
## **6.7.2**
|
|
81
|
+
- [Fix] proper comma parsing of URL-encoded commas (#361)
|
|
82
|
+
- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336)
|
|
83
|
+
|
|
84
|
+
## **6.7.1**
|
|
85
|
+
- [Fix] `parse`: Fix parsing array from object with `comma` true (#359)
|
|
86
|
+
- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335)
|
|
87
|
+
- [fix] `parse`: with comma true, do not split non-string values (#334)
|
|
88
|
+
- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349)
|
|
89
|
+
- [Fix] fix for an impossible situation: when the formatter is called with a non-string value
|
|
90
|
+
- [Refactor] `formats`: tiny bit of cleanup.
|
|
91
|
+
- readme: add security note
|
|
92
|
+
- [meta] add tidelift marketing copy
|
|
93
|
+
- [meta] add `funding` field
|
|
94
|
+
- [meta] add FUNDING.yml
|
|
95
|
+
- [meta] Clean up license text so it’s properly detected as BSD-3-Clause
|
|
96
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `safe-publish-latest`, `evalmd`, `iconv-lite`, `mkdirp`, `object-inspect`, `browserify`
|
|
97
|
+
- [Tests] `parse`: add passing `arrayFormat` tests
|
|
98
|
+
- [Tests] use shared travis-ci configs
|
|
99
|
+
- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray
|
|
100
|
+
- [Tests] add tests for `depth=0` and `depth=false` behavior, both current and intuitive/intended
|
|
101
|
+
- [Tests] use `eclint` instead of `editorconfig-tools`
|
|
102
|
+
- [actions] add automatic rebasing / merge commit blocking
|
|
103
|
+
|
|
1
104
|
## **6.7.0**
|
|
2
105
|
- [New] `stringify`/`parse`: add `comma` as an `arrayFormat` option (#276, #219)
|
|
3
106
|
- [Fix] correctly parse nested arrays (#212)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014, Nathan LaFreniere and other [contributors](https://github.com/ljharb/qs/graphs/contributors)
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -330,6 +330,30 @@ var decoded = qs.parse('x=z', { decoder: function (str) {
|
|
|
330
330
|
}})
|
|
331
331
|
```
|
|
332
332
|
|
|
333
|
+
You can encode keys and values using different logic by using the type argument provided to the encoder:
|
|
334
|
+
|
|
335
|
+
```javascript
|
|
336
|
+
var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str, defaultEncoder, charset, type) {
|
|
337
|
+
if (type === 'key') {
|
|
338
|
+
return // Encoded key
|
|
339
|
+
} else if (type === 'value') {
|
|
340
|
+
return // Encoded value
|
|
341
|
+
}
|
|
342
|
+
}})
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
The type argument is also provided to the decoder:
|
|
346
|
+
|
|
347
|
+
```javascript
|
|
348
|
+
var decoded = qs.parse('x=z', { decoder: function (str, defaultEncoder, charset, type) {
|
|
349
|
+
if (type === 'key') {
|
|
350
|
+
return // Decoded key
|
|
351
|
+
} else if (type === 'value') {
|
|
352
|
+
return // Decoded value
|
|
353
|
+
}
|
|
354
|
+
}})
|
|
355
|
+
```
|
|
356
|
+
|
|
333
357
|
Examples beyond this point will be shown as though the output is not URI encoded for clarity. Please note that the return values in these cases *will* be URI encoded during real usage.
|
|
334
358
|
|
|
335
359
|
When arrays are stringified, by default they are given explicit indices:
|
|
@@ -553,6 +577,16 @@ assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC3986' }), 'a=b%20c');
|
|
|
553
577
|
assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC1738' }), 'a=b+c');
|
|
554
578
|
```
|
|
555
579
|
|
|
580
|
+
## Security
|
|
581
|
+
|
|
582
|
+
Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
|
|
583
|
+
|
|
584
|
+
## qs for enterprise
|
|
585
|
+
|
|
586
|
+
Available as part of the Tidelift Subscription
|
|
587
|
+
|
|
588
|
+
The maintainers of qs and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-qs?utm_source=npm-qs&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
|
589
|
+
|
|
556
590
|
[1]: https://npmjs.org/package/qs
|
|
557
591
|
[2]: http://versionbadg.es/ljharb/qs.svg
|
|
558
592
|
[3]: https://api.travis-ci.org/ljharb/qs.svg
|
|
@@ -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
|
};
|