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.mjs
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 $;
|
package/node.test.js
CHANGED
|
@@ -4106,6 +4106,30 @@ var $;
|
|
|
4106
4106
|
$.$mol_mem_persist = $mol_wire_solid;
|
|
4107
4107
|
})($ || ($ = {}));
|
|
4108
4108
|
|
|
4109
|
+
;
|
|
4110
|
+
"use strict";
|
|
4111
|
+
var $;
|
|
4112
|
+
(function ($) {
|
|
4113
|
+
$.$mol_dom = $mol_dom_context;
|
|
4114
|
+
})($ || ($ = {}));
|
|
4115
|
+
|
|
4116
|
+
;
|
|
4117
|
+
"use strict";
|
|
4118
|
+
var $;
|
|
4119
|
+
(function ($) {
|
|
4120
|
+
function $mol_wait_user_async() {
|
|
4121
|
+
return new Promise(done => $mol_dom.addEventListener('click', function onclick() {
|
|
4122
|
+
$mol_dom.removeEventListener('click', onclick);
|
|
4123
|
+
done(null);
|
|
4124
|
+
}));
|
|
4125
|
+
}
|
|
4126
|
+
$.$mol_wait_user_async = $mol_wait_user_async;
|
|
4127
|
+
function $mol_wait_user() {
|
|
4128
|
+
return this.$mol_wire_sync(this).$mol_wait_user_async();
|
|
4129
|
+
}
|
|
4130
|
+
$.$mol_wait_user = $mol_wait_user;
|
|
4131
|
+
})($ || ($ = {}));
|
|
4132
|
+
|
|
4109
4133
|
;
|
|
4110
4134
|
"use strict";
|
|
4111
4135
|
var $;
|
|
@@ -4125,7 +4149,9 @@ var $;
|
|
|
4125
4149
|
return Boolean(next);
|
|
4126
4150
|
const native = this.native();
|
|
4127
4151
|
if (next && !$mol_mem_cached(() => this.persisted())) {
|
|
4128
|
-
|
|
4152
|
+
this.$.$mol_wait_user_async()
|
|
4153
|
+
.then(() => native.persist())
|
|
4154
|
+
.then(actual => {
|
|
4129
4155
|
setTimeout(() => this.persisted(actual, 'cache'), 5000);
|
|
4130
4156
|
if (actual)
|
|
4131
4157
|
this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
|
|
@@ -4211,13 +4237,6 @@ var $;
|
|
|
4211
4237
|
$.$mol_state_local = $mol_state_local;
|
|
4212
4238
|
})($ || ($ = {}));
|
|
4213
4239
|
|
|
4214
|
-
;
|
|
4215
|
-
"use strict";
|
|
4216
|
-
var $;
|
|
4217
|
-
(function ($) {
|
|
4218
|
-
$.$mol_dom = $mol_dom_context;
|
|
4219
|
-
})($ || ($ = {}));
|
|
4220
|
-
|
|
4221
4240
|
;
|
|
4222
4241
|
"use strict";
|
|
4223
4242
|
var $;
|