mol_dump_lib 0.0.602 → 0.0.604

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.mjs CHANGED
@@ -2652,6 +2652,38 @@ var $;
2652
2652
  $.$mol_style_attach = $mol_style_attach;
2653
2653
  })($ || ($ = {}));
2654
2654
 
2655
+ ;
2656
+ "use strict";
2657
+ var $;
2658
+ (function ($) {
2659
+ class $mol_promise extends Promise {
2660
+ done;
2661
+ fail;
2662
+ constructor(executor) {
2663
+ let done;
2664
+ let fail;
2665
+ super((d, f) => {
2666
+ done = d;
2667
+ fail = f;
2668
+ executor?.(d, f);
2669
+ });
2670
+ this.done = done;
2671
+ this.fail = fail;
2672
+ }
2673
+ }
2674
+ $.$mol_promise = $mol_promise;
2675
+ })($ || ($ = {}));
2676
+
2677
+ ;
2678
+ "use strict";
2679
+ var $;
2680
+ (function ($) {
2681
+ class $mol_promise_blocker extends $mol_promise {
2682
+ static [Symbol.toStringTag] = '$mol_promise_blocker';
2683
+ }
2684
+ $.$mol_promise_blocker = $mol_promise_blocker;
2685
+ })($ || ($ = {}));
2686
+
2655
2687
  ;
2656
2688
  "use strict";
2657
2689
  var $;
@@ -3027,7 +3059,9 @@ var $;
3027
3059
  }
3028
3060
  catch (error) {
3029
3061
  $mol_fail_log(error);
3030
- const mol_view_error = $mol_promise_like(error) ? 'Promise' : error.name || error.constructor.name;
3062
+ const mol_view_error = $mol_promise_like(error)
3063
+ ? error.constructor[Symbol.toStringTag] ?? 'Promise'
3064
+ : error.name || error.constructor.name;
3031
3065
  $mol_dom_render_attributes(node, { mol_view_error });
3032
3066
  if ($mol_promise_like(error))
3033
3067
  break render;
@@ -3300,7 +3334,7 @@ var $;
3300
3334
  "use strict";
3301
3335
  var $;
3302
3336
  (function ($) {
3303
- $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\n[mol_view][mol_view_error]:not([mol_view_error=\"Promise\"]) {\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=\"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");
3337
+ $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");
3304
3338
  })($ || ($ = {}));
3305
3339
 
3306
3340
  ;
package/node.test.js CHANGED
@@ -2643,6 +2643,38 @@ var $;
2643
2643
  $.$mol_style_attach = $mol_style_attach;
2644
2644
  })($ || ($ = {}));
2645
2645
 
2646
+ ;
2647
+ "use strict";
2648
+ var $;
2649
+ (function ($) {
2650
+ class $mol_promise extends Promise {
2651
+ done;
2652
+ fail;
2653
+ constructor(executor) {
2654
+ let done;
2655
+ let fail;
2656
+ super((d, f) => {
2657
+ done = d;
2658
+ fail = f;
2659
+ executor?.(d, f);
2660
+ });
2661
+ this.done = done;
2662
+ this.fail = fail;
2663
+ }
2664
+ }
2665
+ $.$mol_promise = $mol_promise;
2666
+ })($ || ($ = {}));
2667
+
2668
+ ;
2669
+ "use strict";
2670
+ var $;
2671
+ (function ($) {
2672
+ class $mol_promise_blocker extends $mol_promise {
2673
+ static [Symbol.toStringTag] = '$mol_promise_blocker';
2674
+ }
2675
+ $.$mol_promise_blocker = $mol_promise_blocker;
2676
+ })($ || ($ = {}));
2677
+
2646
2678
  ;
2647
2679
  "use strict";
2648
2680
  var $;
@@ -3018,7 +3050,9 @@ var $;
3018
3050
  }
3019
3051
  catch (error) {
3020
3052
  $mol_fail_log(error);
3021
- const mol_view_error = $mol_promise_like(error) ? 'Promise' : error.name || error.constructor.name;
3053
+ const mol_view_error = $mol_promise_like(error)
3054
+ ? error.constructor[Symbol.toStringTag] ?? 'Promise'
3055
+ : error.name || error.constructor.name;
3022
3056
  $mol_dom_render_attributes(node, { mol_view_error });
3023
3057
  if ($mol_promise_like(error))
3024
3058
  break render;
@@ -3291,7 +3325,7 @@ var $;
3291
3325
  "use strict";
3292
3326
  var $;
3293
3327
  (function ($) {
3294
- $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\n[mol_view][mol_view_error]:not([mol_view_error=\"Promise\"]) {\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=\"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");
3328
+ $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");
3295
3329
  })($ || ($ = {}));
3296
3330
 
3297
3331
  ;
@@ -8478,25 +8512,6 @@ var $;
8478
8512
  });
8479
8513
  })($ || ($ = {}));
8480
8514
 
8481
- ;
8482
- "use strict";
8483
- var $;
8484
- (function ($) {
8485
- function $mol_promise() {
8486
- let done;
8487
- let fail;
8488
- const promise = new Promise((d, f) => {
8489
- done = d;
8490
- fail = f;
8491
- });
8492
- return Object.assign(promise, {
8493
- done,
8494
- fail,
8495
- });
8496
- }
8497
- $.$mol_promise = $mol_promise;
8498
- })($ || ($ = {}));
8499
-
8500
8515
  ;
8501
8516
  "use strict";
8502
8517
  var $;
@@ -8573,7 +8588,7 @@ var $;
8573
8588
  var $;
8574
8589
  (function ($) {
8575
8590
  function $mol_wait_timeout_async(timeout) {
8576
- const promise = $mol_promise();
8591
+ const promise = new $mol_promise();
8577
8592
  const task = new this.$mol_after_timeout(timeout, () => promise.done());
8578
8593
  return Object.assign(promise, {
8579
8594
  destructor: () => task.destructor()