rattail 0.0.5 → 0.0.6
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/lib/index.cjs +5 -6
- package/lib/index.js +5 -6
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -542,7 +542,6 @@ function delay(time) {
|
|
|
542
542
|
}
|
|
543
543
|
|
|
544
544
|
// src/collection.ts
|
|
545
|
-
var import_types = require("util/types");
|
|
546
545
|
function mergeWith(object, source, fn) {
|
|
547
546
|
function baseMerge(target, src) {
|
|
548
547
|
for (const key3 in src) {
|
|
@@ -589,7 +588,7 @@ function cloneDeepWith(value, fn) {
|
|
|
589
588
|
if (isDate(value2)) {
|
|
590
589
|
return new Date(value2);
|
|
591
590
|
}
|
|
592
|
-
if (
|
|
591
|
+
if (isRegExp(value2)) {
|
|
593
592
|
return new RegExp(value2);
|
|
594
593
|
}
|
|
595
594
|
if (isMap(value2)) {
|
|
@@ -611,16 +610,16 @@ function cloneDeepWith(value, fn) {
|
|
|
611
610
|
if (toRawType(value2) === "String" || toRawType(value2) === "Number" || toRawType(value2) === "Boolean") {
|
|
612
611
|
return newConstructor(value2, value2.valueOf());
|
|
613
612
|
}
|
|
614
|
-
if (
|
|
613
|
+
if (isWeakMap(value2) || isWeakSet(value2)) {
|
|
615
614
|
return {};
|
|
616
615
|
}
|
|
617
|
-
if (
|
|
616
|
+
if (isTypedArray(value2)) {
|
|
618
617
|
return newConstructor(value2, baseCloneArrayBuffer(value2.buffer), value2.byteOffset, value2.length);
|
|
619
618
|
}
|
|
620
|
-
if (
|
|
619
|
+
if (isDataView(value2)) {
|
|
621
620
|
return newConstructor(value2, baseCloneArrayBuffer(value2.buffer), value2.byteOffset, value2.byteLength);
|
|
622
621
|
}
|
|
623
|
-
if (
|
|
622
|
+
if (isArrayBuffer(value2)) {
|
|
624
623
|
return baseCloneArrayBuffer(value2);
|
|
625
624
|
}
|
|
626
625
|
if (isArray(value2)) {
|
package/lib/index.js
CHANGED
|
@@ -427,7 +427,6 @@ function delay(time) {
|
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
// src/collection.ts
|
|
430
|
-
import { isArrayBuffer as isArrayBuffer2, isDataView as isDataView2, isRegExp as isRegExp2, isTypedArray as isTypedArray2, isWeakMap as isWeakMap2 } from "util/types";
|
|
431
430
|
function mergeWith(object, source, fn) {
|
|
432
431
|
function baseMerge(target, src) {
|
|
433
432
|
for (const key3 in src) {
|
|
@@ -474,7 +473,7 @@ function cloneDeepWith(value, fn) {
|
|
|
474
473
|
if (isDate(value2)) {
|
|
475
474
|
return new Date(value2);
|
|
476
475
|
}
|
|
477
|
-
if (
|
|
476
|
+
if (isRegExp(value2)) {
|
|
478
477
|
return new RegExp(value2);
|
|
479
478
|
}
|
|
480
479
|
if (isMap(value2)) {
|
|
@@ -496,16 +495,16 @@ function cloneDeepWith(value, fn) {
|
|
|
496
495
|
if (toRawType(value2) === "String" || toRawType(value2) === "Number" || toRawType(value2) === "Boolean") {
|
|
497
496
|
return newConstructor(value2, value2.valueOf());
|
|
498
497
|
}
|
|
499
|
-
if (
|
|
498
|
+
if (isWeakMap(value2) || isWeakSet(value2)) {
|
|
500
499
|
return {};
|
|
501
500
|
}
|
|
502
|
-
if (
|
|
501
|
+
if (isTypedArray(value2)) {
|
|
503
502
|
return newConstructor(value2, baseCloneArrayBuffer(value2.buffer), value2.byteOffset, value2.length);
|
|
504
503
|
}
|
|
505
|
-
if (
|
|
504
|
+
if (isDataView(value2)) {
|
|
506
505
|
return newConstructor(value2, baseCloneArrayBuffer(value2.buffer), value2.byteOffset, value2.byteLength);
|
|
507
506
|
}
|
|
508
|
-
if (
|
|
507
|
+
if (isArrayBuffer(value2)) {
|
|
509
508
|
return baseCloneArrayBuffer(value2);
|
|
510
509
|
}
|
|
511
510
|
if (isArray(value2)) {
|