mol_wire_lib 1.0.92 → 1.0.93

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/web.test.js CHANGED
@@ -178,6 +178,12 @@ var $;
178
178
  //mol/type/assert/assert.ts
179
179
  ;
180
180
  "use strict";
181
+ //mol/type/equals/equals.test.ts
182
+ ;
183
+ "use strict";
184
+ //mol/type/equals/equals.ts
185
+ ;
186
+ "use strict";
181
187
  //mol/type/partial/deep/deep.test.ts
182
188
  ;
183
189
  "use strict";
@@ -565,6 +571,79 @@ var $;
565
571
  ;
566
572
  "use strict";
567
573
  var $;
574
+ (function ($) {
575
+ function $mol_log3_area_lazy(event) {
576
+ const self = this;
577
+ const stack = self.$mol_log3_stack;
578
+ const deep = stack.length;
579
+ let logged = false;
580
+ stack.push(() => {
581
+ logged = true;
582
+ self.$mol_log3_area.call(self, event);
583
+ });
584
+ return () => {
585
+ if (logged)
586
+ self.console.groupEnd();
587
+ if (stack.length > deep)
588
+ stack.length = deep;
589
+ };
590
+ }
591
+ $.$mol_log3_area_lazy = $mol_log3_area_lazy;
592
+ $.$mol_log3_stack = [];
593
+ })($ || ($ = {}));
594
+ //mol/log3/log3.ts
595
+ ;
596
+ "use strict";
597
+ //mol/type/keys/extract/extract.test.ts
598
+ ;
599
+ "use strict";
600
+ //mol/type/keys/extract/extract.ts
601
+ ;
602
+ "use strict";
603
+ var $;
604
+ (function ($_1) {
605
+ $mol_test_mocks.push($ => {
606
+ $.$mol_log3_come = () => { };
607
+ $.$mol_log3_done = () => { };
608
+ $.$mol_log3_fail = () => { };
609
+ $.$mol_log3_warn = () => { };
610
+ $.$mol_log3_rise = () => { };
611
+ $.$mol_log3_area = () => () => { };
612
+ });
613
+ })($ || ($ = {}));
614
+ //mol/log3/log3.test.ts
615
+ ;
616
+ "use strict";
617
+ var $;
618
+ (function ($) {
619
+ function $mol_log3_web_make(level, color) {
620
+ return function $mol_log3_logger(event) {
621
+ const pending = this.$mol_log3_stack.pop();
622
+ if (pending)
623
+ pending();
624
+ let tpl = '%c';
625
+ const chunks = Object.values(event);
626
+ for (let i = 0; i < chunks.length; ++i) {
627
+ tpl += (typeof chunks[i] === 'string') ? ' ⦙ %s' : ' ⦙ %o';
628
+ }
629
+ const style = `color:${color};font-weight:bolder`;
630
+ this.console[level](tpl, style, ...chunks);
631
+ const self = this;
632
+ return () => self.console.groupEnd();
633
+ };
634
+ }
635
+ $.$mol_log3_web_make = $mol_log3_web_make;
636
+ $.$mol_log3_come = $mol_log3_web_make('info', 'royalblue');
637
+ $.$mol_log3_done = $mol_log3_web_make('info', 'forestgreen');
638
+ $.$mol_log3_fail = $mol_log3_web_make('error', 'orangered');
639
+ $.$mol_log3_warn = $mol_log3_web_make('warn', 'goldenrod');
640
+ $.$mol_log3_rise = $mol_log3_web_make('log', 'magenta');
641
+ $.$mol_log3_area = $mol_log3_web_make('group', 'cyan');
642
+ })($ || ($ = {}));
643
+ //mol/log3/log3.web.ts
644
+ ;
645
+ "use strict";
646
+ var $;
568
647
  (function ($) {
569
648
  $mol_test({
570
649
  'get'() {
@@ -900,6 +979,15 @@ var $;
900
979
  ;
901
980
  "use strict";
902
981
  var $;
982
+ (function ($_1) {
983
+ $mol_test_mocks.push($ => {
984
+ $.$mol_after_timeout = $mol_after_mock_timeout;
985
+ });
986
+ })($ || ($ = {}));
987
+ //mol/after/timeout/timeout.test.ts
988
+ ;
989
+ "use strict";
990
+ var $;
903
991
  (function ($_1) {
904
992
  $mol_test({
905
993
  'Cached channel'($) {
@@ -1455,79 +1543,6 @@ var $;
1455
1543
  ;
1456
1544
  "use strict";
1457
1545
  var $;
1458
- (function ($) {
1459
- function $mol_log3_area_lazy(event) {
1460
- const self = this;
1461
- const stack = self.$mol_log3_stack;
1462
- const deep = stack.length;
1463
- let logged = false;
1464
- stack.push(() => {
1465
- logged = true;
1466
- self.$mol_log3_area.call(self, event);
1467
- });
1468
- return () => {
1469
- if (logged)
1470
- self.console.groupEnd();
1471
- if (stack.length > deep)
1472
- stack.length = deep;
1473
- };
1474
- }
1475
- $.$mol_log3_area_lazy = $mol_log3_area_lazy;
1476
- $.$mol_log3_stack = [];
1477
- })($ || ($ = {}));
1478
- //mol/log3/log3.ts
1479
- ;
1480
- "use strict";
1481
- //mol/type/keys/extract/extract.test.ts
1482
- ;
1483
- "use strict";
1484
- //mol/type/keys/extract/extract.ts
1485
- ;
1486
- "use strict";
1487
- var $;
1488
- (function ($_1) {
1489
- $mol_test_mocks.push($ => {
1490
- $.$mol_log3_come = () => { };
1491
- $.$mol_log3_done = () => { };
1492
- $.$mol_log3_fail = () => { };
1493
- $.$mol_log3_warn = () => { };
1494
- $.$mol_log3_rise = () => { };
1495
- $.$mol_log3_area = () => () => { };
1496
- });
1497
- })($ || ($ = {}));
1498
- //mol/log3/log3.test.ts
1499
- ;
1500
- "use strict";
1501
- var $;
1502
- (function ($) {
1503
- function $mol_log3_web_make(level, color) {
1504
- return function $mol_log3_logger(event) {
1505
- const pending = this.$mol_log3_stack.pop();
1506
- if (pending)
1507
- pending();
1508
- let tpl = '%c';
1509
- const chunks = Object.values(event);
1510
- for (let i = 0; i < chunks.length; ++i) {
1511
- tpl += (typeof chunks[i] === 'string') ? ' ⦙ %s' : ' ⦙ %o';
1512
- }
1513
- const style = `color:${color};font-weight:bolder`;
1514
- this.console[level](tpl, style, ...chunks);
1515
- const self = this;
1516
- return () => self.console.groupEnd();
1517
- };
1518
- }
1519
- $.$mol_log3_web_make = $mol_log3_web_make;
1520
- $.$mol_log3_come = $mol_log3_web_make('info', 'royalblue');
1521
- $.$mol_log3_done = $mol_log3_web_make('info', 'forestgreen');
1522
- $.$mol_log3_fail = $mol_log3_web_make('error', 'orangered');
1523
- $.$mol_log3_warn = $mol_log3_web_make('warn', 'goldenrod');
1524
- $.$mol_log3_rise = $mol_log3_web_make('log', 'magenta');
1525
- $.$mol_log3_area = $mol_log3_web_make('group', 'cyan');
1526
- })($ || ($ = {}));
1527
- //mol/log3/log3.web.ts
1528
- ;
1529
- "use strict";
1530
- var $;
1531
1546
  (function ($) {
1532
1547
  class $mol_wire_log extends $mol_object2 {
1533
1548
  static watch(task) {
@@ -1858,20 +1873,5 @@ var $;
1858
1873
  });
1859
1874
  })($ || ($ = {}));
1860
1875
  //mol/wire/dict/dict.test.ts
1861
- ;
1862
- "use strict";
1863
- var $;
1864
- (function ($_1) {
1865
- $mol_test_mocks.push($ => {
1866
- $.$mol_after_timeout = $mol_after_mock_timeout;
1867
- });
1868
- })($ || ($ = {}));
1869
- //mol/after/timeout/timeout.test.ts
1870
- ;
1871
- "use strict";
1872
- //mol/type/equals/equals.test.ts
1873
- ;
1874
- "use strict";
1875
- //mol/type/equals/equals.ts
1876
1876
 
1877
1877
  //# sourceMappingURL=web.test.js.map