@domql/element 2.5.73 → 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/dist/cjs/node.js +2 -0
- package/dist/cjs/update.js +2 -0
- package/node.js +2 -0
- package/package.json +2 -2
- package/update.js +2 -0
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/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/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)
|