@domql/state 2.5.45 → 2.5.47

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/create.js CHANGED
@@ -3,7 +3,19 @@
3
3
  import { triggerEventOn } from '@domql/event'
4
4
  import { deepCloneWithExtnd, exec, is, isArray, isFunction, isObject, isUndefined } from '@domql/utils'
5
5
  import { IGNORE_STATE_PARAMS } from './ignore'
6
- import { add, apply, clean, destroy, parentUpdate, parse, remove, rootUpdate, set, reset, toggle } from './methods'
6
+ import {
7
+ add,
8
+ apply,
9
+ clean,
10
+ destroy,
11
+ parentUpdate,
12
+ parse,
13
+ remove,
14
+ rootUpdate,
15
+ set,
16
+ reset,
17
+ toggle
18
+ } from './methods'
7
19
  import { updateState } from './updateState'
8
20
  import { checkIfInherits, createInheritedState } from './inherit'
9
21
 
@@ -124,7 +124,6 @@ const toggle = function(key, options = {}) {
124
124
  };
125
125
  const remove = function(key, options = {}) {
126
126
  const state = this;
127
- console.log(state);
128
127
  if ((0, import_utils.isArray)(state))
129
128
  (0, import_utils.removeFromArray)(state, key);
130
129
  if ((0, import_utils.isObject)(state))
package/methods.js CHANGED
@@ -102,7 +102,6 @@ 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)
106
105
  if (isArray(state)) removeFromArray(state, key)
107
106
  if (isObject(state)) removeFromObject(state, key)
108
107
  return state.set(state.parse(), { replace: true, ...options })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/state",
3
- "version": "2.5.45",
3
+ "version": "2.5.47",
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": "d27f2c6a7f03bf170b68c5bfb2c45bddb8bf5e94"
34
+ "gitHead": "c49194ab459d5e43b9d5fabdf3d0f3c7b8b32b5f"
35
35
  }