@domql/state 2.5.38 → 2.5.45

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.
@@ -124,11 +124,12 @@ const toggle = function(key, options = {}) {
124
124
  };
125
125
  const remove = function(key, options = {}) {
126
126
  const state = this;
127
+ console.log(state);
127
128
  if ((0, import_utils.isArray)(state))
128
129
  (0, import_utils.removeFromArray)(state, key);
129
130
  if ((0, import_utils.isObject)(state))
130
131
  (0, import_utils.removeFromObject)(state, key);
131
- return state.update(state.parse(), { replace: true, ...options });
132
+ return state.set(state.parse(), { replace: true, ...options });
132
133
  };
133
134
  const set = function(val, options = {}) {
134
135
  const state = this;
package/methods.js CHANGED
@@ -102,9 +102,10 @@ export const toggle = function (key, options = {}) {
102
102
 
103
103
  export const remove = function (key, options = {}) {
104
104
  const state = this
105
+ console.log(state)
105
106
  if (isArray(state)) removeFromArray(state, key)
106
107
  if (isObject(state)) removeFromObject(state, key)
107
- return state.update(state.parse(), { replace: true, ...options })
108
+ return state.set(state.parse(), { replace: true, ...options })
108
109
  }
109
110
 
110
111
  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.45",
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": "d27f2c6a7f03bf170b68c5bfb2c45bddb8bf5e94"
35
35
  }