@domql/state 2.5.170 → 2.5.177

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.
@@ -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.170",
3
+ "version": "2.5.177",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/esm/index.js",
@@ -27,9 +27,9 @@
27
27
  "prepublish": "rimraf -I dist && npm run build && npm run copy:package:cjs"
28
28
  },
29
29
  "dependencies": {
30
- "@domql/event": "^2.5.170",
30
+ "@domql/event": "^2.5.177",
31
31
  "@domql/report": "^2.5.162",
32
- "@domql/utils": "^2.5.170"
32
+ "@domql/utils": "^2.5.177"
33
33
  },
34
- "gitHead": "44f9d2c4157170a03784d6abca2eee3604b97270"
34
+ "gitHead": "faa8ed6c9ba30a49c81962cd3e16c0ffac833f4e"
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
- const stateKey = ref.__state
71
- const stateType = ref.__stateType
70
+
71
+ const stateKey = ref?.__state
72
+ const stateType = ref?.__stateType
72
73
  if (!stateKey) return
73
74
 
74
75
  const asksForInherit = checkIfInherits(element)