@cripty2001/utils 0.0.13 → 0.0.14
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/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -107,10 +107,10 @@ function parseQuery(query, fields) {
|
|
|
107
107
|
// Extracting fields
|
|
108
108
|
const toReturn = new URLSearchParams();
|
|
109
109
|
for (const field of fields) {
|
|
110
|
-
if (
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
if (data.has(field)) {
|
|
111
|
+
toReturn.set(field, data.get(field));
|
|
112
|
+
data.delete(field);
|
|
113
|
+
}
|
|
114
114
|
}
|
|
115
115
|
// Returning extracted fields
|
|
116
116
|
return {
|
package/package.json
CHANGED