@domql/element 2.5.144 → 2.5.145

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.
@@ -26,21 +26,21 @@ var import_utils = require("@domql/utils");
26
26
  var import_ignore = require("./ignore");
27
27
  var import_inherit = require("./inherit");
28
28
  const createPropsStack = (element, parent) => {
29
- const { props, __ref } = element;
30
- const propsStack = __ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
29
+ const { props, __ref: ref } = element;
30
+ const propsStack = ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
31
31
  if ((0, import_utils.isObject)(props))
32
32
  propsStack.push(props);
33
33
  else if (props === "inherit" && parent.props)
34
34
  propsStack.push(parent.props);
35
35
  else if (props)
36
36
  propsStack.push(props);
37
- if ((0, import_utils.isArray)(__ref.__extend)) {
38
- __ref.__extend.forEach((extend) => {
37
+ if ((0, import_utils.isArray)(ref.__extend)) {
38
+ ref.__extend.forEach((extend) => {
39
39
  if (extend.props && extend.props !== props)
40
40
  propsStack.push(extend.props);
41
41
  });
42
42
  }
43
- __ref.__props = propsStack;
43
+ ref.__props = propsStack;
44
44
  return propsStack;
45
45
  };
46
46
  const syncProps = (props, element) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.5.144",
3
+ "version": "2.5.145",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -31,7 +31,7 @@
31
31
  "@domql/state": "^2.5.144",
32
32
  "@domql/utils": "^2.5.144"
33
33
  },
34
- "gitHead": "9026efab1932521ec5eec3e88261eadb81f2e3cb",
34
+ "gitHead": "873bb299c17fb6c1f69d5e98ae34f4a5d23ce352",
35
35
  "devDependencies": {
36
36
  "@babel/core": "^7.12.0"
37
37
  }
package/props/create.js CHANGED
@@ -6,20 +6,20 @@ import { IGNORE_PROPS_PARAMS } from './ignore'
6
6
  import { inheritParentProps } from './inherit'
7
7
 
8
8
  const createPropsStack = (element, parent) => {
9
- const { props, __ref } = element
10
- const propsStack = __ref.__props = inheritParentProps(element, parent)
9
+ const { props, __ref: ref } = element
10
+ const propsStack = ref.__props = inheritParentProps(element, parent)
11
11
 
12
12
  if (isObject(props)) propsStack.push(props)
13
13
  else if (props === 'inherit' && parent.props) propsStack.push(parent.props)
14
14
  else if (props) propsStack.push(props)
15
15
 
16
- if (isArray(__ref.__extend)) {
17
- __ref.__extend.forEach(extend => {
16
+ if (isArray(ref.__extend)) {
17
+ ref.__extend.forEach(extend => {
18
18
  if (extend.props && extend.props !== props) propsStack.push(extend.props)
19
19
  })
20
20
  }
21
21
 
22
- __ref.__props = propsStack
22
+ ref.__props = propsStack
23
23
 
24
24
  return propsStack
25
25
  }