query-string
Advanced tools
Comparing version 4.3.2 to 4.3.3
@@ -72,3 +72,3 @@ 'use strict'; | ||
if (!result || accumulator[key] === undefined) { | ||
accumulator[key] = value; | ||
accumulator[key] = [value]; | ||
return; | ||
@@ -75,0 +75,0 @@ } |
{ | ||
"name": "query-string", | ||
"version": "4.3.2", | ||
"version": "4.3.3", | ||
"description": "Parse and stringify URL query strings", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -166,4 +166,20 @@ # query-string [![Build Status](https://travis-ci.org/sindresorhus/query-string.svg?branch=master)](https://travis-ci.org/sindresorhus/query-string) | ||
## Falsy values | ||
Sometimes you want to unset a key, or maybe just make it present without assigning a value to it. Here is how falsy values are stringified: | ||
```js | ||
queryString.stringify({foo: false}); | ||
//=> 'foo=false' | ||
queryString.stringify({foo: null}); | ||
//=> 'foo' | ||
queryString.stringify({foo: undefined}); | ||
//=> '' | ||
``` | ||
## License | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11094
185