@harbor-design/proform 1.4.6 → 1.4.7

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 +11 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -372,8 +372,12 @@ class o {
372
372
  for (const t in e) {
373
373
  if (t === "componentProps")
374
374
  return !1;
375
- if (e.hasOwnProperty(t) && this.isProcessInprogress(e[t]))
376
- return !0;
375
+ if (e.hasOwnProperty(t)) {
376
+ if (e[t] instanceof Date)
377
+ return !1;
378
+ if (this.isProcessInprogress(e[t]))
379
+ return !0;
380
+ }
377
381
  }
378
382
  } else if (this.isArray(e)) {
379
383
  if (this.isArrayEmpty(e))
@@ -391,11 +395,14 @@ function b(r, ...e) {
391
395
  return e.forEach((t) => {
392
396
  if (Array.isArray(t))
393
397
  Array.isArray(r) || (r = []), t.forEach((i, s) => {
394
- typeof i == "object" && i !== null ? r[s] = b(Array.isArray(i) ? [] : {}, i) : r[s] = i;
398
+ typeof i == "object" && i !== null && !(i instanceof Date) ? r[s] = b(Array.isArray(i) ? [] : {}, i) : r[s] = i;
395
399
  });
396
400
  else
397
401
  for (const i in t)
398
- t.hasOwnProperty(i) && (typeof t[i] == "object" && t[i] !== null ? r[i] = b(r[i] || {}, t[i]) : r[i] = t[i]);
402
+ t.hasOwnProperty(i) && (typeof t[i] == "object" && t[i] !== null && !(t[i] instanceof Date) ? r[i] = b(
403
+ r[i] || (Array.isArray(t[i]) ? [] : {}),
404
+ t[i]
405
+ ) : r[i] = t[i]);
399
406
  }), r;
400
407
  }
401
408
  function I(r) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbor-design/proform",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",