@wavy/fn 0.0.32 → 0.0.34
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.cjs +1 -1
- package/dist/main.js +1 -1
- package/package.json +3 -2
package/dist/main.cjs
CHANGED
|
@@ -631,7 +631,7 @@ function findObjectChanges(source, compareTo, options) {
|
|
|
631
631
|
const checkArrayEquality = options?.strict ? strictArrayEquals : arrayEquals;
|
|
632
632
|
if (Array.isArray(value) && Array.isArray(comparedValue) && !checkArrayEquality(value, comparedValue)) {
|
|
633
633
|
changes.push(key);
|
|
634
|
-
} else if (typeof value === "object" && typeof comparedValue === "object") {
|
|
634
|
+
} else if (!!value && !!comparedValue && typeof value === "object" && typeof comparedValue === "object") {
|
|
635
635
|
const newEntries = Object.entries(value).map(([newKey, newValue]) => {
|
|
636
636
|
return [key + "." + newKey, newValue];
|
|
637
637
|
});
|
package/dist/main.js
CHANGED
|
@@ -521,7 +521,7 @@ function findObjectChanges(source, compareTo, options) {
|
|
|
521
521
|
const checkArrayEquality = options?.strict ? strictArrayEquals : arrayEquals;
|
|
522
522
|
if (Array.isArray(value) && Array.isArray(comparedValue) && !checkArrayEquality(value, comparedValue)) {
|
|
523
523
|
changes.push(key);
|
|
524
|
-
} else if (typeof value === "object" && typeof comparedValue === "object") {
|
|
524
|
+
} else if (!!value && !!comparedValue && typeof value === "object" && typeof comparedValue === "object") {
|
|
525
525
|
const newEntries = Object.entries(value).map(([newKey, newValue]) => {
|
|
526
526
|
return [key + "." + newKey, newValue];
|
|
527
527
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavy/fn",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
4
4
|
"main": "./dist/main.js",
|
|
5
5
|
"module": "./dist/main.cjs",
|
|
6
6
|
"types": "./dist/main.d.ts",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://github.com/justVibes/literate-succotash#readme",
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"zod": "^4.2.1"
|
|
26
|
+
"zod": "^4.2.1",
|
|
27
|
+
"@wavy/util": "^0.0.7"
|
|
27
28
|
},
|
|
28
29
|
"description": "",
|
|
29
30
|
"devDependencies": {
|