mam 1.11.840 → 1.11.841
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 +9 -4
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +27 -8
- package/node.js.map +1 -1
- package/node.mjs +27 -8
- package/node.test.js +27 -8
- package/node.test.js.map +1 -1
- package/package.json +3 -1
package/node.js
CHANGED
|
@@ -4115,6 +4115,30 @@ var $;
|
|
|
4115
4115
|
$.$mol_mem_persist = $mol_wire_solid;
|
|
4116
4116
|
})($ || ($ = {}));
|
|
4117
4117
|
|
|
4118
|
+
;
|
|
4119
|
+
"use strict";
|
|
4120
|
+
var $;
|
|
4121
|
+
(function ($) {
|
|
4122
|
+
$.$mol_dom = $mol_dom_context;
|
|
4123
|
+
})($ || ($ = {}));
|
|
4124
|
+
|
|
4125
|
+
;
|
|
4126
|
+
"use strict";
|
|
4127
|
+
var $;
|
|
4128
|
+
(function ($) {
|
|
4129
|
+
function $mol_wait_user_async() {
|
|
4130
|
+
return new Promise(done => $mol_dom.addEventListener('click', function onclick() {
|
|
4131
|
+
$mol_dom.removeEventListener('click', onclick);
|
|
4132
|
+
done(null);
|
|
4133
|
+
}));
|
|
4134
|
+
}
|
|
4135
|
+
$.$mol_wait_user_async = $mol_wait_user_async;
|
|
4136
|
+
function $mol_wait_user() {
|
|
4137
|
+
return this.$mol_wire_sync(this).$mol_wait_user_async();
|
|
4138
|
+
}
|
|
4139
|
+
$.$mol_wait_user = $mol_wait_user;
|
|
4140
|
+
})($ || ($ = {}));
|
|
4141
|
+
|
|
4118
4142
|
;
|
|
4119
4143
|
"use strict";
|
|
4120
4144
|
var $;
|
|
@@ -4134,7 +4158,9 @@ var $;
|
|
|
4134
4158
|
return Boolean(next);
|
|
4135
4159
|
const native = this.native();
|
|
4136
4160
|
if (next && !$mol_mem_cached(() => this.persisted())) {
|
|
4137
|
-
|
|
4161
|
+
this.$.$mol_wait_user_async()
|
|
4162
|
+
.then(() => native.persist())
|
|
4163
|
+
.then(actual => {
|
|
4138
4164
|
setTimeout(() => this.persisted(actual, 'cache'), 5000);
|
|
4139
4165
|
if (actual)
|
|
4140
4166
|
this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
|
|
@@ -4220,13 +4246,6 @@ var $;
|
|
|
4220
4246
|
$.$mol_state_local = $mol_state_local;
|
|
4221
4247
|
})($ || ($ = {}));
|
|
4222
4248
|
|
|
4223
|
-
;
|
|
4224
|
-
"use strict";
|
|
4225
|
-
var $;
|
|
4226
|
-
(function ($) {
|
|
4227
|
-
$.$mol_dom = $mol_dom_context;
|
|
4228
|
-
})($ || ($ = {}));
|
|
4229
|
-
|
|
4230
4249
|
;
|
|
4231
4250
|
"use strict";
|
|
4232
4251
|
var $;
|