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/web.js
CHANGED
|
@@ -2220,6 +2220,23 @@ var $;
|
|
|
2220
2220
|
$.$mol_wire_sync = $mol_wire_sync;
|
|
2221
2221
|
})($ || ($ = {}));
|
|
2222
2222
|
|
|
2223
|
+
;
|
|
2224
|
+
"use strict";
|
|
2225
|
+
var $;
|
|
2226
|
+
(function ($) {
|
|
2227
|
+
function $mol_wait_user_async() {
|
|
2228
|
+
return new Promise(done => $mol_dom.addEventListener('click', function onclick() {
|
|
2229
|
+
$mol_dom.removeEventListener('click', onclick);
|
|
2230
|
+
done(null);
|
|
2231
|
+
}));
|
|
2232
|
+
}
|
|
2233
|
+
$.$mol_wait_user_async = $mol_wait_user_async;
|
|
2234
|
+
function $mol_wait_user() {
|
|
2235
|
+
return this.$mol_wire_sync(this).$mol_wait_user_async();
|
|
2236
|
+
}
|
|
2237
|
+
$.$mol_wait_user = $mol_wait_user;
|
|
2238
|
+
})($ || ($ = {}));
|
|
2239
|
+
|
|
2223
2240
|
;
|
|
2224
2241
|
"use strict";
|
|
2225
2242
|
var $;
|
|
@@ -2239,7 +2256,9 @@ var $;
|
|
|
2239
2256
|
return Boolean(next);
|
|
2240
2257
|
const native = this.native();
|
|
2241
2258
|
if (next && !$mol_mem_cached(() => this.persisted())) {
|
|
2242
|
-
|
|
2259
|
+
this.$.$mol_wait_user_async()
|
|
2260
|
+
.then(() => native.persist())
|
|
2261
|
+
.then(actual => {
|
|
2243
2262
|
setTimeout(() => this.persisted(actual, 'cache'), 5000);
|
|
2244
2263
|
if (actual)
|
|
2245
2264
|
this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
|