step-node-agent 3.18.3 → 3.18.5

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 (757) hide show
  1. package/node_modules/abbrev/LICENSE +46 -0
  2. package/node_modules/abbrev/README.md +23 -0
  3. package/node_modules/abbrev/abbrev.js +61 -0
  4. package/node_modules/abbrev/package.json +21 -0
  5. package/node_modules/ansi-align/CHANGELOG.md +36 -0
  6. package/node_modules/ansi-align/LICENSE +13 -0
  7. package/node_modules/ansi-align/README.md +79 -0
  8. package/node_modules/ansi-align/index.js +61 -0
  9. package/node_modules/ansi-align/package.json +43 -0
  10. package/node_modules/ansi-regex/index.js +10 -0
  11. package/node_modules/ansi-regex/license +9 -0
  12. package/node_modules/ansi-regex/package.json +53 -0
  13. package/node_modules/ansi-regex/readme.md +46 -0
  14. package/node_modules/ansi-styles/index.js +165 -0
  15. package/node_modules/ansi-styles/license +9 -0
  16. package/node_modules/ansi-styles/package.json +56 -0
  17. package/node_modules/ansi-styles/readme.md +147 -0
  18. package/node_modules/boxen/index.js +138 -0
  19. package/node_modules/boxen/license +9 -0
  20. package/node_modules/boxen/package.json +47 -0
  21. package/node_modules/boxen/readme.md +175 -0
  22. package/node_modules/camelcase/index.js +64 -0
  23. package/node_modules/{send/node_modules/http-errors/LICENSE → camelcase/license} +1 -3
  24. package/node_modules/camelcase/package.json +42 -0
  25. package/node_modules/camelcase/readme.md +57 -0
  26. package/node_modules/capture-stack-trace/index.js +18 -0
  27. package/node_modules/{express/node_modules/http-errors/LICENSE → capture-stack-trace/license} +1 -3
  28. package/node_modules/capture-stack-trace/package.json +29 -0
  29. package/node_modules/capture-stack-trace/readme.md +36 -0
  30. package/node_modules/chalk/index.js +228 -0
  31. package/node_modules/chalk/index.js.flow +93 -0
  32. package/node_modules/chalk/license +9 -0
  33. package/node_modules/chalk/package.json +71 -0
  34. package/node_modules/chalk/readme.md +314 -0
  35. package/node_modules/chalk/templates.js +128 -0
  36. package/node_modules/chalk/types/index.d.ts +97 -0
  37. package/node_modules/ci-info/CHANGELOG.md +62 -0
  38. package/node_modules/ci-info/LICENSE +21 -0
  39. package/node_modules/ci-info/README.md +107 -0
  40. package/node_modules/ci-info/index.js +66 -0
  41. package/node_modules/ci-info/package.json +36 -0
  42. package/node_modules/ci-info/vendors.json +152 -0
  43. package/node_modules/cli-boxes/boxes.json +50 -0
  44. package/node_modules/cli-boxes/index.js +2 -0
  45. package/node_modules/{http-errors/node_modules/statuses/LICENSE → cli-boxes/license} +1 -3
  46. package/node_modules/cli-boxes/package.json +39 -0
  47. package/node_modules/cli-boxes/readme.md +94 -0
  48. package/node_modules/color-convert/CHANGELOG.md +54 -0
  49. package/node_modules/{send/node_modules/depd → color-convert}/LICENSE +9 -10
  50. package/node_modules/color-convert/README.md +68 -0
  51. package/node_modules/color-convert/conversions.js +868 -0
  52. package/node_modules/color-convert/index.js +78 -0
  53. package/node_modules/color-convert/package.json +46 -0
  54. package/node_modules/color-convert/route.js +97 -0
  55. package/node_modules/color-name/.eslintrc.json +43 -0
  56. package/node_modules/color-name/.npmignore +107 -0
  57. package/node_modules/color-name/LICENSE +8 -0
  58. package/node_modules/color-name/README.md +11 -0
  59. package/node_modules/color-name/index.js +152 -0
  60. package/node_modules/color-name/package.json +25 -0
  61. package/node_modules/color-name/test.js +7 -0
  62. package/node_modules/configstore/index.js +106 -0
  63. package/node_modules/configstore/license +9 -0
  64. package/node_modules/configstore/package.json +47 -0
  65. package/node_modules/configstore/readme.md +116 -0
  66. package/node_modules/cookie/HISTORY.md +8 -0
  67. package/node_modules/cookie/README.md +50 -34
  68. package/node_modules/cookie/SECURITY.md +25 -0
  69. package/node_modules/cookie/index.js +83 -15
  70. package/node_modules/cookie/package.json +6 -4
  71. package/node_modules/core-util-is/LICENSE +19 -0
  72. package/node_modules/core-util-is/README.md +3 -0
  73. package/node_modules/core-util-is/lib/util.js +107 -0
  74. package/node_modules/core-util-is/package.json +38 -0
  75. package/node_modules/create-error-class/index.js +44 -0
  76. package/node_modules/create-error-class/license +21 -0
  77. package/node_modules/create-error-class/package.json +30 -0
  78. package/node_modules/create-error-class/readme.md +54 -0
  79. package/node_modules/cross-spawn/CHANGELOG.md +6 -0
  80. package/node_modules/cross-spawn/LICENSE +19 -0
  81. package/node_modules/cross-spawn/README.md +85 -0
  82. package/node_modules/cross-spawn/index.js +59 -0
  83. package/node_modules/cross-spawn/lib/enoent.js +73 -0
  84. package/node_modules/cross-spawn/lib/parse.js +113 -0
  85. package/node_modules/cross-spawn/lib/util/escapeArgument.js +30 -0
  86. package/node_modules/cross-spawn/lib/util/escapeCommand.js +12 -0
  87. package/node_modules/cross-spawn/lib/util/hasEmptyArgumentBug.js +18 -0
  88. package/node_modules/cross-spawn/lib/util/readShebang.js +37 -0
  89. package/node_modules/cross-spawn/lib/util/resolveCommand.js +31 -0
  90. package/node_modules/cross-spawn/package.json +53 -0
  91. package/node_modules/crypto-random-string/index.js +10 -0
  92. package/node_modules/crypto-random-string/license +21 -0
  93. package/node_modules/crypto-random-string/package.json +43 -0
  94. package/node_modules/crypto-random-string/readme.md +49 -0
  95. package/node_modules/deep-extend/CHANGELOG.md +46 -0
  96. package/node_modules/deep-extend/LICENSE +20 -0
  97. package/node_modules/deep-extend/README.md +91 -0
  98. package/node_modules/deep-extend/index.js +1 -0
  99. package/node_modules/deep-extend/lib/deep-extend.js +150 -0
  100. package/node_modules/deep-extend/package.json +62 -0
  101. package/node_modules/dot-prop/index.js +141 -0
  102. package/node_modules/dot-prop/license +21 -0
  103. package/node_modules/dot-prop/package.json +48 -0
  104. package/node_modules/dot-prop/readme.md +105 -0
  105. package/node_modules/duplexer3/LICENSE.md +26 -0
  106. package/node_modules/duplexer3/README.md +115 -0
  107. package/node_modules/duplexer3/index.js +76 -0
  108. package/node_modules/duplexer3/package.json +28 -0
  109. package/node_modules/escape-string-regexp/index.js +11 -0
  110. package/node_modules/escape-string-regexp/license +21 -0
  111. package/node_modules/escape-string-regexp/package.json +41 -0
  112. package/node_modules/escape-string-regexp/readme.md +27 -0
  113. package/node_modules/execa/index.js +309 -0
  114. package/node_modules/execa/lib/errname.js +37 -0
  115. package/node_modules/execa/lib/stdio.js +41 -0
  116. package/node_modules/execa/license +9 -0
  117. package/node_modules/execa/package.json +76 -0
  118. package/node_modules/execa/readme.md +279 -0
  119. package/node_modules/express/History.md +54 -0
  120. package/node_modules/express/Readme.md +39 -31
  121. package/node_modules/express/lib/application.js +18 -1
  122. package/node_modules/express/lib/response.js +40 -18
  123. package/node_modules/express/lib/router/index.js +20 -15
  124. package/node_modules/express/lib/router/route.js +9 -0
  125. package/node_modules/express/lib/utils.js +1 -0
  126. package/node_modules/express/lib/view.js +1 -1
  127. package/node_modules/express/package.json +14 -15
  128. package/node_modules/finalhandler/HISTORY.md +8 -0
  129. package/node_modules/finalhandler/LICENSE +1 -1
  130. package/node_modules/finalhandler/README.md +5 -6
  131. package/node_modules/finalhandler/SECURITY.md +25 -0
  132. package/node_modules/finalhandler/index.js +8 -3
  133. package/node_modules/finalhandler/package.json +18 -17
  134. package/node_modules/get-intrinsic/.eslintrc +2 -8
  135. package/node_modules/get-intrinsic/.nycrc +0 -4
  136. package/node_modules/get-intrinsic/CHANGELOG.md +27 -0
  137. package/node_modules/get-intrinsic/README.md +7 -1
  138. package/node_modules/get-intrinsic/index.js +4 -0
  139. package/node_modules/get-intrinsic/package.json +22 -12
  140. package/node_modules/get-intrinsic/test/GetIntrinsic.js +25 -11
  141. package/node_modules/get-stream/buffer-stream.js +51 -0
  142. package/node_modules/get-stream/index.js +51 -0
  143. package/node_modules/get-stream/license +21 -0
  144. package/node_modules/get-stream/package.json +48 -0
  145. package/node_modules/get-stream/readme.md +117 -0
  146. package/node_modules/glob/common.js +2 -0
  147. package/node_modules/glob/glob.js +4 -1
  148. package/node_modules/glob/package.json +5 -2
  149. package/node_modules/glob/sync.js +6 -3
  150. package/node_modules/global-dirs/index.js +90 -0
  151. package/node_modules/global-dirs/license +9 -0
  152. package/node_modules/global-dirs/package.json +52 -0
  153. package/node_modules/global-dirs/readme.md +69 -0
  154. package/node_modules/got/index.js +364 -0
  155. package/node_modules/got/license +21 -0
  156. package/node_modules/got/package.json +78 -0
  157. package/node_modules/got/readme.md +335 -0
  158. package/node_modules/graceful-fs/LICENSE +15 -0
  159. package/node_modules/graceful-fs/README.md +143 -0
  160. package/node_modules/graceful-fs/clone.js +23 -0
  161. package/node_modules/graceful-fs/graceful-fs.js +448 -0
  162. package/node_modules/graceful-fs/legacy-streams.js +118 -0
  163. package/node_modules/graceful-fs/package.json +50 -0
  164. package/node_modules/graceful-fs/polyfills.js +355 -0
  165. package/node_modules/has-flag/index.js +8 -0
  166. package/node_modules/has-flag/license +9 -0
  167. package/node_modules/has-flag/package.json +44 -0
  168. package/node_modules/has-flag/readme.md +70 -0
  169. package/node_modules/import-lazy/index.js +53 -0
  170. package/node_modules/import-lazy/license +21 -0
  171. package/node_modules/import-lazy/package.json +44 -0
  172. package/node_modules/import-lazy/readme.md +64 -0
  173. package/node_modules/imurmurhash/README.md +122 -0
  174. package/node_modules/imurmurhash/imurmurhash.js +138 -0
  175. package/node_modules/imurmurhash/imurmurhash.min.js +12 -0
  176. package/node_modules/imurmurhash/package.json +40 -0
  177. package/node_modules/ini/LICENSE +15 -0
  178. package/node_modules/ini/README.md +102 -0
  179. package/node_modules/ini/ini.js +206 -0
  180. package/node_modules/ini/package.json +33 -0
  181. package/node_modules/{express/node_modules/qs → is-callable}/.editorconfig +7 -21
  182. package/node_modules/{get-intrinsic → is-callable}/.eslintignore +0 -0
  183. package/node_modules/is-callable/.eslintrc +21 -0
  184. package/node_modules/{express/node_modules/qs → is-callable}/.github/FUNDING.yml +2 -2
  185. package/node_modules/is-callable/.istanbul.yml +47 -0
  186. package/node_modules/{express/node_modules/qs → is-callable}/.nycrc +1 -5
  187. package/node_modules/is-callable/CHANGELOG.md +108 -0
  188. package/node_modules/is-callable/LICENSE +22 -0
  189. package/node_modules/is-callable/README.md +67 -0
  190. package/node_modules/is-callable/index.js +74 -0
  191. package/node_modules/is-callable/package.json +92 -0
  192. package/node_modules/is-callable/test/index.js +170 -0
  193. package/node_modules/is-ci/LICENSE +21 -0
  194. package/node_modules/is-ci/README.md +50 -0
  195. package/node_modules/is-ci/bin.js +4 -0
  196. package/node_modules/is-ci/index.js +3 -0
  197. package/node_modules/is-ci/package.json +38 -0
  198. package/node_modules/is-core-module/.eslintrc +1 -0
  199. package/node_modules/is-core-module/CHANGELOG.md +9 -0
  200. package/node_modules/is-core-module/core.json +1 -0
  201. package/node_modules/is-core-module/package.json +8 -12
  202. package/node_modules/is-core-module/test/index.js +34 -31
  203. package/node_modules/is-fullwidth-code-point/index.js +46 -0
  204. package/node_modules/is-fullwidth-code-point/license +21 -0
  205. package/node_modules/is-fullwidth-code-point/package.json +45 -0
  206. package/node_modules/is-fullwidth-code-point/readme.md +39 -0
  207. package/node_modules/is-installed-globally/index.js +5 -0
  208. package/node_modules/is-installed-globally/license +9 -0
  209. package/node_modules/is-installed-globally/package.json +48 -0
  210. package/node_modules/is-installed-globally/readme.md +39 -0
  211. package/node_modules/is-npm/index.js +4 -0
  212. package/node_modules/is-npm/package.json +32 -0
  213. package/node_modules/is-npm/readme.md +30 -0
  214. package/node_modules/is-obj/index.js +5 -0
  215. package/node_modules/is-obj/license +21 -0
  216. package/node_modules/is-obj/package.json +33 -0
  217. package/node_modules/is-obj/readme.md +34 -0
  218. package/node_modules/is-path-inside/index.js +14 -0
  219. package/node_modules/is-path-inside/license +21 -0
  220. package/node_modules/is-path-inside/package.json +37 -0
  221. package/node_modules/is-path-inside/readme.md +34 -0
  222. package/node_modules/is-redirect/index.js +14 -0
  223. package/node_modules/is-redirect/license +21 -0
  224. package/node_modules/is-redirect/package.json +35 -0
  225. package/node_modules/is-redirect/readme.md +28 -0
  226. package/node_modules/is-retry-allowed/index.js +62 -0
  227. package/node_modules/is-retry-allowed/license +21 -0
  228. package/node_modules/is-retry-allowed/package.json +29 -0
  229. package/node_modules/is-retry-allowed/readme.md +42 -0
  230. package/node_modules/is-stream/index.js +21 -0
  231. package/node_modules/is-stream/license +21 -0
  232. package/node_modules/is-stream/package.json +38 -0
  233. package/node_modules/is-stream/readme.md +42 -0
  234. package/node_modules/isarray/.npmignore +1 -0
  235. package/node_modules/isarray/.travis.yml +4 -0
  236. package/node_modules/isarray/Makefile +6 -0
  237. package/node_modules/isarray/README.md +60 -0
  238. package/node_modules/isarray/component.json +19 -0
  239. package/node_modules/isarray/index.js +5 -0
  240. package/node_modules/isarray/package.json +45 -0
  241. package/node_modules/isarray/test.js +20 -0
  242. package/node_modules/isexe/.npmignore +2 -0
  243. package/node_modules/isexe/LICENSE +15 -0
  244. package/node_modules/isexe/README.md +51 -0
  245. package/node_modules/isexe/index.js +57 -0
  246. package/node_modules/isexe/mode.js +41 -0
  247. package/node_modules/isexe/package.json +31 -0
  248. package/node_modules/isexe/test/basic.js +221 -0
  249. package/node_modules/isexe/windows.js +42 -0
  250. package/node_modules/latest-version/index.js +4 -0
  251. package/node_modules/latest-version/license +21 -0
  252. package/node_modules/latest-version/package.json +39 -0
  253. package/node_modules/latest-version/readme.md +40 -0
  254. package/node_modules/lowercase-keys/index.js +11 -0
  255. package/node_modules/lowercase-keys/license +21 -0
  256. package/node_modules/lowercase-keys/package.json +35 -0
  257. package/node_modules/lowercase-keys/readme.md +33 -0
  258. package/node_modules/lru-cache/LICENSE +15 -0
  259. package/node_modules/lru-cache/README.md +158 -0
  260. package/node_modules/lru-cache/index.js +468 -0
  261. package/node_modules/lru-cache/package.json +36 -0
  262. package/node_modules/make-dir/index.js +85 -0
  263. package/node_modules/make-dir/license +9 -0
  264. package/node_modules/make-dir/package.json +54 -0
  265. package/node_modules/make-dir/readme.md +116 -0
  266. package/node_modules/nopt/.npmignore +0 -0
  267. package/node_modules/nopt/LICENSE +23 -0
  268. package/node_modules/nopt/README.md +208 -0
  269. package/node_modules/nopt/bin/nopt.js +44 -0
  270. package/node_modules/nopt/examples/my-program.js +30 -0
  271. package/node_modules/nopt/lib/nopt.js +552 -0
  272. package/node_modules/nopt/package.json +12 -0
  273. package/node_modules/npm/CHANGELOG.md +9 -0
  274. package/node_modules/npm/docs/public/cli-commands/npm/index.html +3 -3
  275. package/node_modules/npm/docs/public/cli-commands/npm-access/index.html +2 -2
  276. package/node_modules/npm/docs/public/cli-commands/npm-adduser/index.html +2 -2
  277. package/node_modules/npm/docs/public/cli-commands/npm-audit/index.html +2 -2
  278. package/node_modules/npm/docs/public/cli-commands/npm-bin/index.html +2 -2
  279. package/node_modules/npm/docs/public/cli-commands/npm-bugs/index.html +2 -2
  280. package/node_modules/npm/docs/public/cli-commands/npm-build/index.html +2 -2
  281. package/node_modules/npm/docs/public/cli-commands/npm-bundle/index.html +2 -2
  282. package/node_modules/npm/docs/public/cli-commands/npm-cache/index.html +2 -2
  283. package/node_modules/npm/docs/public/cli-commands/npm-ci/index.html +2 -2
  284. package/node_modules/npm/docs/public/cli-commands/npm-completion/index.html +2 -2
  285. package/node_modules/npm/docs/public/cli-commands/npm-config/index.html +2 -2
  286. package/node_modules/npm/docs/public/cli-commands/npm-dedupe/index.html +2 -2
  287. package/node_modules/npm/docs/public/cli-commands/npm-deprecate/index.html +2 -2
  288. package/node_modules/npm/docs/public/cli-commands/npm-dist-tag/index.html +2 -2
  289. package/node_modules/npm/docs/public/cli-commands/npm-docs/index.html +2 -2
  290. package/node_modules/npm/docs/public/cli-commands/npm-doctor/index.html +2 -2
  291. package/node_modules/npm/docs/public/cli-commands/npm-edit/index.html +2 -2
  292. package/node_modules/npm/docs/public/cli-commands/npm-explore/index.html +2 -2
  293. package/node_modules/npm/docs/public/cli-commands/npm-fund/index.html +2 -2
  294. package/node_modules/npm/docs/public/cli-commands/npm-help/index.html +2 -2
  295. package/node_modules/npm/docs/public/cli-commands/npm-help-search/index.html +2 -2
  296. package/node_modules/npm/docs/public/cli-commands/npm-hook/index.html +2 -2
  297. package/node_modules/npm/docs/public/cli-commands/npm-init/index.html +2 -2
  298. package/node_modules/npm/docs/public/cli-commands/npm-install/index.html +2 -2
  299. package/node_modules/npm/docs/public/cli-commands/npm-install-ci-test/index.html +2 -2
  300. package/node_modules/npm/docs/public/cli-commands/npm-install-test/index.html +2 -2
  301. package/node_modules/npm/docs/public/cli-commands/npm-link/index.html +2 -2
  302. package/node_modules/npm/docs/public/cli-commands/npm-logout/index.html +2 -2
  303. package/node_modules/npm/docs/public/cli-commands/npm-ls/index.html +3 -3
  304. package/node_modules/npm/docs/public/cli-commands/npm-org/index.html +2 -2
  305. package/node_modules/npm/docs/public/cli-commands/npm-outdated/index.html +2 -2
  306. package/node_modules/npm/docs/public/cli-commands/npm-owner/index.html +2 -2
  307. package/node_modules/npm/docs/public/cli-commands/npm-pack/index.html +2 -2
  308. package/node_modules/npm/docs/public/cli-commands/npm-ping/index.html +2 -2
  309. package/node_modules/npm/docs/public/cli-commands/npm-prefix/index.html +2 -2
  310. package/node_modules/npm/docs/public/cli-commands/npm-profile/index.html +2 -2
  311. package/node_modules/npm/docs/public/cli-commands/npm-prune/index.html +2 -2
  312. package/node_modules/npm/docs/public/cli-commands/npm-publish/index.html +2 -2
  313. package/node_modules/npm/docs/public/cli-commands/npm-rebuild/index.html +2 -2
  314. package/node_modules/npm/docs/public/cli-commands/npm-repo/index.html +2 -2
  315. package/node_modules/npm/docs/public/cli-commands/npm-restart/index.html +2 -2
  316. package/node_modules/npm/docs/public/cli-commands/npm-root/index.html +2 -2
  317. package/node_modules/npm/docs/public/cli-commands/npm-run-script/index.html +2 -2
  318. package/node_modules/npm/docs/public/cli-commands/npm-search/index.html +2 -2
  319. package/node_modules/npm/docs/public/cli-commands/npm-shrinkwrap/index.html +2 -2
  320. package/node_modules/npm/docs/public/cli-commands/npm-star/index.html +2 -2
  321. package/node_modules/npm/docs/public/cli-commands/npm-stars/index.html +2 -2
  322. package/node_modules/npm/docs/public/cli-commands/npm-start/index.html +2 -2
  323. package/node_modules/npm/docs/public/cli-commands/npm-stop/index.html +2 -2
  324. package/node_modules/npm/docs/public/cli-commands/npm-team/index.html +2 -2
  325. package/node_modules/npm/docs/public/cli-commands/npm-test/index.html +2 -2
  326. package/node_modules/npm/docs/public/cli-commands/npm-token/index.html +2 -2
  327. package/node_modules/npm/docs/public/cli-commands/npm-uninstall/index.html +2 -2
  328. package/node_modules/npm/docs/public/cli-commands/npm-unpublish/index.html +2 -2
  329. package/node_modules/npm/docs/public/cli-commands/npm-update/index.html +2 -2
  330. package/node_modules/npm/docs/public/cli-commands/npm-version/index.html +2 -2
  331. package/node_modules/npm/docs/public/cli-commands/npm-view/index.html +2 -2
  332. package/node_modules/npm/docs/public/cli-commands/npm-whoami/index.html +2 -2
  333. package/node_modules/npm/docs/public/configuring-npm/folders/index.html +2 -2
  334. package/node_modules/npm/docs/public/configuring-npm/install/index.html +2 -2
  335. package/node_modules/npm/docs/public/configuring-npm/npmrc/index.html +2 -2
  336. package/node_modules/npm/docs/public/configuring-npm/package-json/index.html +2 -2
  337. package/node_modules/npm/docs/public/configuring-npm/package-lock-json/index.html +2 -2
  338. package/node_modules/npm/docs/public/configuring-npm/package-locks/index.html +2 -2
  339. package/node_modules/npm/docs/public/configuring-npm/shrinkwrap-json/index.html +2 -2
  340. package/node_modules/npm/docs/public/index.html +1 -1
  341. package/node_modules/npm/docs/public/using-npm/config/index.html +2 -2
  342. package/node_modules/npm/docs/public/using-npm/developers/index.html +2 -2
  343. package/node_modules/npm/docs/public/using-npm/disputes/index.html +2 -2
  344. package/node_modules/npm/docs/public/using-npm/orgs/index.html +2 -2
  345. package/node_modules/npm/docs/public/using-npm/registry/index.html +2 -2
  346. package/node_modules/npm/docs/public/using-npm/removal/index.html +2 -2
  347. package/node_modules/npm/docs/public/using-npm/scope/index.html +2 -2
  348. package/node_modules/npm/docs/public/using-npm/scripts/index.html +2 -2
  349. package/node_modules/npm/docs/public/using-npm/semver/index.html +2 -2
  350. package/node_modules/npm/man/man1/npm-README.1 +1 -1
  351. package/node_modules/npm/man/man1/npm-access.1 +1 -1
  352. package/node_modules/npm/man/man1/npm-adduser.1 +1 -1
  353. package/node_modules/npm/man/man1/npm-audit.1 +1 -1
  354. package/node_modules/npm/man/man1/npm-bin.1 +1 -1
  355. package/node_modules/npm/man/man1/npm-bugs.1 +1 -1
  356. package/node_modules/npm/man/man1/npm-build.1 +1 -1
  357. package/node_modules/npm/man/man1/npm-bundle.1 +1 -1
  358. package/node_modules/npm/man/man1/npm-cache.1 +1 -1
  359. package/node_modules/npm/man/man1/npm-ci.1 +1 -1
  360. package/node_modules/npm/man/man1/npm-completion.1 +1 -1
  361. package/node_modules/npm/man/man1/npm-config.1 +1 -1
  362. package/node_modules/npm/man/man1/npm-dedupe.1 +1 -1
  363. package/node_modules/npm/man/man1/npm-deprecate.1 +1 -1
  364. package/node_modules/npm/man/man1/npm-dist-tag.1 +1 -1
  365. package/node_modules/npm/man/man1/npm-docs.1 +1 -1
  366. package/node_modules/npm/man/man1/npm-doctor.1 +1 -1
  367. package/node_modules/npm/man/man1/npm-edit.1 +1 -1
  368. package/node_modules/npm/man/man1/npm-explore.1 +1 -1
  369. package/node_modules/npm/man/man1/npm-fund.1 +1 -1
  370. package/node_modules/npm/man/man1/npm-help-search.1 +1 -1
  371. package/node_modules/npm/man/man1/npm-help.1 +1 -1
  372. package/node_modules/npm/man/man1/npm-hook.1 +1 -1
  373. package/node_modules/npm/man/man1/npm-init.1 +1 -1
  374. package/node_modules/npm/man/man1/npm-install-ci-test.1 +1 -1
  375. package/node_modules/npm/man/man1/npm-install-test.1 +1 -1
  376. package/node_modules/npm/man/man1/npm-install.1 +1 -1
  377. package/node_modules/npm/man/man1/npm-link.1 +1 -1
  378. package/node_modules/npm/man/man1/npm-logout.1 +1 -1
  379. package/node_modules/npm/man/man1/npm-ls.1 +2 -2
  380. package/node_modules/npm/man/man1/npm-org.1 +1 -1
  381. package/node_modules/npm/man/man1/npm-outdated.1 +1 -1
  382. package/node_modules/npm/man/man1/npm-owner.1 +1 -1
  383. package/node_modules/npm/man/man1/npm-pack.1 +1 -1
  384. package/node_modules/npm/man/man1/npm-ping.1 +1 -1
  385. package/node_modules/npm/man/man1/npm-prefix.1 +1 -1
  386. package/node_modules/npm/man/man1/npm-profile.1 +1 -1
  387. package/node_modules/npm/man/man1/npm-prune.1 +1 -1
  388. package/node_modules/npm/man/man1/npm-publish.1 +1 -1
  389. package/node_modules/npm/man/man1/npm-rebuild.1 +1 -1
  390. package/node_modules/npm/man/man1/npm-repo.1 +1 -1
  391. package/node_modules/npm/man/man1/npm-restart.1 +1 -1
  392. package/node_modules/npm/man/man1/npm-root.1 +1 -1
  393. package/node_modules/npm/man/man1/npm-run-script.1 +1 -1
  394. package/node_modules/npm/man/man1/npm-search.1 +1 -1
  395. package/node_modules/npm/man/man1/npm-shrinkwrap.1 +1 -1
  396. package/node_modules/npm/man/man1/npm-star.1 +1 -1
  397. package/node_modules/npm/man/man1/npm-stars.1 +1 -1
  398. package/node_modules/npm/man/man1/npm-start.1 +1 -1
  399. package/node_modules/npm/man/man1/npm-stop.1 +1 -1
  400. package/node_modules/npm/man/man1/npm-team.1 +1 -1
  401. package/node_modules/npm/man/man1/npm-test.1 +1 -1
  402. package/node_modules/npm/man/man1/npm-token.1 +1 -1
  403. package/node_modules/npm/man/man1/npm-uninstall.1 +1 -1
  404. package/node_modules/npm/man/man1/npm-unpublish.1 +1 -1
  405. package/node_modules/npm/man/man1/npm-update.1 +1 -1
  406. package/node_modules/npm/man/man1/npm-version.1 +1 -1
  407. package/node_modules/npm/man/man1/npm-view.1 +1 -1
  408. package/node_modules/npm/man/man1/npm-whoami.1 +1 -1
  409. package/node_modules/npm/man/man1/npm.1 +2 -2
  410. package/node_modules/npm/man/man5/folders.5 +1 -1
  411. package/node_modules/npm/man/man5/install.5 +1 -1
  412. package/node_modules/npm/man/man5/npmrc.5 +1 -1
  413. package/node_modules/npm/man/man5/package-json.5 +1 -1
  414. package/node_modules/npm/man/man5/package-lock-json.5 +1 -1
  415. package/node_modules/npm/man/man5/package-locks.5 +1 -1
  416. package/node_modules/npm/man/man5/shrinkwrap-json.5 +1 -1
  417. package/node_modules/npm/man/man7/config.7 +1 -1
  418. package/node_modules/npm/man/man7/developers.7 +1 -1
  419. package/node_modules/npm/man/man7/disputes.7 +1 -1
  420. package/node_modules/npm/man/man7/orgs.7 +1 -1
  421. package/node_modules/npm/man/man7/registry.7 +1 -1
  422. package/node_modules/npm/man/man7/removal.7 +1 -1
  423. package/node_modules/npm/man/man7/scope.7 +1 -1
  424. package/node_modules/npm/man/man7/scripts.7 +1 -1
  425. package/node_modules/npm/man/man7/semver.7 +1 -1
  426. package/node_modules/npm/node_modules/cliui/node_modules/ansi-regex/index.js +1 -1
  427. package/node_modules/npm/node_modules/cliui/node_modules/ansi-regex/package.json +1 -1
  428. package/node_modules/npm/node_modules/minimist/index.js +6 -2
  429. package/node_modules/npm/node_modules/minimist/package.json +1 -1
  430. package/node_modules/npm/node_modules/minimist/readme.markdown +4 -1
  431. package/node_modules/npm/node_modules/minimist/test/proto.js +16 -0
  432. package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/index.js +6 -2
  433. package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/package.json +1 -1
  434. package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/readme.markdown +4 -1
  435. package/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/proto.js +16 -0
  436. package/node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-regex/index.js +1 -1
  437. package/node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-regex/package.json +1 -1
  438. package/node_modules/npm/package.json +1 -1
  439. package/node_modules/npm-run-path/index.js +39 -0
  440. package/node_modules/npm-run-path/license +21 -0
  441. package/node_modules/npm-run-path/package.json +45 -0
  442. package/node_modules/npm-run-path/readme.md +81 -0
  443. package/node_modules/object-assign/index.js +90 -0
  444. package/node_modules/object-assign/license +21 -0
  445. package/node_modules/object-assign/package.json +42 -0
  446. package/node_modules/object-assign/readme.md +61 -0
  447. package/node_modules/object-inspect/CHANGELOG.md +18 -0
  448. package/node_modules/object-inspect/index.js +7 -6
  449. package/node_modules/object-inspect/package-support.json +20 -0
  450. package/node_modules/object-inspect/package.json +20 -10
  451. package/node_modules/object-inspect/test/err.js +3 -3
  452. package/node_modules/object-inspect/test/has.js +6 -25
  453. package/node_modules/object-inspect/test/inspect.js +37 -0
  454. package/node_modules/object-inspect/test/values.js +3 -3
  455. package/node_modules/p-finally/index.js +15 -0
  456. package/node_modules/p-finally/license +21 -0
  457. package/node_modules/p-finally/package.json +42 -0
  458. package/node_modules/p-finally/readme.md +47 -0
  459. package/node_modules/package-json/index.js +67 -0
  460. package/node_modules/package-json/license +21 -0
  461. package/node_modules/package-json/package.json +43 -0
  462. package/node_modules/package-json/readme.md +91 -0
  463. package/node_modules/path-exists/index.js +17 -0
  464. package/node_modules/path-exists/license +21 -0
  465. package/node_modules/path-exists/package.json +40 -0
  466. package/node_modules/path-exists/readme.md +50 -0
  467. package/node_modules/path-is-inside/LICENSE.txt +47 -0
  468. package/node_modules/path-is-inside/lib/path-is-inside.js +28 -0
  469. package/node_modules/path-is-inside/package.json +21 -0
  470. package/node_modules/path-key/index.js +13 -0
  471. package/node_modules/path-key/license +21 -0
  472. package/node_modules/path-key/package.json +39 -0
  473. package/node_modules/path-key/readme.md +51 -0
  474. package/node_modules/pify/index.js +84 -0
  475. package/node_modules/pify/license +9 -0
  476. package/node_modules/pify/package.json +51 -0
  477. package/node_modules/pify/readme.md +131 -0
  478. package/node_modules/prepend-http/index.js +14 -0
  479. package/node_modules/prepend-http/license +21 -0
  480. package/node_modules/prepend-http/package.json +35 -0
  481. package/node_modules/prepend-http/readme.md +31 -0
  482. package/node_modules/process-nextick-args/index.js +45 -0
  483. package/node_modules/process-nextick-args/license.md +19 -0
  484. package/node_modules/process-nextick-args/package.json +25 -0
  485. package/node_modules/process-nextick-args/readme.md +18 -0
  486. package/node_modules/pseudomap/LICENSE +15 -0
  487. package/node_modules/pseudomap/README.md +60 -0
  488. package/node_modules/pseudomap/map.js +9 -0
  489. package/node_modules/pseudomap/package.json +25 -0
  490. package/node_modules/pseudomap/pseudomap.js +113 -0
  491. package/node_modules/pseudomap/test/basic.js +86 -0
  492. package/node_modules/rc/LICENSE.APACHE2 +15 -0
  493. package/node_modules/rc/LICENSE.BSD +26 -0
  494. package/node_modules/rc/LICENSE.MIT +24 -0
  495. package/node_modules/rc/README.md +227 -0
  496. package/node_modules/rc/browser.js +7 -0
  497. package/node_modules/rc/cli.js +4 -0
  498. package/node_modules/rc/index.js +53 -0
  499. package/node_modules/rc/lib/utils.js +104 -0
  500. package/node_modules/rc/package.json +29 -0
  501. package/node_modules/rc/test/ini.js +16 -0
  502. package/node_modules/rc/test/nested-env-vars.js +50 -0
  503. package/node_modules/rc/test/test.js +59 -0
  504. package/node_modules/registry-auth-token/.npmignore +6 -0
  505. package/node_modules/registry-auth-token/CHANGELOG.md +112 -0
  506. package/node_modules/registry-auth-token/LICENSE +21 -0
  507. package/node_modules/registry-auth-token/README.md +65 -0
  508. package/node_modules/registry-auth-token/base64.js +14 -0
  509. package/node_modules/registry-auth-token/index.js +123 -0
  510. package/node_modules/registry-auth-token/package.json +46 -0
  511. package/node_modules/registry-auth-token/registry-url.js +5 -0
  512. package/node_modules/registry-auth-token/test/auth-token.test.js +455 -0
  513. package/node_modules/registry-auth-token/test/registry-url.test.js +64 -0
  514. package/node_modules/registry-auth-token/yarn.lock +1516 -0
  515. package/node_modules/registry-url/index.js +6 -0
  516. package/node_modules/registry-url/license +21 -0
  517. package/node_modules/registry-url/package.json +40 -0
  518. package/node_modules/registry-url/readme.md +50 -0
  519. package/node_modules/rimraf/LICENSE +15 -0
  520. package/node_modules/rimraf/README.md +101 -0
  521. package/node_modules/rimraf/bin.js +50 -0
  522. package/node_modules/rimraf/package.json +29 -0
  523. package/node_modules/rimraf/rimraf.js +364 -0
  524. package/node_modules/semver/CHANGELOG.md +39 -0
  525. package/node_modules/semver/LICENSE +15 -0
  526. package/node_modules/semver/README.md +412 -0
  527. package/node_modules/semver/bin/semver +160 -0
  528. package/node_modules/semver/package.json +28 -0
  529. package/node_modules/semver/range.bnf +16 -0
  530. package/node_modules/semver/semver.js +1483 -0
  531. package/node_modules/semver-diff/index.js +27 -0
  532. package/node_modules/semver-diff/license +21 -0
  533. package/node_modules/semver-diff/package.json +34 -0
  534. package/node_modules/semver-diff/readme.md +52 -0
  535. package/node_modules/send/HISTORY.md +15 -0
  536. package/node_modules/send/LICENSE +1 -1
  537. package/node_modules/send/README.md +2 -2
  538. package/node_modules/send/SECURITY.md +24 -0
  539. package/node_modules/send/index.js +37 -27
  540. package/node_modules/send/package.json +10 -9
  541. package/node_modules/serve-static/HISTORY.md +12 -0
  542. package/node_modules/serve-static/README.md +1 -1
  543. package/node_modules/serve-static/package.json +5 -5
  544. package/node_modules/shebang-command/index.js +19 -0
  545. package/node_modules/shebang-command/license +21 -0
  546. package/node_modules/shebang-command/package.json +39 -0
  547. package/node_modules/shebang-command/readme.md +39 -0
  548. package/node_modules/shebang-regex/index.js +2 -0
  549. package/node_modules/shebang-regex/license +21 -0
  550. package/node_modules/shebang-regex/package.json +32 -0
  551. package/node_modules/shebang-regex/readme.md +29 -0
  552. package/node_modules/signal-exit/LICENSE.txt +16 -0
  553. package/node_modules/signal-exit/README.md +39 -0
  554. package/node_modules/signal-exit/index.js +202 -0
  555. package/node_modules/signal-exit/package.json +38 -0
  556. package/node_modules/signal-exit/signals.js +53 -0
  557. package/node_modules/statuses/HISTORY.md +17 -0
  558. package/node_modules/statuses/README.md +51 -42
  559. package/node_modules/statuses/codes.json +2 -3
  560. package/node_modules/statuses/index.js +52 -19
  561. package/node_modules/statuses/package.json +17 -16
  562. package/node_modules/string-width/index.js +36 -0
  563. package/node_modules/string-width/license +9 -0
  564. package/node_modules/string-width/package.json +55 -0
  565. package/node_modules/string-width/readme.md +42 -0
  566. package/node_modules/strip-ansi/index.js +4 -0
  567. package/node_modules/strip-ansi/license +9 -0
  568. package/node_modules/strip-ansi/package.json +52 -0
  569. package/node_modules/strip-ansi/readme.md +39 -0
  570. package/node_modules/strip-eof/index.js +15 -0
  571. package/node_modules/strip-eof/license +21 -0
  572. package/node_modules/strip-eof/package.json +39 -0
  573. package/node_modules/strip-eof/readme.md +28 -0
  574. package/node_modules/strip-json-comments/index.js +70 -0
  575. package/node_modules/strip-json-comments/license +21 -0
  576. package/node_modules/strip-json-comments/package.json +42 -0
  577. package/node_modules/strip-json-comments/readme.md +64 -0
  578. package/node_modules/supports-color/browser.js +5 -0
  579. package/node_modules/supports-color/index.js +131 -0
  580. package/node_modules/supports-color/license +9 -0
  581. package/node_modules/supports-color/package.json +53 -0
  582. package/node_modules/supports-color/readme.md +66 -0
  583. package/node_modules/term-size/index.js +70 -0
  584. package/node_modules/term-size/license +21 -0
  585. package/node_modules/term-size/package.json +43 -0
  586. package/node_modules/term-size/readme.md +41 -0
  587. package/node_modules/term-size/vendor/macos/term-size +0 -0
  588. package/node_modules/term-size/vendor/windows/term-size.exe +0 -0
  589. package/node_modules/timed-out/index.js +55 -0
  590. package/node_modules/{send/node_modules/destroy/LICENSE → timed-out/license} +1 -2
  591. package/node_modules/timed-out/package.json +36 -0
  592. package/node_modules/timed-out/readme.md +42 -0
  593. package/node_modules/underscore/LICENSE +1 -1
  594. package/node_modules/underscore/amd/_collectNonEnumProps.js +1 -1
  595. package/node_modules/underscore/amd/_setup.js +3 -3
  596. package/node_modules/underscore/amd/isObject.js +1 -1
  597. package/node_modules/underscore/amd/max.js +2 -2
  598. package/node_modules/underscore/amd/min.js +2 -2
  599. package/node_modules/underscore/amd/unzip.js +1 -1
  600. package/node_modules/underscore/cjs/_collectNonEnumProps.js +1 -1
  601. package/node_modules/underscore/cjs/_setup.js +3 -3
  602. package/node_modules/underscore/cjs/isObject.js +1 -1
  603. package/node_modules/underscore/cjs/max.js +2 -2
  604. package/node_modules/underscore/cjs/min.js +2 -2
  605. package/node_modules/underscore/cjs/unzip.js +1 -1
  606. package/node_modules/underscore/modules/.eslintrc +10 -1
  607. package/node_modules/underscore/modules/_collectNonEnumProps.js +1 -1
  608. package/node_modules/underscore/modules/_setup.js +3 -3
  609. package/node_modules/underscore/modules/index.js +2 -2
  610. package/node_modules/underscore/modules/isObject.js +1 -1
  611. package/node_modules/underscore/modules/max.js +2 -2
  612. package/node_modules/underscore/modules/min.js +2 -2
  613. package/node_modules/underscore/modules/package.json +1 -3
  614. package/node_modules/underscore/modules/unzip.js +1 -1
  615. package/node_modules/underscore/package.json +7 -3
  616. package/node_modules/underscore/underscore-esm-min.js +3 -3
  617. package/node_modules/underscore/underscore-esm-min.js.map +1 -1
  618. package/node_modules/underscore/underscore-esm.js +12 -12
  619. package/node_modules/underscore/underscore-esm.js.map +1 -1
  620. package/node_modules/underscore/underscore-min.js +3 -3
  621. package/node_modules/underscore/underscore-min.js.map +1 -1
  622. package/node_modules/underscore/underscore-node-f.cjs +12 -12
  623. package/node_modules/underscore/underscore-node-f.cjs.map +1 -1
  624. package/node_modules/underscore/underscore-node.cjs +2 -2
  625. package/node_modules/underscore/underscore-node.mjs +2 -2
  626. package/node_modules/underscore/underscore-umd-min.js +3 -3
  627. package/node_modules/underscore/underscore-umd-min.js.map +1 -1
  628. package/node_modules/underscore/underscore-umd.js +12 -12
  629. package/node_modules/underscore/underscore-umd.js.map +1 -1
  630. package/node_modules/underscore/underscore.js +12 -12
  631. package/node_modules/unique-string/index.js +4 -0
  632. package/node_modules/unique-string/license +21 -0
  633. package/node_modules/unique-string/package.json +44 -0
  634. package/node_modules/unique-string/readme.md +32 -0
  635. package/node_modules/unzip-response/index.js +36 -0
  636. package/node_modules/unzip-response/license +21 -0
  637. package/node_modules/unzip-response/package.json +49 -0
  638. package/node_modules/unzip-response/readme.md +29 -0
  639. package/node_modules/update-notifier/check.js +22 -0
  640. package/node_modules/update-notifier/index.js +155 -0
  641. package/node_modules/update-notifier/license +9 -0
  642. package/node_modules/update-notifier/package.json +55 -0
  643. package/node_modules/update-notifier/readme.md +193 -0
  644. package/node_modules/url-parse-lax/index.js +14 -0
  645. package/node_modules/url-parse-lax/license +21 -0
  646. package/node_modules/url-parse-lax/package.json +41 -0
  647. package/node_modules/url-parse-lax/readme.md +100 -0
  648. package/node_modules/util-deprecate/History.md +16 -0
  649. package/node_modules/util-deprecate/LICENSE +24 -0
  650. package/node_modules/util-deprecate/README.md +53 -0
  651. package/node_modules/util-deprecate/browser.js +67 -0
  652. package/node_modules/util-deprecate/node.js +6 -0
  653. package/node_modules/util-deprecate/package.json +27 -0
  654. package/node_modules/which/CHANGELOG.md +152 -0
  655. package/node_modules/which/LICENSE +15 -0
  656. package/node_modules/which/README.md +51 -0
  657. package/node_modules/which/bin/which +52 -0
  658. package/node_modules/which/package.json +30 -0
  659. package/node_modules/which/which.js +135 -0
  660. package/node_modules/widest-line/index.js +8 -0
  661. package/node_modules/widest-line/license +9 -0
  662. package/node_modules/widest-line/package.json +54 -0
  663. package/node_modules/widest-line/readme.md +34 -0
  664. package/node_modules/write-file-atomic/CHANGELOG.md +25 -0
  665. package/node_modules/write-file-atomic/LICENSE +6 -0
  666. package/node_modules/write-file-atomic/README.md +56 -0
  667. package/node_modules/write-file-atomic/index.js +238 -0
  668. package/node_modules/write-file-atomic/package.json +41 -0
  669. package/node_modules/xdg-basedir/index.js +28 -0
  670. package/node_modules/xdg-basedir/license +21 -0
  671. package/node_modules/xdg-basedir/package.json +40 -0
  672. package/node_modules/xdg-basedir/readme.md +60 -0
  673. package/node_modules/yallist/LICENSE +15 -0
  674. package/node_modules/yallist/README.md +204 -0
  675. package/node_modules/yallist/iterator.js +7 -0
  676. package/node_modules/yallist/package.json +29 -0
  677. package/node_modules/yallist/yallist.js +370 -0
  678. package/package.json +3 -2
  679. package/node_modules/express/node_modules/body-parser/HISTORY.md +0 -633
  680. package/node_modules/express/node_modules/body-parser/LICENSE +0 -23
  681. package/node_modules/express/node_modules/body-parser/README.md +0 -456
  682. package/node_modules/express/node_modules/body-parser/index.js +0 -157
  683. package/node_modules/express/node_modules/body-parser/lib/read.js +0 -181
  684. package/node_modules/express/node_modules/body-parser/lib/types/json.js +0 -230
  685. package/node_modules/express/node_modules/body-parser/lib/types/raw.js +0 -101
  686. package/node_modules/express/node_modules/body-parser/lib/types/text.js +0 -121
  687. package/node_modules/express/node_modules/body-parser/lib/types/urlencoded.js +0 -284
  688. package/node_modules/express/node_modules/body-parser/package.json +0 -52
  689. package/node_modules/express/node_modules/depd/History.md +0 -96
  690. package/node_modules/express/node_modules/depd/LICENSE +0 -22
  691. package/node_modules/express/node_modules/depd/Readme.md +0 -280
  692. package/node_modules/express/node_modules/depd/index.js +0 -522
  693. package/node_modules/express/node_modules/depd/lib/browser/index.js +0 -77
  694. package/node_modules/express/node_modules/depd/lib/compat/callsite-tostring.js +0 -103
  695. package/node_modules/express/node_modules/depd/lib/compat/event-listener-count.js +0 -22
  696. package/node_modules/express/node_modules/depd/lib/compat/index.js +0 -79
  697. package/node_modules/express/node_modules/depd/package.json +0 -41
  698. package/node_modules/express/node_modules/http-errors/HISTORY.md +0 -165
  699. package/node_modules/express/node_modules/http-errors/README.md +0 -169
  700. package/node_modules/express/node_modules/http-errors/index.js +0 -299
  701. package/node_modules/express/node_modules/http-errors/package.json +0 -49
  702. package/node_modules/express/node_modules/on-finished/HISTORY.md +0 -88
  703. package/node_modules/express/node_modules/on-finished/LICENSE +0 -23
  704. package/node_modules/express/node_modules/on-finished/README.md +0 -154
  705. package/node_modules/express/node_modules/on-finished/index.js +0 -196
  706. package/node_modules/express/node_modules/on-finished/package.json +0 -31
  707. package/node_modules/express/node_modules/qs/.eslintrc +0 -38
  708. package/node_modules/express/node_modules/qs/CHANGELOG.md +0 -371
  709. package/node_modules/express/node_modules/qs/LICENSE.md +0 -29
  710. package/node_modules/express/node_modules/qs/README.md +0 -616
  711. package/node_modules/express/node_modules/qs/dist/qs.js +0 -842
  712. package/node_modules/express/node_modules/qs/lib/formats.js +0 -23
  713. package/node_modules/express/node_modules/qs/lib/index.js +0 -11
  714. package/node_modules/express/node_modules/qs/lib/parse.js +0 -257
  715. package/node_modules/express/node_modules/qs/lib/stringify.js +0 -287
  716. package/node_modules/express/node_modules/qs/lib/utils.js +0 -252
  717. package/node_modules/express/node_modules/qs/package.json +0 -70
  718. package/node_modules/express/node_modules/qs/test/parse.js +0 -832
  719. package/node_modules/express/node_modules/qs/test/stringify.js +0 -804
  720. package/node_modules/express/node_modules/qs/test/utils.js +0 -136
  721. package/node_modules/express/node_modules/raw-body/HISTORY.md +0 -289
  722. package/node_modules/express/node_modules/raw-body/LICENSE +0 -22
  723. package/node_modules/express/node_modules/raw-body/README.md +0 -219
  724. package/node_modules/express/node_modules/raw-body/index.d.ts +0 -87
  725. package/node_modules/express/node_modules/raw-body/index.js +0 -286
  726. package/node_modules/express/node_modules/raw-body/package.json +0 -48
  727. package/node_modules/finalhandler/node_modules/on-finished/HISTORY.md +0 -88
  728. package/node_modules/finalhandler/node_modules/on-finished/LICENSE +0 -23
  729. package/node_modules/finalhandler/node_modules/on-finished/README.md +0 -154
  730. package/node_modules/finalhandler/node_modules/on-finished/index.js +0 -196
  731. package/node_modules/finalhandler/node_modules/on-finished/package.json +0 -31
  732. package/node_modules/http-errors/node_modules/statuses/HISTORY.md +0 -82
  733. package/node_modules/http-errors/node_modules/statuses/README.md +0 -136
  734. package/node_modules/http-errors/node_modules/statuses/codes.json +0 -65
  735. package/node_modules/http-errors/node_modules/statuses/index.js +0 -146
  736. package/node_modules/http-errors/node_modules/statuses/package.json +0 -49
  737. package/node_modules/object-inspect/.eslintignore +0 -1
  738. package/node_modules/send/node_modules/depd/History.md +0 -96
  739. package/node_modules/send/node_modules/depd/Readme.md +0 -280
  740. package/node_modules/send/node_modules/depd/index.js +0 -522
  741. package/node_modules/send/node_modules/depd/lib/browser/index.js +0 -77
  742. package/node_modules/send/node_modules/depd/lib/compat/callsite-tostring.js +0 -103
  743. package/node_modules/send/node_modules/depd/lib/compat/event-listener-count.js +0 -22
  744. package/node_modules/send/node_modules/depd/lib/compat/index.js +0 -79
  745. package/node_modules/send/node_modules/depd/package.json +0 -41
  746. package/node_modules/send/node_modules/destroy/README.md +0 -60
  747. package/node_modules/send/node_modules/destroy/index.js +0 -75
  748. package/node_modules/send/node_modules/destroy/package.json +0 -37
  749. package/node_modules/send/node_modules/http-errors/HISTORY.md +0 -165
  750. package/node_modules/send/node_modules/http-errors/README.md +0 -169
  751. package/node_modules/send/node_modules/http-errors/index.js +0 -299
  752. package/node_modules/send/node_modules/http-errors/package.json +0 -49
  753. package/node_modules/send/node_modules/on-finished/HISTORY.md +0 -88
  754. package/node_modules/send/node_modules/on-finished/LICENSE +0 -23
  755. package/node_modules/send/node_modules/on-finished/README.md +0 -154
  756. package/node_modules/send/node_modules/on-finished/index.js +0 -196
  757. package/node_modules/send/node_modules/on-finished/package.json +0 -31
