@domql/element 2.5.78 → 2.5.79

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.
@@ -54,7 +54,9 @@ const UPDATE_DEFAULT_OPTIONS = {
54
54
  excludes: import_utils2.METHODS_EXL
55
55
  };
56
56
  const update = function(params = {}, opts = UPDATE_DEFAULT_OPTIONS) {
57
- const options = (0, import_utils2.deepClone)((0, import_utils2.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS));
57
+ const calleeElementCache = opts.calleeElement;
58
+ const options = (0, import_utils2.deepClone)((0, import_utils2.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS), ["calleeElement"]);
59
+ options.calleeElement = calleeElementCache;
58
60
  const element = this;
59
61
  const { parent, node, key } = element;
60
62
  const { excludes, preventInheritAtCurrentState } = options;
@@ -36,7 +36,7 @@ var import_state = require("@domql/state");
36
36
  var import_props = require("../props");
37
37
  var import_methods = require("../methods");
38
38
  const METHODS_EXL = (0, import_utils.joinArrays)(
39
- ["node", "state", "context", "extend"],
39
+ ["node", "state", "context", "extend", "__element"],
40
40
  import_methods.METHODS,
41
41
  import_state.IGNORE_STATE_PARAMS,
42
42
  import_props.IGNORE_PROPS_PARAMS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.5.78",
3
+ "version": "2.5.79",
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": "053f137856aad06574e99486357f486d6d724132",
34
+ "gitHead": "f8d79497e401e72f952090edb53f372bd6f109df",
35
35
  "devDependencies": {
36
36
  "@babel/core": "^7.12.0"
37
37
  }
package/update.js CHANGED
@@ -40,7 +40,9 @@ const UPDATE_DEFAULT_OPTIONS = {
40
40
  }
41
41
 
42
42
  const update = function (params = {}, opts = UPDATE_DEFAULT_OPTIONS) {
43
- const options = deepClone(deepMerge(opts, UPDATE_DEFAULT_OPTIONS))
43
+ const calleeElementCache = opts.calleeElement
44
+ const options = deepClone(deepMerge(opts, UPDATE_DEFAULT_OPTIONS), ['calleeElement'])
45
+ options.calleeElement = calleeElementCache
44
46
  const element = this
45
47
  const { parent, node, key } = element
46
48
  const { excludes, preventInheritAtCurrentState } = options
package/utils/object.js CHANGED
@@ -6,7 +6,7 @@ import { IGNORE_PROPS_PARAMS } from '../props'
6
6
  import { METHODS } from '../methods'
7
7
 
8
8
  export const METHODS_EXL = joinArrays(
9
- ['node', 'state', 'context', 'extend'],
9
+ ['node', 'state', 'context', 'extend', '__element'],
10
10
  METHODS,
11
11
  IGNORE_STATE_PARAMS,
12
12
  IGNORE_PROPS_PARAMS