@domql/state 2.5.7 → 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;
@@ -30,8 +30,8 @@ const STATE_UPDATE_OPTIONS = {
30
30
  overwrite: true,
31
31
  preventHoistElementUpdate: false,
32
32
  updateByState: true,
33
- execStateFunction: true,
34
33
  isHoisted: true,
34
+ execStateFunction: true,
35
35
  stateFunctionOverwrite: true
36
36
  };
37
37
  const updateState = function(obj, options = STATE_UPDATE_OPTIONS) {
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.7",
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": "fe6520d996b2ca837f6965928a51360ea91e9695"
34
+ "gitHead": "2d858d6237f30594a8bbe97c6aca8bc6dc925f85"
35
35
  }
package/updateState.js CHANGED
@@ -10,8 +10,8 @@ const STATE_UPDATE_OPTIONS = {
10
10
  overwrite: true,
11
11
  preventHoistElementUpdate: false,
12
12
  updateByState: true,
13
- execStateFunction: true,
14
13
  isHoisted: true,
14
+ execStateFunction: true,
15
15
  stateFunctionOverwrite: true
16
16
  }
17
17