@domql/state 2.32.25 → 2.32.27
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.
- package/dist/cjs/methods.js +1 -1
- package/dist/esm/methods.js +1 -1
- package/methods.js +1 -1
- package/package.json +5 -5
package/dist/cjs/methods.js
CHANGED
|
@@ -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;
|
package/dist/esm/methods.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "2.32.27",
|
|
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.
|
|
32
|
-
"@domql/report": "^2.32.
|
|
33
|
-
"@domql/utils": "^2.32.
|
|
31
|
+
"@domql/event": "^2.32.27",
|
|
32
|
+
"@domql/report": "^2.32.27",
|
|
33
|
+
"@domql/utils": "^2.32.27"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "f381d42b95f2a166aa002a5de5f3c89009005039"
|
|
36
36
|
}
|