@domql/state 2.5.170 → 2.5.173
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/cjs/updateState.js +2 -2
- package/package.json +2 -2
- package/updateState.js +3 -2
package/dist/cjs/updateState.js
CHANGED
|
@@ -80,8 +80,8 @@ const applyOverwrite = (state, obj, options) => {
|
|
|
80
80
|
const hoistStateUpdate = (state, obj, options) => {
|
|
81
81
|
const element = state.__element;
|
|
82
82
|
const { parent, __ref: ref } = element;
|
|
83
|
-
const stateKey = ref.__state;
|
|
84
|
-
const stateType = ref.__stateType;
|
|
83
|
+
const stateKey = ref == null ? void 0 : ref.__state;
|
|
84
|
+
const stateType = ref == null ? void 0 : ref.__stateType;
|
|
85
85
|
if (!stateKey)
|
|
86
86
|
return;
|
|
87
87
|
const asksForInherit = (0, import_inherit.checkIfInherits)(element);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/state",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.173",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"@domql/report": "^2.5.162",
|
|
32
32
|
"@domql/utils": "^2.5.170"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "1e24ece1c2ab9e794b662804fcac399699bf99c5"
|
|
35
35
|
}
|
package/updateState.js
CHANGED
|
@@ -67,8 +67,9 @@ const applyOverwrite = (state, obj, options) => {
|
|
|
67
67
|
const hoistStateUpdate = (state, obj, options) => {
|
|
68
68
|
const element = state.__element
|
|
69
69
|
const { parent, __ref: ref } = element
|
|
70
|
-
|
|
71
|
-
const
|
|
70
|
+
|
|
71
|
+
const stateKey = ref?.__state
|
|
72
|
+
const stateType = ref?.__stateType
|
|
72
73
|
if (!stateKey) return
|
|
73
74
|
|
|
74
75
|
const asksForInherit = checkIfInherits(element)
|