@domql/state 2.5.38 → 2.5.46

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.
@@ -128,7 +128,7 @@ const remove = function(key, options = {}) {
128
128
  (0, import_utils.removeFromArray)(state, key);
129
129
  if ((0, import_utils.isObject)(state))
130
130
  (0, import_utils.removeFromObject)(state, key);
131
- return state.update(state.parse(), { replace: true, ...options });
131
+ return state.set(state.parse(), { replace: true, ...options });
132
132
  };
133
133
  const set = function(val, options = {}) {
134
134
  const state = this;
package/methods.js CHANGED
@@ -104,7 +104,7 @@ export const remove = function (key, options = {}) {
104
104
  const state = this
105
105
  if (isArray(state)) removeFromArray(state, key)
106
106
  if (isObject(state)) removeFromObject(state, key)
107
- return state.update(state.parse(), { replace: true, ...options })
107
+ return state.set(state.parse(), { replace: true, ...options })
108
108
  }
109
109
 
110
110
  export const set = function (val, options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/state",
3
- "version": "2.5.38",
3
+ "version": "2.5.46",
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": "58e7232b8f8553780368bc463000766575565816"
34
+ "gitHead": "9204dcaa75cdcc20bcb434451fe81b473194e009"
35
35
  }