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.
Files changed (511) 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/glob/README.md +3 -0
  27. package/node_modules/glob/common.js +2 -0
  28. package/node_modules/glob/glob.js +4 -5
  29. package/node_modules/glob/package.json +5 -4
  30. package/node_modules/glob/sync.js +4 -5
  31. package/node_modules/graceful-fs/README.md +11 -1
  32. package/node_modules/graceful-fs/graceful-fs.js +105 -49
  33. package/node_modules/graceful-fs/package.json +4 -4
  34. package/node_modules/graceful-fs/polyfills.js +4 -2
  35. package/node_modules/http-errors/HISTORY.md +16 -0
  36. package/node_modules/http-errors/README.md +12 -6
  37. package/node_modules/http-errors/index.js +35 -2
  38. package/node_modules/http-errors/package.json +19 -19
  39. package/node_modules/inherits/inherits.js +2 -0
  40. package/node_modules/inherits/inherits_browser.js +18 -14
  41. package/node_modules/inherits/package.json +6 -6
  42. package/node_modules/is-callable/.editorconfig +5 -0
  43. package/node_modules/is-callable/.nycrc +0 -4
  44. package/node_modules/is-callable/CHANGELOG.md +14 -0
  45. package/node_modules/is-callable/README.md +14 -15
  46. package/node_modules/is-callable/index.js +1 -1
  47. package/node_modules/is-callable/package.json +20 -28
  48. package/node_modules/is-callable/test/index.js +22 -50
  49. package/node_modules/is-core-module/.eslintrc +0 -1
  50. package/node_modules/is-core-module/CHANGELOG.md +37 -0
  51. package/node_modules/is-core-module/core.json +65 -61
  52. package/node_modules/is-core-module/index.js +1 -1
  53. package/node_modules/is-core-module/package.json +11 -10
  54. package/node_modules/is-core-module/test/index.js +23 -1
  55. package/node_modules/json-schema/LICENSE +195 -0
  56. package/node_modules/json-schema/README.md +2 -4
  57. package/node_modules/json-schema/lib/links.js +1 -2
  58. package/node_modules/json-schema/lib/validate.js +7 -9
  59. package/node_modules/json-schema/package.json +8 -14
  60. package/node_modules/jsprim/CHANGES.md +4 -0
  61. package/node_modules/jsprim/package.json +8 -8
  62. package/node_modules/mime-db/HISTORY.md +19 -0
  63. package/node_modules/mime-db/db.json +93 -1
  64. package/node_modules/mime-db/package.json +10 -10
  65. package/node_modules/mime-types/HISTORY.md +20 -3
  66. package/node_modules/mime-types/package.json +10 -10
  67. package/node_modules/npm/CHANGELOG.md +30 -0
  68. package/node_modules/npm/docs/public/cli-commands/npm/index.html +3 -3
  69. package/node_modules/npm/docs/public/cli-commands/npm-access/index.html +2 -2
  70. package/node_modules/npm/docs/public/cli-commands/npm-adduser/index.html +2 -2
  71. package/node_modules/npm/docs/public/cli-commands/npm-audit/index.html +2 -2
  72. package/node_modules/npm/docs/public/cli-commands/npm-bin/index.html +2 -2
  73. package/node_modules/npm/docs/public/cli-commands/npm-bugs/index.html +2 -2
  74. package/node_modules/npm/docs/public/cli-commands/npm-build/index.html +2 -2
  75. package/node_modules/npm/docs/public/cli-commands/npm-bundle/index.html +2 -2
  76. package/node_modules/npm/docs/public/cli-commands/npm-cache/index.html +2 -2
  77. package/node_modules/npm/docs/public/cli-commands/npm-ci/index.html +2 -2
  78. package/node_modules/npm/docs/public/cli-commands/npm-completion/index.html +2 -2
  79. package/node_modules/npm/docs/public/cli-commands/npm-config/index.html +2 -2
  80. package/node_modules/npm/docs/public/cli-commands/npm-dedupe/index.html +2 -2
  81. package/node_modules/npm/docs/public/cli-commands/npm-deprecate/index.html +2 -2
  82. package/node_modules/npm/docs/public/cli-commands/npm-dist-tag/index.html +2 -2
  83. package/node_modules/npm/docs/public/cli-commands/npm-docs/index.html +2 -2
  84. package/node_modules/npm/docs/public/cli-commands/npm-doctor/index.html +2 -2
  85. package/node_modules/npm/docs/public/cli-commands/npm-edit/index.html +2 -2
  86. package/node_modules/npm/docs/public/cli-commands/npm-explore/index.html +2 -2
  87. package/node_modules/npm/docs/public/cli-commands/npm-fund/index.html +2 -2
  88. package/node_modules/npm/docs/public/cli-commands/npm-help/index.html +2 -2
  89. package/node_modules/npm/docs/public/cli-commands/npm-help-search/index.html +2 -2
  90. package/node_modules/npm/docs/public/cli-commands/npm-hook/index.html +2 -2
  91. package/node_modules/npm/docs/public/cli-commands/npm-init/index.html +2 -2
  92. package/node_modules/npm/docs/public/cli-commands/npm-install/index.html +2 -2
  93. package/node_modules/npm/docs/public/cli-commands/npm-install-ci-test/index.html +2 -2
  94. package/node_modules/npm/docs/public/cli-commands/npm-install-test/index.html +2 -2
  95. package/node_modules/npm/docs/public/cli-commands/npm-link/index.html +2 -2
  96. package/node_modules/npm/docs/public/cli-commands/npm-logout/index.html +2 -2
  97. package/node_modules/npm/docs/public/cli-commands/npm-ls/index.html +3 -3
  98. package/node_modules/npm/docs/public/cli-commands/npm-org/index.html +2 -2
  99. package/node_modules/npm/docs/public/cli-commands/npm-outdated/index.html +2 -2
  100. package/node_modules/npm/docs/public/cli-commands/npm-owner/index.html +2 -2
  101. package/node_modules/npm/docs/public/cli-commands/npm-pack/index.html +2 -2
  102. package/node_modules/npm/docs/public/cli-commands/npm-ping/index.html +2 -2
  103. package/node_modules/npm/docs/public/cli-commands/npm-prefix/index.html +2 -2
  104. package/node_modules/npm/docs/public/cli-commands/npm-profile/index.html +2 -2
  105. package/node_modules/npm/docs/public/cli-commands/npm-prune/index.html +2 -2
  106. package/node_modules/npm/docs/public/cli-commands/npm-publish/index.html +2 -2
  107. package/node_modules/npm/docs/public/cli-commands/npm-rebuild/index.html +2 -2
  108. package/node_modules/npm/docs/public/cli-commands/npm-repo/index.html +2 -2
  109. package/node_modules/npm/docs/public/cli-commands/npm-restart/index.html +2 -2
  110. package/node_modules/npm/docs/public/cli-commands/npm-root/index.html +2 -2
  111. package/node_modules/npm/docs/public/cli-commands/npm-run-script/index.html +2 -2
  112. package/node_modules/npm/docs/public/cli-commands/npm-search/index.html +2 -2
  113. package/node_modules/npm/docs/public/cli-commands/npm-shrinkwrap/index.html +2 -2
  114. package/node_modules/npm/docs/public/cli-commands/npm-star/index.html +2 -2
  115. package/node_modules/npm/docs/public/cli-commands/npm-stars/index.html +2 -2
  116. package/node_modules/npm/docs/public/cli-commands/npm-start/index.html +2 -2
  117. package/node_modules/npm/docs/public/cli-commands/npm-stop/index.html +2 -2
  118. package/node_modules/npm/docs/public/cli-commands/npm-team/index.html +2 -2
  119. package/node_modules/npm/docs/public/cli-commands/npm-test/index.html +2 -2
  120. package/node_modules/npm/docs/public/cli-commands/npm-token/index.html +2 -2
  121. package/node_modules/npm/docs/public/cli-commands/npm-uninstall/index.html +2 -2
  122. package/node_modules/npm/docs/public/cli-commands/npm-unpublish/index.html +2 -2
  123. package/node_modules/npm/docs/public/cli-commands/npm-update/index.html +2 -2
  124. package/node_modules/npm/docs/public/cli-commands/npm-version/index.html +2 -2
  125. package/node_modules/npm/docs/public/cli-commands/npm-view/index.html +2 -2
  126. package/node_modules/npm/docs/public/cli-commands/npm-whoami/index.html +2 -2
  127. package/node_modules/npm/docs/public/configuring-npm/folders/index.html +2 -2
  128. package/node_modules/npm/docs/public/configuring-npm/install/index.html +2 -2
  129. package/node_modules/npm/docs/public/configuring-npm/npmrc/index.html +2 -2
  130. package/node_modules/npm/docs/public/configuring-npm/package-json/index.html +2 -2
  131. package/node_modules/npm/docs/public/configuring-npm/package-lock-json/index.html +2 -2
  132. package/node_modules/npm/docs/public/configuring-npm/package-locks/index.html +2 -2
  133. package/node_modules/npm/docs/public/configuring-npm/shrinkwrap-json/index.html +2 -2
  134. package/node_modules/npm/docs/public/index.html +1 -1
  135. package/node_modules/npm/docs/public/using-npm/config/index.html +2 -2
  136. package/node_modules/npm/docs/public/using-npm/developers/index.html +2 -2
  137. package/node_modules/npm/docs/public/using-npm/disputes/index.html +2 -2
  138. package/node_modules/npm/docs/public/using-npm/orgs/index.html +2 -2
  139. package/node_modules/npm/docs/public/using-npm/registry/index.html +2 -2
  140. package/node_modules/npm/docs/public/using-npm/removal/index.html +2 -2
  141. package/node_modules/npm/docs/public/using-npm/scope/index.html +2 -2
  142. package/node_modules/npm/docs/public/using-npm/scripts/index.html +2 -2
  143. package/node_modules/npm/docs/public/using-npm/semver/index.html +2 -2
  144. package/node_modules/npm/lib/auth/legacy.js +1 -1
  145. package/node_modules/npm/lib/profile.js +2 -2
  146. package/node_modules/npm/man/man1/npm-README.1 +1 -1
  147. package/node_modules/npm/man/man1/npm-access.1 +1 -1
  148. package/node_modules/npm/man/man1/npm-adduser.1 +1 -1
  149. package/node_modules/npm/man/man1/npm-audit.1 +1 -1
  150. package/node_modules/npm/man/man1/npm-bin.1 +1 -1
  151. package/node_modules/npm/man/man1/npm-bugs.1 +1 -1
  152. package/node_modules/npm/man/man1/npm-build.1 +1 -1
  153. package/node_modules/npm/man/man1/npm-bundle.1 +1 -1
  154. package/node_modules/npm/man/man1/npm-cache.1 +1 -1
  155. package/node_modules/npm/man/man1/npm-ci.1 +1 -1
  156. package/node_modules/npm/man/man1/npm-completion.1 +1 -1
  157. package/node_modules/npm/man/man1/npm-config.1 +1 -1
  158. package/node_modules/npm/man/man1/npm-dedupe.1 +1 -1
  159. package/node_modules/npm/man/man1/npm-deprecate.1 +1 -1
  160. package/node_modules/npm/man/man1/npm-dist-tag.1 +1 -1
  161. package/node_modules/npm/man/man1/npm-docs.1 +1 -1
  162. package/node_modules/npm/man/man1/npm-doctor.1 +1 -1
  163. package/node_modules/npm/man/man1/npm-edit.1 +1 -1
  164. package/node_modules/npm/man/man1/npm-explore.1 +1 -1
  165. package/node_modules/npm/man/man1/npm-fund.1 +1 -1
  166. package/node_modules/npm/man/man1/npm-help-search.1 +1 -1
  167. package/node_modules/npm/man/man1/npm-help.1 +1 -1
  168. package/node_modules/npm/man/man1/npm-hook.1 +1 -1
  169. package/node_modules/npm/man/man1/npm-init.1 +1 -1
  170. package/node_modules/npm/man/man1/npm-install-ci-test.1 +1 -1
  171. package/node_modules/npm/man/man1/npm-install-test.1 +1 -1
  172. package/node_modules/npm/man/man1/npm-install.1 +1 -1
  173. package/node_modules/npm/man/man1/npm-link.1 +1 -1
  174. package/node_modules/npm/man/man1/npm-logout.1 +1 -1
  175. package/node_modules/npm/man/man1/npm-ls.1 +2 -2
  176. package/node_modules/npm/man/man1/npm-org.1 +1 -1
  177. package/node_modules/npm/man/man1/npm-outdated.1 +1 -1
  178. package/node_modules/npm/man/man1/npm-owner.1 +1 -1
  179. package/node_modules/npm/man/man1/npm-pack.1 +1 -1
  180. package/node_modules/npm/man/man1/npm-ping.1 +1 -1
  181. package/node_modules/npm/man/man1/npm-prefix.1 +1 -1
  182. package/node_modules/npm/man/man1/npm-profile.1 +1 -1
  183. package/node_modules/npm/man/man1/npm-prune.1 +1 -1
  184. package/node_modules/npm/man/man1/npm-publish.1 +1 -1
  185. package/node_modules/npm/man/man1/npm-rebuild.1 +1 -1
  186. package/node_modules/npm/man/man1/npm-repo.1 +1 -1
  187. package/node_modules/npm/man/man1/npm-restart.1 +1 -1
  188. package/node_modules/npm/man/man1/npm-root.1 +1 -1
  189. package/node_modules/npm/man/man1/npm-run-script.1 +1 -1
  190. package/node_modules/npm/man/man1/npm-search.1 +1 -1
  191. package/node_modules/npm/man/man1/npm-shrinkwrap.1 +1 -1
  192. package/node_modules/npm/man/man1/npm-star.1 +1 -1
  193. package/node_modules/npm/man/man1/npm-stars.1 +1 -1
  194. package/node_modules/npm/man/man1/npm-start.1 +1 -1
  195. package/node_modules/npm/man/man1/npm-stop.1 +1 -1
  196. package/node_modules/npm/man/man1/npm-team.1 +1 -1
  197. package/node_modules/npm/man/man1/npm-test.1 +1 -1
  198. package/node_modules/npm/man/man1/npm-token.1 +1 -1
  199. package/node_modules/npm/man/man1/npm-uninstall.1 +1 -1
  200. package/node_modules/npm/man/man1/npm-unpublish.1 +1 -1
  201. package/node_modules/npm/man/man1/npm-update.1 +1 -1
  202. package/node_modules/npm/man/man1/npm-version.1 +1 -1
  203. package/node_modules/npm/man/man1/npm-view.1 +1 -1
  204. package/node_modules/npm/man/man1/npm-whoami.1 +1 -1
  205. package/node_modules/npm/man/man1/npm.1 +2 -2
  206. package/node_modules/npm/man/man5/folders.5 +1 -1
  207. package/node_modules/npm/man/man5/install.5 +1 -1
  208. package/node_modules/npm/man/man5/npmrc.5 +1 -1
  209. package/node_modules/npm/man/man5/package-json.5 +1 -1
  210. package/node_modules/npm/man/man5/package-lock-json.5 +1 -1
  211. package/node_modules/npm/man/man5/package-locks.5 +1 -1
  212. package/node_modules/npm/man/man5/shrinkwrap-json.5 +1 -1
  213. package/node_modules/npm/man/man7/config.7 +1 -1
  214. package/node_modules/npm/man/man7/developers.7 +1 -1
  215. package/node_modules/npm/man/man7/disputes.7 +1 -1
  216. package/node_modules/npm/man/man7/orgs.7 +1 -1
  217. package/node_modules/npm/man/man7/registry.7 +1 -1
  218. package/node_modules/npm/man/man7/removal.7 +1 -1
  219. package/node_modules/npm/man/man7/scope.7 +1 -1
  220. package/node_modules/npm/man/man7/scripts.7 +1 -1
  221. package/node_modules/npm/man/man7/semver.7 +1 -1
  222. package/node_modules/npm/node_modules/json-schema/LICENSE +195 -0
  223. package/node_modules/npm/node_modules/json-schema/README.md +2 -4
  224. package/node_modules/npm/node_modules/json-schema/lib/links.js +1 -2
  225. package/node_modules/npm/node_modules/json-schema/lib/validate.js +7 -9
  226. package/node_modules/npm/node_modules/json-schema/package.json +16 -22
  227. package/node_modules/npm/node_modules/jsprim/CHANGES.md +4 -0
  228. package/node_modules/npm/node_modules/jsprim/CONTRIBUTING.md +19 -0
  229. package/node_modules/npm/node_modules/jsprim/package.json +16 -16
  230. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.pyc +0 -0
  231. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.pyc +0 -0
  232. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.pyc +0 -0
  233. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.pyc +0 -0
  234. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.pyc +0 -0
  235. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.pyc +0 -0
  236. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.pyc +0 -0
  237. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.pyc +0 -0
  238. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.pyc +0 -0
  239. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.pyc +0 -0
  240. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.pyc +0 -0
  241. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.pyc +0 -0
  242. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
  243. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.pyc +0 -0
  244. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
  245. package/node_modules/npm/node_modules/path-parse/index.js +17 -35
  246. package/node_modules/npm/node_modules/path-parse/package.json +14 -17
  247. package/node_modules/npm/node_modules/tar/lib/extract.js +4 -3
  248. package/node_modules/npm/node_modules/tar/lib/list.js +4 -3
  249. package/node_modules/npm/node_modules/tar/lib/mkdir.js +55 -48
  250. package/node_modules/npm/node_modules/tar/lib/normalize-windows-path.js +8 -0
  251. package/node_modules/npm/node_modules/tar/lib/pack.js +8 -18
  252. package/node_modules/npm/node_modules/tar/lib/path-reservations.js +149 -0
  253. package/node_modules/npm/node_modules/tar/lib/read-entry.js +4 -3
  254. package/node_modules/npm/node_modules/tar/lib/replace.js +2 -1
  255. package/node_modules/npm/node_modules/tar/lib/strip-absolute-path.js +24 -0
  256. package/node_modules/npm/node_modules/tar/lib/strip-trailing-slashes.js +24 -0
  257. package/node_modules/npm/node_modules/tar/lib/unpack.js +321 -96
  258. package/node_modules/npm/node_modules/tar/lib/write-entry.js +178 -82
  259. package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/LICENSE +21 -0
  260. package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/README.md +584 -0
  261. package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/index.d.ts +187 -0
  262. package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/index.js +65 -0
  263. package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/package.json +77 -0
  264. package/node_modules/npm/node_modules/tar/node_modules/yallist/LICENSE +15 -0
  265. package/node_modules/npm/node_modules/tar/node_modules/yallist/README.md +204 -0
  266. package/node_modules/npm/node_modules/tar/node_modules/yallist/iterator.js +8 -0
  267. package/node_modules/npm/node_modules/tar/node_modules/yallist/package.json +63 -0
  268. package/node_modules/npm/node_modules/tar/node_modules/yallist/yallist.js +426 -0
  269. package/node_modules/npm/node_modules/tar/package.json +29 -26
  270. package/node_modules/npm/package.json +6 -5
  271. package/node_modules/qs/.editorconfig +9 -0
  272. package/node_modules/qs/.eslintignore +2 -1
  273. package/node_modules/qs/.eslintrc +15 -1
  274. package/node_modules/qs/.github/FUNDING.yml +12 -0
  275. package/node_modules/qs/.nycrc +13 -0
  276. package/node_modules/qs/CHANGELOG.md +103 -0
  277. package/node_modules/qs/LICENSE.md +29 -0
  278. package/node_modules/qs/README.md +34 -0
  279. package/node_modules/qs/dist/qs.js +117 -67
  280. package/node_modules/qs/lib/formats.js +9 -4
  281. package/node_modules/qs/lib/parse.js +29 -14
  282. package/node_modules/qs/lib/stringify.js +55 -46
  283. package/node_modules/qs/lib/utils.js +23 -2
  284. package/node_modules/qs/package.json +31 -20
  285. package/node_modules/qs/test/parse.js +97 -1
  286. package/node_modules/qs/test/stringify.js +115 -1
  287. package/node_modules/qs/test/utils.js +1 -1
  288. package/node_modules/raw-body/HISTORY.md +14 -0
  289. package/node_modules/raw-body/README.md +3 -5
  290. package/node_modules/raw-body/package.json +21 -21
  291. package/node_modules/request/node_modules/qs/.editorconfig +14 -1
  292. package/node_modules/request/node_modules/qs/.eslintrc +21 -3
  293. package/node_modules/request/node_modules/qs/.github/FUNDING.yml +12 -0
  294. package/node_modules/request/node_modules/qs/.nycrc +13 -0
  295. package/node_modules/request/node_modules/qs/CHANGELOG.md +24 -0
  296. package/node_modules/request/node_modules/qs/LICENSE.md +29 -0
  297. package/node_modules/request/node_modules/qs/README.md +54 -19
  298. package/node_modules/request/node_modules/qs/bower.json +21 -0
  299. package/node_modules/request/node_modules/qs/component.json +15 -0
  300. package/node_modules/request/node_modules/qs/dist/qs.js +35 -25
  301. package/node_modules/request/node_modules/qs/lib/formats.js +1 -1
  302. package/node_modules/request/node_modules/qs/lib/parse.js +6 -5
  303. package/node_modules/request/node_modules/qs/lib/stringify.js +21 -14
  304. package/node_modules/request/node_modules/qs/lib/utils.js +7 -5
  305. package/node_modules/request/node_modules/qs/package.json +21 -19
  306. package/node_modules/request/node_modules/qs/test/parse.js +79 -4
  307. package/node_modules/request/node_modules/qs/test/stringify.js +45 -0
  308. package/node_modules/request/node_modules/qs/test/utils.js +31 -0
  309. package/node_modules/resolve/.eslintrc +34 -8
  310. package/node_modules/resolve/.github/FUNDING.yml +12 -0
  311. package/node_modules/resolve/appveyor.yml +4 -2
  312. package/node_modules/resolve/async.js +3 -0
  313. package/node_modules/resolve/bin/resolve +50 -0
  314. package/node_modules/resolve/lib/async.js +10 -1
  315. package/node_modules/resolve/lib/core.js +1 -2
  316. package/node_modules/resolve/lib/core.json +85 -16
  317. package/node_modules/resolve/lib/homedir.js +24 -0
  318. package/node_modules/resolve/lib/node-modules-paths.js +1 -1
  319. package/node_modules/resolve/lib/sync.js +14 -5
  320. package/node_modules/resolve/package.json +26 -15
  321. package/node_modules/resolve/readme.markdown +35 -13
  322. package/node_modules/resolve/sync.js +3 -0
  323. package/node_modules/resolve/test/home_paths.js +127 -0
  324. package/node_modules/resolve/test/home_paths_sync.js +114 -0
  325. package/node_modules/resolve/test/mock_sync.js +2 -4
  326. package/node_modules/resolve/test/node_path.js +1 -1
  327. package/node_modules/resolve/test/resolver/invalid_main/package.json +1 -1
  328. package/node_modules/resolve/test/resolver/malformed_package_json/index.js +0 -0
  329. package/node_modules/resolve/test/resolver/malformed_package_json/package.json +1 -0
  330. package/node_modules/resolve/test/resolver.js +99 -3
  331. package/node_modules/resolve/test/resolver_sync.js +310 -23
  332. package/node_modules/safe-buffer/index.js +3 -0
  333. package/node_modules/safe-buffer/package.json +21 -7
  334. package/node_modules/send/HISTORY.md +10 -0
  335. package/node_modules/send/README.md +4 -6
  336. package/node_modules/send/index.js +7 -3
  337. package/node_modules/send/node_modules/ms/index.js +3 -3
  338. package/node_modules/send/node_modules/ms/license.md +1 -1
  339. package/node_modules/send/node_modules/ms/package.json +8 -7
  340. package/node_modules/send/node_modules/ms/readme.md +1 -2
  341. package/node_modules/send/package.json +19 -19
  342. package/node_modules/serve-static/HISTORY.md +8 -0
  343. package/node_modules/serve-static/README.md +9 -11
  344. package/node_modules/serve-static/package.json +19 -19
  345. package/node_modules/setprototypeof/README.md +1 -1
  346. package/node_modules/setprototypeof/index.js +1 -1
  347. package/node_modules/setprototypeof/package.json +9 -7
  348. package/node_modules/shelljs/package.json +4 -4
  349. package/node_modules/shelljs/src/exec.js +19 -1
  350. package/node_modules/signal-exit/README.md +1 -1
  351. package/node_modules/signal-exit/index.js +167 -130
  352. package/node_modules/signal-exit/package.json +13 -13
  353. package/node_modules/sshpk/Jenkinsfile +86 -0
  354. package/node_modules/sshpk/lib/formats/putty.js +99 -4
  355. package/node_modules/sshpk/lib/private-key.js +1 -0
  356. package/node_modules/sshpk/package.json +4 -4
  357. package/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
  358. package/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
  359. package/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
  360. package/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
  361. package/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
  362. package/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
  363. package/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
  364. package/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
  365. package/node_modules/supports-preserve-symlinks-flag/package.json +74 -0
  366. package/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
  367. package/node_modules/toidentifier/HISTORY.md +9 -0
  368. package/node_modules/toidentifier/README.md +3 -3
  369. package/node_modules/toidentifier/index.js +2 -0
  370. package/node_modules/toidentifier/package.json +19 -15
  371. package/node_modules/underscore/amd/_collectNonEnumProps.js +1 -1
  372. package/node_modules/underscore/amd/_setup.js +1 -1
  373. package/node_modules/underscore/amd/sample.js +2 -2
  374. package/node_modules/underscore/cjs/_collectNonEnumProps.js +1 -1
  375. package/node_modules/underscore/cjs/_setup.js +1 -1
  376. package/node_modules/underscore/cjs/sample.js +2 -2
  377. package/node_modules/underscore/modules/_collectNonEnumProps.js +1 -1
  378. package/node_modules/underscore/modules/_setup.js +1 -1
  379. package/node_modules/underscore/modules/index.js +1 -1
  380. package/node_modules/underscore/modules/sample.js +2 -2
  381. package/node_modules/underscore/package.json +4 -4
  382. package/node_modules/underscore/underscore-esm-min.js +2 -2
  383. package/node_modules/underscore/underscore-esm-min.js.map +1 -1
  384. package/node_modules/underscore/underscore-esm.js +17 -17
  385. package/node_modules/underscore/underscore-esm.js.map +1 -1
  386. package/node_modules/underscore/underscore-min.js +2 -2
  387. package/node_modules/underscore/underscore-min.js.map +1 -1
  388. package/node_modules/underscore/underscore-node-f.cjs +17 -17
  389. package/node_modules/underscore/underscore-node-f.cjs.map +1 -1
  390. package/node_modules/underscore/underscore-node.cjs +1 -1
  391. package/node_modules/underscore/underscore-node.mjs +1 -1
  392. package/node_modules/underscore/underscore-umd-min.js +2 -2
  393. package/node_modules/underscore/underscore-umd-min.js.map +1 -1
  394. package/node_modules/underscore/underscore-umd.js +17 -17
  395. package/node_modules/underscore/underscore-umd.js.map +1 -1
  396. package/node_modules/underscore/underscore.js +17 -17
  397. package/package.json +9 -9
  398. package/node_modules/glob/changelog.md +0 -67
  399. package/node_modules/hosted-git-info/CHANGELOG.md +0 -151
  400. package/node_modules/hosted-git-info/LICENSE +0 -13
  401. package/node_modules/hosted-git-info/README.md +0 -133
  402. package/node_modules/hosted-git-info/git-host-info.js +0 -79
  403. package/node_modules/hosted-git-info/git-host.js +0 -156
  404. package/node_modules/hosted-git-info/index.js +0 -148
  405. package/node_modules/hosted-git-info/package.json +0 -44
  406. package/node_modules/is-callable/.github/main.workflow +0 -14
  407. package/node_modules/is-core-module/.eslintignore +0 -1
  408. package/node_modules/json-parse-better-errors/CHANGELOG.md +0 -46
  409. package/node_modules/json-parse-better-errors/LICENSE.md +0 -7
  410. package/node_modules/json-parse-better-errors/README.md +0 -46
  411. package/node_modules/json-parse-better-errors/index.js +0 -38
  412. package/node_modules/json-parse-better-errors/package.json +0 -49
  413. package/node_modules/json-schema/draft-00/hyper-schema +0 -68
  414. package/node_modules/json-schema/draft-00/json-ref +0 -26
  415. package/node_modules/json-schema/draft-00/links +0 -33
  416. package/node_modules/json-schema/draft-00/schema +0 -155
  417. package/node_modules/json-schema/draft-01/hyper-schema +0 -68
  418. package/node_modules/json-schema/draft-01/json-ref +0 -26
  419. package/node_modules/json-schema/draft-01/links +0 -33
  420. package/node_modules/json-schema/draft-01/schema +0 -155
  421. package/node_modules/json-schema/draft-02/hyper-schema +0 -68
  422. package/node_modules/json-schema/draft-02/json-ref +0 -26
  423. package/node_modules/json-schema/draft-02/links +0 -35
  424. package/node_modules/json-schema/draft-02/schema +0 -166
  425. package/node_modules/json-schema/draft-03/examples/address +0 -20
  426. package/node_modules/json-schema/draft-03/examples/calendar +0 -53
  427. package/node_modules/json-schema/draft-03/examples/card +0 -105
  428. package/node_modules/json-schema/draft-03/examples/geo +0 -8
  429. package/node_modules/json-schema/draft-03/examples/interfaces +0 -23
  430. package/node_modules/json-schema/draft-03/hyper-schema +0 -60
  431. package/node_modules/json-schema/draft-03/json-ref +0 -26
  432. package/node_modules/json-schema/draft-03/links +0 -35
  433. package/node_modules/json-schema/draft-03/schema +0 -174
  434. package/node_modules/json-schema/draft-04/hyper-schema +0 -60
  435. package/node_modules/json-schema/draft-04/links +0 -41
  436. package/node_modules/json-schema/draft-04/schema +0 -189
  437. package/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
  438. package/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
  439. package/node_modules/json-schema/test/tests.js +0 -95
  440. package/node_modules/normalize-package-data/AUTHORS +0 -4
  441. package/node_modules/normalize-package-data/LICENSE +0 -30
  442. package/node_modules/normalize-package-data/README.md +0 -106
  443. package/node_modules/normalize-package-data/lib/extract_description.js +0 -14
  444. package/node_modules/normalize-package-data/lib/fixer.js +0 -418
  445. package/node_modules/normalize-package-data/lib/make_warning.js +0 -23
  446. package/node_modules/normalize-package-data/lib/normalize.js +0 -39
  447. package/node_modules/normalize-package-data/lib/safe_format.js +0 -9
  448. package/node_modules/normalize-package-data/lib/typos.json +0 -25
  449. package/node_modules/normalize-package-data/lib/warning_messages.json +0 -30
  450. package/node_modules/normalize-package-data/package.json +0 -35
  451. package/node_modules/npm/node_modules/json-schema/draft-00/hyper-schema +0 -68
  452. package/node_modules/npm/node_modules/json-schema/draft-00/json-ref +0 -26
  453. package/node_modules/npm/node_modules/json-schema/draft-00/links +0 -33
  454. package/node_modules/npm/node_modules/json-schema/draft-00/schema +0 -155
  455. package/node_modules/npm/node_modules/json-schema/draft-01/hyper-schema +0 -68
  456. package/node_modules/npm/node_modules/json-schema/draft-01/json-ref +0 -26
  457. package/node_modules/npm/node_modules/json-schema/draft-01/links +0 -33
  458. package/node_modules/npm/node_modules/json-schema/draft-01/schema +0 -155
  459. package/node_modules/npm/node_modules/json-schema/draft-02/hyper-schema +0 -68
  460. package/node_modules/npm/node_modules/json-schema/draft-02/json-ref +0 -26
  461. package/node_modules/npm/node_modules/json-schema/draft-02/links +0 -35
  462. package/node_modules/npm/node_modules/json-schema/draft-02/schema +0 -166
  463. package/node_modules/npm/node_modules/json-schema/draft-03/examples/address +0 -20
  464. package/node_modules/npm/node_modules/json-schema/draft-03/examples/calendar +0 -53
  465. package/node_modules/npm/node_modules/json-schema/draft-03/examples/card +0 -105
  466. package/node_modules/npm/node_modules/json-schema/draft-03/examples/geo +0 -8
  467. package/node_modules/npm/node_modules/json-schema/draft-03/examples/interfaces +0 -23
  468. package/node_modules/npm/node_modules/json-schema/draft-03/hyper-schema +0 -60
  469. package/node_modules/npm/node_modules/json-schema/draft-03/json-ref +0 -26
  470. package/node_modules/npm/node_modules/json-schema/draft-03/links +0 -35
  471. package/node_modules/npm/node_modules/json-schema/draft-03/schema +0 -174
  472. package/node_modules/npm/node_modules/json-schema/draft-04/hyper-schema +0 -60
  473. package/node_modules/npm/node_modules/json-schema/draft-04/links +0 -41
  474. package/node_modules/npm/node_modules/json-schema/draft-04/schema +0 -189
  475. package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
  476. package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
  477. package/node_modules/npm/node_modules/json-schema/test/tests.js +0 -95
  478. package/node_modules/npm/node_modules/path-parse/.travis.yml +0 -9
  479. package/node_modules/npm/node_modules/path-parse/test.js +0 -77
  480. package/node_modules/qs/LICENSE +0 -28
  481. package/node_modules/qs/test/.eslintrc +0 -17
  482. package/node_modules/qs/test/index.js +0 -7
  483. package/node_modules/request/node_modules/qs/.eslintignore +0 -1
  484. package/node_modules/request/node_modules/qs/LICENSE +0 -28
  485. package/node_modules/request/node_modules/qs/test/.eslintrc +0 -15
  486. package/node_modules/resolve/.eslintignore +0 -1
  487. package/node_modules/resolve/test/.eslintrc +0 -5
  488. package/node_modules/signal-exit/CHANGELOG.md +0 -35
  489. package/node_modules/spdx-correct/LICENSE +0 -202
  490. package/node_modules/spdx-correct/README.md +0 -14
  491. package/node_modules/spdx-correct/index.js +0 -364
  492. package/node_modules/spdx-correct/package.json +0 -43
  493. package/node_modules/spdx-exceptions/README.md +0 -36
  494. package/node_modules/spdx-exceptions/index.json +0 -40
  495. package/node_modules/spdx-exceptions/package.json +0 -21
  496. package/node_modules/spdx-expression-parse/AUTHORS +0 -4
  497. package/node_modules/spdx-expression-parse/LICENSE +0 -22
  498. package/node_modules/spdx-expression-parse/README.md +0 -91
  499. package/node_modules/spdx-expression-parse/index.js +0 -8
  500. package/node_modules/spdx-expression-parse/package.json +0 -43
  501. package/node_modules/spdx-expression-parse/parse.js +0 -138
  502. package/node_modules/spdx-expression-parse/scan.js +0 -131
  503. package/node_modules/spdx-license-ids/README.md +0 -52
  504. package/node_modules/spdx-license-ids/deprecated.json +0 -26
  505. package/node_modules/spdx-license-ids/index.json +0 -432
  506. package/node_modules/spdx-license-ids/package.json +0 -44
  507. package/node_modules/sshpk/.npmignore +0 -9
  508. package/node_modules/validate-npm-package-license/LICENSE +0 -202
  509. package/node_modules/validate-npm-package-license/README.md +0 -113
  510. package/node_modules/validate-npm-package-license/index.js +0 -86
  511. package/node_modules/validate-npm-package-license/package.json +0 -32
