From ceb993590e4e376a9a78264ce7bb4327fbbb37fe Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 1 Aug 2019 14:01:05 -0700 Subject: [PATCH] query-string@6.8.2 --- node_modules/query-string/index.js | 2 +- node_modules/query-string/package.json | 20 ++++++++++---------- package-lock.json | 6 +++--- package.json | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/node_modules/query-string/index.js b/node_modules/query-string/index.js index da459c9404d0b..35c13e1a66565 100644 --- a/node_modules/query-string/index.js +++ b/node_modules/query-string/index.js @@ -202,7 +202,7 @@ function parse(input, options) { // http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters value = value === undefined ? null : decode(value, options); - if (options.parseNumbers && !Number.isNaN(Number(value))) { + if (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === 'string' && value.trim() !== '')) { value = Number(value); } else if (options.parseBooleans && value !== null && (value.toLowerCase() === 'true' || value.toLowerCase() === 'false')) { value = value.toLowerCase() === 'true'; diff --git a/node_modules/query-string/package.json b/node_modules/query-string/package.json index 916b3fe5a1714..4df6b20ef0e91 100644 --- a/node_modules/query-string/package.json +++ b/node_modules/query-string/package.json @@ -1,27 +1,27 @@ { - "_from": "query-string@6.8.1", - "_id": "query-string@6.8.1", + "_from": "query-string@6.8.2", + "_id": "query-string@6.8.2", "_inBundle": false, - "_integrity": "sha512-g6y0Lbq10a5pPQpjlFuojfMfV1Pd2Jw9h75ypiYPPia3Gcq2rgkKiIwbkS6JxH7c5f5u/B/sB+d13PU+g1eu4Q==", + "_integrity": "sha512-J3Qi8XZJXh93t2FiKyd/7Ec6GNifsjKXUsVFkSBj/kjLsDylWhnCz4NT1bkPcKotttPW+QbKGqqPH8OoI2pdqw==", "_location": "/query-string", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "query-string@6.8.1", + "raw": "query-string@6.8.2", "name": "query-string", "escapedName": "query-string", - "rawSpec": "6.8.1", + "rawSpec": "6.8.2", "saveSpec": null, - "fetchSpec": "6.8.1" + "fetchSpec": "6.8.2" }, "_requiredBy": [ "#USER", "/" ], - "_resolved": "https://registry.npmjs.org/query-string/-/query-string-6.8.1.tgz", - "_shasum": "62c54a7ef37d01b538c8fd56f95740c81d438a26", - "_spec": "query-string@6.8.1", + "_resolved": "https://registry.npmjs.org/query-string/-/query-string-6.8.2.tgz", + "_shasum": "36cb7e452ae11a4b5e9efee83375e0954407b2f6", + "_spec": "query-string@6.8.2", "_where": "/Users/isaacs/dev/npm/cli", "author": { "name": "Sindre Sorhus", @@ -78,5 +78,5 @@ "scripts": { "test": "xo && ava && tsd" }, - "version": "6.8.1" + "version": "6.8.2" } diff --git a/package-lock.json b/package-lock.json index 48bd8f4d7510b..bca91e2e34205 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4762,9 +4762,9 @@ "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" }, "query-string": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.8.1.tgz", - "integrity": "sha512-g6y0Lbq10a5pPQpjlFuojfMfV1Pd2Jw9h75ypiYPPia3Gcq2rgkKiIwbkS6JxH7c5f5u/B/sB+d13PU+g1eu4Q==", + "version": "6.8.2", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.8.2.tgz", + "integrity": "sha512-J3Qi8XZJXh93t2FiKyd/7Ec6GNifsjKXUsVFkSBj/kjLsDylWhnCz4NT1bkPcKotttPW+QbKGqqPH8OoI2pdqw==", "requires": { "decode-uri-component": "^0.2.0", "split-on-first": "^1.0.0", diff --git a/package.json b/package.json index 810b07c015c09..6b802b7dbbc99 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,7 @@ "path-is-inside": "~1.0.2", "promise-inflight": "~1.0.1", "qrcode-terminal": "^0.12.0", - "query-string": "^6.8.1", + "query-string": "^6.8.2", "qw": "~1.0.1", "read": "~1.0.7", "read-cmd-shim": "~1.0.1",