mol_dump_lib 0.0.944 → 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 +14 -0
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +53 -4
- package/node.js.map +1 -1
- package/node.mjs +53 -4
- package/node.test.js +53 -4
- package/node.test.js.map +1 -1
- package/package.json +4 -1
- package/web.d.ts +14 -0
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +51 -4
- package/web.js.map +1 -1
- package/web.mjs +51 -4
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` });
|
|
@@ -3677,6 +3696,8 @@ var $;
|
|
|
3677
3696
|
if (this.$.$mol_fail_catch(error)) {
|
|
3678
3697
|
if (error.code === 'ENOENT')
|
|
3679
3698
|
return null;
|
|
3699
|
+
if (error.code === 'EPERM')
|
|
3700
|
+
return null;
|
|
3680
3701
|
error.message += '\n' + path;
|
|
3681
3702
|
this.$.$mol_fail_hidden(error);
|
|
3682
3703
|
}
|
|
@@ -7142,6 +7163,34 @@ var $;
|
|
|
7142
7163
|
($mol_mem(($.$mol_check.prototype), "Title"));
|
|
7143
7164
|
|
|
7144
7165
|
|
|
7166
|
+
;
|
|
7167
|
+
"use strict";
|
|
7168
|
+
var $;
|
|
7169
|
+
(function ($) {
|
|
7170
|
+
class $mol_dom_event extends $mol_object {
|
|
7171
|
+
native;
|
|
7172
|
+
constructor(native) {
|
|
7173
|
+
super();
|
|
7174
|
+
this.native = native;
|
|
7175
|
+
}
|
|
7176
|
+
prevented(next) {
|
|
7177
|
+
if (next)
|
|
7178
|
+
this.native.preventDefault();
|
|
7179
|
+
return this.native.defaultPrevented;
|
|
7180
|
+
}
|
|
7181
|
+
static wrap(event) {
|
|
7182
|
+
return new this.$.$mol_dom_event(event);
|
|
7183
|
+
}
|
|
7184
|
+
}
|
|
7185
|
+
__decorate([
|
|
7186
|
+
$mol_action
|
|
7187
|
+
], $mol_dom_event.prototype, "prevented", null);
|
|
7188
|
+
__decorate([
|
|
7189
|
+
$mol_action
|
|
7190
|
+
], $mol_dom_event, "wrap", null);
|
|
7191
|
+
$.$mol_dom_event = $mol_dom_event;
|
|
7192
|
+
})($ || ($ = {}));
|
|
7193
|
+
|
|
7145
7194
|
;
|
|
7146
7195
|
"use strict";
|
|
7147
7196
|
var $;
|
|
@@ -7160,11 +7209,11 @@ var $;
|
|
|
7160
7209
|
(function ($$) {
|
|
7161
7210
|
class $mol_check extends $.$mol_check {
|
|
7162
7211
|
click(next) {
|
|
7163
|
-
|
|
7212
|
+
const event = next ? $mol_dom_event.wrap(next) : null;
|
|
7213
|
+
if (event?.prevented())
|
|
7164
7214
|
return;
|
|
7215
|
+
event?.prevented(true);
|
|
7165
7216
|
this.checked(!this.checked());
|
|
7166
|
-
if (next)
|
|
7167
|
-
next.preventDefault();
|
|
7168
7217
|
}
|
|
7169
7218
|
sub() {
|
|
7170
7219
|
return [
|
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` });
|
|
@@ -3668,6 +3687,8 @@ var $;
|
|
|
3668
3687
|
if (this.$.$mol_fail_catch(error)) {
|
|
3669
3688
|
if (error.code === 'ENOENT')
|
|
3670
3689
|
return null;
|
|
3690
|
+
if (error.code === 'EPERM')
|
|
3691
|
+
return null;
|
|
3671
3692
|
error.message += '\n' + path;
|
|
3672
3693
|
this.$.$mol_fail_hidden(error);
|
|
3673
3694
|
}
|
|
@@ -7133,6 +7154,34 @@ var $;
|
|
|
7133
7154
|
($mol_mem(($.$mol_check.prototype), "Title"));
|
|
7134
7155
|
|
|
7135
7156
|
|
|
7157
|
+
;
|
|
7158
|
+
"use strict";
|
|
7159
|
+
var $;
|
|
7160
|
+
(function ($) {
|
|
7161
|
+
class $mol_dom_event extends $mol_object {
|
|
7162
|
+
native;
|
|
7163
|
+
constructor(native) {
|
|
7164
|
+
super();
|
|
7165
|
+
this.native = native;
|
|
7166
|
+
}
|
|
7167
|
+
prevented(next) {
|
|
7168
|
+
if (next)
|
|
7169
|
+
this.native.preventDefault();
|
|
7170
|
+
return this.native.defaultPrevented;
|
|
7171
|
+
}
|
|
7172
|
+
static wrap(event) {
|
|
7173
|
+
return new this.$.$mol_dom_event(event);
|
|
7174
|
+
}
|
|
7175
|
+
}
|
|
7176
|
+
__decorate([
|
|
7177
|
+
$mol_action
|
|
7178
|
+
], $mol_dom_event.prototype, "prevented", null);
|
|
7179
|
+
__decorate([
|
|
7180
|
+
$mol_action
|
|
7181
|
+
], $mol_dom_event, "wrap", null);
|
|
7182
|
+
$.$mol_dom_event = $mol_dom_event;
|
|
7183
|
+
})($ || ($ = {}));
|
|
7184
|
+
|
|
7136
7185
|
;
|
|
7137
7186
|
"use strict";
|
|
7138
7187
|
var $;
|
|
@@ -7151,11 +7200,11 @@ var $;
|
|
|
7151
7200
|
(function ($$) {
|
|
7152
7201
|
class $mol_check extends $.$mol_check {
|
|
7153
7202
|
click(next) {
|
|
7154
|
-
|
|
7203
|
+
const event = next ? $mol_dom_event.wrap(next) : null;
|
|
7204
|
+
if (event?.prevented())
|
|
7155
7205
|
return;
|
|
7206
|
+
event?.prevented(true);
|
|
7156
7207
|
this.checked(!this.checked());
|
|
7157
|
-
if (next)
|
|
7158
|
-
next.preventDefault();
|
|
7159
7208
|
}
|
|
7160
7209
|
sub() {
|
|
7161
7210
|
return [
|