@authyon/auth 0.2.0-beta.20 → 0.2.0-beta.21

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.cjs CHANGED
@@ -269,7 +269,14 @@ function appendQuery(path2, params) {
269
269
  if (!params) return path2;
270
270
  const query = new URLSearchParams();
271
271
  for (const [key, value2] of Object.entries(params)) {
272
- if (value2 !== void 0) query.set(key, String(value2));
272
+ if (value2 === void 0) continue;
273
+ if (Array.isArray(value2)) {
274
+ for (const item of value2) {
275
+ if (item !== void 0) query.append(key, String(item));
276
+ }
277
+ continue;
278
+ }
279
+ query.set(key, String(value2));
273
280
  }
274
281
  const value = query.toString();
275
282
  return value ? `${path2}${path2.includes("?") ? "&" : "?"}${value}` : path2;
package/dist/index.js CHANGED
@@ -237,7 +237,14 @@ function appendQuery(path2, params) {
237
237
  if (!params) return path2;
238
238
  const query = new URLSearchParams();
239
239
  for (const [key, value2] of Object.entries(params)) {
240
- if (value2 !== void 0) query.set(key, String(value2));
240
+ if (value2 === void 0) continue;
241
+ if (Array.isArray(value2)) {
242
+ for (const item of value2) {
243
+ if (item !== void 0) query.append(key, String(item));
244
+ }
245
+ continue;
246
+ }
247
+ query.set(key, String(value2));
241
248
  }
242
249
  const value = query.toString();
243
250
  return value ? `${path2}${path2.includes("?") ? "&" : "?"}${value}` : path2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authyon/auth",
3
- "version": "0.2.0-beta.20",
3
+ "version": "0.2.0-beta.21",
4
4
  "description": "Authyon SDK for browsers — auth, sessions, multi-tenant and 2FA for vanilla JS/TS.",
5
5
  "license": "MIT",
6
6
  "type": "module",