@@ -11,7 +11,7 @@ module.exports = {
11
11
  return replace.call(value, percentTwenties, '+');
12
12
  },
13
13
  RFC3986: function (value) {
14
- return value;
14
+ return String(value);
15
15
  }
16
16
  },
17
17
  RFC1738: 'RFC1738',
@@ -87,14 +87,15 @@ var parseObject = function (chain, val, options) {
87
87
  var obj;
88
88
  var root = chain[i];
89
89
 
90
- if (root === '[]') {
91
- obj = [];
92
- obj = obj.concat(leaf);
90
+ if (root === '[]' && options.parseArrays) {
91
+ obj = [].concat(leaf);
93
92
  } else {
94
93
  obj = options.plainObjects ? Object.create(null) : {};
95
94
  var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
96
95
  var index = parseInt(cleanRoot, 10);
97
- if (
96
+ if (!options.parseArrays && cleanRoot === '') {
97
+ obj = { 0: leaf };
98
+ } else if (
98
99
  !isNaN(index)
99
100
  && root !== cleanRoot
100
101
  && String(index) === cleanRoot
@@ -103,7 +104,7 @@ var parseObject = function (chain, val, options) {
103
104
  ) {
104
105
  obj = [];
105
106
  obj[index] = leaf;
106
- } else {
107
+ } else if (cleanRoot !== '__proto__') {
107
108
  obj[cleanRoot] = leaf;
108
109
  }
109
110
  }
@@ -214,17 +215,23 @@ var utils = require('./utils');
214
215
  var formats = require('./formats');
215
216
 
216
217
  var arrayPrefixGenerators = {
217
- brackets: function brackets(prefix) { // eslint-disable-line func-name-matching
218
+ brackets: function brackets(prefix) {
218
219
  return prefix + '[]';
219
220
  },
220
- indices: function indices(prefix, key) { // eslint-disable-line func-name-matching
221
+ indices: function indices(prefix, key) {
221
222
  return prefix + '[' + key + ']';
222
223
  },
223
- repeat: function repeat(prefix) { // eslint-disable-line func-name-matching
224
+ repeat: function repeat(prefix) {
224
225
  return prefix;
225
226
  }
226
227
  };
227
228
 
229
+ var isArray = Array.isArray;
230
+ var push = Array.prototype.push;
231
+ var pushToArray = function (arr, valueOrArray) {
232
+ push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
233
+ };
234
+
228
235
  var toISO = Date.prototype.toISOString;
229
236
 
230
237
  var defaults = {
@@ -232,14 +239,14 @@ var defaults = {
232
239
  encode: true,
233
240
  encoder: utils.encode,
234
241
  encodeValuesOnly: false,
235
- serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching
242
+ serializeDate: function serializeDate(date) {
236
243
  return toISO.call(date);
237
244
  },
238
245
  skipNulls: false,
239
246
  strictNullHandling: false
240
247
  };
241
248
 
242
- var stringify = function stringify( // eslint-disable-line func-name-matching
249
+ var stringify = function stringify(
243
250
  object,
244
251
  prefix,
245
252
  generateArrayPrefix,
@@ -258,7 +265,9 @@ var stringify = function stringify( // eslint-disable-line func-name-matching
258
265
  obj = filter(prefix, obj);
259
266
  } else if (obj instanceof Date) {
260
267
  obj = serializeDate(obj);
261
- } else if (obj === null) {
268
+ }
269
+
270
+ if (obj === null) {
262
271
  if (strictNullHandling) {
263
272
  return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder) : prefix;
264
273
  }
@@ -281,7 +290,7 @@ var stringify = function stringify( // eslint-disable-line func-name-matching
281
290
  }
282
291
 
283
292
  var objKeys;
284
- if (Array.isArray(filter)) {
293
+ if (isArray(filter)) {
285
294
  objKeys = filter;
286
295
  } else {
287
296
  var keys = Object.keys(obj);
@@ -295,8 +304,8 @@ var stringify = function stringify( // eslint-disable-line func-name-matching
295
304
  continue;
296
305
  }
297
306
 
298
- if (Array.isArray(obj)) {
299
- values = values.concat(stringify(
307
+ if (isArray(obj)) {
308
+ pushToArray(values, stringify(
300
309
  obj[key],
301
310
  generateArrayPrefix(prefix, key),
302
311
  generateArrayPrefix,
@@ -311,7 +320,7 @@ var stringify = function stringify( // eslint-disable-line func-name-matching
311
320
  encodeValuesOnly
312
321
  ));
313
322
  } else {
314
- values = values.concat(stringify(
323
+ pushToArray(values, stringify(
315
324
  obj[key],
316
325
  prefix + (allowDots ? '.' + key : '[' + key + ']'),
317
326
  generateArrayPrefix,
@@ -335,7 +344,7 @@ module.exports = function (object, opts) {
335
344
  var obj = object;
336
345
  var options = opts ? utils.assign({}, opts) : {};
337
346
 
338
- if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') {
347
+ if (options.encoder !== null && typeof options.encoder !== 'undefined' && typeof options.encoder !== 'function') {
339
348
  throw new TypeError('Encoder has to be a function.');
340
349
  }
341
350
 
@@ -360,7 +369,7 @@ module.exports = function (object, opts) {
360
369
  if (typeof options.filter === 'function') {
361
370
  filter = options.filter;
362
371
  obj = filter('', obj);
363
- } else if (Array.isArray(options.filter)) {
372
+ } else if (isArray(options.filter)) {
364
373
  filter = options.filter;
365
374
  objKeys = filter;
366
375
  }
@@ -396,8 +405,7 @@ module.exports = function (object, opts) {
396
405
  if (skipNulls && obj[key] === null) {
397
406
  continue;
398
407
  }
399
-
400
- keys = keys.concat(stringify(
408
+ pushToArray(keys, stringify(
401
409
  obj[key],
402
410
  key,
403
411
  generateArrayPrefix,
@@ -475,8 +483,8 @@ var merge = function merge(target, source, options) {
475
483
  if (typeof source !== 'object') {
476
484
  if (Array.isArray(target)) {
477
485
  target.push(source);
478
- } else if (typeof target === 'object') {
479
- if (options.plainObjects || options.allowPrototypes || !has.call(Object.prototype, source)) {
486
+ } else if (target && typeof target === 'object') {
487
+ if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
480
488
  target[source] = true;
481
489
  }
482
490
  } else {
@@ -486,7 +494,7 @@ var merge = function merge(target, source, options) {
486
494
  return target;
487
495
  }
488
496
 
489
- if (typeof target !== 'object') {
497
+ if (!target || typeof target !== 'object') {
490
498
  return [target].concat(source);
491
499
  }
492
500
 
@@ -498,8 +506,9 @@ var merge = function merge(target, source, options) {
498
506
  if (Array.isArray(target) && Array.isArray(source)) {
499
507
  source.forEach(function (item, i) {
500
508
  if (has.call(target, i)) {
501
- if (target[i] && typeof target[i] === 'object') {
502
- target[i] = merge(target[i], item, options);
509
+ var targetItem = target[i];
510
+ if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
511
+ target[i] = merge(targetItem, item, options);
503
512
  } else {
504
513
  target.push(item);
505
514
  }
@@ -580,6 +589,7 @@ var encode = function encode(str) {
580
589
 
581
590
  i += 1;
582
591
  c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
592
+ /* eslint operator-linebreak: [2, "before"] */
583
593
  out += hexTable[0xF0 | (c >> 18)]
584
594
  + hexTable[0x80 | ((c >> 12) & 0x3F)]
585
595
  + hexTable[0x80 | ((c >> 6) & 0x3F)]
@@ -10,7 +10,7 @@ module.exports = {
10
10
  return replace.call(value, percentTwenties, '+');
11
11
  },
12
12
  RFC3986: function (value) {
13
- return value;
13
+ return String(value);
14
14
  }
15
15
  },
16
16
  RFC1738: 'RFC1738',
@@ -53,14 +53,15 @@ var parseObject = function (chain, val, options) {
53
53
  var obj;
54
54
  var root = chain[i];
55
55
 
56
- if (root === '[]') {
57
- obj = [];
58
- obj = obj.concat(leaf);
56
+ if (root === '[]' && options.parseArrays) {
57
+ obj = [].concat(leaf);
59
58
  } else {
60
59
  obj = options.plainObjects ? Object.create(null) : {};
61
60
  var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
62
61
  var index = parseInt(cleanRoot, 10);
63
- if (
62
+ if (!options.parseArrays && cleanRoot === '') {
63
+ obj = { 0: leaf };
64
+ } else if (
64
65
  !isNaN(index)
65
66
  && root !== cleanRoot
66
67
  && String(index) === cleanRoot
@@ -69,7 +70,7 @@ var parseObject = function (chain, val, options) {
69
70
  ) {
70
71
  obj = [];
71
72
  obj[index] = leaf;
72
- } else {
73
+ } else if (cleanRoot !== '__proto__') {
73
74
  obj[cleanRoot] = leaf;
74
75
  }
75
76
  }
@@ -4,17 +4,23 @@ var utils = require('./utils');
4
4
  var formats = require('./formats');
5
5
 
6
6
  var arrayPrefixGenerators = {
7
- brackets: function brackets(prefix) { // eslint-disable-line func-name-matching
7
+ brackets: function brackets(prefix) {
8
8
  return prefix + '[]';
9
9
  },
10
- indices: function indices(prefix, key) { // eslint-disable-line func-name-matching
10
+ indices: function indices(prefix, key) {
11
11
  return prefix + '[' + key + ']';
12
12
  },
13
- repeat: function repeat(prefix) { // eslint-disable-line func-name-matching
13
+ repeat: function repeat(prefix) {
14
14
  return prefix;
15
15
  }
16
16
  };
17
17
 
18
+ var isArray = Array.isArray;
19
+ var push = Array.prototype.push;
20
+ var pushToArray = function (arr, valueOrArray) {
21
+ push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
22
+ };
23
+
18
24
  var toISO = Date.prototype.toISOString;
19
25
 
20
26
  var defaults = {
@@ -22,14 +28,14 @@ var defaults = {
22
28
  encode: true,
23
29
  encoder: utils.encode,
24
30
  encodeValuesOnly: false,
25
- serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching
31
+ serializeDate: function serializeDate(date) {
26
32
  return toISO.call(date);
27
33
  },
28
34
  skipNulls: false,
29
35
  strictNullHandling: false
30
36
  };
31
37
 
32
- var stringify = function stringify( // eslint-disable-line func-name-matching
38
+ var stringify = function stringify(
33
39
  object,
34
40
  prefix,
35
41
  generateArrayPrefix,
@@ -48,7 +54,9 @@ var stringify = function stringify( // eslint-disable-line func-name-matching
48
54
  obj = filter(prefix, obj);
49
55
  } else if (obj instanceof Date) {
50
56
  obj = serializeDate(obj);
51
- } else if (obj === null) {
57
+ }
58
+
59
+ if (obj === null) {
52
60
  if (strictNullHandling) {
53
61
  return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder) : prefix;
54
62
  }
@@ -71,7 +79,7 @@ var stringify = function stringify( // eslint-disable-line func-name-matching
71
79
  }
72
80
 
73
81
  var objKeys;
74
- if (Array.isArray(filter)) {
82
+ if (isArray(filter)) {
75
83
  objKeys = filter;
76
84
  } else {
77
85
  var keys = Object.keys(obj);
@@ -85,8 +93,8 @@ var stringify = function stringify( // eslint-disable-line func-name-matching
85
93
  continue;
86
94
  }
87
95
 
88
- if (Array.isArray(obj)) {
89
- values = values.concat(stringify(
96
+ if (isArray(obj)) {
97
+ pushToArray(values, stringify(
90
98
  obj[key],
91
99
  generateArrayPrefix(prefix, key),
92
100
  generateArrayPrefix,
@@ -101,7 +109,7 @@ var stringify = function stringify( // eslint-disable-line func-name-matching
101
109
  encodeValuesOnly
102
110
  ));
103
111
  } else {
104
- values = values.concat(stringify(
112
+ pushToArray(values, stringify(
105
113
  obj[key],
106
114
  prefix + (allowDots ? '.' + key : '[' + key + ']'),
107
115
  generateArrayPrefix,
@@ -125,7 +133,7 @@ module.exports = function (object, opts) {
125
133
  var obj = object;
126
134
  var options = opts ? utils.assign({}, opts) : {};
127
135
 
128
- if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') {
136
+ if (options.encoder !== null && typeof options.encoder !== 'undefined' && typeof options.encoder !== 'function') {
129
137
  throw new TypeError('Encoder has to be a function.');
130
138
  }
131
139
 
@@ -150,7 +158,7 @@ module.exports = function (object, opts) {
150
158
  if (typeof options.filter === 'function') {
151
159
  filter = options.filter;
152
160
  obj = filter('', obj);
153
- } else if (Array.isArray(options.filter)) {
161
+ } else if (isArray(options.filter)) {
154
162
  filter = options.filter;
155
163
  objKeys = filter;
156
164
  }
@@ -186,8 +194,7 @@ module.exports = function (object, opts) {
186
194
  if (skipNulls && obj[key] === null) {
187
195
  continue;
188
196
  }
189
-
190
- keys = keys.concat(stringify(
197
+ pushToArray(keys, stringify(
191
198
  obj[key],
192
199
  key,
193
200
  generateArrayPrefix,
@@ -53,8 +53,8 @@ var merge = function merge(target, source, options) {
53
53
  if (typeof source !== 'object') {
54
54
  if (Array.isArray(target)) {
55
55
  target.push(source);
56
- } else if (typeof target === 'object') {
57
- if (options.plainObjects || options.allowPrototypes || !has.call(Object.prototype, source)) {
56
+ } else if (target && typeof target === 'object') {
57
+ if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
58
58
  target[source] = true;
59
59
  }
60
60
  } else {
@@ -64,7 +64,7 @@ var merge = function merge(target, source, options) {
64
64
  return target;
65
65
  }
66
66
 
67
- if (typeof target !== 'object') {
67
+ if (!target || typeof target !== 'object') {
68
68
  return [target].concat(source);
69
69
  }
70
70
 
@@ -76,8 +76,9 @@ var merge = function merge(target, source, options) {
76
76
  if (Array.isArray(target) && Array.isArray(source)) {
77
77
  source.forEach(function (item, i) {
78
78
  if (has.call(target, i)) {
79
- if (target[i] && typeof target[i] === 'object') {
80
- target[i] = merge(target[i], item, options);
79
+ var targetItem = target[i];
80
+ if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
81
+ target[i] = merge(targetItem, item, options);
81
82
  } else {
82
83
  target.push(item);
83
84
  }
@@ -158,6 +159,7 @@ var encode = function encode(str) {
158
159
 
159
160
  i += 1;
160
161
  c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
162
+ /* eslint operator-linebreak: [2, "before"] */
161
163
  out += hexTable[0xF0 | (c >> 18)]
162
164
  + hexTable[0x80 | ((c >> 12) & 0x3F)]
163
165
  + hexTable[0x80 | ((c >> 6) & 0x3F)]
@@ -2,7 +2,7 @@
2
2
  "name": "qs",
3
3
  "description": "A querystring parser that supports nesting and arrays, with a depth limit",
4
4
  "homepage": "https://github.com/ljharb/qs",
5
- "version": "6.5.2",
5
+ "version": "6.5.3",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/ljharb/qs.git"
@@ -22,35 +22,37 @@
22
22
  "engines": {
23
23
  "node": ">=0.6"
24
24
  },
25
- "dependencies": {},
26
25
  "devDependencies": {
27
- "@ljharb/eslint-config": "^12.2.1",
28
- "browserify": "^16.2.0",
29
- "covert": "^1.1.0",
30
- "editorconfig-tools": "^0.1.1",
31
- "eslint": "^4.19.1",
26
+ "@ljharb/eslint-config": "^20.1.0",
27
+ "aud": "^1.1.5",
28
+ "browserify": "^16.5.2",
29
+ "eclint": "^2.8.1",
30
+ "eslint": "^8.6.0",
32
31
  "evalmd": "^0.0.17",
33
- "iconv-lite": "^0.4.21",
32
+ "iconv-lite": "^0.4.24",
33
+ "in-publish": "^2.0.1",
34
34
  "mkdirp": "^0.5.1",
35
+ "nyc": "^10.3.2",
35
36
  "qs-iconv": "^1.0.4",
36
- "safe-publish-latest": "^1.1.1",
37
+ "safe-publish-latest": "^2.0.0",
37
38
  "safer-buffer": "^2.1.2",
38
- "tape": "^4.9.0"
39
+ "tape": "^5.4.0"
39
40
  },
40
41
  "scripts": {
41
- "prepublish": "safe-publish-latest && npm run dist",
42
+ "prepublishOnly": "safe-publish-latest && npm run dist",
43
+ "prepublish": "not-in-publish || npm run prepublishOnly",
42
44
  "pretest": "npm run --silent readme && npm run --silent lint",
43
- "test": "npm run --silent coverage",
44
- "tests-only": "node test",
45
+ "test": "npm run --silent tests-only",
46
+ "tests-only": "nyc tape 'test/**/*.js'",
47
+ "posttest": "aud --production",
45
48
  "readme": "evalmd README.md",
46
- "prelint": "editorconfig-tools check * lib/* test/*",
47
- "lint": "eslint lib/*.js test/*.js",
48
- "coverage": "covert test",
49
+ "postlint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
50
+ "lint": "eslint --ext=js,mjs .",
49
51
  "dist": "mkdirp dist && browserify --standalone Qs lib/index.js > dist/qs.js"
50
52
  },
51
53
  "license": "BSD-3-Clause"
52
54
 
53
- ,"_resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz"
54
- ,"_integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA=="
55
- ,"_from": "qs@6.5.2"
55
+ ,"_resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz"
56
+ ,"_integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA=="
57
+ ,"_from": "qs@6.5.3"
56
58
  }
@@ -237,6 +237,14 @@ test('parse()', function (t) {
237
237
  st.end();
238
238
  });
239
239
 
240
+ t.test('parses jquery-param strings', function (st) {
241
+ // readable = 'filter[0][]=int1&filter[0][]==&filter[0][]=77&filter[]=and&filter[2][]=int2&filter[2][]==&filter[2][]=8'
242
+ var encoded = 'filter%5B0%5D%5B%5D=int1&filter%5B0%5D%5B%5D=%3D&filter%5B0%5D%5B%5D=77&filter%5B%5D=and&filter%5B2%5D%5B%5D=int2&filter%5B2%5D%5B%5D=%3D&filter%5B2%5D%5B%5D=8';
243
+ var expected = { filter: [['int1', '=', '77'], 'and', ['int2', '=', '8']] };
244
+ st.deepEqual(qs.parse(encoded), expected);
245
+ st.end();
246
+ });
247
+
240
248
  t.test('continues parsing when no parent is found', function (st) {
241
249
  st.deepEqual(qs.parse('[]=&a=b'), { 0: '', a: 'b' });
242
250
  st.deepEqual(qs.parse('[]&a=b', { strictNullHandling: true }), { 0: null, a: 'b' });
@@ -257,7 +265,7 @@ test('parse()', function (t) {
257
265
  st.end();
258
266
  });
259
267
 
260
- t.test('should not throw when a native prototype has an enumerable property', { parallel: false }, function (st) {
268
+ t.test('should not throw when a native prototype has an enumerable property', function (st) {
261
269
  Object.prototype.crash = '';
262
270
  Array.prototype.crash = '';
263
271
  st.doesNotThrow(qs.parse.bind(null, 'a=b'));
@@ -302,7 +310,14 @@ test('parse()', function (t) {
302
310
  });
303
311
 
304
312
  t.test('allows disabling array parsing', function (st) {
305
- st.deepEqual(qs.parse('a[0]=b&a[1]=c', { parseArrays: false }), { a: { 0: 'b', 1: 'c' } });
313
+ var indices = qs.parse('a[0]=b&a[1]=c', { parseArrays: false });
314
+ st.deepEqual(indices, { a: { 0: 'b', 1: 'c' } });
315
+ st.equal(Array.isArray(indices.a), false, 'parseArrays:false, indices case is not an array');
316
+
317
+ var emptyBrackets = qs.parse('a[]=b', { parseArrays: false });
318
+ st.deepEqual(emptyBrackets, { a: { 0: 'b' } });
319
+ st.equal(Array.isArray(emptyBrackets.a), false, 'parseArrays:false, empty brackets case is not an array');
320
+
306
321
  st.end();
307
322
  });
308
323
 
@@ -508,13 +523,73 @@ test('parse()', function (t) {
508
523
 
509
524
  st.deepEqual(
510
525
  qs.parse('a[b]=c&a=toString', { plainObjects: true }),
511
- { a: { b: 'c', toString: true } },
526
+ { __proto__: null, a: { __proto__: null, b: 'c', toString: true } },
512
527
  'can overwrite prototype with plainObjects true'
513
528
  );
514
529
 
515
530
  st.end();
516
531
  });
517
532
 
533
+ t.test('dunder proto is ignored', function (st) {
534
+ var payload = 'categories[__proto__]=login&categories[__proto__]&categories[length]=42';
535
+ var result = qs.parse(payload, { allowPrototypes: true });
536
+
537
+ st.deepEqual(
538
+ result,
539
+ {
540
+ categories: {
541
+ length: '42'
542
+ }
543
+ },
544
+ 'silent [[Prototype]] payload'
545
+ );
546
+
547
+ var plainResult = qs.parse(payload, { allowPrototypes: true, plainObjects: true });
548
+
549
+ st.deepEqual(
550
+ plainResult,
551
+ {
552
+ __proto__: null,
553
+ categories: {
554
+ __proto__: null,
555
+ length: '42'
556
+ }
557
+ },
558
+ 'silent [[Prototype]] payload: plain objects'
559
+ );
560
+
561
+ var query = qs.parse('categories[__proto__]=cats&categories[__proto__]=dogs&categories[some][json]=toInject', { allowPrototypes: true });
562
+
563
+ st.notOk(Array.isArray(query.categories), 'is not an array');
564
+ st.notOk(query.categories instanceof Array, 'is not instanceof an array');
565
+ st.deepEqual(query.categories, { some: { json: 'toInject' } });
566
+ st.equal(JSON.stringify(query.categories), '{"some":{"json":"toInject"}}', 'stringifies as a non-array');
567
+
568
+ st.deepEqual(
569
+ qs.parse('foo[__proto__][hidden]=value&foo[bar]=stuffs', { allowPrototypes: true }),
570
+ {
571
+ foo: {
572
+ bar: 'stuffs'
573
+ }
574
+ },
575
+ 'hidden values'
576
+ );
577
+
578
+ st.deepEqual(
579
+ qs.parse('foo[__proto__][hidden]=value&foo[bar]=stuffs', { allowPrototypes: true, plainObjects: true }),
580
+ {
581
+ __proto__: null,
582
+ foo: {
583
+ __proto__: null,
584
+ bar: 'stuffs'
585
+ }
586
+ },
587
+ 'hidden values: plain objects'
588
+ );
589
+
590
+ st.end();
591
+ });
592
+
518
593
  t.test('can return null objects', { skip: !Object.create }, function (st) {
519
594
  var expected = Object.create(null);
520
595
  expected.a = Object.create(null);
@@ -540,7 +615,7 @@ test('parse()', function (t) {
540
615
  result.push(parseInt(parts[1], 16));
541
616
  parts = reg.exec(str);
542
617
  }
543
- return iconv.decode(SaferBuffer.from(result), 'shift_jis').toString();
618
+ return String(iconv.decode(SaferBuffer.from(result), 'shift_jis'));
544
619
  }
545
620
  }), { 県: '大阪府' });
546
621
  st.end();
@@ -19,6 +19,15 @@ test('stringify()', function (t) {
19
19
  st.end();
20
20
  });
21
21
 
22
+ t.test('stringifies falsy values', function (st) {
23
+ st.equal(qs.stringify(undefined), '');
24
+ st.equal(qs.stringify(null), '');
25
+ st.equal(qs.stringify(null, { strictNullHandling: true }), '');
26
+ st.equal(qs.stringify(false), '');
27
+ st.equal(qs.stringify(0), '');
28
+ st.end();
29
+ });
30
+
22
31
  t.test('adds query prefix', function (st) {
23
32
  st.equal(qs.stringify({ a: 'b' }, { addQueryPrefix: true }), '?a=b');
24
33
  st.end();
@@ -29,6 +38,13 @@ test('stringify()', function (t) {
29
38
  st.end();
30
39
  });
31
40
 
41
+ t.test('stringifies nested falsy values', function (st) {
42
+ st.equal(qs.stringify({ a: { b: { c: null } } }), 'a%5Bb%5D%5Bc%5D=');
43
+ st.equal(qs.stringify({ a: { b: { c: null } } }, { strictNullHandling: true }), 'a%5Bb%5D%5Bc%5D');
44
+ st.equal(qs.stringify({ a: { b: { c: false } } }), 'a%5Bb%5D%5Bc%5D=false');
45
+ st.end();
46
+ });
47
+
32
48
  t.test('stringifies a nested object', function (st) {
33
49
  st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
34
50
  st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }), 'a%5Bb%5D%5Bc%5D%5Bd%5D=e');
@@ -490,6 +506,12 @@ test('stringify()', function (t) {
490
506
  return String.fromCharCode(buffer.readUInt8(0) + 97);
491
507
  }
492
508
  }), 'a=b');
509
+
510
+ st.equal(qs.stringify({ a: SaferBuffer.from('a b') }, {
511
+ encoder: function (buffer) {
512
+ return buffer;
513
+ }
514
+ }), 'a=a b');
493
515
  st.end();
494
516
  });
495
517
 
@@ -530,17 +552,20 @@ test('stringify()', function (t) {
530
552
  t.test('RFC 1738 spaces serialization', function (st) {
531
553
  st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC1738 }), 'a=b+c');
532
554
  st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC1738 }), 'a+b=c+d');
555
+ st.equal(qs.stringify({ 'a b': SaferBuffer.from('a b') }, { format: qs.formats.RFC1738 }), 'a+b=a+b');
533
556
  st.end();
534
557
  });
535
558
 
536
559
  t.test('RFC 3986 spaces serialization', function (st) {
537
560
  st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC3986 }), 'a=b%20c');
538
561
  st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC3986 }), 'a%20b=c%20d');
562
+ st.equal(qs.stringify({ 'a b': SaferBuffer.from('a b') }, { format: qs.formats.RFC3986 }), 'a%20b=a%20b');
539
563
  st.end();
540
564
  });
541
565
 
542
566
  t.test('Backward compatibility to RFC 3986', function (st) {
543
567
  st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c');
568
+ st.equal(qs.stringify({ 'a b': SaferBuffer.from('a b') }), 'a%20b=a%20b');
544
569
  st.end();
545
570
  });
546
571
 
@@ -593,5 +618,25 @@ test('stringify()', function (t) {
593
618
  st.end();
594
619
  });
595
620
 
621
+ t.test('strictNullHandling works with custom filter', function (st) {
622
+ var filter = function (prefix, value) {
623
+ return value;
624
+ };
625
+
626
+ var options = { strictNullHandling: true, filter: filter };
627
+ st.equal(qs.stringify({ key: null }, options), 'key');
628
+ st.end();
629
+ });
630
+
631
+ t.test('strictNullHandling works with null serializeDate', function (st) {
632
+ var serializeDate = function () {
633
+ return null;
634
+ };
635
+ var options = { strictNullHandling: true, serializeDate: serializeDate };
636
+ var date = new Date();
637
+ st.equal(qs.stringify({ key: date }, options), 'key');
638
+ st.end();
639
+ });
640
+
596
641
  t.end();
597
642
  });