@domql/state 2.32.25 → 2.32.26

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.
@@ -129,7 +129,7 @@ const add = async function(value, options = {}) {
129
129
  };
130
130
  const toggle = async function(key, options = {}) {
131
131
  const state = this;
132
- return await state.update({ [key]: !state[key] }, options);
132
+ return await state.update({ [key]: !Boolean(state[key]) }, options);
133
133
  };
134
134
  const remove = async function(key, options = {}) {
135
135
  const state = this;
@@ -117,7 +117,7 @@ const add = async function(value, options = {}) {
117
117
  };
118
118
  const toggle = async function(key, options = {}) {
119
119
  const state = this;
120
- return await state.update({ [key]: !state[key] }, options);
120
+ return await state.update({ [key]: !Boolean(state[key]) }, options);
121
121
  };
122
122
  const remove = async function(key, options = {}) {
123
123
  const state = this;
package/methods.js CHANGED
@@ -113,7 +113,7 @@ export const add = async function (value, options = {}) {
113
113
 
114
114
  export const toggle = async function (key, options = {}) {
115
115
  const state = this
116
- return await state.update({ [key]: !state[key] }, options)
116
+ return await state.update({ [key]: !Boolean(state[key]) }, options)
117
117
  }
118
118
 
119
119
  export const remove = async function (key, options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/state",
3
- "version": "2.32.25",
3
+ "version": "2.32.26",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -28,9 +28,9 @@
28
28
  "prepublish": "npx rimraf -I dist && npm run build && npm run copy:package:cjs"
29
29
  },
30
30
  "dependencies": {
31
- "@domql/event": "^2.32.25",
32
- "@domql/report": "^2.32.25",
33
- "@domql/utils": "^2.32.25"
31
+ "@domql/event": "^2.32.26",
32
+ "@domql/report": "^2.32.26",
33
+ "@domql/utils": "^2.32.26"
34
34
  },
35
- "gitHead": "325683c8553a64ee952c8a36f4e823257d1e81bb"
35
+ "gitHead": "66d87154b447b4b96fdc5030ab372fbfeb4547f3"
36
36
  }