@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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. 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 (!data.has(field))
111
- throw new Error(`Missing field ${field}`);
112
- toReturn.set(field, data.get(field));
113
- data.delete(field);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cripty2001/utils",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "Internal Set of utils. If you need them use them, otherwise go to the next package ;)",
5
5
  "homepage": "https://github.com/cripty2001/utils#readme",
6
6
  "bugs": {