@hapaul/api 0.1.48 → 0.1.49

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 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -131,9 +131,11 @@ function mergeHeaders(...allHeaders) {
131
131
  function defaultQuerySerializer(query) {
132
132
  const chunks = [];
133
133
  Object.entries(query).forEach(([key, val]) => {
134
- if (Array.isArray(val)) chunks.push(`${key}=${val}`);
134
+ if (Array.isArray(val)) val.forEach((item) => {
135
+ chunks.push(`${key}=${item}`);
136
+ });
135
137
  else if (isObject(val)) chunks.push(`${key}=${JSON.stringify(val)}`);
136
- else chunks.push(`${key}=${val}`);
138
+ else if (val !== void 0 && val !== null) chunks.push(`${key}=${val}`);
137
139
  });
138
140
  return chunks.join("&");
139
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hapaul/api",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [