query-string 6.12.0 → 6.12.1

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 (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -246,7 +246,7 @@ function parse(input, options) {
246
246
 
247
247
  // Missing `=` should be `null`:
248
248
  // http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters
249
- value = value === undefined ? null : options.arrayFormat === 'comma' ? value : decode(value, options);
249
+ value = value === undefined ? null : ['comma', 'separator'].includes(options.arrayFormat) ? value : decode(value, options);
250
250
  formatter(decode(key, options), value, ret);
251
251
  }
252
252
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "query-string",
3
- "version": "6.12.0",
3
+ "version": "6.12.1",
4
4
  "description": "Parse and stringify URL query strings",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/query-string",