@domql/state 2.5.9 → 2.5.15

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.
@@ -93,7 +93,7 @@ const rootUpdate = function(obj, options = {}) {
93
93
  if (!state)
94
94
  return;
95
95
  const rootState = state.__element.__ref.__root.state;
96
- return rootState.update(obj, { isHoisted: false, options });
96
+ return rootState.update(obj, { isHoisted: false, ...options });
97
97
  };
98
98
  const add = function(value, options = {}) {
99
99
  const state = this;
package/methods.js CHANGED
@@ -72,7 +72,7 @@ export const rootUpdate = function (obj, options = {}) {
72
72
  const state = this
73
73
  if (!state) return
74
74
  const rootState = (state.__element.__ref.__root).state
75
- return rootState.update(obj, { isHoisted: false, options })
75
+ return rootState.update(obj, { isHoisted: false, ...options })
76
76
  }
77
77
 
78
78
  export const add = function (value, options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/state",
3
- "version": "2.5.9",
3
+ "version": "2.5.15",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/esm/index.js",
@@ -31,5 +31,5 @@
31
31
  "@domql/report": "latest",
32
32
  "@domql/utils": "latest"
33
33
  },
34
- "gitHead": "72ca0c34d453da80307f93c6e3b214c5cbf03a66"
34
+ "gitHead": "2d858d6237f30594a8bbe97c6aca8bc6dc925f85"
35
35
  }