mam 1.11.492 → 1.11.494
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.test.js +27 -14
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -9178,17 +9178,20 @@ var $;
|
|
|
9178
9178
|
"use strict";
|
|
9179
9179
|
var $;
|
|
9180
9180
|
(function ($) {
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
done
|
|
9186
|
-
fail
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9181
|
+
class $mol_promise extends Promise {
|
|
9182
|
+
done;
|
|
9183
|
+
fail;
|
|
9184
|
+
constructor(executor) {
|
|
9185
|
+
let done;
|
|
9186
|
+
let fail;
|
|
9187
|
+
super((d, f) => {
|
|
9188
|
+
done = d;
|
|
9189
|
+
fail = f;
|
|
9190
|
+
executor?.(d, f);
|
|
9191
|
+
});
|
|
9192
|
+
this.done = done;
|
|
9193
|
+
this.fail = fail;
|
|
9194
|
+
}
|
|
9192
9195
|
}
|
|
9193
9196
|
$.$mol_promise = $mol_promise;
|
|
9194
9197
|
})($ || ($ = {}));
|
|
@@ -9269,7 +9272,7 @@ var $;
|
|
|
9269
9272
|
var $;
|
|
9270
9273
|
(function ($) {
|
|
9271
9274
|
function $mol_wait_timeout_async(timeout) {
|
|
9272
|
-
const promise = $mol_promise();
|
|
9275
|
+
const promise = new $mol_promise();
|
|
9273
9276
|
const task = new this.$mol_after_timeout(timeout, () => promise.done());
|
|
9274
9277
|
return Object.assign(promise, {
|
|
9275
9278
|
destructor: () => task.destructor()
|
|
@@ -11295,6 +11298,16 @@ var $;
|
|
|
11295
11298
|
$.$mol_style_attach = $mol_style_attach;
|
|
11296
11299
|
})($ || ($ = {}));
|
|
11297
11300
|
|
|
11301
|
+
;
|
|
11302
|
+
"use strict";
|
|
11303
|
+
var $;
|
|
11304
|
+
(function ($) {
|
|
11305
|
+
class $mol_promise_blocker extends $mol_promise {
|
|
11306
|
+
static [Symbol.toStringTag] = '$mol_promise_blocker';
|
|
11307
|
+
}
|
|
11308
|
+
$.$mol_promise_blocker = $mol_promise_blocker;
|
|
11309
|
+
})($ || ($ = {}));
|
|
11310
|
+
|
|
11298
11311
|
;
|
|
11299
11312
|
"use strict";
|
|
11300
11313
|
var $;
|
|
@@ -11942,7 +11955,7 @@ var $;
|
|
|
11942
11955
|
"use strict";
|
|
11943
11956
|
var $;
|
|
11944
11957
|
(function ($) {
|
|
11945
|
-
$mol_style_attach("mol/view/view/view.css", "[mol_view] {\n\ttransition-property: height, width, min-height, min-width, max-width, max-height, transform;\n\ttransition-duration: .2s;\n\ttransition-timing-function: ease-out;\n\t-webkit-appearance: none;\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tcontain: style;\n\tscrollbar-color: var(--mol_theme_line) transparent;\n\tscrollbar-width: thin;\n}\t\n\n[mol_view]::selection {\n\tbackground: var(--mol_theme_line);\n}\t\n\n[mol_view]::-webkit-scrollbar {\n\twidth: .25rem;\n\theight: .25rem;\n}\n\n[mol_view]::-webkit-scrollbar-corner {\n\tbackground-color: var(--mol_theme_line);\n}\n\n[mol_view]::-webkit-scrollbar-track {\n\tbackground-color: transparent;\n}\n\n[mol_view]::-webkit-scrollbar-thumb {\n\tbackground-color: var(--mol_theme_line);\n\tborder-radius: var(--mol_gap_round);\n}\n\n[mol_view] > * {\n\tword-break: inherit;\n}\n\n[mol_view_root] {\n\tmargin: 0;\n\tpadding: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbox-sizing: border-box;\n\tfont-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n\tfont-size: 1rem;\n\tline-height: 1.5rem;\n\tbackground: var(--mol_theme_back);\n\tcolor: var(--mol_theme_text);\n\tcontain: unset; /** Fixes bg ignoring when applied to body on Chrome */\n\ttab-size: 4;\n\toverscroll-behavior: contain; /** Disable navigation gestures **/\n}\n\n@media print {\n\t[mol_view_root] {\n\t\theight: auto;\n\t}\n}\n
|
|
11958
|
+
$mol_style_attach("mol/view/view/view.css", "[mol_view] {\n\ttransition-property: height, width, min-height, min-width, max-width, max-height, transform;\n\ttransition-duration: .2s;\n\ttransition-timing-function: ease-out;\n\t-webkit-appearance: none;\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tcontain: style;\n\tscrollbar-color: var(--mol_theme_line) transparent;\n\tscrollbar-width: thin;\n}\t\n\n[mol_view]::selection {\n\tbackground: var(--mol_theme_line);\n}\t\n\n[mol_view]::-webkit-scrollbar {\n\twidth: .25rem;\n\theight: .25rem;\n}\n\n[mol_view]::-webkit-scrollbar-corner {\n\tbackground-color: var(--mol_theme_line);\n}\n\n[mol_view]::-webkit-scrollbar-track {\n\tbackground-color: transparent;\n}\n\n[mol_view]::-webkit-scrollbar-thumb {\n\tbackground-color: var(--mol_theme_line);\n\tborder-radius: var(--mol_gap_round);\n}\n\n[mol_view] > * {\n\tword-break: inherit;\n}\n\n[mol_view_root] {\n\tmargin: 0;\n\tpadding: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbox-sizing: border-box;\n\tfont-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n\tfont-size: 1rem;\n\tline-height: 1.5rem;\n\tbackground: var(--mol_theme_back);\n\tcolor: var(--mol_theme_text);\n\tcontain: unset; /** Fixes bg ignoring when applied to body on Chrome */\n\ttab-size: 4;\n\toverscroll-behavior: contain; /** Disable navigation gestures **/\n}\n\n@media print {\n\t[mol_view_root] {\n\t\theight: auto;\n\t}\n}\n[mol_view][mol_view_error]:not([mol_view_error=\"Promise\"], [mol_view_error=\"$mol_promise_blocker\"]) {\n\tbackground-image: repeating-linear-gradient(\n\t\t-45deg,\n\t\t#f92323,\n\t\t#f92323 .5rem,\n\t\t#ff3d3d .5rem,\n\t\t#ff3d3d 1.5rem\n\t);\n\tcolor: black;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n@keyframes mol_view_wait {\n\tfrom {\n\t\topacity: .25;\n\t}\n\t20% {\n\t\topacity: .75;\n\t}\n\tto {\n\t\topacity: .25;\n\t}\n}\n\n:where([mol_view][mol_view_error=\"$mol_promise_blocker\"]),\n:where([mol_view][mol_view_error=\"Promise\"]) {\n\tbackground: var(--mol_theme_hover);\n}\n\n[mol_view][mol_view_error=\"Promise\"] {\n\tanimation: mol_view_wait 1s steps(20,end) infinite;\n}\n");
|
|
11946
11959
|
})($ || ($ = {}));
|
|
11947
11960
|
|
|
11948
11961
|
;
|
|
@@ -12418,7 +12431,7 @@ var $;
|
|
|
12418
12431
|
event_change(next) {
|
|
12419
12432
|
if (!next)
|
|
12420
12433
|
return;
|
|
12421
|
-
const el =
|
|
12434
|
+
const el = this.dom_node();
|
|
12422
12435
|
const from = el.selectionStart;
|
|
12423
12436
|
const to = el.selectionEnd;
|
|
12424
12437
|
try {
|