@@ -1,832 +0,0 @@
1
- 'use strict';
2
-
3
- var test = require('tape');
4
- var qs = require('../');
5
- var utils = require('../lib/utils');
6
- var iconv = require('iconv-lite');
7
- var SaferBuffer = require('safer-buffer').Buffer;
8
-
9
- test('parse()', function (t) {
10
- t.test('parses a simple string', function (st) {
11
- st.deepEqual(qs.parse('0=foo'), { 0: 'foo' });
12
- st.deepEqual(qs.parse('foo=c++'), { foo: 'c ' });
13
- st.deepEqual(qs.parse('a[>=]=23'), { a: { '>=': '23' } });
14
- st.deepEqual(qs.parse('a[<=>]==23'), { a: { '<=>': '=23' } });
15
- st.deepEqual(qs.parse('a[==]=23'), { a: { '==': '23' } });
16
- st.deepEqual(qs.parse('foo', { strictNullHandling: true }), { foo: null });
17
- st.deepEqual(qs.parse('foo'), { foo: '' });
18
- st.deepEqual(qs.parse('foo='), { foo: '' });
19
- st.deepEqual(qs.parse('foo=bar'), { foo: 'bar' });
20
- st.deepEqual(qs.parse(' foo = bar = baz '), { ' foo ': ' bar = baz ' });
21
- st.deepEqual(qs.parse('foo=bar=baz'), { foo: 'bar=baz' });
22
- st.deepEqual(qs.parse('foo=bar&bar=baz'), { foo: 'bar', bar: 'baz' });
23
- st.deepEqual(qs.parse('foo2=bar2&baz2='), { foo2: 'bar2', baz2: '' });
24
- st.deepEqual(qs.parse('foo=bar&baz', { strictNullHandling: true }), { foo: 'bar', baz: null });
25
- st.deepEqual(qs.parse('foo=bar&baz'), { foo: 'bar', baz: '' });
26
- st.deepEqual(qs.parse('cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World'), {
27
- cht: 'p3',
28
- chd: 't:60,40',
29
- chs: '250x100',
30
- chl: 'Hello|World'
31
- });
32
- st.end();
33
- });
34
-
35
- t.test('arrayFormat: brackets allows only explicit arrays', function (st) {
36
- st.deepEqual(qs.parse('a[]=b&a[]=c', { arrayFormat: 'brackets' }), { a: ['b', 'c'] });
37
- st.deepEqual(qs.parse('a[0]=b&a[1]=c', { arrayFormat: 'brackets' }), { a: ['b', 'c'] });
38
- st.deepEqual(qs.parse('a=b,c', { arrayFormat: 'brackets' }), { a: 'b,c' });
39
- st.deepEqual(qs.parse('a=b&a=c', { arrayFormat: 'brackets' }), { a: ['b', 'c'] });
40
- st.end();
41
- });
42
-
43
- t.test('arrayFormat: indices allows only indexed arrays', function (st) {
44
- st.deepEqual(qs.parse('a[]=b&a[]=c', { arrayFormat: 'indices' }), { a: ['b', 'c'] });
45
- st.deepEqual(qs.parse('a[0]=b&a[1]=c', { arrayFormat: 'indices' }), { a: ['b', 'c'] });
46
- st.deepEqual(qs.parse('a=b,c', { arrayFormat: 'indices' }), { a: 'b,c' });
47
- st.deepEqual(qs.parse('a=b&a=c', { arrayFormat: 'indices' }), { a: ['b', 'c'] });
48
- st.end();
49
- });
50
-
51
- t.test('arrayFormat: comma allows only comma-separated arrays', function (st) {
52
- st.deepEqual(qs.parse('a[]=b&a[]=c', { arrayFormat: 'comma' }), { a: ['b', 'c'] });
53
- st.deepEqual(qs.parse('a[0]=b&a[1]=c', { arrayFormat: 'comma' }), { a: ['b', 'c'] });
54
- st.deepEqual(qs.parse('a=b,c', { arrayFormat: 'comma' }), { a: 'b,c' });
55
- st.deepEqual(qs.parse('a=b&a=c', { arrayFormat: 'comma' }), { a: ['b', 'c'] });
56
- st.end();
57
- });
58
-
59
- t.test('arrayFormat: repeat allows only repeated values', function (st) {
60
- st.deepEqual(qs.parse('a[]=b&a[]=c', { arrayFormat: 'repeat' }), { a: ['b', 'c'] });
61
- st.deepEqual(qs.parse('a[0]=b&a[1]=c', { arrayFormat: 'repeat' }), { a: ['b', 'c'] });
62
- st.deepEqual(qs.parse('a=b,c', { arrayFormat: 'repeat' }), { a: 'b,c' });
63
- st.deepEqual(qs.parse('a=b&a=c', { arrayFormat: 'repeat' }), { a: ['b', 'c'] });
64
- st.end();
65
- });
66
-
67
- t.test('allows enabling dot notation', function (st) {
68
- st.deepEqual(qs.parse('a.b=c'), { 'a.b': 'c' });
69
- st.deepEqual(qs.parse('a.b=c', { allowDots: true }), { a: { b: 'c' } });
70
- st.end();
71
- });
72
-
73
- t.deepEqual(qs.parse('a[b]=c'), { a: { b: 'c' } }, 'parses a single nested string');
74
- t.deepEqual(qs.parse('a[b][c]=d'), { a: { b: { c: 'd' } } }, 'parses a double nested string');
75
- t.deepEqual(
76
- qs.parse('a[b][c][d][e][f][g][h]=i'),
77
- { a: { b: { c: { d: { e: { f: { '[g][h]': 'i' } } } } } } },
78
- 'defaults to a depth of 5'
79
- );
80
-
81
- t.test('only parses one level when depth = 1', function (st) {
82
- st.deepEqual(qs.parse('a[b][c]=d', { depth: 1 }), { a: { b: { '[c]': 'd' } } });
83
- st.deepEqual(qs.parse('a[b][c][d]=e', { depth: 1 }), { a: { b: { '[c][d]': 'e' } } });
84
- st.end();
85
- });
86
-
87
- t.test('uses original key when depth = 0', function (st) {
88
- st.deepEqual(qs.parse('a[0]=b&a[1]=c', { depth: 0 }), { 'a[0]': 'b', 'a[1]': 'c' });
89
- st.deepEqual(qs.parse('a[0][0]=b&a[0][1]=c&a[1]=d&e=2', { depth: 0 }), { 'a[0][0]': 'b', 'a[0][1]': 'c', 'a[1]': 'd', e: '2' });
90
- st.end();
91
- });
92
-
93
- t.test('uses original key when depth = false', function (st) {
94
- st.deepEqual(qs.parse('a[0]=b&a[1]=c', { depth: false }), { 'a[0]': 'b', 'a[1]': 'c' });
95
- st.deepEqual(qs.parse('a[0][0]=b&a[0][1]=c&a[1]=d&e=2', { depth: false }), { 'a[0][0]': 'b', 'a[0][1]': 'c', 'a[1]': 'd', e: '2' });
96
- st.end();
97
- });
98
-
99
- t.deepEqual(qs.parse('a=b&a=c'), { a: ['b', 'c'] }, 'parses a simple array');
100
-
101
- t.test('parses an explicit array', function (st) {
102
- st.deepEqual(qs.parse('a[]=b'), { a: ['b'] });
103
- st.deepEqual(qs.parse('a[]=b&a[]=c'), { a: ['b', 'c'] });
104
- st.deepEqual(qs.parse('a[]=b&a[]=c&a[]=d'), { a: ['b', 'c', 'd'] });
105
- st.end();
106
- });
107
-
108
- t.test('parses a mix of simple and explicit arrays', function (st) {
109
- st.deepEqual(qs.parse('a=b&a[]=c'), { a: ['b', 'c'] });
110
- st.deepEqual(qs.parse('a[]=b&a=c'), { a: ['b', 'c'] });
111
- st.deepEqual(qs.parse('a[0]=b&a=c'), { a: ['b', 'c'] });
112
- st.deepEqual(qs.parse('a=b&a[0]=c'), { a: ['b', 'c'] });
113
-
114
- st.deepEqual(qs.parse('a[1]=b&a=c', { arrayLimit: 20 }), { a: ['b', 'c'] });
115
- st.deepEqual(qs.parse('a[]=b&a=c', { arrayLimit: 0 }), { a: ['b', 'c'] });
116
- st.deepEqual(qs.parse('a[]=b&a=c'), { a: ['b', 'c'] });
117
-
118
- st.deepEqual(qs.parse('a=b&a[1]=c', { arrayLimit: 20 }), { a: ['b', 'c'] });
119
- st.deepEqual(qs.parse('a=b&a[]=c', { arrayLimit: 0 }), { a: ['b', 'c'] });
120
- st.deepEqual(qs.parse('a=b&a[]=c'), { a: ['b', 'c'] });
121
-
122
- st.end();
123
- });
124
-
125
- t.test('parses a nested array', function (st) {
126
- st.deepEqual(qs.parse('a[b][]=c&a[b][]=d'), { a: { b: ['c', 'd'] } });
127
- st.deepEqual(qs.parse('a[>=]=25'), { a: { '>=': '25' } });
128
- st.end();
129
- });
130
-
131
- t.test('allows to specify array indices', function (st) {
132
- st.deepEqual(qs.parse('a[1]=c&a[0]=b&a[2]=d'), { a: ['b', 'c', 'd'] });
133
- st.deepEqual(qs.parse('a[1]=c&a[0]=b'), { a: ['b', 'c'] });
134
- st.deepEqual(qs.parse('a[1]=c', { arrayLimit: 20 }), { a: ['c'] });
135
- st.deepEqual(qs.parse('a[1]=c', { arrayLimit: 0 }), { a: { 1: 'c' } });
136
- st.deepEqual(qs.parse('a[1]=c'), { a: ['c'] });
137
- st.end();
138
- });
139
-
140
- t.test('limits specific array indices to arrayLimit', function (st) {
141
- st.deepEqual(qs.parse('a[20]=a', { arrayLimit: 20 }), { a: ['a'] });
142
- st.deepEqual(qs.parse('a[21]=a', { arrayLimit: 20 }), { a: { 21: 'a' } });
143
- st.end();
144
- });
145
-
146
- t.deepEqual(qs.parse('a[12b]=c'), { a: { '12b': 'c' } }, 'supports keys that begin with a number');
147
-
148
- t.test('supports encoded = signs', function (st) {
149
- st.deepEqual(qs.parse('he%3Dllo=th%3Dere'), { 'he=llo': 'th=ere' });
150
- st.end();
151
- });
152
-
153
- t.test('is ok with url encoded strings', function (st) {
154
- st.deepEqual(qs.parse('a[b%20c]=d'), { a: { 'b c': 'd' } });
155
- st.deepEqual(qs.parse('a[b]=c%20d'), { a: { b: 'c d' } });
156
- st.end();
157
- });
158
-
159
- t.test('allows brackets in the value', function (st) {
160
- st.deepEqual(qs.parse('pets=["tobi"]'), { pets: '["tobi"]' });
161
- st.deepEqual(qs.parse('operators=[">=", "<="]'), { operators: '[">=", "<="]' });
162
- st.end();
163
- });
164
-
165
- t.test('allows empty values', function (st) {
166
- st.deepEqual(qs.parse(''), {});
167
- st.deepEqual(qs.parse(null), {});
168
- st.deepEqual(qs.parse(undefined), {});
169
- st.end();
170
- });
171
-
172
- t.test('transforms arrays to objects', function (st) {
173
- st.deepEqual(qs.parse('foo[0]=bar&foo[bad]=baz'), { foo: { 0: 'bar', bad: 'baz' } });
174
- st.deepEqual(qs.parse('foo[bad]=baz&foo[0]=bar'), { foo: { bad: 'baz', 0: 'bar' } });
175
- st.deepEqual(qs.parse('foo[bad]=baz&foo[]=bar'), { foo: { bad: 'baz', 0: 'bar' } });
176
- st.deepEqual(qs.parse('foo[]=bar&foo[bad]=baz'), { foo: { 0: 'bar', bad: 'baz' } });
177
- st.deepEqual(qs.parse('foo[bad]=baz&foo[]=bar&foo[]=foo'), { foo: { bad: 'baz', 0: 'bar', 1: 'foo' } });
178
- st.deepEqual(qs.parse('foo[0][a]=a&foo[0][b]=b&foo[1][a]=aa&foo[1][b]=bb'), { foo: [{ a: 'a', b: 'b' }, { a: 'aa', b: 'bb' }] });
179
-
180
- st.deepEqual(qs.parse('a[]=b&a[t]=u&a[hasOwnProperty]=c', { allowPrototypes: false }), { a: { 0: 'b', t: 'u' } });
181
- st.deepEqual(qs.parse('a[]=b&a[t]=u&a[hasOwnProperty]=c', { allowPrototypes: true }), { a: { 0: 'b', t: 'u', hasOwnProperty: 'c' } });
182
- st.deepEqual(qs.parse('a[]=b&a[hasOwnProperty]=c&a[x]=y', { allowPrototypes: false }), { a: { 0: 'b', x: 'y' } });
183
- st.deepEqual(qs.parse('a[]=b&a[hasOwnProperty]=c&a[x]=y', { allowPrototypes: true }), { a: { 0: 'b', hasOwnProperty: 'c', x: 'y' } });
184
- st.end();
185
- });
186
-
187
- t.test('transforms arrays to objects (dot notation)', function (st) {
188
- st.deepEqual(qs.parse('foo[0].baz=bar&fool.bad=baz', { allowDots: true }), { foo: [{ baz: 'bar' }], fool: { bad: 'baz' } });
189
- st.deepEqual(qs.parse('foo[0].baz=bar&fool.bad.boo=baz', { allowDots: true }), { foo: [{ baz: 'bar' }], fool: { bad: { boo: 'baz' } } });
190
- st.deepEqual(qs.parse('foo[0][0].baz=bar&fool.bad=baz', { allowDots: true }), { foo: [[{ baz: 'bar' }]], fool: { bad: 'baz' } });
191
- st.deepEqual(qs.parse('foo[0].baz[0]=15&foo[0].bar=2', { allowDots: true }), { foo: [{ baz: ['15'], bar: '2' }] });
192
- st.deepEqual(qs.parse('foo[0].baz[0]=15&foo[0].baz[1]=16&foo[0].bar=2', { allowDots: true }), { foo: [{ baz: ['15', '16'], bar: '2' }] });
193
- st.deepEqual(qs.parse('foo.bad=baz&foo[0]=bar', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar' } });
194
- st.deepEqual(qs.parse('foo.bad=baz&foo[]=bar', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar' } });
195
- st.deepEqual(qs.parse('foo[]=bar&foo.bad=baz', { allowDots: true }), { foo: { 0: 'bar', bad: 'baz' } });
196
- st.deepEqual(qs.parse('foo.bad=baz&foo[]=bar&foo[]=foo', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar', 1: 'foo' } });
197
- st.deepEqual(qs.parse('foo[0].a=a&foo[0].b=b&foo[1].a=aa&foo[1].b=bb', { allowDots: true }), { foo: [{ a: 'a', b: 'b' }, { a: 'aa', b: 'bb' }] });
198
- st.end();
199
- });
200
-
201
- t.test('correctly prunes undefined values when converting an array to an object', function (st) {
202
- st.deepEqual(qs.parse('a[2]=b&a[99999999]=c'), { a: { 2: 'b', 99999999: 'c' } });
203
- st.end();
204
- });
205
-
206
- t.test('supports malformed uri characters', function (st) {
207
- st.deepEqual(qs.parse('{%:%}', { strictNullHandling: true }), { '{%:%}': null });
208
- st.deepEqual(qs.parse('{%:%}='), { '{%:%}': '' });
209
- st.deepEqual(qs.parse('foo=%:%}'), { foo: '%:%}' });
210
- st.end();
211
- });
212
-
213
- t.test('doesn\'t produce empty keys', function (st) {
214
- st.deepEqual(qs.parse('_r=1&'), { _r: '1' });
215
- st.end();
216
- });
217
-
218
- t.test('cannot access Object prototype', function (st) {
219
- qs.parse('constructor[prototype][bad]=bad');
220
- qs.parse('bad[constructor][prototype][bad]=bad');
221
- st.equal(typeof Object.prototype.bad, 'undefined');
222
- st.end();
223
- });
224
-
225
- t.test('parses arrays of objects', function (st) {
226
- st.deepEqual(qs.parse('a[][b]=c'), { a: [{ b: 'c' }] });
227
- st.deepEqual(qs.parse('a[0][b]=c'), { a: [{ b: 'c' }] });
228
- st.end();
229
- });
230
-
231
- t.test('allows for empty strings in arrays', function (st) {
232
- st.deepEqual(qs.parse('a[]=b&a[]=&a[]=c'), { a: ['b', '', 'c'] });
233
-
234
- st.deepEqual(
235
- qs.parse('a[0]=b&a[1]&a[2]=c&a[19]=', { strictNullHandling: true, arrayLimit: 20 }),
236
- { a: ['b', null, 'c', ''] },
237
- 'with arrayLimit 20 + array indices: null then empty string works'
238
- );
239
- st.deepEqual(
240
- qs.parse('a[]=b&a[]&a[]=c&a[]=', { strictNullHandling: true, arrayLimit: 0 }),
241
- { a: ['b', null, 'c', ''] },
242
- 'with arrayLimit 0 + array brackets: null then empty string works'
243
- );
244
-
245
- st.deepEqual(
246
- qs.parse('a[0]=b&a[1]=&a[2]=c&a[19]', { strictNullHandling: true, arrayLimit: 20 }),
247
- { a: ['b', '', 'c', null] },
248
- 'with arrayLimit 20 + array indices: empty string then null works'
249
- );
250
- st.deepEqual(
251
- qs.parse('a[]=b&a[]=&a[]=c&a[]', { strictNullHandling: true, arrayLimit: 0 }),
252
- { a: ['b', '', 'c', null] },
253
- 'with arrayLimit 0 + array brackets: empty string then null works'
254
- );
255
-
256
- st.deepEqual(
257
- qs.parse('a[]=&a[]=b&a[]=c'),
258
- { a: ['', 'b', 'c'] },
259
- 'array brackets: empty strings work'
260
- );
261
- st.end();
262
- });
263
-
264
- t.test('compacts sparse arrays', function (st) {
265
- st.deepEqual(qs.parse('a[10]=1&a[2]=2', { arrayLimit: 20 }), { a: ['2', '1'] });
266
- st.deepEqual(qs.parse('a[1][b][2][c]=1', { arrayLimit: 20 }), { a: [{ b: [{ c: '1' }] }] });
267
- st.deepEqual(qs.parse('a[1][2][3][c]=1', { arrayLimit: 20 }), { a: [[[{ c: '1' }]]] });
268
- st.deepEqual(qs.parse('a[1][2][3][c][1]=1', { arrayLimit: 20 }), { a: [[[{ c: ['1'] }]]] });
269
- st.end();
270
- });
271
-
272
- t.test('parses semi-parsed strings', function (st) {
273
- st.deepEqual(qs.parse({ 'a[b]': 'c' }), { a: { b: 'c' } });
274
- st.deepEqual(qs.parse({ 'a[b]': 'c', 'a[d]': 'e' }), { a: { b: 'c', d: 'e' } });
275
- st.end();
276
- });
277
-
278
- t.test('parses buffers correctly', function (st) {
279
- var b = SaferBuffer.from('test');
280
- st.deepEqual(qs.parse({ a: b }), { a: b });
281
- st.end();
282
- });
283
-
284
- t.test('parses jquery-param strings', function (st) {
285
- // readable = 'filter[0][]=int1&filter[0][]==&filter[0][]=77&filter[]=and&filter[2][]=int2&filter[2][]==&filter[2][]=8'
286
- 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';
287
- var expected = { filter: [['int1', '=', '77'], 'and', ['int2', '=', '8']] };
288
- st.deepEqual(qs.parse(encoded), expected);
289
- st.end();
290
- });
291
-
292
- t.test('continues parsing when no parent is found', function (st) {
293
- st.deepEqual(qs.parse('[]=&a=b'), { 0: '', a: 'b' });
294
- st.deepEqual(qs.parse('[]&a=b', { strictNullHandling: true }), { 0: null, a: 'b' });
295
- st.deepEqual(qs.parse('[foo]=bar'), { foo: 'bar' });
296
- st.end();
297
- });
298
-
299
- t.test('does not error when parsing a very long array', function (st) {
300
- var str = 'a[]=a';
301
- while (Buffer.byteLength(str) < 128 * 1024) {
302
- str = str + '&' + str;
303
- }
304
-
305
- st.doesNotThrow(function () {
306
- qs.parse(str);
307
- });
308
-
309
- st.end();
310
- });
311
-
312
- t.test('should not throw when a native prototype has an enumerable property', function (st) {
313
- Object.prototype.crash = '';
314
- Array.prototype.crash = '';
315
- st.doesNotThrow(qs.parse.bind(null, 'a=b'));
316
- st.deepEqual(qs.parse('a=b'), { a: 'b' });
317
- st.doesNotThrow(qs.parse.bind(null, 'a[][b]=c'));
318
- st.deepEqual(qs.parse('a[][b]=c'), { a: [{ b: 'c' }] });
319
- delete Object.prototype.crash;
320
- delete Array.prototype.crash;
321
- st.end();
322
- });
323
-
324
- t.test('parses a string with an alternative string delimiter', function (st) {
325
- st.deepEqual(qs.parse('a=b;c=d', { delimiter: ';' }), { a: 'b', c: 'd' });
326
- st.end();
327
- });
328
-
329
- t.test('parses a string with an alternative RegExp delimiter', function (st) {
330
- st.deepEqual(qs.parse('a=b; c=d', { delimiter: /[;,] */ }), { a: 'b', c: 'd' });
331
- st.end();
332
- });
333
-
334
- t.test('does not use non-splittable objects as delimiters', function (st) {
335
- st.deepEqual(qs.parse('a=b&c=d', { delimiter: true }), { a: 'b', c: 'd' });
336
- st.end();
337
- });
338
-
339
- t.test('allows overriding parameter limit', function (st) {
340
- st.deepEqual(qs.parse('a=b&c=d', { parameterLimit: 1 }), { a: 'b' });
341
- st.end();
342
- });
343
-
344
- t.test('allows setting the parameter limit to Infinity', function (st) {
345
- st.deepEqual(qs.parse('a=b&c=d', { parameterLimit: Infinity }), { a: 'b', c: 'd' });
346
- st.end();
347
- });
348
-
349
- t.test('allows overriding array limit', function (st) {
350
- st.deepEqual(qs.parse('a[0]=b', { arrayLimit: -1 }), { a: { 0: 'b' } });
351
- st.deepEqual(qs.parse('a[-1]=b', { arrayLimit: -1 }), { a: { '-1': 'b' } });
352
- st.deepEqual(qs.parse('a[0]=b&a[1]=c', { arrayLimit: 0 }), { a: { 0: 'b', 1: 'c' } });
353
- st.end();
354
- });
355
-
356
- t.test('allows disabling array parsing', function (st) {
357
- var indices = qs.parse('a[0]=b&a[1]=c', { parseArrays: false });
358
- st.deepEqual(indices, { a: { 0: 'b', 1: 'c' } });
359
- st.equal(Array.isArray(indices.a), false, 'parseArrays:false, indices case is not an array');
360
-
361
- var emptyBrackets = qs.parse('a[]=b', { parseArrays: false });
362
- st.deepEqual(emptyBrackets, { a: { 0: 'b' } });
363
- st.equal(Array.isArray(emptyBrackets.a), false, 'parseArrays:false, empty brackets case is not an array');
364
-
365
- st.end();
366
- });
367
-
368
- t.test('allows for query string prefix', function (st) {
369
- st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' });
370
- st.deepEqual(qs.parse('foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' });
371
- st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: false }), { '?foo': 'bar' });
372
- st.end();
373
- });
374
-
375
- t.test('parses an object', function (st) {
376
- var input = {
377
- 'user[name]': { 'pop[bob]': 3 },
378
- 'user[email]': null
379
- };
380
-
381
- var expected = {
382
- user: {
383
- name: { 'pop[bob]': 3 },
384
- email: null
385
- }
386
- };
387
-
388
- var result = qs.parse(input);
389
-
390
- st.deepEqual(result, expected);
391
- st.end();
392
- });
393
-
394
- t.test('parses string with comma as array divider', function (st) {
395
- st.deepEqual(qs.parse('foo=bar,tee', { comma: true }), { foo: ['bar', 'tee'] });
396
- st.deepEqual(qs.parse('foo[bar]=coffee,tee', { comma: true }), { foo: { bar: ['coffee', 'tee'] } });
397
- st.deepEqual(qs.parse('foo=', { comma: true }), { foo: '' });
398
- st.deepEqual(qs.parse('foo', { comma: true }), { foo: '' });
399
- st.deepEqual(qs.parse('foo', { comma: true, strictNullHandling: true }), { foo: null });
400
- st.end();
401
- });
402
-
403
- t.test('parses values with comma as array divider', function (st) {
404
- st.deepEqual(qs.parse({ foo: 'bar,tee' }, { comma: false }), { foo: 'bar,tee' });
405
- st.deepEqual(qs.parse({ foo: 'bar,tee' }, { comma: true }), { foo: ['bar', 'tee'] });
406
- st.end();
407
- });
408
-
409
- t.test('use number decoder, parses string that has one number with comma option enabled', function (st) {
410
- var decoder = function (str, defaultDecoder, charset, type) {
411
- if (!isNaN(Number(str))) {
412
- return parseFloat(str);
413
- }
414
- return defaultDecoder(str, defaultDecoder, charset, type);
415
- };
416
-
417
- st.deepEqual(qs.parse('foo=1', { comma: true, decoder: decoder }), { foo: 1 });
418
- st.deepEqual(qs.parse('foo=0', { comma: true, decoder: decoder }), { foo: 0 });
419
-
420
- st.end();
421
- });
422
-
423
- t.test('parses brackets holds array of arrays when having two parts of strings with comma as array divider', function (st) {
424
- st.deepEqual(qs.parse('foo[]=1,2,3&foo[]=4,5,6', { comma: true }), { foo: [['1', '2', '3'], ['4', '5', '6']] });
425
- st.deepEqual(qs.parse('foo[]=1,2,3&foo[]=', { comma: true }), { foo: [['1', '2', '3'], ''] });
426
- st.deepEqual(qs.parse('foo[]=1,2,3&foo[]=,', { comma: true }), { foo: [['1', '2', '3'], ['', '']] });
427
- st.deepEqual(qs.parse('foo[]=1,2,3&foo[]=a', { comma: true }), { foo: [['1', '2', '3'], 'a'] });
428
-
429
- st.end();
430
- });
431
-
432
- t.test('parses comma delimited array while having percent-encoded comma treated as normal text', function (st) {
433
- st.deepEqual(qs.parse('foo=a%2Cb', { comma: true }), { foo: 'a,b' });
434
- st.deepEqual(qs.parse('foo=a%2C%20b,d', { comma: true }), { foo: ['a, b', 'd'] });
435
- st.deepEqual(qs.parse('foo=a%2C%20b,c%2C%20d', { comma: true }), { foo: ['a, b', 'c, d'] });
436
-
437
- st.end();
438
- });
439
-
440
- t.test('parses an object in dot notation', function (st) {
441
- var input = {
442
- 'user.name': { 'pop[bob]': 3 },
443
- 'user.email.': null
444
- };
445
-
446
- var expected = {
447
- user: {
448
- name: { 'pop[bob]': 3 },
449
- email: null
450
- }
451
- };
452
-
453
- var result = qs.parse(input, { allowDots: true });
454
-
455
- st.deepEqual(result, expected);
456
- st.end();
457
- });
458
-
459
- t.test('parses an object and not child values', function (st) {
460
- var input = {
461
- 'user[name]': { 'pop[bob]': { test: 3 } },
462
- 'user[email]': null
463
- };
464
-
465
- var expected = {
466
- user: {
467
- name: { 'pop[bob]': { test: 3 } },
468
- email: null
469
- }
470
- };
471
-
472
- var result = qs.parse(input);
473
-
474
- st.deepEqual(result, expected);
475
- st.end();
476
- });
477
-
478
- t.test('does not blow up when Buffer global is missing', function (st) {
479
- var tempBuffer = global.Buffer;
480
- delete global.Buffer;
481
- var result = qs.parse('a=b&c=d');
482
- global.Buffer = tempBuffer;
483
- st.deepEqual(result, { a: 'b', c: 'd' });
484
- st.end();
485
- });
486
-
487
- t.test('does not crash when parsing circular references', function (st) {
488
- var a = {};
489
- a.b = a;
490
-
491
- var parsed;
492
-
493
- st.doesNotThrow(function () {
494
- parsed = qs.parse({ 'foo[bar]': 'baz', 'foo[baz]': a });
495
- });
496
-
497
- st.equal('foo' in parsed, true, 'parsed has "foo" property');
498
- st.equal('bar' in parsed.foo, true);
499
- st.equal('baz' in parsed.foo, true);
500
- st.equal(parsed.foo.bar, 'baz');
501
- st.deepEqual(parsed.foo.baz, a);
502
- st.end();
503
- });
504
-
505
- t.test('does not crash when parsing deep objects', function (st) {
506
- var parsed;
507
- var str = 'foo';
508
-
509
- for (var i = 0; i < 5000; i++) {
510
- str += '[p]';
511
- }
512
-
513
- str += '=bar';
514
-
515
- st.doesNotThrow(function () {
516
- parsed = qs.parse(str, { depth: 5000 });
517
- });
518
-
519
- st.equal('foo' in parsed, true, 'parsed has "foo" property');
520
-
521
- var depth = 0;
522
- var ref = parsed.foo;
523
- while ((ref = ref.p)) {
524
- depth += 1;
525
- }
526
-
527
- st.equal(depth, 5000, 'parsed is 5000 properties deep');
528
-
529
- st.end();
530
- });
531
-
532
- t.test('parses null objects correctly', { skip: !Object.create }, function (st) {
533
- var a = Object.create(null);
534
- a.b = 'c';
535
-
536
- st.deepEqual(qs.parse(a), { b: 'c' });
537
- var result = qs.parse({ a: a });
538
- st.equal('a' in result, true, 'result has "a" property');
539
- st.deepEqual(result.a, a);
540
- st.end();
541
- });
542
-
543
- t.test('parses dates correctly', function (st) {
544
- var now = new Date();
545
- st.deepEqual(qs.parse({ a: now }), { a: now });
546
- st.end();
547
- });
548
-
549
- t.test('parses regular expressions correctly', function (st) {
550
- var re = /^test$/;
551
- st.deepEqual(qs.parse({ a: re }), { a: re });
552
- st.end();
553
- });
554
-
555
- t.test('does not allow overwriting prototype properties', function (st) {
556
- st.deepEqual(qs.parse('a[hasOwnProperty]=b', { allowPrototypes: false }), {});
557
- st.deepEqual(qs.parse('hasOwnProperty=b', { allowPrototypes: false }), {});
558
-
559
- st.deepEqual(
560
- qs.parse('toString', { allowPrototypes: false }),
561
- {},
562
- 'bare "toString" results in {}'
563
- );
564
-
565
- st.end();
566
- });
567
-
568
- t.test('can allow overwriting prototype properties', function (st) {
569
- st.deepEqual(qs.parse('a[hasOwnProperty]=b', { allowPrototypes: true }), { a: { hasOwnProperty: 'b' } });
570
- st.deepEqual(qs.parse('hasOwnProperty=b', { allowPrototypes: true }), { hasOwnProperty: 'b' });
571
-
572
- st.deepEqual(
573
- qs.parse('toString', { allowPrototypes: true }),
574
- { toString: '' },
575
- 'bare "toString" results in { toString: "" }'
576
- );
577
-
578
- st.end();
579
- });
580
-
581
- t.test('params starting with a closing bracket', function (st) {
582
- st.deepEqual(qs.parse(']=toString'), { ']': 'toString' });
583
- st.deepEqual(qs.parse(']]=toString'), { ']]': 'toString' });
584
- st.deepEqual(qs.parse(']hello]=toString'), { ']hello]': 'toString' });
585
- st.end();
586
- });
587
-
588
- t.test('params starting with a starting bracket', function (st) {
589
- st.deepEqual(qs.parse('[=toString'), { '[': 'toString' });
590
- st.deepEqual(qs.parse('[[=toString'), { '[[': 'toString' });
591
- st.deepEqual(qs.parse('[hello[=toString'), { '[hello[': 'toString' });
592
- st.end();
593
- });
594
-
595
- t.test('add keys to objects', function (st) {
596
- st.deepEqual(
597
- qs.parse('a[b]=c&a=d'),
598
- { a: { b: 'c', d: true } },
599
- 'can add keys to objects'
600
- );
601
-
602
- st.deepEqual(
603
- qs.parse('a[b]=c&a=toString'),
604
- { a: { b: 'c' } },
605
- 'can not overwrite prototype'
606
- );
607
-
608
- st.deepEqual(
609
- qs.parse('a[b]=c&a=toString', { allowPrototypes: true }),
610
- { a: { b: 'c', toString: true } },
611
- 'can overwrite prototype with allowPrototypes true'
612
- );
613
-
614
- st.deepEqual(
615
- qs.parse('a[b]=c&a=toString', { plainObjects: true }),
616
- { __proto__: null, a: { __proto__: null, b: 'c', toString: true } },
617
- 'can overwrite prototype with plainObjects true'
618
- );
619
-
620
- st.end();
621
- });
622
-
623
- t.test('dunder proto is ignored', function (st) {
624
- var payload = 'categories[__proto__]=login&categories[__proto__]&categories[length]=42';
625
- var result = qs.parse(payload, { allowPrototypes: true });
626
-
627
- st.deepEqual(
628
- result,
629
- {
630
- categories: {
631
- length: '42'
632
- }
633
- },
634
- 'silent [[Prototype]] payload'
635
- );
636
-
637
- var plainResult = qs.parse(payload, { allowPrototypes: true, plainObjects: true });
638
-
639
- st.deepEqual(
640
- plainResult,
641
- {
642
- __proto__: null,
643
- categories: {
644
- __proto__: null,
645
- length: '42'
646
- }
647
- },
648
- 'silent [[Prototype]] payload: plain objects'
649
- );
650
-
651
- var query = qs.parse('categories[__proto__]=cats&categories[__proto__]=dogs&categories[some][json]=toInject', { allowPrototypes: true });
652
-
653
- st.notOk(Array.isArray(query.categories), 'is not an array');
654
- st.notOk(query.categories instanceof Array, 'is not instanceof an array');
655
- st.deepEqual(query.categories, { some: { json: 'toInject' } });
656
- st.equal(JSON.stringify(query.categories), '{"some":{"json":"toInject"}}', 'stringifies as a non-array');
657
-
658
- st.deepEqual(
659
- qs.parse('foo[__proto__][hidden]=value&foo[bar]=stuffs', { allowPrototypes: true }),
660
- {
661
- foo: {
662
- bar: 'stuffs'
663
- }
664
- },
665
- 'hidden values'
666
- );
667
-
668
- st.deepEqual(
669
- qs.parse('foo[__proto__][hidden]=value&foo[bar]=stuffs', { allowPrototypes: true, plainObjects: true }),
670
- {
671
- __proto__: null,
672
- foo: {
673
- __proto__: null,
674
- bar: 'stuffs'
675
- }
676
- },
677
- 'hidden values: plain objects'
678
- );
679
-
680
- st.end();
681
- });
682
-
683
- t.test('can return null objects', { skip: !Object.create }, function (st) {
684
- var expected = Object.create(null);
685
- expected.a = Object.create(null);
686
- expected.a.b = 'c';
687
- expected.a.hasOwnProperty = 'd';
688
- st.deepEqual(qs.parse('a[b]=c&a[hasOwnProperty]=d', { plainObjects: true }), expected);
689
- st.deepEqual(qs.parse(null, { plainObjects: true }), Object.create(null));
690
- var expectedArray = Object.create(null);
691
- expectedArray.a = Object.create(null);
692
- expectedArray.a[0] = 'b';
693
- expectedArray.a.c = 'd';
694
- st.deepEqual(qs.parse('a[]=b&a[c]=d', { plainObjects: true }), expectedArray);
695
- st.end();
696
- });
697
-
698
- t.test('can parse with custom encoding', function (st) {
699
- st.deepEqual(qs.parse('%8c%a7=%91%e5%8d%e3%95%7b', {
700
- decoder: function (str) {
701
- var reg = /%([0-9A-F]{2})/ig;
702
- var result = [];
703
- var parts = reg.exec(str);
704
- while (parts) {
705
- result.push(parseInt(parts[1], 16));
706
- parts = reg.exec(str);
707
- }
708
- return String(iconv.decode(SaferBuffer.from(result), 'shift_jis'));
709
- }
710
- }), { 県: '大阪府' });
711
- st.end();
712
- });
713
-
714
- t.test('receives the default decoder as a second argument', function (st) {
715
- st.plan(1);
716
- qs.parse('a', {
717
- decoder: function (str, defaultDecoder) {
718
- st.equal(defaultDecoder, utils.decode);
719
- }
720
- });
721
- st.end();
722
- });
723
-
724
- t.test('throws error with wrong decoder', function (st) {
725
- st['throws'](function () {
726
- qs.parse({}, { decoder: 'string' });
727
- }, new TypeError('Decoder has to be a function.'));
728
- st.end();
729
- });
730
-
731
- t.test('does not mutate the options argument', function (st) {
732
- var options = {};
733
- qs.parse('a[b]=true', options);
734
- st.deepEqual(options, {});
735
- st.end();
736
- });
737
-
738
- t.test('throws if an invalid charset is specified', function (st) {
739
- st['throws'](function () {
740
- qs.parse('a=b', { charset: 'foobar' });
741
- }, new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'));
742
- st.end();
743
- });
744
-
745
- t.test('parses an iso-8859-1 string if asked to', function (st) {
746
- st.deepEqual(qs.parse('%A2=%BD', { charset: 'iso-8859-1' }), { '¢': '½' });
747
- st.end();
748
- });
749
-
750
- var urlEncodedCheckmarkInUtf8 = '%E2%9C%93';
751
- var urlEncodedOSlashInUtf8 = '%C3%B8';
752
- var urlEncodedNumCheckmark = '%26%2310003%3B';
753
- var urlEncodedNumSmiley = '%26%239786%3B';
754
-
755
- t.test('prefers an utf-8 charset specified by the utf8 sentinel to a default charset of iso-8859-1', function (st) {
756
- st.deepEqual(qs.parse('utf8=' + urlEncodedCheckmarkInUtf8 + '&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true, charset: 'iso-8859-1' }), { ø: 'ø' });
757
- st.end();
758
- });
759
-
760
- t.test('prefers an iso-8859-1 charset specified by the utf8 sentinel to a default charset of utf-8', function (st) {
761
- st.deepEqual(qs.parse('utf8=' + urlEncodedNumCheckmark + '&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true, charset: 'utf-8' }), { 'ø': 'ø' });
762
- st.end();
763
- });
764
-
765
- t.test('does not require the utf8 sentinel to be defined before the parameters whose decoding it affects', function (st) {
766
- st.deepEqual(qs.parse('a=' + urlEncodedOSlashInUtf8 + '&utf8=' + urlEncodedNumCheckmark, { charsetSentinel: true, charset: 'utf-8' }), { a: 'ø' });
767
- st.end();
768
- });
769
-
770
- t.test('should ignore an utf8 sentinel with an unknown value', function (st) {
771
- st.deepEqual(qs.parse('utf8=foo&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true, charset: 'utf-8' }), { ø: 'ø' });
772
- st.end();
773
- });
774
-
775
- t.test('uses the utf8 sentinel to switch to utf-8 when no default charset is given', function (st) {
776
- st.deepEqual(qs.parse('utf8=' + urlEncodedCheckmarkInUtf8 + '&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true }), { ø: 'ø' });
777
- st.end();
778
- });
779
-
780
- t.test('uses the utf8 sentinel to switch to iso-8859-1 when no default charset is given', function (st) {
781
- st.deepEqual(qs.parse('utf8=' + urlEncodedNumCheckmark + '&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true }), { 'ø': 'ø' });
782
- st.end();
783
- });
784
-
785
- t.test('interprets numeric entities in iso-8859-1 when `interpretNumericEntities`', function (st) {
786
- st.deepEqual(qs.parse('foo=' + urlEncodedNumSmiley, { charset: 'iso-8859-1', interpretNumericEntities: true }), { foo: '☺' });
787
- st.end();
788
- });
789
-
790
- t.test('handles a custom decoder returning `null`, in the `iso-8859-1` charset, when `interpretNumericEntities`', function (st) {
791
- st.deepEqual(qs.parse('foo=&bar=' + urlEncodedNumSmiley, {
792
- charset: 'iso-8859-1',
793
- decoder: function (str, defaultDecoder, charset) {
794
- return str ? defaultDecoder(str, defaultDecoder, charset) : null;
795
- },
796
- interpretNumericEntities: true
797
- }), { foo: null, bar: '☺' });
798
- st.end();
799
- });
800
-
801
- t.test('does not interpret numeric entities in iso-8859-1 when `interpretNumericEntities` is absent', function (st) {
802
- st.deepEqual(qs.parse('foo=' + urlEncodedNumSmiley, { charset: 'iso-8859-1' }), { foo: '&#9786;' });
803
- st.end();
804
- });
805
-
806
- t.test('does not interpret numeric entities when the charset is utf-8, even when `interpretNumericEntities`', function (st) {
807
- st.deepEqual(qs.parse('foo=' + urlEncodedNumSmiley, { charset: 'utf-8', interpretNumericEntities: true }), { foo: '&#9786;' });
808
- st.end();
809
- });
810
-
811
- t.test('does not interpret %uXXXX syntax in iso-8859-1 mode', function (st) {
812
- st.deepEqual(qs.parse('%u263A=%u263A', { charset: 'iso-8859-1' }), { '%u263A': '%u263A' });
813
- st.end();
814
- });
815
-
816
- t.test('allows for decoding keys and values differently', function (st) {
817
- var decoder = function (str, defaultDecoder, charset, type) {
818
- if (type === 'key') {
819
- return defaultDecoder(str, defaultDecoder, charset, type).toLowerCase();
820
- }
821
- if (type === 'value') {
822
- return defaultDecoder(str, defaultDecoder, charset, type).toUpperCase();
823
- }
824
- throw 'this should never happen! type: ' + type;
825
- };
826
-
827
- st.deepEqual(qs.parse('KeY=vAlUe', { decoder: decoder }), { key: 'VALUE' });
828
- st.end();
829
- });
830
-
831
- t.end();
832
- });