@domql/element 2.29.42 → 2.29.44

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/set.js CHANGED
@@ -51,10 +51,10 @@ const reset = async (options) => {
51
51
  });
52
52
  };
53
53
  const set = async function(params, options = {}, el) {
54
- var _a, _b;
54
+ var _a, _b, _c;
55
55
  const element = el || this;
56
56
  const { __ref: ref } = element;
57
- if (options.preventContentUpdate || ((_a = options.preventUpdate) == null ? void 0 : _a.includes("content")))
57
+ if (options.preventContentUpdate || options.preventUpdate && ((_b = (_a = options.preventUpdate).includes) == null ? void 0 : _b.call(_a, "content")))
58
58
  return;
59
59
  if (options.routerContentElement && options.lastElement) {
60
60
  if (options.routerContentElement !== options.lastElement.content) return;
@@ -86,7 +86,7 @@ const set = async function(params, options = {}, el) {
86
86
  params.childExtend = element.childExtend;
87
87
  props.ignoreChildExtend = true;
88
88
  }
89
- if (!(props == null ? void 0 : props.childProps) && ((_b = element.props) == null ? void 0 : _b.childProps)) {
89
+ if (!(props == null ? void 0 : props.childProps) && ((_c = element.props) == null ? void 0 : _c.childProps)) {
90
90
  props.childProps = element.props.childProps;
91
91
  props.ignoreChildProps = true;
92
92
  }
package/dist/esm/set.js CHANGED
@@ -25,10 +25,10 @@ const reset = async (options) => {
25
25
  });
26
26
  };
27
27
  const set = async function(params, options = {}, el) {
28
- var _a, _b;
28
+ var _a, _b, _c;
29
29
  const element = el || this;
30
30
  const { __ref: ref } = element;
31
- if (options.preventContentUpdate || ((_a = options.preventUpdate) == null ? void 0 : _a.includes("content")))
31
+ if (options.preventContentUpdate || options.preventUpdate && ((_b = (_a = options.preventUpdate).includes) == null ? void 0 : _b.call(_a, "content")))
32
32
  return;
33
33
  if (options.routerContentElement && options.lastElement) {
34
34
  if (options.routerContentElement !== options.lastElement.content) return;
@@ -60,7 +60,7 @@ const set = async function(params, options = {}, el) {
60
60
  params.childExtend = element.childExtend;
61
61
  props.ignoreChildExtend = true;
62
62
  }
63
- if (!(props == null ? void 0 : props.childProps) && ((_b = element.props) == null ? void 0 : _b.childProps)) {
63
+ if (!(props == null ? void 0 : props.childProps) && ((_c = element.props) == null ? void 0 : _c.childProps)) {
64
64
  props.childProps = element.props.childProps;
65
65
  props.ignoreChildProps = true;
66
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.29.42",
3
+ "version": "2.29.44",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -27,12 +27,12 @@
27
27
  "prepublish": "npx rimraf -I dist && npm run build && npm run copy:package:cjs"
28
28
  },
29
29
  "dependencies": {
30
- "@domql/event": "^2.29.42",
31
- "@domql/render": "^2.29.42",
32
- "@domql/state": "^2.29.42",
33
- "@domql/utils": "^2.29.42"
30
+ "@domql/event": "^2.29.44",
31
+ "@domql/render": "^2.29.44",
32
+ "@domql/state": "^2.29.44",
33
+ "@domql/utils": "^2.29.44"
34
34
  },
35
- "gitHead": "a69a0bbe9e6aef63fd76a8fa571898a320749c65",
35
+ "gitHead": "5eb985eb30c6abe3f450a1d164e5e99ec15ef1fd",
36
36
  "devDependencies": {
37
37
  "@babel/core": "^7.27.1"
38
38
  }
package/set.js CHANGED
@@ -37,7 +37,7 @@ export const set = async function (params, options = {}, el) {
37
37
 
38
38
  if (
39
39
  options.preventContentUpdate ||
40
- options.preventUpdate?.includes('content')
40
+ (options.preventUpdate && options.preventUpdate.includes?.('content'))
41
41
  )
42
42
  return
43
43