@domql/element 2.5.20 → 2.5.21

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.
@@ -64,17 +64,12 @@ const syncProps = (props, element) => {
64
64
  const createProps = function(element, parent, cached) {
65
65
  const { __ref: ref } = element;
66
66
  if (ref.__if) {
67
- try {
68
- const propsStack = cached || createPropsStack(element, parent);
69
- if (propsStack.length) {
70
- ref.__props = propsStack;
71
- syncProps(propsStack, element);
72
- } else {
73
- element.props = {};
74
- }
75
- } catch (e) {
67
+ const propsStack = cached || createPropsStack(element, parent);
68
+ if (propsStack.length) {
69
+ ref.__props = propsStack;
70
+ syncProps(propsStack, element);
71
+ } else {
76
72
  element.props = {};
77
- ref.__props = cached || [];
78
73
  }
79
74
  } else {
80
75
  element.props = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.5.20",
3
+ "version": "2.5.21",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -31,7 +31,7 @@
31
31
  "@domql/state": "latest",
32
32
  "@domql/utils": "latest"
33
33
  },
34
- "gitHead": "ca3d2e3ed3c4103c5659b2bcb2ca4df4c2bd7bf7",
34
+ "gitHead": "bc6fd0276b416145cb0d1435a6ec12c97ea97753",
35
35
  "devDependencies": {
36
36
  "@babel/core": "^7.12.0"
37
37
  }
package/props/create.js CHANGED
@@ -52,16 +52,11 @@ export const createProps = function (element, parent, cached) {
52
52
  const { __ref: ref } = element
53
53
 
54
54
  if (ref.__if) {
55
- try {
56
- const propsStack = cached || createPropsStack(element, parent)
57
- if (propsStack.length) {
58
- ref.__props = propsStack
59
- syncProps(propsStack, element)
60
- } else { element.props = {} }
61
- } catch (e) {
62
- element.props = {}
63
- ref.__props = cached || []
64
- }
55
+ const propsStack = cached || createPropsStack(element, parent)
56
+ if (propsStack.length) {
57
+ ref.__props = propsStack
58
+ syncProps(propsStack, element)
59
+ } else { element.props = {} }
65
60
  } else {
66
61
  element.props = {}
67
62
  ref.__props = cached || []