node-red-contrib-web-worldmap 2.33.0 → 2.35.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 (127) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +3 -8
  3. package/node_modules/@turf/bezier-spline/package.json +70 -39
  4. package/node_modules/@turf/helpers/package.json +82 -38
  5. package/node_modules/@turf/invariant/package.json +73 -36
  6. package/node_modules/accepts/package.json +55 -15
  7. package/node_modules/array-flatten/package.json +47 -22
  8. package/node_modules/body-parser/HISTORY.md +0 -6
  9. package/node_modules/body-parser/README.md +1 -1
  10. package/node_modules/body-parser/index.js +9 -8
  11. package/node_modules/body-parser/node_modules/bytes/package.json +62 -20
  12. package/node_modules/body-parser/package.json +57 -18
  13. package/node_modules/bufferjs/package.json +65 -17
  14. package/node_modules/bufferlist/package.json +51 -15
  15. package/node_modules/call-bind/package.json +106 -78
  16. package/node_modules/cgi/package.json +46 -10
  17. package/node_modules/compressible/package.json +58 -15
  18. package/node_modules/compression/node_modules/bytes/package.json +84 -0
  19. package/node_modules/compression/package.json +52 -10
  20. package/node_modules/content-disposition/node_modules/safe-buffer/package.json +43 -18
  21. package/node_modules/content-disposition/package.json +49 -14
  22. package/node_modules/content-type/package.json +54 -15
  23. package/node_modules/cookie/package.json +52 -14
  24. package/node_modules/cookie-signature/package.json +47 -8
  25. package/node_modules/debug/package.json +68 -21
  26. package/node_modules/depd/package.json +51 -13
  27. package/node_modules/destroy/package.json +50 -15
  28. package/node_modules/ee-first/package.json +43 -9
  29. package/node_modules/encodeurl/package.json +52 -14
  30. package/node_modules/escape-html/package.json +47 -12
  31. package/node_modules/etag/package.json +54 -15
  32. package/node_modules/express/History.md +0 -9
  33. package/node_modules/express/Readme.md +2 -2
  34. package/node_modules/express/lib/router/route.js +8 -8
  35. package/node_modules/express/node_modules/safe-buffer/package.json +43 -18
  36. package/node_modules/express/package.json +88 -33
  37. package/node_modules/extend/package.json +78 -42
  38. package/node_modules/faye-websocket/package.json +64 -33
  39. package/node_modules/finalhandler/package.json +44 -9
  40. package/node_modules/forwarded/package.json +49 -14
  41. package/node_modules/fresh/package.json +61 -17
  42. package/node_modules/function-bind/package.json +56 -23
  43. package/node_modules/get-intrinsic/package.json +118 -89
  44. package/node_modules/has/package.json +46 -21
  45. package/node_modules/has-symbols/package.json +124 -99
  46. package/node_modules/header-stack/package.json +48 -14
  47. package/node_modules/http-errors/package.json +63 -18
  48. package/node_modules/iconv-lite/package.json +77 -43
  49. package/node_modules/inherits/package.json +44 -12
  50. package/node_modules/ipaddr.js/package.json +48 -13
  51. package/node_modules/media-typer/package.json +43 -8
  52. package/node_modules/merge-descriptors/package.json +47 -10
  53. package/node_modules/methods/package.json +60 -17
  54. package/node_modules/mime/package.json +45 -13
  55. package/node_modules/mime-db/HISTORY.md +0 -8
  56. package/node_modules/mime-db/LICENSE +18 -19
  57. package/node_modules/mime-db/README.md +1 -1
  58. package/node_modules/mime-db/db.json +6 -54
  59. package/node_modules/mime-db/index.js +0 -1
  60. package/node_modules/mime-db/package.json +67 -24
  61. package/node_modules/mime-types/HISTORY.md +0 -9
  62. package/node_modules/mime-types/README.md +1 -1
  63. package/node_modules/mime-types/package.json +63 -19
  64. package/node_modules/ms/package.json +54 -19
  65. package/node_modules/negotiator/package.json +61 -19
  66. package/node_modules/object-inspect/package.json +76 -48
  67. package/node_modules/on-finished/package.json +50 -8
  68. package/node_modules/on-headers/package.json +52 -14
  69. package/node_modules/parseurl/package.json +54 -10
  70. package/node_modules/path-to-regexp/package.json +44 -15
  71. package/node_modules/proxy-addr/package.json +49 -14
  72. package/node_modules/qs/.editorconfig +0 -3
  73. package/node_modules/qs/.eslintrc +5 -5
  74. package/node_modules/qs/CHANGELOG.md +0 -158
  75. package/node_modules/qs/README.md +1 -3
  76. package/node_modules/qs/dist/qs.js +9 -19
  77. package/node_modules/qs/lib/stringify.js +3 -12
  78. package/node_modules/qs/package.json +98 -73
  79. package/node_modules/qs/test/parse.js +0 -14
  80. package/node_modules/qs/test/stringify.js +10 -54
  81. package/node_modules/range-parser/package.json +68 -18
  82. package/node_modules/raw-body/node_modules/bytes/package.json +62 -20
  83. package/node_modules/raw-body/package.json +51 -9
  84. package/node_modules/safe-buffer/package.json +36 -5
  85. package/node_modules/safer-buffer/package.json +42 -13
  86. package/node_modules/send/node_modules/ms/package.json +52 -20
  87. package/node_modules/send/package.json +62 -17
  88. package/node_modules/serve-static/package.json +44 -9
  89. package/node_modules/setprototypeof/package.json +55 -27
  90. package/node_modules/side-channel/package.json +93 -65
  91. package/node_modules/sockjs/package.json +70 -43
  92. package/node_modules/statuses/package.json +61 -19
  93. package/node_modules/stream-stack/package.json +43 -11
  94. package/node_modules/toidentifier/package.json +51 -9
  95. package/node_modules/type-is/package.json +55 -12
  96. package/node_modules/unpipe/package.json +45 -8
  97. package/node_modules/utils-merge/package.json +45 -19
  98. package/node_modules/uuid/package.json +99 -70
  99. package/node_modules/vary/package.json +52 -13
  100. package/node_modules/websocket-driver/node_modules/http-parser-js/README.md +31 -0
  101. package/node_modules/{http-parser-js → websocket-driver/node_modules/http-parser-js}/http-parser.js +7 -12
  102. package/node_modules/websocket-driver/node_modules/http-parser-js/package.json +75 -0
  103. package/node_modules/websocket-driver/package.json +68 -33
  104. package/node_modules/websocket-extensions/package.json +61 -27
  105. package/package.json +1 -1
  106. package/worldmap/worldmap.js +6 -5
  107. package/node_modules/bytes/package.json +0 -39
  108. package/node_modules/faye-websocket/CHANGELOG.md +0 -139
  109. package/node_modules/header-stack/headers.js +0 -33
  110. package/node_modules/header-stack/index.js +0 -2
  111. package/node_modules/header-stack/parser.js +0 -131
  112. package/node_modules/header-stack/tests/dumps/multipart-folded-headers.eml +0 -27
  113. package/node_modules/header-stack/tests/dumps/simple-curl-get.dump +0 -5
  114. package/node_modules/header-stack/tests/test-empty.js +0 -15
  115. package/node_modules/header-stack/tests/test-multipart-folded-headers.js +0 -21
  116. package/node_modules/header-stack/tests/test-simple-curl-get.js +0 -32
  117. package/node_modules/http-parser-js/README.md +0 -43
  118. package/node_modules/http-parser-js/http-parser.d.ts +0 -175
  119. package/node_modules/http-parser-js/package.json +0 -30
  120. package/node_modules/path-to-regexp/History.md +0 -36
  121. package/node_modules/websocket-driver/CHANGELOG.md +0 -142
  122. package/node_modules/websocket-extensions/CHANGELOG.md +0 -28
  123. /package/node_modules/{bytes → compression/node_modules/bytes}/History.md +0 -0
  124. /package/node_modules/{bytes → compression/node_modules/bytes}/LICENSE +0 -0
  125. /package/node_modules/{bytes → compression/node_modules/bytes}/Readme.md +0 -0
  126. /package/node_modules/{bytes → compression/node_modules/bytes}/index.js +0 -0
  127. /package/node_modules/{http-parser-js → websocket-driver/node_modules/http-parser-js}/LICENSE.md +0 -0
