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.
Files changed (466) hide show
  1. package/node_modules/asn1/Jenkinsfile +65 -0
  2. package/node_modules/asn1/package.json +5 -5
  3. package/node_modules/body-parser/HISTORY.md +15 -0
  4. package/node_modules/body-parser/README.md +25 -12
  5. package/node_modules/body-parser/package.json +23 -23
  6. package/node_modules/bytes/History.md +5 -0
  7. package/node_modules/bytes/Readme.md +42 -16
  8. package/node_modules/bytes/index.js +5 -1
  9. package/node_modules/bytes/package.json +9 -8
  10. package/node_modules/content-disposition/HISTORY.md +5 -0
  11. package/node_modules/content-disposition/README.md +3 -9
  12. package/node_modules/content-disposition/index.js +1 -1
  13. package/node_modules/content-disposition/package.json +16 -16
  14. package/node_modules/cookie/HISTORY.md +5 -0
  15. package/node_modules/cookie/README.md +4 -0
  16. package/node_modules/cookie/index.js +5 -1
  17. package/node_modules/cookie/package.json +11 -11
  18. package/node_modules/express/History.md +33 -0
  19. package/node_modules/express/Readme.md +8 -5
  20. package/node_modules/express/lib/application.js +1 -1
  21. package/node_modules/express/lib/request.js +1 -1
  22. package/node_modules/express/lib/response.js +16 -11
  23. package/node_modules/express/lib/router/index.js +6 -0
  24. package/node_modules/express/lib/utils.js +2 -6
  25. package/node_modules/express/package.json +26 -25
  26. package/node_modules/graceful-fs/package.json +4 -4
  27. package/node_modules/graceful-fs/polyfills.js +4 -2
  28. package/node_modules/http-errors/HISTORY.md +16 -0
  29. package/node_modules/http-errors/README.md +12 -6
  30. package/node_modules/http-errors/index.js +35 -2
  31. package/node_modules/http-errors/package.json +19 -19
  32. package/node_modules/inherits/inherits.js +2 -0
  33. package/node_modules/inherits/inherits_browser.js +18 -14
  34. package/node_modules/inherits/package.json +6 -6
  35. package/node_modules/is-core-module/.eslintrc +0 -1
  36. package/node_modules/is-core-module/CHANGELOG.md +18 -0
  37. package/node_modules/is-core-module/core.json +7 -5
  38. package/node_modules/is-core-module/package.json +10 -10
  39. package/node_modules/is-core-module/test/index.js +1 -1
  40. package/node_modules/json-schema/LICENSE +195 -0
  41. package/node_modules/json-schema/README.md +2 -4
  42. package/node_modules/json-schema/lib/links.js +1 -2
  43. package/node_modules/json-schema/lib/validate.js +7 -9
  44. package/node_modules/json-schema/package.json +8 -14
  45. package/node_modules/jsprim/CHANGES.md +4 -0
  46. package/node_modules/jsprim/package.json +8 -8
  47. package/node_modules/mime-db/HISTORY.md +7 -0
  48. package/node_modules/mime-db/db.json +18 -0
  49. package/node_modules/mime-db/package.json +7 -7
  50. package/node_modules/mime-types/HISTORY.md +6 -3
  51. package/node_modules/mime-types/package.json +8 -8
  52. package/node_modules/npm/.eslintrc +3 -0
  53. package/node_modules/npm/CHANGELOG.md +14 -0
  54. package/node_modules/npm/docs/public/cli-commands/npm/index.html +3 -3
  55. package/node_modules/npm/docs/public/cli-commands/npm-access/index.html +2 -2
  56. package/node_modules/npm/docs/public/cli-commands/npm-adduser/index.html +2 -2
  57. package/node_modules/npm/docs/public/cli-commands/npm-audit/index.html +2 -2
  58. package/node_modules/npm/docs/public/cli-commands/npm-bin/index.html +2 -2
  59. package/node_modules/npm/docs/public/cli-commands/npm-bugs/index.html +2 -2
  60. package/node_modules/npm/docs/public/cli-commands/npm-build/index.html +2 -2
  61. package/node_modules/npm/docs/public/cli-commands/npm-bundle/index.html +2 -2
  62. package/node_modules/npm/docs/public/cli-commands/npm-cache/index.html +2 -2
  63. package/node_modules/npm/docs/public/cli-commands/npm-ci/index.html +2 -2
  64. package/node_modules/npm/docs/public/cli-commands/npm-completion/index.html +2 -2
  65. package/node_modules/npm/docs/public/cli-commands/npm-config/index.html +2 -2
  66. package/node_modules/npm/docs/public/cli-commands/npm-dedupe/index.html +2 -2
  67. package/node_modules/npm/docs/public/cli-commands/npm-deprecate/index.html +2 -2
  68. package/node_modules/npm/docs/public/cli-commands/npm-dist-tag/index.html +2 -2
  69. package/node_modules/npm/docs/public/cli-commands/npm-docs/index.html +2 -2
  70. package/node_modules/npm/docs/public/cli-commands/npm-doctor/index.html +2 -2
  71. package/node_modules/npm/docs/public/cli-commands/npm-edit/index.html +2 -2
  72. package/node_modules/npm/docs/public/cli-commands/npm-explore/index.html +2 -2
  73. package/node_modules/npm/docs/public/cli-commands/npm-fund/index.html +2 -2
  74. package/node_modules/npm/docs/public/cli-commands/npm-help/index.html +2 -2
  75. package/node_modules/npm/docs/public/cli-commands/npm-help-search/index.html +2 -2
  76. package/node_modules/npm/docs/public/cli-commands/npm-hook/index.html +2 -2
  77. package/node_modules/npm/docs/public/cli-commands/npm-init/index.html +2 -2
  78. package/node_modules/npm/docs/public/cli-commands/npm-install/index.html +2 -2
  79. package/node_modules/npm/docs/public/cli-commands/npm-install-ci-test/index.html +2 -2
  80. package/node_modules/npm/docs/public/cli-commands/npm-install-test/index.html +2 -2
  81. package/node_modules/npm/docs/public/cli-commands/npm-link/index.html +2 -2
  82. package/node_modules/npm/docs/public/cli-commands/npm-logout/index.html +2 -2
  83. package/node_modules/npm/docs/public/cli-commands/npm-ls/index.html +3 -3
  84. package/node_modules/npm/docs/public/cli-commands/npm-org/index.html +2 -2
  85. package/node_modules/npm/docs/public/cli-commands/npm-outdated/index.html +2 -2
  86. package/node_modules/npm/docs/public/cli-commands/npm-owner/index.html +2 -2
  87. package/node_modules/npm/docs/public/cli-commands/npm-pack/index.html +2 -2
  88. package/node_modules/npm/docs/public/cli-commands/npm-ping/index.html +2 -2
  89. package/node_modules/npm/docs/public/cli-commands/npm-prefix/index.html +2 -2
  90. package/node_modules/npm/docs/public/cli-commands/npm-profile/index.html +2 -2
  91. package/node_modules/npm/docs/public/cli-commands/npm-prune/index.html +2 -2
  92. package/node_modules/npm/docs/public/cli-commands/npm-publish/index.html +2 -2
  93. package/node_modules/npm/docs/public/cli-commands/npm-rebuild/index.html +2 -2
  94. package/node_modules/npm/docs/public/cli-commands/npm-repo/index.html +2 -2
  95. package/node_modules/npm/docs/public/cli-commands/npm-restart/index.html +2 -2
  96. package/node_modules/npm/docs/public/cli-commands/npm-root/index.html +2 -2
  97. package/node_modules/npm/docs/public/cli-commands/npm-run-script/index.html +2 -2
  98. package/node_modules/npm/docs/public/cli-commands/npm-search/index.html +2 -2
  99. package/node_modules/npm/docs/public/cli-commands/npm-shrinkwrap/index.html +2 -2
  100. package/node_modules/npm/docs/public/cli-commands/npm-star/index.html +2 -2
  101. package/node_modules/npm/docs/public/cli-commands/npm-stars/index.html +2 -2
  102. package/node_modules/npm/docs/public/cli-commands/npm-start/index.html +2 -2
  103. package/node_modules/npm/docs/public/cli-commands/npm-stop/index.html +2 -2
  104. package/node_modules/npm/docs/public/cli-commands/npm-team/index.html +2 -2
  105. package/node_modules/npm/docs/public/cli-commands/npm-test/index.html +2 -2
  106. package/node_modules/npm/docs/public/cli-commands/npm-token/index.html +2 -2
  107. package/node_modules/npm/docs/public/cli-commands/npm-uninstall/index.html +2 -2
  108. package/node_modules/npm/docs/public/cli-commands/npm-unpublish/index.html +2 -2
  109. package/node_modules/npm/docs/public/cli-commands/npm-update/index.html +2 -2
  110. package/node_modules/npm/docs/public/cli-commands/npm-version/index.html +2 -2
  111. package/node_modules/npm/docs/public/cli-commands/npm-view/index.html +2 -2
  112. package/node_modules/npm/docs/public/cli-commands/npm-whoami/index.html +2 -2
  113. package/node_modules/npm/docs/public/configuring-npm/folders/index.html +2 -2
  114. package/node_modules/npm/docs/public/configuring-npm/install/index.html +2 -2
  115. package/node_modules/npm/docs/public/configuring-npm/npmrc/index.html +2 -2
  116. package/node_modules/npm/docs/public/configuring-npm/package-json/index.html +2 -2
  117. package/node_modules/npm/docs/public/configuring-npm/package-lock-json/index.html +2 -2
  118. package/node_modules/npm/docs/public/configuring-npm/package-locks/index.html +2 -2
  119. package/node_modules/npm/docs/public/configuring-npm/shrinkwrap-json/index.html +2 -2
  120. package/node_modules/npm/docs/public/index.html +1 -1
  121. package/node_modules/npm/docs/public/using-npm/config/index.html +2 -2
  122. package/node_modules/npm/docs/public/using-npm/developers/index.html +2 -2
  123. package/node_modules/npm/docs/public/using-npm/disputes/index.html +2 -2
  124. package/node_modules/npm/docs/public/using-npm/orgs/index.html +2 -2
  125. package/node_modules/npm/docs/public/using-npm/registry/index.html +2 -2
  126. package/node_modules/npm/docs/public/using-npm/removal/index.html +2 -2
  127. package/node_modules/npm/docs/public/using-npm/scope/index.html +2 -2
  128. package/node_modules/npm/docs/public/using-npm/scripts/index.html +2 -2
  129. package/node_modules/npm/docs/public/using-npm/semver/index.html +2 -2
  130. package/node_modules/npm/lib/auth/legacy.js +1 -1
  131. package/node_modules/npm/lib/profile.js +2 -2
  132. package/node_modules/npm/man/man1/npm-README.1 +1 -1
  133. package/node_modules/npm/man/man1/npm-access.1 +1 -1
  134. package/node_modules/npm/man/man1/npm-adduser.1 +1 -1
  135. package/node_modules/npm/man/man1/npm-audit.1 +1 -1
  136. package/node_modules/npm/man/man1/npm-bin.1 +1 -1
  137. package/node_modules/npm/man/man1/npm-bugs.1 +1 -1
  138. package/node_modules/npm/man/man1/npm-build.1 +1 -1
  139. package/node_modules/npm/man/man1/npm-bundle.1 +1 -1
  140. package/node_modules/npm/man/man1/npm-cache.1 +1 -1
  141. package/node_modules/npm/man/man1/npm-ci.1 +1 -1
  142. package/node_modules/npm/man/man1/npm-completion.1 +1 -1
  143. package/node_modules/npm/man/man1/npm-config.1 +1 -1
  144. package/node_modules/npm/man/man1/npm-dedupe.1 +1 -1
  145. package/node_modules/npm/man/man1/npm-deprecate.1 +1 -1
  146. package/node_modules/npm/man/man1/npm-dist-tag.1 +1 -1
  147. package/node_modules/npm/man/man1/npm-docs.1 +1 -1
  148. package/node_modules/npm/man/man1/npm-doctor.1 +1 -1
  149. package/node_modules/npm/man/man1/npm-edit.1 +1 -1
  150. package/node_modules/npm/man/man1/npm-explore.1 +1 -1
  151. package/node_modules/npm/man/man1/npm-fund.1 +1 -1
  152. package/node_modules/npm/man/man1/npm-help-search.1 +1 -1
  153. package/node_modules/npm/man/man1/npm-help.1 +1 -1
  154. package/node_modules/npm/man/man1/npm-hook.1 +1 -1
  155. package/node_modules/npm/man/man1/npm-init.1 +1 -1
  156. package/node_modules/npm/man/man1/npm-install-ci-test.1 +1 -1
  157. package/node_modules/npm/man/man1/npm-install-test.1 +1 -1
  158. package/node_modules/npm/man/man1/npm-install.1 +1 -1
  159. package/node_modules/npm/man/man1/npm-link.1 +1 -1
  160. package/node_modules/npm/man/man1/npm-logout.1 +1 -1
  161. package/node_modules/npm/man/man1/npm-ls.1 +2 -2
  162. package/node_modules/npm/man/man1/npm-org.1 +1 -1
  163. package/node_modules/npm/man/man1/npm-outdated.1 +1 -1
  164. package/node_modules/npm/man/man1/npm-owner.1 +1 -1
  165. package/node_modules/npm/man/man1/npm-pack.1 +1 -1
  166. package/node_modules/npm/man/man1/npm-ping.1 +1 -1
  167. package/node_modules/npm/man/man1/npm-prefix.1 +1 -1
  168. package/node_modules/npm/man/man1/npm-profile.1 +1 -1
  169. package/node_modules/npm/man/man1/npm-prune.1 +1 -1
  170. package/node_modules/npm/man/man1/npm-publish.1 +1 -1
  171. package/node_modules/npm/man/man1/npm-rebuild.1 +1 -1
  172. package/node_modules/npm/man/man1/npm-repo.1 +1 -1
  173. package/node_modules/npm/man/man1/npm-restart.1 +1 -1
  174. package/node_modules/npm/man/man1/npm-root.1 +1 -1
  175. package/node_modules/npm/man/man1/npm-run-script.1 +1 -1
  176. package/node_modules/npm/man/man1/npm-search.1 +1 -1
  177. package/node_modules/npm/man/man1/npm-shrinkwrap.1 +1 -1
  178. package/node_modules/npm/man/man1/npm-star.1 +1 -1
  179. package/node_modules/npm/man/man1/npm-stars.1 +1 -1
  180. package/node_modules/npm/man/man1/npm-start.1 +1 -1
  181. package/node_modules/npm/man/man1/npm-stop.1 +1 -1
  182. package/node_modules/npm/man/man1/npm-team.1 +1 -1
  183. package/node_modules/npm/man/man1/npm-test.1 +1 -1
  184. package/node_modules/npm/man/man1/npm-token.1 +1 -1
  185. package/node_modules/npm/man/man1/npm-uninstall.1 +1 -1
  186. package/node_modules/npm/man/man1/npm-unpublish.1 +1 -1
  187. package/node_modules/npm/man/man1/npm-update.1 +1 -1
  188. package/node_modules/npm/man/man1/npm-version.1 +1 -1
  189. package/node_modules/npm/man/man1/npm-view.1 +1 -1
  190. package/node_modules/npm/man/man1/npm-whoami.1 +1 -1
  191. package/node_modules/npm/man/man1/npm.1 +2 -2
  192. package/node_modules/npm/man/man5/folders.5 +1 -1
  193. package/node_modules/npm/man/man5/install.5 +1 -1
  194. package/node_modules/npm/man/man5/npmrc.5 +1 -1
  195. package/node_modules/npm/man/man5/package-json.5 +1 -1
  196. package/node_modules/npm/man/man5/package-lock-json.5 +1 -1
  197. package/node_modules/npm/man/man5/package-locks.5 +1 -1
  198. package/node_modules/npm/man/man5/shrinkwrap-json.5 +1 -1
  199. package/node_modules/npm/man/man7/config.7 +1 -1
  200. package/node_modules/npm/man/man7/developers.7 +1 -1
  201. package/node_modules/npm/man/man7/disputes.7 +1 -1
  202. package/node_modules/npm/man/man7/orgs.7 +1 -1
  203. package/node_modules/npm/man/man7/registry.7 +1 -1
  204. package/node_modules/npm/man/man7/removal.7 +1 -1
  205. package/node_modules/npm/man/man7/scope.7 +1 -1
  206. package/node_modules/npm/man/man7/scripts.7 +1 -1
  207. package/node_modules/npm/man/man7/semver.7 +1 -1
  208. package/node_modules/npm/node_modules/json-schema/LICENSE +195 -0
  209. package/node_modules/npm/node_modules/json-schema/README.md +2 -4
  210. package/node_modules/npm/node_modules/json-schema/lib/links.js +1 -2
  211. package/node_modules/npm/node_modules/json-schema/lib/validate.js +7 -9
  212. package/node_modules/npm/node_modules/json-schema/package.json +16 -22
  213. package/node_modules/npm/node_modules/jsprim/CHANGES.md +4 -0
  214. package/node_modules/npm/node_modules/jsprim/CONTRIBUTING.md +19 -0
  215. package/node_modules/npm/node_modules/jsprim/package.json +16 -16
  216. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.pyc +0 -0
  217. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.pyc +0 -0
  218. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.pyc +0 -0
  219. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.pyc +0 -0
  220. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.pyc +0 -0
  221. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.pyc +0 -0
  222. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.pyc +0 -0
  223. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.pyc +0 -0
  224. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.pyc +0 -0
  225. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.pyc +0 -0
  226. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.pyc +0 -0
  227. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.pyc +0 -0
  228. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
  229. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.pyc +0 -0
  230. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
  231. package/node_modules/npm/package.json +5 -4
  232. package/node_modules/qs/.editorconfig +9 -0
  233. package/node_modules/qs/.eslintignore +2 -1
  234. package/node_modules/qs/.eslintrc +15 -1
  235. package/node_modules/qs/.github/FUNDING.yml +12 -0
  236. package/node_modules/qs/.nycrc +13 -0
  237. package/node_modules/qs/CHANGELOG.md +103 -0
  238. package/node_modules/qs/LICENSE.md +29 -0
  239. package/node_modules/qs/README.md +34 -0
  240. package/node_modules/qs/dist/qs.js +117 -67
  241. package/node_modules/qs/lib/formats.js +9 -4
  242. package/node_modules/qs/lib/parse.js +29 -14
  243. package/node_modules/qs/lib/stringify.js +55 -46
  244. package/node_modules/qs/lib/utils.js +23 -2
  245. package/node_modules/qs/package.json +31 -20
  246. package/node_modules/qs/test/parse.js +97 -1
  247. package/node_modules/qs/test/stringify.js +115 -1
  248. package/node_modules/qs/test/utils.js +1 -1
  249. package/node_modules/raw-body/HISTORY.md +14 -0
  250. package/node_modules/raw-body/README.md +3 -5
  251. package/node_modules/raw-body/package.json +21 -21
  252. package/node_modules/request/node_modules/qs/.editorconfig +14 -1
  253. package/node_modules/request/node_modules/qs/.eslintrc +21 -3
  254. package/node_modules/request/node_modules/qs/.github/FUNDING.yml +12 -0
  255. package/node_modules/request/node_modules/qs/.nycrc +13 -0
  256. package/node_modules/request/node_modules/qs/CHANGELOG.md +24 -0
  257. package/node_modules/request/node_modules/qs/LICENSE.md +29 -0
  258. package/node_modules/request/node_modules/qs/README.md +54 -19
  259. package/node_modules/request/node_modules/qs/bower.json +21 -0
  260. package/node_modules/request/node_modules/qs/component.json +15 -0
  261. package/node_modules/request/node_modules/qs/dist/qs.js +35 -25
  262. package/node_modules/request/node_modules/qs/lib/formats.js +1 -1
  263. package/node_modules/request/node_modules/qs/lib/parse.js +6 -5
  264. package/node_modules/request/node_modules/qs/lib/stringify.js +21 -14
  265. package/node_modules/request/node_modules/qs/lib/utils.js +7 -5
  266. package/node_modules/request/node_modules/qs/package.json +21 -19
  267. package/node_modules/request/node_modules/qs/test/parse.js +79 -4
  268. package/node_modules/request/node_modules/qs/test/stringify.js +45 -0
  269. package/node_modules/request/node_modules/qs/test/utils.js +31 -0
  270. package/node_modules/resolve/.eslintrc +34 -8
  271. package/node_modules/resolve/.github/FUNDING.yml +12 -0
  272. package/node_modules/resolve/appveyor.yml +4 -2
  273. package/node_modules/resolve/async.js +3 -0
  274. package/node_modules/resolve/bin/resolve +50 -0
  275. package/node_modules/resolve/lib/async.js +10 -1
  276. package/node_modules/resolve/lib/core.js +1 -2
  277. package/node_modules/resolve/lib/core.json +85 -16
  278. package/node_modules/resolve/lib/homedir.js +24 -0
  279. package/node_modules/resolve/lib/node-modules-paths.js +1 -1
  280. package/node_modules/resolve/lib/sync.js +14 -5
  281. package/node_modules/resolve/package.json +26 -15
  282. package/node_modules/resolve/readme.markdown +35 -13
  283. package/node_modules/resolve/sync.js +3 -0
  284. package/node_modules/resolve/test/home_paths.js +127 -0
  285. package/node_modules/resolve/test/home_paths_sync.js +114 -0
  286. package/node_modules/resolve/test/mock_sync.js +2 -4
  287. package/node_modules/resolve/test/node_path.js +1 -1
  288. package/node_modules/resolve/test/resolver/invalid_main/package.json +1 -1
  289. package/node_modules/resolve/test/resolver/malformed_package_json/index.js +0 -0
  290. package/node_modules/resolve/test/resolver/malformed_package_json/package.json +1 -0
  291. package/node_modules/resolve/test/resolver.js +99 -3
  292. package/node_modules/resolve/test/resolver_sync.js +310 -23
  293. package/node_modules/safe-buffer/index.js +3 -0
  294. package/node_modules/safe-buffer/package.json +21 -7
  295. package/node_modules/send/HISTORY.md +10 -0
  296. package/node_modules/send/README.md +4 -6
  297. package/node_modules/send/index.js +7 -3
  298. package/node_modules/send/node_modules/ms/index.js +3 -3
  299. package/node_modules/send/node_modules/ms/license.md +1 -1
  300. package/node_modules/send/node_modules/ms/package.json +8 -7
  301. package/node_modules/send/node_modules/ms/readme.md +1 -2
  302. package/node_modules/send/package.json +19 -19
  303. package/node_modules/serve-static/HISTORY.md +8 -0
  304. package/node_modules/serve-static/README.md +9 -11
  305. package/node_modules/serve-static/package.json +19 -19
  306. package/node_modules/setprototypeof/README.md +1 -1
  307. package/node_modules/setprototypeof/index.js +1 -1
  308. package/node_modules/setprototypeof/package.json +9 -7
  309. package/node_modules/shelljs/package.json +4 -4
  310. package/node_modules/shelljs/src/exec.js +19 -1
  311. package/node_modules/signal-exit/index.js +30 -8
  312. package/node_modules/signal-exit/package.json +10 -8
  313. package/node_modules/sshpk/Jenkinsfile +86 -0
  314. package/node_modules/sshpk/lib/formats/putty.js +99 -4
  315. package/node_modules/sshpk/lib/private-key.js +1 -0
  316. package/node_modules/sshpk/package.json +4 -4
  317. package/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
  318. package/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
  319. package/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
  320. package/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
  321. package/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
  322. package/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
  323. package/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
  324. package/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
  325. package/node_modules/supports-preserve-symlinks-flag/package.json +74 -0
  326. package/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
  327. package/node_modules/toidentifier/HISTORY.md +9 -0
  328. package/node_modules/toidentifier/README.md +3 -3
  329. package/node_modules/toidentifier/index.js +2 -0
  330. package/node_modules/toidentifier/package.json +19 -15
  331. package/node_modules/underscore/amd/_collectNonEnumProps.js +1 -1
  332. package/node_modules/underscore/amd/_setup.js +1 -1
  333. package/node_modules/underscore/amd/sample.js +2 -2
  334. package/node_modules/underscore/cjs/_collectNonEnumProps.js +1 -1
  335. package/node_modules/underscore/cjs/_setup.js +1 -1
  336. package/node_modules/underscore/cjs/sample.js +2 -2
  337. package/node_modules/underscore/modules/_collectNonEnumProps.js +1 -1
  338. package/node_modules/underscore/modules/_setup.js +1 -1
  339. package/node_modules/underscore/modules/index.js +1 -1
  340. package/node_modules/underscore/modules/sample.js +2 -2
  341. package/node_modules/underscore/package.json +4 -4
  342. package/node_modules/underscore/underscore-esm-min.js +2 -2
  343. package/node_modules/underscore/underscore-esm-min.js.map +1 -1
  344. package/node_modules/underscore/underscore-esm.js +17 -17
  345. package/node_modules/underscore/underscore-esm.js.map +1 -1
  346. package/node_modules/underscore/underscore-min.js +2 -2
  347. package/node_modules/underscore/underscore-min.js.map +1 -1
  348. package/node_modules/underscore/underscore-node-f.cjs +17 -17
  349. package/node_modules/underscore/underscore-node-f.cjs.map +1 -1
  350. package/node_modules/underscore/underscore-node.cjs +1 -1
  351. package/node_modules/underscore/underscore-node.mjs +1 -1
  352. package/node_modules/underscore/underscore-umd-min.js +2 -2
  353. package/node_modules/underscore/underscore-umd-min.js.map +1 -1
  354. package/node_modules/underscore/underscore-umd.js +17 -17
  355. package/node_modules/underscore/underscore-umd.js.map +1 -1
  356. package/node_modules/underscore/underscore.js +17 -17
  357. package/package.json +9 -9
  358. package/node_modules/hosted-git-info/CHANGELOG.md +0 -151
  359. package/node_modules/hosted-git-info/LICENSE +0 -13
  360. package/node_modules/hosted-git-info/README.md +0 -133
  361. package/node_modules/hosted-git-info/git-host-info.js +0 -79
  362. package/node_modules/hosted-git-info/git-host.js +0 -156
  363. package/node_modules/hosted-git-info/index.js +0 -148
  364. package/node_modules/hosted-git-info/package.json +0 -44
  365. package/node_modules/is-core-module/.eslintignore +0 -1
  366. package/node_modules/json-parse-better-errors/CHANGELOG.md +0 -46
  367. package/node_modules/json-parse-better-errors/LICENSE.md +0 -7
  368. package/node_modules/json-parse-better-errors/README.md +0 -46
  369. package/node_modules/json-parse-better-errors/index.js +0 -38
  370. package/node_modules/json-parse-better-errors/package.json +0 -49
  371. package/node_modules/json-schema/draft-00/hyper-schema +0 -68
  372. package/node_modules/json-schema/draft-00/json-ref +0 -26
  373. package/node_modules/json-schema/draft-00/links +0 -33
  374. package/node_modules/json-schema/draft-00/schema +0 -155
  375. package/node_modules/json-schema/draft-01/hyper-schema +0 -68
  376. package/node_modules/json-schema/draft-01/json-ref +0 -26
  377. package/node_modules/json-schema/draft-01/links +0 -33
  378. package/node_modules/json-schema/draft-01/schema +0 -155
  379. package/node_modules/json-schema/draft-02/hyper-schema +0 -68
  380. package/node_modules/json-schema/draft-02/json-ref +0 -26
  381. package/node_modules/json-schema/draft-02/links +0 -35
  382. package/node_modules/json-schema/draft-02/schema +0 -166
  383. package/node_modules/json-schema/draft-03/examples/address +0 -20
  384. package/node_modules/json-schema/draft-03/examples/calendar +0 -53
  385. package/node_modules/json-schema/draft-03/examples/card +0 -105
  386. package/node_modules/json-schema/draft-03/examples/geo +0 -8
  387. package/node_modules/json-schema/draft-03/examples/interfaces +0 -23
  388. package/node_modules/json-schema/draft-03/hyper-schema +0 -60
  389. package/node_modules/json-schema/draft-03/json-ref +0 -26
  390. package/node_modules/json-schema/draft-03/links +0 -35
  391. package/node_modules/json-schema/draft-03/schema +0 -174
  392. package/node_modules/json-schema/draft-04/hyper-schema +0 -60
  393. package/node_modules/json-schema/draft-04/links +0 -41
  394. package/node_modules/json-schema/draft-04/schema +0 -189
  395. package/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
  396. package/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
  397. package/node_modules/json-schema/test/tests.js +0 -95
  398. package/node_modules/normalize-package-data/AUTHORS +0 -4
  399. package/node_modules/normalize-package-data/LICENSE +0 -30
  400. package/node_modules/normalize-package-data/README.md +0 -106
  401. package/node_modules/normalize-package-data/lib/extract_description.js +0 -14
  402. package/node_modules/normalize-package-data/lib/fixer.js +0 -418
  403. package/node_modules/normalize-package-data/lib/make_warning.js +0 -23
  404. package/node_modules/normalize-package-data/lib/normalize.js +0 -39
  405. package/node_modules/normalize-package-data/lib/safe_format.js +0 -9
  406. package/node_modules/normalize-package-data/lib/typos.json +0 -25
  407. package/node_modules/normalize-package-data/lib/warning_messages.json +0 -30
  408. package/node_modules/normalize-package-data/package.json +0 -35
  409. package/node_modules/npm/node_modules/json-schema/draft-00/hyper-schema +0 -68
  410. package/node_modules/npm/node_modules/json-schema/draft-00/json-ref +0 -26
  411. package/node_modules/npm/node_modules/json-schema/draft-00/links +0 -33
  412. package/node_modules/npm/node_modules/json-schema/draft-00/schema +0 -155
  413. package/node_modules/npm/node_modules/json-schema/draft-01/hyper-schema +0 -68
  414. package/node_modules/npm/node_modules/json-schema/draft-01/json-ref +0 -26
  415. package/node_modules/npm/node_modules/json-schema/draft-01/links +0 -33
  416. package/node_modules/npm/node_modules/json-schema/draft-01/schema +0 -155
  417. package/node_modules/npm/node_modules/json-schema/draft-02/hyper-schema +0 -68
  418. package/node_modules/npm/node_modules/json-schema/draft-02/json-ref +0 -26
  419. package/node_modules/npm/node_modules/json-schema/draft-02/links +0 -35
  420. package/node_modules/npm/node_modules/json-schema/draft-02/schema +0 -166
  421. package/node_modules/npm/node_modules/json-schema/draft-03/examples/address +0 -20
  422. package/node_modules/npm/node_modules/json-schema/draft-03/examples/calendar +0 -53
  423. package/node_modules/npm/node_modules/json-schema/draft-03/examples/card +0 -105
  424. package/node_modules/npm/node_modules/json-schema/draft-03/examples/geo +0 -8
  425. package/node_modules/npm/node_modules/json-schema/draft-03/examples/interfaces +0 -23
  426. package/node_modules/npm/node_modules/json-schema/draft-03/hyper-schema +0 -60
  427. package/node_modules/npm/node_modules/json-schema/draft-03/json-ref +0 -26
  428. package/node_modules/npm/node_modules/json-schema/draft-03/links +0 -35
  429. package/node_modules/npm/node_modules/json-schema/draft-03/schema +0 -174
  430. package/node_modules/npm/node_modules/json-schema/draft-04/hyper-schema +0 -60
  431. package/node_modules/npm/node_modules/json-schema/draft-04/links +0 -41
  432. package/node_modules/npm/node_modules/json-schema/draft-04/schema +0 -189
  433. package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
  434. package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
  435. package/node_modules/npm/node_modules/json-schema/test/tests.js +0 -95
  436. package/node_modules/qs/LICENSE +0 -28
  437. package/node_modules/qs/test/.eslintrc +0 -17
  438. package/node_modules/qs/test/index.js +0 -7
  439. package/node_modules/request/node_modules/qs/.eslintignore +0 -1
  440. package/node_modules/request/node_modules/qs/LICENSE +0 -28
  441. package/node_modules/request/node_modules/qs/test/.eslintrc +0 -15
  442. package/node_modules/resolve/.eslintignore +0 -1
  443. package/node_modules/resolve/test/.eslintrc +0 -5
  444. package/node_modules/spdx-correct/LICENSE +0 -202
  445. package/node_modules/spdx-correct/README.md +0 -14
  446. package/node_modules/spdx-correct/index.js +0 -364
  447. package/node_modules/spdx-correct/package.json +0 -43
  448. package/node_modules/spdx-exceptions/README.md +0 -36
  449. package/node_modules/spdx-exceptions/index.json +0 -40
  450. package/node_modules/spdx-exceptions/package.json +0 -21
  451. package/node_modules/spdx-expression-parse/AUTHORS +0 -4
  452. package/node_modules/spdx-expression-parse/LICENSE +0 -22
  453. package/node_modules/spdx-expression-parse/README.md +0 -91
  454. package/node_modules/spdx-expression-parse/index.js +0 -8
  455. package/node_modules/spdx-expression-parse/package.json +0 -43
  456. package/node_modules/spdx-expression-parse/parse.js +0 -138
  457. package/node_modules/spdx-expression-parse/scan.js +0 -131
  458. package/node_modules/spdx-license-ids/README.md +0 -52
  459. package/node_modules/spdx-license-ids/deprecated.json +0 -26
  460. package/node_modules/spdx-license-ids/index.json +0 -446
  461. package/node_modules/spdx-license-ids/package.json +0 -44
  462. package/node_modules/sshpk/.npmignore +0 -9
  463. package/node_modules/validate-npm-package-license/LICENSE +0 -202
  464. package/node_modules/validate-npm-package-license/README.md +0 -113
  465. package/node_modules/validate-npm-package-license/index.js +0 -86
  466. 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': 'RFC3986',
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: 'RFC1738',
18
- RFC3986: '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 = options.decoder(part.slice(pos + 1), defaults.decoder, charset);
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 (val && options.comma && val.indexOf(',') > -1) {
121
- val = val.split(',');
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 Error('The charset option must be either utf-8, iso-8859-1, or undefined');
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
- depth: typeof opts.depth === 'number' ? opts.depth : defaults.depth,
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) { // eslint-disable-line func-name-matching
306
+ brackets: function brackets(prefix) {
287
307
  return prefix + '[]';
288
308
  },
289
309
  comma: 'comma',
290
- indices: function indices(prefix, key) { // eslint-disable-line func-name-matching
310
+ indices: function indices(prefix, key) {
291
311
  return prefix + '[' + key + ']';
292
312
  },
293
- repeat: function repeat(prefix) { // eslint-disable-line func-name-matching
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
- formatter: formats.formatters[formats['default']],
336
+ format: defaultFormat,
337
+ formatter: formats.formatters[defaultFormat],
316
338
  // deprecated
317
339
  indices: false,
318
- serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching
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 stringify = function stringify( // eslint-disable-line func-name-matching
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 = obj.join(',');
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 (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) {
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(filter)) {
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 && obj[key] === null) {
422
+ if (skipNulls && value === null) {
383
423
  continue;
384
424
  }
385
425
 
386
- if (isArray(obj)) {
387
- pushToArray(values, stringify(
388
- obj[key],
389
- typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix,
390
- generateArrayPrefix,
391
- strictNullHandling,
392
- skipNulls,
393
- encoder,
394
- filter,
395
- sort,
396
- allowDots,
397
- serializeDate,
398
- formatter,
399
- encodeValuesOnly,
400
- charset
401
- ));
402
- } else {
403
- pushToArray(values, stringify(
404
- obj[key],
405
- prefix + (allowDots ? '.' + key : '[' + key + ']'),
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 = typeof str === 'string' ? str : String(str);
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': 'RFC3986',
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: 'RFC1738',
17
- RFC3986: '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 = options.decoder(part.slice(pos + 1), defaults.decoder, charset);
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 (val && options.comma && val.indexOf(',') > -1) {
87
- val = val.split(',');
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 Error('The charset option must be either utf-8, iso-8859-1, or undefined');
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
- depth: typeof opts.depth === 'number' ? opts.depth : defaults.depth,
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