@domql/element 2.5.114 → 2.5.116
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/methods/index.js +2 -1
- package/dist/cjs/set.js +0 -1
- package/methods/index.js +2 -1
- package/package.json +2 -2
- package/set.js +0 -1
|
@@ -257,10 +257,11 @@ const variables = function(obj = {}) {
|
|
|
257
257
|
changed: (cb) => {
|
|
258
258
|
if (!changed)
|
|
259
259
|
return;
|
|
260
|
-
cb(changes, (0, import_utils.deepClone)(varCaches));
|
|
260
|
+
const returns = cb(changes, (0, import_utils.deepClone)(varCaches));
|
|
261
261
|
for (const key in changes) {
|
|
262
262
|
varCaches[key] = changes[key];
|
|
263
263
|
}
|
|
264
|
+
return returns;
|
|
264
265
|
},
|
|
265
266
|
timeout: (cb, timeout) => {
|
|
266
267
|
if (!changed)
|
package/dist/cjs/set.js
CHANGED
|
@@ -66,7 +66,6 @@ const set = function(params, options = {}, el) {
|
|
|
66
66
|
if (options.preventContentUpdate === true && !hasCollection)
|
|
67
67
|
return;
|
|
68
68
|
if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils.deepContains)(params, content)) {
|
|
69
|
-
console.log((0, import_utils.deepContains)(params, content));
|
|
70
69
|
if (content == null ? void 0 : content.update)
|
|
71
70
|
content.update();
|
|
72
71
|
return;
|
package/methods/index.js
CHANGED
|
@@ -226,10 +226,11 @@ export const variables = function (obj = {}) {
|
|
|
226
226
|
return {
|
|
227
227
|
changed: (cb) => {
|
|
228
228
|
if (!changed) return
|
|
229
|
-
cb(changes, deepClone(varCaches))
|
|
229
|
+
const returns = cb(changes, deepClone(varCaches))
|
|
230
230
|
for (const key in changes) {
|
|
231
231
|
varCaches[key] = changes[key]
|
|
232
232
|
}
|
|
233
|
+
return returns
|
|
233
234
|
},
|
|
234
235
|
timeout: (cb, timeout) => {
|
|
235
236
|
if (!changed) return
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.116",
|
|
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": "cff7d465161d804f31e3b350081bb751da209eeb",
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/core": "^7.12.0"
|
|
37
37
|
}
|
package/set.js
CHANGED
|
@@ -37,7 +37,6 @@ const set = function (params, options = {}, el) {
|
|
|
37
37
|
if (options.preventContentUpdate === true && !hasCollection) return
|
|
38
38
|
|
|
39
39
|
if (ref.__noCollectionDifference || (__contentRef && __contentRef.__cached && deepContains(params, content))) {
|
|
40
|
-
console.log(deepContains(params, content))
|
|
41
40
|
if (content?.update) content.update()
|
|
42
41
|
return
|
|
43
42
|
}
|