query-string 6.10.0 → 6.10.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.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -313,11 +313,11 @@ exports.parseUrl = (input, options) => {
|
|
|
313
313
|
|
|
314
314
|
exports.stringifyUrl = (input, options) => {
|
|
315
315
|
const url = removeHash(input.url).split('?')[0] || '';
|
|
316
|
-
const queryFromUrl =
|
|
317
|
-
const parsedQueryFromUrl =
|
|
316
|
+
const queryFromUrl = exports.extract(input.url);
|
|
317
|
+
const parsedQueryFromUrl = exports.parse(queryFromUrl);
|
|
318
318
|
const hash = getHash(input.url);
|
|
319
319
|
const query = Object.assign(parsedQueryFromUrl, input.query);
|
|
320
|
-
let queryString =
|
|
320
|
+
let queryString = exports.stringify(query, options);
|
|
321
321
|
if (queryString) {
|
|
322
322
|
queryString = `?${queryString}`;
|
|
323
323
|
}
|