@domql/element 2.5.72 → 2.5.74
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/create.js +1 -2
- package/dist/cjs/create.js +0 -1
- package/dist/cjs/node.js +2 -0
- package/dist/cjs/set.js +0 -2
- package/dist/cjs/update.js +2 -0
- package/node.js +2 -0
- package/package.json +2 -2
- package/set.js +0 -2
- package/update.js +2 -0
package/create.js
CHANGED
|
@@ -4,7 +4,7 @@ import createNode from './node'
|
|
|
4
4
|
import { ROOT } from './tree'
|
|
5
5
|
import { TAGS } from '@domql/registry'
|
|
6
6
|
import { triggerEventOn } from '@domql/event'
|
|
7
|
-
import { assignNode
|
|
7
|
+
import { assignNode } from '@domql/render'
|
|
8
8
|
import { createState } from '@domql/state'
|
|
9
9
|
|
|
10
10
|
import { isMethod } from './methods'
|
|
@@ -315,7 +315,6 @@ const addCaching = (element, parent) => {
|
|
|
315
315
|
|
|
316
316
|
const onlyResolveExtends = (element, parent, key, options) => {
|
|
317
317
|
const { __ref: ref } = element
|
|
318
|
-
const { __ref: parentRef } = parent
|
|
319
318
|
if (!ref.__skipCreate) {
|
|
320
319
|
addCaching(element, parent)
|
|
321
320
|
|
package/dist/cjs/create.js
CHANGED
|
@@ -244,7 +244,6 @@ const addCaching = (element, parent) => {
|
|
|
244
244
|
};
|
|
245
245
|
const onlyResolveExtends = (element, parent, key, options) => {
|
|
246
246
|
const { __ref: ref } = element;
|
|
247
|
-
const { __ref: parentRef } = parent;
|
|
248
247
|
if (!ref.__skipCreate) {
|
|
249
248
|
addCaching(element, parent);
|
|
250
249
|
(0, import_set.addMethods)(element, parent);
|
package/dist/cjs/node.js
CHANGED
|
@@ -70,6 +70,8 @@ const createNode = (element, options) => {
|
|
|
70
70
|
}
|
|
71
71
|
for (const param in element) {
|
|
72
72
|
const value = element[param];
|
|
73
|
+
if (!Object.hasOwnProperty.call(element, param))
|
|
74
|
+
continue;
|
|
73
75
|
if ((0, import_utils.isUndefined)(value) || (0, import_methods.isMethod)(param) || (0, import_utils2.isVariant)(param) || (0, import_utils.isObject)(import_mixins.registry[param]))
|
|
74
76
|
continue;
|
|
75
77
|
const isElement = (0, import_applyParam.applyParam)(param, element, options);
|
package/dist/cjs/set.js
CHANGED
|
@@ -47,8 +47,6 @@ const resetElement = (params, element, options) => {
|
|
|
47
47
|
...import_options.default.create,
|
|
48
48
|
...options
|
|
49
49
|
});
|
|
50
|
-
if (element.key === "Grid")
|
|
51
|
-
console.log(element.key, performance.now() - perf);
|
|
52
50
|
};
|
|
53
51
|
const set = function(params, options = {}, el) {
|
|
54
52
|
const element = el || this;
|
package/dist/cjs/update.js
CHANGED
|
@@ -126,6 +126,8 @@ const update = function(params = {}, options = UPDATE_DEFAULT_OPTIONS) {
|
|
|
126
126
|
}
|
|
127
127
|
for (const param in element) {
|
|
128
128
|
const prop = element[param];
|
|
129
|
+
if (!Object.hasOwnProperty.call(element, param))
|
|
130
|
+
continue;
|
|
129
131
|
const hasOnlyUpdateFalsy = onlyUpdate && (onlyUpdate !== param || !element.lookup(onlyUpdate));
|
|
130
132
|
const isInPreventUpdate = (0, import_utils.isArray)(preventUpdate) && preventUpdate.includes(param);
|
|
131
133
|
const isInPreventDefineUpdate = (0, import_utils.isArray)(preventDefineUpdate) && preventDefineUpdate.includes(param);
|
package/node.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.74",
|
|
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": "
|
|
34
|
+
"gitHead": "c1d0834562a0a1814beafc8cc96bac81a34e1b80",
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/core": "^7.12.0"
|
|
37
37
|
}
|
package/set.js
CHANGED
package/update.js
CHANGED
|
@@ -111,6 +111,8 @@ const update = function (params = {}, options = UPDATE_DEFAULT_OPTIONS) {
|
|
|
111
111
|
for (const param in element) {
|
|
112
112
|
const prop = element[param]
|
|
113
113
|
|
|
114
|
+
if (!Object.hasOwnProperty.call(element, param)) continue
|
|
115
|
+
|
|
114
116
|
const hasOnlyUpdateFalsy = onlyUpdate && (onlyUpdate !== param || !element.lookup(onlyUpdate))
|
|
115
117
|
const isInPreventUpdate = isArray(preventUpdate) && preventUpdate.includes(param)
|
|
116
118
|
const isInPreventDefineUpdate = isArray(preventDefineUpdate) && preventDefineUpdate.includes(param)
|