diff options
author | Rebecca Turner <me@re-becca.org> | 2018-03-23 03:47:17 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2018-03-23 12:08:57 +0300 |
commit | 9b629d0c69599635ee066cb71fcc1b0155317f19 (patch) | |
tree | 532ca1b2f7150c9f5ff0d3817bd5fbbadb0b6381 /node_modules | |
parent | 97a9766962ab5125af3b2a1f7b4ef550a2e3599b (diff) |
query-string@5.1.1
Allow partial imports
Credit: @Haraldson
Diffstat (limited to 'node_modules')
-rw-r--r-- | node_modules/query-string/index.js | 13 | ||||
-rw-r--r-- | node_modules/query-string/package.json | 20 |
2 files changed, 18 insertions, 15 deletions
diff --git a/node_modules/query-string/index.js b/node_modules/query-string/index.js index 379d5feb1..10f156a43 100644 --- a/node_modules/query-string/index.js +++ b/node_modules/query-string/index.js @@ -113,15 +113,15 @@ function keysSorter(input) { return input; } -exports.extract = function (str) { +function extract(str) { var queryStart = str.indexOf('?'); if (queryStart === -1) { return ''; } return str.slice(queryStart + 1); -}; +} -exports.parse = function (str, opts) { +function parse(str, opts) { opts = objectAssign({arrayFormat: 'none'}, opts); var formatter = parserForArrayFormat(opts); @@ -165,7 +165,10 @@ exports.parse = function (str, opts) { return result; }, Object.create(null)); -}; +} + +exports.extract = extract; +exports.parse = parse; exports.stringify = function (obj, opts) { var defaults = { @@ -216,6 +219,6 @@ exports.stringify = function (obj, opts) { exports.parseUrl = function (str, opts) { return { url: str.split('?')[0] || '', - query: this.parse(this.extract(str), opts) + query: parse(extract(str), opts) }; }; diff --git a/node_modules/query-string/package.json b/node_modules/query-string/package.json index 6674628f2..6c1c2fac3 100644 --- a/node_modules/query-string/package.json +++ b/node_modules/query-string/package.json @@ -1,27 +1,27 @@ { - "_from": "query-string@5.1.0", - "_id": "query-string@5.1.0", + "_from": "query-string@5.1.1", + "_id": "query-string@5.1.1", "_inBundle": false, - "_integrity": "sha512-F3DkxxlY0AqD/rwe4YAwjRE2HjOkKW7TxsuteyrS/Jbwrxw887PqYBL4sWUJ9D/V1hmFns0SCD6FDyvlwo9RCQ==", + "_integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", "_location": "/query-string", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "query-string@5.1.0", + "raw": "query-string@5.1.1", "name": "query-string", "escapedName": "query-string", - "rawSpec": "5.1.0", + "rawSpec": "5.1.1", "saveSpec": null, - "fetchSpec": "5.1.0" + "fetchSpec": "5.1.1" }, "_requiredBy": [ "#USER", "/" ], - "_resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.0.tgz", - "_shasum": "9583b15fd1307f899e973ed418886426a9976469", - "_spec": "query-string@5.1.0", + "_resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", + "_shasum": "a78c012b71c17e05f2e3fa2319dd330682efb3cb", + "_spec": "query-string@5.1.1", "_where": "/Users/rebecca/code/npm", "author": { "name": "Sindre Sorhus", @@ -74,5 +74,5 @@ "scripts": { "test": "xo && ava" }, - "version": "5.1.0" + "version": "5.1.1" } |