domql 3.2.3 → 3.2.7

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/index.js CHANGED
@@ -23,27 +23,26 @@ __export(index_exports, {
23
23
  module.exports = __toCommonJS(index_exports);
24
24
  var import_element = require("@domql/element");
25
25
  const create = (element, parent, key, options) => {
26
- var _a, _b, _c, _d, _e;
27
26
  const domqlElement = (import_element.create.default || import_element.create)(
28
27
  element,
29
28
  parent,
30
29
  key,
31
30
  options
32
31
  );
33
- const complete = (_a = domqlElement.on) == null ? void 0 : _a.complete;
32
+ const complete = domqlElement.on?.complete;
34
33
  if (complete) {
35
34
  domqlElement.on.complete(element, element.state, element.context, options);
36
35
  }
37
- const onComplete = (_b = domqlElement.props) == null ? void 0 : _b.onComplete;
36
+ const onComplete = domqlElement.props?.onComplete;
38
37
  if (onComplete) {
39
- (_c = domqlElement.props) == null ? void 0 : _c.onComplete(
38
+ domqlElement.props?.onComplete(
40
39
  element,
41
40
  element.state,
42
41
  element.context,
43
42
  options
44
43
  );
45
44
  }
46
- const initInspect = (_d = domqlElement.on) == null ? void 0 : _d.initInspect;
45
+ const initInspect = domqlElement.on?.initInspect;
47
46
  if (initInspect) {
48
47
  domqlElement.on.initInspect(
49
48
  element,
@@ -52,7 +51,7 @@ const create = (element, parent, key, options) => {
52
51
  options
53
52
  );
54
53
  }
55
- const initSync = (_e = domqlElement.on) == null ? void 0 : _e.initSync;
54
+ const initSync = domqlElement.on?.initSync;
56
55
  if (initSync) {
57
56
  domqlElement.on.initSync(element, element.state, element.context, options);
58
57
  }
package/dist/esm/index.js CHANGED
@@ -1,26 +1,25 @@
1
1
  import { TREE, create as createElement } from "@domql/element";
2
2
  const create = (element, parent, key, options) => {
3
- var _a, _b, _c, _d, _e;
4
3
  const domqlElement = (createElement.default || createElement)(
5
4
  element,
6
5
  parent,
7
6
  key,
8
7
  options
9
8
  );
10
- const complete = (_a = domqlElement.on) == null ? void 0 : _a.complete;
9
+ const complete = domqlElement.on?.complete;
11
10
  if (complete) {
12
11
  domqlElement.on.complete(element, element.state, element.context, options);
13
12
  }
14
- const onComplete = (_b = domqlElement.props) == null ? void 0 : _b.onComplete;
13
+ const onComplete = domqlElement.props?.onComplete;
15
14
  if (onComplete) {
16
- (_c = domqlElement.props) == null ? void 0 : _c.onComplete(
15
+ domqlElement.props?.onComplete(
17
16
  element,
18
17
  element.state,
19
18
  element.context,
20
19
  options
21
20
  );
22
21
  }
23
- const initInspect = (_d = domqlElement.on) == null ? void 0 : _d.initInspect;
22
+ const initInspect = domqlElement.on?.initInspect;
24
23
  if (initInspect) {
25
24
  domqlElement.on.initInspect(
26
25
  element,
@@ -29,7 +28,7 @@ const create = (element, parent, key, options) => {
29
28
  options
30
29
  );
31
30
  }
32
- const initSync = (_e = domqlElement.on) == null ? void 0 : _e.initSync;
31
+ const initSync = domqlElement.on?.initSync;
33
32
  if (initSync) {
34
33
  domqlElement.on.initSync(element, element.state, element.context, options);
35
34
  }