@domql/element 2.5.191 → 2.5.192

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.
@@ -31,11 +31,11 @@ const createValidDomqlObjectFromSugar = (el, parent, key, options) => {
31
31
  props: {},
32
32
  define: {}
33
33
  };
34
+ const allowedKeys = ["data", "state", "attr", "if"];
34
35
  for (const k in el) {
35
36
  const value = el[k];
36
37
  const isComponent = (0, import_utils.checkIfKeyIsComponent)(k);
37
38
  const isRegistry = import_mixins.REGISTRY[k];
38
- const allowedKeys = ["data", "state", "attr", "if"];
39
39
  if (isComponent || isRegistry || allowedKeys.includes(k)) {
40
40
  newElem[k] = value;
41
41
  } else {
@@ -14,11 +14,11 @@ const createValidDomqlObjectFromSugar = (el, parent, key, options) => {
14
14
  props: {},
15
15
  define: {}
16
16
  };
17
+ const allowedKeys = ["data", "state", "attr", "if"];
17
18
  for (const k in el) {
18
19
  const value = el[k];
19
20
  const isComponent = checkIfKeyIsComponent(k);
20
21
  const isRegistry = REGISTRY[k];
21
- const allowedKeys = ["data", "state", "attr", "if"];
22
22
  if (isComponent || isRegistry || allowedKeys.includes(k)) {
23
23
  newElem[k] = value;
24
24
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.5.191",
3
+ "version": "2.5.192",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -32,7 +32,7 @@
32
32
  "@domql/state": "^2.5.190",
33
33
  "@domql/utils": "^2.5.187"
34
34
  },
35
- "gitHead": "5d4f4461533c18d4ed4524c1631d8dee17452e93",
35
+ "gitHead": "54bd1babb63a37591e24d4bda2e6a4716a924e0d",
36
36
  "devDependencies": {
37
37
  "@babel/core": "^7.12.0"
38
38
  }
@@ -18,12 +18,13 @@ export const createValidDomqlObjectFromSugar = (el, parent, key, options) => {
18
18
  props: {},
19
19
  define: {}
20
20
  }
21
+
22
+ const allowedKeys = ['data', 'state', 'attr', 'if']
23
+
21
24
  for (const k in el) {
22
25
  const value = el[k]
23
-
24
26
  const isComponent = checkIfKeyIsComponent(k)
25
27
  const isRegistry = REGISTRY[k]
26
- const allowedKeys = ['data', 'state', 'attr', 'if']
27
28
  if (isComponent || isRegistry || allowedKeys.includes(k)) {
28
29
  newElem[k] = value
29
30
  } else {