mol_view_tree2_lib 1.0.113 → 1.0.115
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 +29 -8
- package/node.js.map +1 -1
- package/node.mjs +29 -8
- package/node.test.js +29 -8
- package/node.test.js.map +1 -1
- package/package.json +3 -1
- package/web.d.ts +9 -4
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +27 -8
- package/web.js.map +1 -1
- package/web.mjs +27 -8
package/node.mjs
CHANGED
|
@@ -4129,6 +4129,30 @@ var $;
|
|
|
4129
4129
|
$.$mol_mem_cached = $mol_wire_probe;
|
|
4130
4130
|
})($ || ($ = {}));
|
|
4131
4131
|
|
|
4132
|
+
;
|
|
4133
|
+
"use strict";
|
|
4134
|
+
var $;
|
|
4135
|
+
(function ($) {
|
|
4136
|
+
$.$mol_dom = $mol_dom_context;
|
|
4137
|
+
})($ || ($ = {}));
|
|
4138
|
+
|
|
4139
|
+
;
|
|
4140
|
+
"use strict";
|
|
4141
|
+
var $;
|
|
4142
|
+
(function ($) {
|
|
4143
|
+
function $mol_wait_user_async() {
|
|
4144
|
+
return new Promise(done => $mol_dom.addEventListener('click', function onclick() {
|
|
4145
|
+
$mol_dom.removeEventListener('click', onclick);
|
|
4146
|
+
done(null);
|
|
4147
|
+
}));
|
|
4148
|
+
}
|
|
4149
|
+
$.$mol_wait_user_async = $mol_wait_user_async;
|
|
4150
|
+
function $mol_wait_user() {
|
|
4151
|
+
return this.$mol_wire_sync(this).$mol_wait_user_async();
|
|
4152
|
+
}
|
|
4153
|
+
$.$mol_wait_user = $mol_wait_user;
|
|
4154
|
+
})($ || ($ = {}));
|
|
4155
|
+
|
|
4132
4156
|
;
|
|
4133
4157
|
"use strict";
|
|
4134
4158
|
var $;
|
|
@@ -4148,7 +4172,9 @@ var $;
|
|
|
4148
4172
|
return Boolean(next);
|
|
4149
4173
|
const native = this.native();
|
|
4150
4174
|
if (next && !$mol_mem_cached(() => this.persisted())) {
|
|
4151
|
-
|
|
4175
|
+
this.$.$mol_wait_user_async()
|
|
4176
|
+
.then(() => native.persist())
|
|
4177
|
+
.then(actual => {
|
|
4152
4178
|
setTimeout(() => this.persisted(actual, 'cache'), 5000);
|
|
4153
4179
|
if (actual)
|
|
4154
4180
|
this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
|
|
@@ -4915,6 +4941,8 @@ var $;
|
|
|
4915
4941
|
if (this.$.$mol_fail_catch(error)) {
|
|
4916
4942
|
if (error.code === 'ENOENT')
|
|
4917
4943
|
return null;
|
|
4944
|
+
if (error.code === 'EPERM')
|
|
4945
|
+
return null;
|
|
4918
4946
|
error.message += '\n' + path;
|
|
4919
4947
|
this.$.$mol_fail_hidden(error);
|
|
4920
4948
|
}
|
|
@@ -5043,13 +5071,6 @@ var $;
|
|
|
5043
5071
|
$.$mol_file = $mol_file_node;
|
|
5044
5072
|
})($ || ($ = {}));
|
|
5045
5073
|
|
|
5046
|
-
;
|
|
5047
|
-
"use strict";
|
|
5048
|
-
var $;
|
|
5049
|
-
(function ($) {
|
|
5050
|
-
$.$mol_dom = $mol_dom_context;
|
|
5051
|
-
})($ || ($ = {}));
|
|
5052
|
-
|
|
5053
5074
|
;
|
|
5054
5075
|
"use strict";
|
|
5055
5076
|
var $;
|
package/node.test.js
CHANGED
|
@@ -4120,6 +4120,30 @@ var $;
|
|
|
4120
4120
|
$.$mol_mem_cached = $mol_wire_probe;
|
|
4121
4121
|
})($ || ($ = {}));
|
|
4122
4122
|
|
|
4123
|
+
;
|
|
4124
|
+
"use strict";
|
|
4125
|
+
var $;
|
|
4126
|
+
(function ($) {
|
|
4127
|
+
$.$mol_dom = $mol_dom_context;
|
|
4128
|
+
})($ || ($ = {}));
|
|
4129
|
+
|
|
4130
|
+
;
|
|
4131
|
+
"use strict";
|
|
4132
|
+
var $;
|
|
4133
|
+
(function ($) {
|
|
4134
|
+
function $mol_wait_user_async() {
|
|
4135
|
+
return new Promise(done => $mol_dom.addEventListener('click', function onclick() {
|
|
4136
|
+
$mol_dom.removeEventListener('click', onclick);
|
|
4137
|
+
done(null);
|
|
4138
|
+
}));
|
|
4139
|
+
}
|
|
4140
|
+
$.$mol_wait_user_async = $mol_wait_user_async;
|
|
4141
|
+
function $mol_wait_user() {
|
|
4142
|
+
return this.$mol_wire_sync(this).$mol_wait_user_async();
|
|
4143
|
+
}
|
|
4144
|
+
$.$mol_wait_user = $mol_wait_user;
|
|
4145
|
+
})($ || ($ = {}));
|
|
4146
|
+
|
|
4123
4147
|
;
|
|
4124
4148
|
"use strict";
|
|
4125
4149
|
var $;
|
|
@@ -4139,7 +4163,9 @@ var $;
|
|
|
4139
4163
|
return Boolean(next);
|
|
4140
4164
|
const native = this.native();
|
|
4141
4165
|
if (next && !$mol_mem_cached(() => this.persisted())) {
|
|
4142
|
-
|
|
4166
|
+
this.$.$mol_wait_user_async()
|
|
4167
|
+
.then(() => native.persist())
|
|
4168
|
+
.then(actual => {
|
|
4143
4169
|
setTimeout(() => this.persisted(actual, 'cache'), 5000);
|
|
4144
4170
|
if (actual)
|
|
4145
4171
|
this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
|
|
@@ -4906,6 +4932,8 @@ var $;
|
|
|
4906
4932
|
if (this.$.$mol_fail_catch(error)) {
|
|
4907
4933
|
if (error.code === 'ENOENT')
|
|
4908
4934
|
return null;
|
|
4935
|
+
if (error.code === 'EPERM')
|
|
4936
|
+
return null;
|
|
4909
4937
|
error.message += '\n' + path;
|
|
4910
4938
|
this.$.$mol_fail_hidden(error);
|
|
4911
4939
|
}
|
|
@@ -5034,13 +5062,6 @@ var $;
|
|
|
5034
5062
|
$.$mol_file = $mol_file_node;
|
|
5035
5063
|
})($ || ($ = {}));
|
|
5036
5064
|
|
|
5037
|
-
;
|
|
5038
|
-
"use strict";
|
|
5039
|
-
var $;
|
|
5040
|
-
(function ($) {
|
|
5041
|
-
$.$mol_dom = $mol_dom_context;
|
|
5042
|
-
})($ || ($ = {}));
|
|
5043
|
-
|
|
5044
5065
|
;
|
|
5045
5066
|
"use strict";
|
|
5046
5067
|
var $;
|