mol_dump_lib 0.0.945 → 0.0.946
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/node.d.ts +5 -0
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +20 -1
- package/node.js.map +1 -1
- package/node.mjs +20 -1
- package/node.test.js +20 -1
- package/node.test.js.map +1 -1
- package/package.json +3 -1
- package/web.d.ts +5 -0
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +20 -1
- package/web.js.map +1 -1
- package/web.mjs +20 -1
package/node.mjs
CHANGED
|
@@ -2898,6 +2898,23 @@ var $;
|
|
|
2898
2898
|
$.$mol_mem_cached = $mol_wire_probe;
|
|
2899
2899
|
})($ || ($ = {}));
|
|
2900
2900
|
|
|
2901
|
+
;
|
|
2902
|
+
"use strict";
|
|
2903
|
+
var $;
|
|
2904
|
+
(function ($) {
|
|
2905
|
+
function $mol_wait_user_async() {
|
|
2906
|
+
return new Promise(done => $mol_dom.addEventListener('click', function onclick() {
|
|
2907
|
+
$mol_dom.removeEventListener('click', onclick);
|
|
2908
|
+
done(null);
|
|
2909
|
+
}));
|
|
2910
|
+
}
|
|
2911
|
+
$.$mol_wait_user_async = $mol_wait_user_async;
|
|
2912
|
+
function $mol_wait_user() {
|
|
2913
|
+
return this.$mol_wire_sync(this).$mol_wait_user_async();
|
|
2914
|
+
}
|
|
2915
|
+
$.$mol_wait_user = $mol_wait_user;
|
|
2916
|
+
})($ || ($ = {}));
|
|
2917
|
+
|
|
2901
2918
|
;
|
|
2902
2919
|
"use strict";
|
|
2903
2920
|
var $;
|
|
@@ -2917,7 +2934,9 @@ var $;
|
|
|
2917
2934
|
return Boolean(next);
|
|
2918
2935
|
const native = this.native();
|
|
2919
2936
|
if (next && !$mol_mem_cached(() => this.persisted())) {
|
|
2920
|
-
|
|
2937
|
+
this.$.$mol_wait_user_async()
|
|
2938
|
+
.then(() => native.persist())
|
|
2939
|
+
.then(actual => {
|
|
2921
2940
|
setTimeout(() => this.persisted(actual, 'cache'), 5000);
|
|
2922
2941
|
if (actual)
|
|
2923
2942
|
this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
|
package/node.test.js
CHANGED
|
@@ -2889,6 +2889,23 @@ var $;
|
|
|
2889
2889
|
$.$mol_mem_cached = $mol_wire_probe;
|
|
2890
2890
|
})($ || ($ = {}));
|
|
2891
2891
|
|
|
2892
|
+
;
|
|
2893
|
+
"use strict";
|
|
2894
|
+
var $;
|
|
2895
|
+
(function ($) {
|
|
2896
|
+
function $mol_wait_user_async() {
|
|
2897
|
+
return new Promise(done => $mol_dom.addEventListener('click', function onclick() {
|
|
2898
|
+
$mol_dom.removeEventListener('click', onclick);
|
|
2899
|
+
done(null);
|
|
2900
|
+
}));
|
|
2901
|
+
}
|
|
2902
|
+
$.$mol_wait_user_async = $mol_wait_user_async;
|
|
2903
|
+
function $mol_wait_user() {
|
|
2904
|
+
return this.$mol_wire_sync(this).$mol_wait_user_async();
|
|
2905
|
+
}
|
|
2906
|
+
$.$mol_wait_user = $mol_wait_user;
|
|
2907
|
+
})($ || ($ = {}));
|
|
2908
|
+
|
|
2892
2909
|
;
|
|
2893
2910
|
"use strict";
|
|
2894
2911
|
var $;
|
|
@@ -2908,7 +2925,9 @@ var $;
|
|
|
2908
2925
|
return Boolean(next);
|
|
2909
2926
|
const native = this.native();
|
|
2910
2927
|
if (next && !$mol_mem_cached(() => this.persisted())) {
|
|
2911
|
-
|
|
2928
|
+
this.$.$mol_wait_user_async()
|
|
2929
|
+
.then(() => native.persist())
|
|
2930
|
+
.then(actual => {
|
|
2912
2931
|
setTimeout(() => this.persisted(actual, 'cache'), 5000);
|
|
2913
2932
|
if (actual)
|
|
2914
2933
|
this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
|