pangea-lib 2.11.462 → 2.11.463

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/main.es.js CHANGED
@@ -20304,18 +20304,35 @@ function yA1(e, a, t) {
20304
20304
  a && Object.keys(a).forEach((c) => {
20305
20305
  if (e.hasOwnProperty(c) && a[c] !== void 0) {
20306
20306
  if (a[c] === null) {
20307
- e[c] = a[c];
20307
+ e[c] = null;
20308
20308
  return;
20309
20309
  }
20310
20310
  if (a[c] instanceof File) {
20311
- e[c] = a[c];
20311
+ const r = a[c];
20312
+ e[c] = new File([r], r.name, { type: r.type, lastModified: r.lastModified });
20312
20313
  return;
20313
20314
  }
20314
20315
  if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(a[c]) && O1(a[c], O1.ISO_8601, !0).isValid()) {
20315
20316
  e[c] = new Date(a[c]);
20316
20317
  return;
20317
20318
  }
20318
- typeof a[c] == "object" && (t != null && t[c]) ? Array.isArray(a[c]) ? e[c] = a[c].map((r) => new t[c](r)) : e[c] = new t[c](a[c]) : e[c] = a[c];
20319
+ if (typeof a[c] == "object") {
20320
+ if (t != null && t[c]) {
20321
+ if (Array.isArray(a[c])) {
20322
+ e[c] = a[c].map((r) => new t[c](r));
20323
+ return;
20324
+ }
20325
+ e[c] = new t[c](a[c]);
20326
+ return;
20327
+ }
20328
+ if (Array.isArray(a[c])) {
20329
+ e[c] = a[c].slice();
20330
+ return;
20331
+ }
20332
+ e[c] = JSON.parse(JSON.stringify(a[c]));
20333
+ return;
20334
+ }
20335
+ e[c] = a[c];
20319
20336
  }
20320
20337
  });
20321
20338
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.11.462",
4
+ "version": "2.11.463",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea#readme",