@jay-framework/view-state-merge 0.22.0 → 0.23.1
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.js +3 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
function deepMergeViewStates(base, overlay, trackByMap, path = "") {
|
|
2
|
-
if (!base && !overlay)
|
|
3
|
-
|
|
4
|
-
if (!base
|
|
5
|
-
return overlay || {};
|
|
6
|
-
if (!overlay)
|
|
7
|
-
return base || {};
|
|
2
|
+
if (!base && !overlay) return {};
|
|
3
|
+
if (!base) return overlay || {};
|
|
4
|
+
if (!overlay) return base || {};
|
|
8
5
|
const result = {};
|
|
9
6
|
const allKeys = /* @__PURE__ */ new Set([...Object.keys(base), ...Object.keys(overlay)]);
|
|
10
7
|
for (const key of allKeys) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/view-state-merge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"test:watch": "vitest"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@jay-framework/dev-environment": "^0.
|
|
23
|
+
"@jay-framework/dev-environment": "^0.23.1",
|
|
24
24
|
"@types/node": "^20.11.5",
|
|
25
25
|
"rimraf": "^5.0.5",
|
|
26
26
|
"tsup": "^8.0.1",
|