bajo-extra 1.1.8 → 1.1.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo-extra",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "Extra package for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/plugin/factory.js CHANGED
@@ -269,6 +269,9 @@ async function factory (pkgName) {
269
269
  delete opts.auth
270
270
  }
271
271
  const query = merge({}, opts.query, opts.params ?? {})
272
+ for (const q in query) {
273
+ if (!isSet(query[q])) delete query[q]
274
+ }
272
275
  if (!isEmpty(query)) opts.query = query
273
276
  delete opts.params
274
277
  if (!has(extra, 'cacheBuster')) extra.cacheBuster = true