@@ -1,15 +1,3 @@
1
- ## **6.11.0
2
- - [New] [Fix] `stringify`: revert 0e903c0; add `commaRoundTrip` option (#442)
3
- - [readme] fix version badge
4
-
5
- ## **6.10.5**
6
- - [Fix] `stringify`: with `arrayFormat: comma`, properly include an explicit `[]` on a single-item array (#434)
7
-
8
- ## **6.10.4**
9
- - [Fix] `stringify`: with `arrayFormat: comma`, include an explicit `[]` on a single-item array (#441)
10
- - [meta] use `npmignore` to autogenerate an npmignore file
11
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `has-symbol`, `object-inspect`, `tape`
12
-
13
1
  ## **6.10.3**
14
2
  - [Fix] `parse`: ignore `__proto__` keys (#428)
15
3
  - [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
@@ -39,18 +27,6 @@
39
27
  - [Tests] use `ljharb/actions/node/install` instead of `ljharb/actions/node/run`
40
28
  - [Tests] Revert "[meta] ignore eclint transitive audit warning"
41
29
 
42
- ## **6.9.7**
43
- - [Fix] `parse`: ignore `__proto__` keys (#428)
44
- - [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424)
45
- - [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
46
- - [readme] remove travis badge; add github actions/codecov badges; update URLs
47
- - [Docs] add note and links for coercing primitive values (#408)
48
- - [Tests] clean up stringify tests slightly
49
- - [meta] fix README.md (#399)
50
- - Revert "[meta] ignore eclint transitive audit warning"
51
- - [actions] backport actions from main
52
- - [Dev Deps] backport updates from main
53
-
54
30
  ## **6.9.6**
55
31
  - [Fix] restore `dist` dir; mistakenly removed in d4f6c32
56
32
 
@@ -99,19 +75,6 @@
99
75
  - [Tests] up to `node` `v12.10`, `v11.15`, `v10.16`, `v8.16`
100
76
  - [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray
101
77
 
102
- ## **6.8.3**
103
- - [Fix] `parse`: ignore `__proto__` keys (#428)
104
- - [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
105
- - [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424)
106
- - [readme] remove travis badge; add github actions/codecov badges; update URLs
107
- - [Tests] clean up stringify tests slightly
108
- - [Docs] add note and links for coercing primitive values (#408)
109
- - [meta] fix README.md (#399)
110
- - [actions] backport actions from main
111
- - [Dev Deps] backport updates from main
112
- - [Refactor] `stringify`: reduce branching
113
- - [meta] do not publish workflow files
114
-
115
78
  ## **6.8.2**
116
79
  - [Fix] proper comma parsing of URL-encoded commas (#361)
117
80
  - [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336)
@@ -143,19 +106,6 @@
143
106
  - [meta] add FUNDING.yml
144
107
  - [meta] Clean up license text so it’s properly detected as BSD-3-Clause
145
108
 
146
- ## **6.7.3**
147
- - [Fix] `parse`: ignore `__proto__` keys (#428)
148
- - [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424)
149
- - [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
150
- - [readme] remove travis badge; add github actions/codecov badges; update URLs
151
- - [Docs] add note and links for coercing primitive values (#408)
152
- - [meta] fix README.md (#399)
153
- - [meta] do not publish workflow files
154
- - [actions] backport actions from main
155
- - [Dev Deps] backport updates from main
156
- - [Tests] use `nyc` for coverage
157
- - [Tests] clean up stringify tests slightly
158
-
159
109
  ## **6.7.2**
160
110
  - [Fix] proper comma parsing of URL-encoded commas (#361)
161
111
  - [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336)
@@ -194,32 +144,6 @@
194
144
  - [Tests] fix Buffer tests to work in node < 4.5 and node < 5.10
195
145
  - [Tests] temporarily allow coverage to fail
196
146
 
197
- ## **6.6.1**
198
- - [Fix] `parse`: ignore `__proto__` keys (#428)
199
- - [Fix] fix for an impossible situation: when the formatter is called with a non-string value
200
- - [Fix] `utils.merge`: avoid a crash with a null target and an array source
201
- - [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source
202
- - [Fix] correctly parse nested arrays
203
- - [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
204
- - [Robustness] `stringify`: cache `Object.prototype.hasOwnProperty`
205
- - [Refactor] `formats`: tiny bit of cleanup.
206
- - [Refactor] `utils`: `isBuffer`: small tweak; add tests
207
- - [Refactor]: `stringify`/`utils`: cache `Array.isArray`
208
- - [Refactor] `utils`: reduce observable [[Get]]s
209
- - [Refactor] use cached `Array.isArray`
210
- - [Refactor] `parse`/`stringify`: make a function to normalize the options
211
- - [readme] remove travis badge; add github actions/codecov badges; update URLs
212
- - [Docs] Clarify the need for "arrayLimit" option
213
- - [meta] fix README.md (#399)
214
- - [meta] do not publish workflow files
215
- - [meta] Clean up license text so it’s properly detected as BSD-3-Clause
216
- - [meta] add FUNDING.yml
217
- - [meta] Fixes typo in CHANGELOG.md
218
- - [actions] backport actions from main
219
- - [Tests] fix Buffer tests to work in node < 4.5 and node < 5.10
220
- - [Tests] always use `String(x)` over `x.toString()`
221
- - [Dev Deps] backport from main
222
-
223
147
  ## **6.6.0**
224
148
  - [New] Add support for iso-8859-1, utf8 "sentinel" and numeric entities (#268)
225
149
  - [New] move two-value combine to a `utils` function (#189)
@@ -236,30 +160,6 @@
236
160
  - [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`, `iconv-lite`, `safe-publish-latest`, `tape`
237
161
  - [Tests] up to `node` `v10.10`, `v9.11`, `v8.12`, `v6.14`, `v4.9`; pin included builds to LTS
238
162
 
239
- ## **6.5.3**
240
- - [Fix] `parse`: ignore `__proto__` keys (#428)
241
- - [Fix]` `utils.merge`: avoid a crash with a null target and a truthy non-array source
242
- - [Fix] correctly parse nested arrays
243
- - [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279)
244
- - [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided
245
- - [Fix] when `parseArrays` is false, properly handle keys ending in `[]`
246
- - [Fix] fix for an impossible situation: when the formatter is called with a non-string value
247
- - [Fix] `utils.merge`: avoid a crash with a null target and an array source
248
- - [Refactor] `utils`: reduce observable [[Get]]s
249
- - [Refactor] use cached `Array.isArray`
250
- - [Refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269)
251
- - [Refactor] `parse`: only need to reassign the var once
252
- - [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
253
- - [readme] remove travis badge; add github actions/codecov badges; update URLs
254
- - [Docs] Clean up license text so it’s properly detected as BSD-3-Clause
255
- - [Docs] Clarify the need for "arrayLimit" option
256
- - [meta] fix README.md (#399)
257
- - [meta] add FUNDING.yml
258
- - [actions] backport actions from main
259
- - [Tests] always use `String(x)` over `x.toString()`
260
- - [Tests] remove nonexistent tape option
261
- - [Dev Deps] backport from main
262
-
263
163
  ## **6.5.2**
264
164
  - [Fix] use `safer-buffer` instead of `Buffer` constructor
265
165
  - [Refactor] utils: `module.exports` one thing, instead of mutating `exports` (#230)
@@ -286,27 +186,6 @@
286
186
  - [Tests] up to `node` `v8.1`, `v7.10`, `v6.11`; npm v4.6 breaks on node < v1; npm v5+ breaks on node < v4
287
187
  - [Tests] add `editorconfig-tools`
288
188
 
289
- ## **6.4.1**
290
- - [Fix] `parse`: ignore `__proto__` keys (#428)
291
- - [Fix] fix for an impossible situation: when the formatter is called with a non-string value
292
- - [Fix] use `safer-buffer` instead of `Buffer` constructor
293
- - [Fix] `utils.merge`: avoid a crash with a null target and an array source
294
- - [Fix]` `utils.merge`: avoid a crash with a null target and a truthy non-array source
295
- - [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279)
296
- - [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided
297
- - [Fix] when `parseArrays` is false, properly handle keys ending in `[]`
298
- - [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
299
- - [Refactor] use cached `Array.isArray`
300
- - [Refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269)
301
- - [readme] remove travis badge; add github actions/codecov badges; update URLs
302
- - [Docs] Clarify the need for "arrayLimit" option
303
- - [meta] fix README.md (#399)
304
- - [meta] Clean up license text so it’s properly detected as BSD-3-Clause
305
- - [meta] add FUNDING.yml
306
- - [actions] backport actions from main
307
- - [Tests] remove nonexistent tape option
308
- - [Dev Deps] backport from main
309
-
310
189
  ## **6.4.0**
311
190
  - [New] `qs.stringify`: add `encodeValuesOnly` option
312
191
  - [Fix] follow `allowPrototypes` option during merge (#201, #201)
@@ -316,26 +195,6 @@
316
195
  - [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
317
196
  - [eslint] reduce warnings
318
197
 
319
- ## **6.3.3**
320
- - [Fix] `parse`: ignore `__proto__` keys (#428)
321
- - [Fix] fix for an impossible situation: when the formatter is called with a non-string value
322
- - [Fix] `utils.merge`: avoid a crash with a null target and an array source
323
- - [Fix]` `utils.merge`: avoid a crash with a null target and a truthy non-array source
324
- - [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279)
325
- - [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided
326
- - [Fix] when `parseArrays` is false, properly handle keys ending in `[]`
327
- - [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
328
- - [Refactor] use cached `Array.isArray`
329
- - [Refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269)
330
- - [Docs] Clarify the need for "arrayLimit" option
331
- - [meta] fix README.md (#399)
332
- - [meta] Clean up license text so it’s properly detected as BSD-3-Clause
333
- - [meta] add FUNDING.yml
334
- - [actions] backport actions from main
335
- - [Tests] use `safer-buffer` instead of `Buffer` constructor
336
- - [Tests] remove nonexistent tape option
337
- - [Dev Deps] backport from main
338
-
339
198
  ## **6.3.2**
340
199
  - [Fix] follow `allowPrototypes` option during merge (#201, #200)
341
200
  - [Dev Deps] update `eslint`
@@ -369,23 +228,6 @@
369
228
  - [Tests] skip Object.create tests when null objects are not available
370
229
  - [Tests] Turn on eslint for test files (#175)
371
230
 
372
- ## **6.2.4**
373
- - [Fix] `parse`: ignore `__proto__` keys (#428)
374
- - [Fix] `utils.merge`: avoid a crash with a null target and an array source
375
- - [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source
376
- - [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided
377
- - [Fix] when `parseArrays` is false, properly handle keys ending in `[]`
378
- - [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
379
- - [Refactor] use cached `Array.isArray`
380
- - [Docs] Clarify the need for "arrayLimit" option
381
- - [meta] fix README.md (#399)
382
- - [meta] Clean up license text so it’s properly detected as BSD-3-Clause
383
- - [meta] add FUNDING.yml
384
- - [actions] backport actions from main
385
- - [Tests] use `safer-buffer` instead of `Buffer` constructor
386
- - [Tests] remove nonexistent tape option
387
- - [Dev Deps] backport from main
388
-
389
231
  ## **6.2.3**
390
232
  - [Fix] follow `allowPrototypes` option during merge (#201, #200)
391
233
  - [Fix] chmod a-x
@@ -1,4 +1,4 @@
1
- # qs <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
1
+ # qs <sup>[![Version Badge][2]][1]</sup>
2
2
 
3
3
  [![github actions][actions-image]][actions-url]
4
4
  [![coverage][codecov-image]][codecov-url]
@@ -402,8 +402,6 @@ qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'comma' })
402
402
  // 'a=b,c'
403
403
  ```
404
404
 
405
- Note: when using `arrayFormat` set to `'comma'`, you can also pass the `commaRoundTrip` option set to `true` or `false`, to append `[]` on single-item arrays, so that they can round trip through a parse.
406
-
407
405
  When objects are stringified, by default they use bracket notation:
408
406
 
409
407
  ```javascript
@@ -366,7 +366,6 @@ var stringify = function stringify(
366
366
  object,
367
367
  prefix,
368
368
  generateArrayPrefix,
369
- commaRoundTrip,
370
369
  strictNullHandling,
371
370
  skipNulls,
372
371
  encoder,
@@ -431,7 +430,7 @@ var stringify = function stringify(
431
430
  for (var i = 0; i < valuesArray.length; ++i) {
432
431
  valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
433
432
  }
434
- return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
433
+ return [formatter(keyValue) + '=' + valuesJoined];
435
434
  }
436
435
  return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
437
436
  }
@@ -455,8 +454,6 @@ var stringify = function stringify(
455
454
  objKeys = sort ? keys.sort(sort) : keys;
456
455
  }
457
456
 
458
- var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
459
-
460
457
  for (var j = 0; j < objKeys.length; ++j) {
461
458
  var key = objKeys[j];
462
459
  var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
@@ -466,8 +463,8 @@ var stringify = function stringify(
466
463
  }
467
464
 
468
465
  var keyPrefix = isArray(obj)
469
- ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
470
- : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
466
+ ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
467
+ : prefix + (allowDots ? '.' + key : '[' + key + ']');
471
468
 
472
469
  sideChannel.set(object, step);
473
470
  var valueSideChannel = getSideChannel();
@@ -476,7 +473,6 @@ var stringify = function stringify(
476
473
  value,
477
474
  keyPrefix,
478
475
  generateArrayPrefix,
479
- commaRoundTrip,
480
476
  strictNullHandling,
481
477
  skipNulls,
482
478
  encoder,
@@ -573,10 +569,6 @@ module.exports = function (object, opts) {
573
569
  }
574
570
 
575
571
  var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
576
- if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
577
- throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
578
- }
579
- var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
580
572
 
581
573
  if (!objKeys) {
582
574
  objKeys = Object.keys(obj);
@@ -597,7 +589,6 @@ module.exports = function (object, opts) {
597
589
  obj[key],
598
590
  key,
599
591
  generateArrayPrefix,
600
- commaRoundTrip,
601
592
  options.strictNullHandling,
602
593
  options.skipNulls,
603
594
  options.encode ? options.encoder : null,
@@ -1478,9 +1469,8 @@ function addNumericSeparator(num, str) {
1478
1469
  return $replace.call(str, sepRegex, '$&_');
1479
1470
  }
1480
1471
 
1481
- var utilInspect = require('./util.inspect');
1482
- var inspectCustom = utilInspect.custom;
1483
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
1472
+ var inspectCustom = require('./util.inspect').custom;
1473
+ var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
1484
1474
 
1485
1475
  module.exports = function inspect_(obj, options, depth, seen) {
1486
1476
  var opts = options || {};
@@ -1570,7 +1560,7 @@ module.exports = function inspect_(obj, options, depth, seen) {
1570
1560
  return inspect_(value, opts, depth + 1, seen);
1571
1561
  }
1572
1562
 
1573
- if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
1563
+ if (typeof obj === 'function') {
1574
1564
  var name = nameOf(obj);
1575
1565
  var keys = arrObjKeys(obj, inspect);
1576
1566
  return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
@@ -1600,15 +1590,15 @@ module.exports = function inspect_(obj, options, depth, seen) {
1600
1590
  }
1601
1591
  if (isError(obj)) {
1602
1592
  var parts = arrObjKeys(obj, inspect);
1603
- if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
1593
+ if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
1604
1594
  return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
1605
1595
  }
1606
1596
  if (parts.length === 0) { return '[' + String(obj) + ']'; }
1607
1597
  return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
1608
1598
  }
1609
1599
  if (typeof obj === 'object' && customInspect) {
1610
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
1611
- return utilInspect(obj, { depth: maxDepth - depth });
1600
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
1601
+ return obj[inspectSymbol]();
1612
1602
  } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
1613
1603
  return obj.inspect();
1614
1604
  }
@@ -62,7 +62,6 @@ var stringify = function stringify(
62
62
  object,
63
63
  prefix,
64
64
  generateArrayPrefix,
65
- commaRoundTrip,
66
65
  strictNullHandling,
67
66
  skipNulls,
68
67
  encoder,
@@ -127,7 +126,7 @@ var stringify = function stringify(
127
126
  for (var i = 0; i < valuesArray.length; ++i) {
128
127
  valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
129
128
  }
130
- return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
129
+ return [formatter(keyValue) + '=' + valuesJoined];
131
130
  }
132
131
  return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
133
132
  }
@@ -151,8 +150,6 @@ var stringify = function stringify(
151
150
  objKeys = sort ? keys.sort(sort) : keys;
152
151
  }
153
152
 
154
- var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
155
-
156
153
  for (var j = 0; j < objKeys.length; ++j) {
157
154
  var key = objKeys[j];
158
155
  var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
@@ -162,8 +159,8 @@ var stringify = function stringify(
162
159
  }
163
160
 
164
161
  var keyPrefix = isArray(obj)
165
- ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
166
- : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
162
+ ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
163
+ : prefix + (allowDots ? '.' + key : '[' + key + ']');
167
164
 
168
165
  sideChannel.set(object, step);
169
166
  var valueSideChannel = getSideChannel();
@@ -172,7 +169,6 @@ var stringify = function stringify(
172
169
  value,
173
170
  keyPrefix,
174
171
  generateArrayPrefix,
175
- commaRoundTrip,
176
172
  strictNullHandling,
177
173
  skipNulls,
178
174
  encoder,
@@ -269,10 +265,6 @@ module.exports = function (object, opts) {
269
265
  }
270
266
 
271
267
  var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
272
- if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
273
- throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
274
- }
275
- var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
276
268
 
277
269
  if (!objKeys) {
278
270
  objKeys = Object.keys(obj);
@@ -293,7 +285,6 @@ module.exports = function (object, opts) {
293
285
  obj[key],
294
286
  key,
295
287
  generateArrayPrefix,
296
- commaRoundTrip,
297
288
  options.strictNullHandling,
298
289
  options.skipNulls,
299
290
  options.encode ? options.encoder : null,
@@ -1,77 +1,102 @@
1
1
  {
2
+ "_from": "qs@6.10.3",
3
+ "_id": "qs@6.10.3",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==",
6
+ "_location": "/qs",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "version",
10
+ "registry": true,
11
+ "raw": "qs@6.10.3",
2
12
  "name": "qs",
3
- "description": "A querystring parser that supports nesting and arrays, with a depth limit",
4
- "homepage": "https://github.com/ljharb/qs",
5
- "version": "6.11.0",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/ljharb/qs.git"
9
- },
10
- "funding": {
11
- "url": "https://github.com/sponsors/ljharb"
12
- },
13
- "main": "lib/index.js",
14
- "contributors": [
15
- {
16
- "name": "Jordan Harband",
17
- "email": "ljharb@gmail.com",
18
- "url": "http://ljharb.codes"
19
- }
20
- ],
21
- "keywords": [
22
- "querystring",
23
- "qs",
24
- "query",
25
- "url",
26
- "parse",
27
- "stringify"
28
- ],
29
- "engines": {
30
- "node": ">=0.6"
31
- },
32
- "dependencies": {
33
- "side-channel": "^1.0.4"
34
- },
35
- "devDependencies": {
36
- "@ljharb/eslint-config": "^21.0.0",
37
- "aud": "^2.0.0",
38
- "browserify": "^16.5.2",
39
- "eclint": "^2.8.1",
40
- "eslint": "=8.8.0",
41
- "evalmd": "^0.0.19",
42
- "for-each": "^0.3.3",
43
- "has-symbols": "^1.0.3",
44
- "iconv-lite": "^0.5.1",
45
- "in-publish": "^2.0.1",
46
- "mkdirp": "^0.5.5",
47
- "npmignore": "^0.3.0",
48
- "nyc": "^10.3.2",
49
- "object-inspect": "^1.12.2",
50
- "qs-iconv": "^1.0.4",
51
- "safe-publish-latest": "^2.0.0",
52
- "safer-buffer": "^2.1.2",
53
- "tape": "^5.5.3"
54
- },
55
- "scripts": {
56
- "prepack": "npmignore --auto --commentLines=autogenerated",
57
- "prepublishOnly": "safe-publish-latest && npm run dist",
58
- "prepublish": "not-in-publish || npm run prepublishOnly",
59
- "pretest": "npm run --silent readme && npm run --silent lint",
60
- "test": "npm run tests-only",
61
- "tests-only": "nyc tape 'test/**/*.js'",
62
- "posttest": "aud --production",
63
- "readme": "evalmd README.md",
64
- "postlint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)",
65
- "lint": "eslint --ext=js,mjs .",
66
- "dist": "mkdirp dist && browserify --standalone Qs lib/index.js > dist/qs.js"
67
- },
68
- "license": "BSD-3-Clause",
69
- "publishConfig": {
70
- "ignore": [
71
- "!dist/*",
72
- "bower.json",
73
- "component.json",
74
- ".github/workflows"
75
- ]
13
+ "escapedName": "qs",
14
+ "rawSpec": "6.10.3",
15
+ "saveSpec": null,
16
+ "fetchSpec": "6.10.3"
17
+ },
18
+ "_requiredBy": [
19
+ "/body-parser",
20
+ "/express"
21
+ ],
22
+ "_resolved": "https://registry.npmjs.org/qs/-/qs-6.10.3.tgz",
23
+ "_shasum": "d6cde1b2ffca87b5aa57889816c5f81535e22e8e",
24
+ "_spec": "qs@6.10.3",
25
+ "_where": "/Users/conway/Projects/worldmap/node_modules/express",
26
+ "bugs": {
27
+ "url": "https://github.com/ljharb/qs/issues"
28
+ },
29
+ "bundleDependencies": false,
30
+ "contributors": [
31
+ {
32
+ "name": "Jordan Harband",
33
+ "email": "ljharb@gmail.com",
34
+ "url": "http://ljharb.codes"
76
35
  }
36
+ ],
37
+ "dependencies": {
38
+ "side-channel": "^1.0.4"
39
+ },
40
+ "deprecated": false,
41
+ "description": "A querystring parser that supports nesting and arrays, with a depth limit",
42
+ "devDependencies": {
43
+ "@ljharb/eslint-config": "^20.1.0",
44
+ "aud": "^1.1.5",
45
+ "browserify": "^16.5.2",
46
+ "eclint": "^2.8.1",
47
+ "eslint": "^8.6.0",
48
+ "evalmd": "^0.0.19",
49
+ "for-each": "^0.3.3",
50
+ "has-symbols": "^1.0.2",
51
+ "iconv-lite": "^0.5.1",
52
+ "in-publish": "^2.0.1",
53
+ "mkdirp": "^0.5.5",
54
+ "nyc": "^10.3.2",
55
+ "object-inspect": "^1.12.0",
56
+ "qs-iconv": "^1.0.4",
57
+ "safe-publish-latest": "^2.0.0",
58
+ "safer-buffer": "^2.1.2",
59
+ "tape": "^5.4.0"
60
+ },
61
+ "engines": {
62
+ "node": ">=0.6"
63
+ },
64
+ "funding": {
65
+ "url": "https://github.com/sponsors/ljharb"
66
+ },
67
+ "greenkeeper": {
68
+ "ignore": [
69
+ "iconv-lite",
70
+ "mkdirp"
71
+ ]
72
+ },
73
+ "homepage": "https://github.com/ljharb/qs",
74
+ "keywords": [
75
+ "querystring",
76
+ "qs",
77
+ "query",
78
+ "url",
79
+ "parse",
80
+ "stringify"
81
+ ],
82
+ "license": "BSD-3-Clause",
83
+ "main": "lib/index.js",
84
+ "name": "qs",
85
+ "repository": {
86
+ "type": "git",
87
+ "url": "git+https://github.com/ljharb/qs.git"
88
+ },
89
+ "scripts": {
90
+ "dist": "mkdirp dist && browserify --standalone Qs lib/index.js > dist/qs.js",
91
+ "lint": "eslint .",
92
+ "postlint": "eclint check * lib/* test/* !dist/*",
93
+ "posttest": "aud --production",
94
+ "prepublish": "not-in-publish || npm run prepublishOnly",
95
+ "prepublishOnly": "safe-publish-latest && npm run dist",
96
+ "pretest": "npm run --silent readme && npm run --silent lint",
97
+ "readme": "evalmd README.md",
98
+ "test": "npm run tests-only",
99
+ "tests-only": "nyc tape 'test/**/*.js'"
100
+ },
101
+ "version": "6.10.3"
77
102
  }
@@ -140,9 +140,6 @@ test('parse()', function (t) {
140
140
  t.test('limits specific array indices to arrayLimit', function (st) {
141
141
  st.deepEqual(qs.parse('a[20]=a', { arrayLimit: 20 }), { a: ['a'] });
142
142
  st.deepEqual(qs.parse('a[21]=a', { arrayLimit: 20 }), { a: { 21: 'a' } });
143
-
144
- st.deepEqual(qs.parse('a[20]=a'), { a: ['a'] });
145
- st.deepEqual(qs.parse('a[21]=a'), { a: { 21: 'a' } });
146
143
  st.end();
147
144
  });
148
145
 
@@ -381,7 +378,6 @@ test('parse()', function (t) {
381
378
  st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' });
382
379
  st.deepEqual(qs.parse('foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' });
383
380
  st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: false }), { '?foo': 'bar' });
384
-
385
381
  st.end();
386
382
  });
387
383
 
@@ -410,16 +406,6 @@ test('parse()', function (t) {
410
406
  st.deepEqual(qs.parse('foo=', { comma: true }), { foo: '' });
411
407
  st.deepEqual(qs.parse('foo', { comma: true }), { foo: '' });
412
408
  st.deepEqual(qs.parse('foo', { comma: true, strictNullHandling: true }), { foo: null });
413
-
414
- // test cases inversed from from stringify tests
415
- st.deepEqual(qs.parse('a[0]=c'), { a: ['c'] });
416
- st.deepEqual(qs.parse('a[]=c'), { a: ['c'] });
417
- st.deepEqual(qs.parse('a[]=c', { comma: true }), { a: ['c'] });
418
-
419
- st.deepEqual(qs.parse('a[0]=c&a[1]=d'), { a: ['c', 'd'] });
420
- st.deepEqual(qs.parse('a[]=c&a[]=d'), { a: ['c', 'd'] });
421
- st.deepEqual(qs.parse('a=c,d', { comma: true }), { a: ['c', 'd'] });
422
-
423
409
  st.end();
424
410
  });
425
411