mol_jsx_lib 0.0.690 → 0.0.692
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 +7 -5
- package/node.deps.json +1 -1
- package/node.js +37 -33
- package/node.js.map +1 -1
- package/node.mjs +37 -33
- package/node.test.js +51 -47
- package/node.test.js.map +1 -1
- package/package.json +3 -3
- package/web.d.ts +2 -0
- package/web.deps.json +1 -1
- package/web.js +5 -1
- package/web.js.map +1 -1
- package/web.mjs +5 -1
- package/web.test.js +37 -37
- package/web.test.js.map +1 -1
package/web.mjs
CHANGED
|
@@ -335,7 +335,7 @@ var $;
|
|
|
335
335
|
try {
|
|
336
336
|
if (!having)
|
|
337
337
|
return false;
|
|
338
|
-
if (typeof having !== 'object')
|
|
338
|
+
if (typeof having !== 'object' && typeof having !== 'function')
|
|
339
339
|
return false;
|
|
340
340
|
if (having instanceof $mol_delegate)
|
|
341
341
|
return false;
|
|
@@ -429,9 +429,13 @@ var $;
|
|
|
429
429
|
return this.name;
|
|
430
430
|
}
|
|
431
431
|
destructor() { }
|
|
432
|
+
static destructor() { }
|
|
432
433
|
toString() {
|
|
433
434
|
return this[Symbol.toStringTag] || this.constructor.name + '()';
|
|
434
435
|
}
|
|
436
|
+
static toJSON() {
|
|
437
|
+
return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
|
|
438
|
+
}
|
|
435
439
|
toJSON() {
|
|
436
440
|
return this.toString();
|
|
437
441
|
}
|
package/web.test.js
CHANGED
|
@@ -436,6 +436,43 @@ var $;
|
|
|
436
436
|
//mol/type/writable/writable.test.ts
|
|
437
437
|
;
|
|
438
438
|
"use strict";
|
|
439
|
+
//mol/type/equals/equals.ts
|
|
440
|
+
;
|
|
441
|
+
"use strict";
|
|
442
|
+
//mol/type/equals/equals.test.ts
|
|
443
|
+
;
|
|
444
|
+
"use strict";
|
|
445
|
+
//mol/type/keys/extract/extract.test.ts
|
|
446
|
+
;
|
|
447
|
+
"use strict";
|
|
448
|
+
var $;
|
|
449
|
+
(function ($_1) {
|
|
450
|
+
$mol_test_mocks.push($ => {
|
|
451
|
+
$.$mol_log3_come = () => { };
|
|
452
|
+
$.$mol_log3_done = () => { };
|
|
453
|
+
$.$mol_log3_fail = () => { };
|
|
454
|
+
$.$mol_log3_warn = () => { };
|
|
455
|
+
$.$mol_log3_rise = () => { };
|
|
456
|
+
$.$mol_log3_area = () => () => { };
|
|
457
|
+
});
|
|
458
|
+
})($ || ($ = {}));
|
|
459
|
+
//mol/log3/log3.test.ts
|
|
460
|
+
;
|
|
461
|
+
"use strict";
|
|
462
|
+
var $;
|
|
463
|
+
(function ($_1) {
|
|
464
|
+
$mol_test({
|
|
465
|
+
'FQN of anon function'($) {
|
|
466
|
+
const $$ = Object.assign($, { $mol_func_name_test: (() => () => { })() });
|
|
467
|
+
$mol_assert_equal($$.$mol_func_name_test.name, '');
|
|
468
|
+
$mol_assert_equal($$.$mol_func_name($$.$mol_func_name_test), '$mol_func_name_test');
|
|
469
|
+
$mol_assert_equal($$.$mol_func_name_test.name, '$mol_func_name_test');
|
|
470
|
+
},
|
|
471
|
+
});
|
|
472
|
+
})($ || ($ = {}));
|
|
473
|
+
//mol/func/name/name.test.ts
|
|
474
|
+
;
|
|
475
|
+
"use strict";
|
|
439
476
|
var $;
|
|
440
477
|
(function ($) {
|
|
441
478
|
$mol_test({
|
|
@@ -636,43 +673,6 @@ var $;
|
|
|
636
673
|
//mol/wire/fiber/fiber.test.ts
|
|
637
674
|
;
|
|
638
675
|
"use strict";
|
|
639
|
-
//mol/type/equals/equals.ts
|
|
640
|
-
;
|
|
641
|
-
"use strict";
|
|
642
|
-
//mol/type/equals/equals.test.ts
|
|
643
|
-
;
|
|
644
|
-
"use strict";
|
|
645
|
-
//mol/type/keys/extract/extract.test.ts
|
|
646
|
-
;
|
|
647
|
-
"use strict";
|
|
648
|
-
var $;
|
|
649
|
-
(function ($_1) {
|
|
650
|
-
$mol_test_mocks.push($ => {
|
|
651
|
-
$.$mol_log3_come = () => { };
|
|
652
|
-
$.$mol_log3_done = () => { };
|
|
653
|
-
$.$mol_log3_fail = () => { };
|
|
654
|
-
$.$mol_log3_warn = () => { };
|
|
655
|
-
$.$mol_log3_rise = () => { };
|
|
656
|
-
$.$mol_log3_area = () => () => { };
|
|
657
|
-
});
|
|
658
|
-
})($ || ($ = {}));
|
|
659
|
-
//mol/log3/log3.test.ts
|
|
660
|
-
;
|
|
661
|
-
"use strict";
|
|
662
|
-
var $;
|
|
663
|
-
(function ($_1) {
|
|
664
|
-
$mol_test({
|
|
665
|
-
'FQN of anon function'($) {
|
|
666
|
-
const $$ = Object.assign($, { $mol_func_name_test: (() => () => { })() });
|
|
667
|
-
$mol_assert_equal($$.$mol_func_name_test.name, '');
|
|
668
|
-
$mol_assert_equal($$.$mol_func_name($$.$mol_func_name_test), '$mol_func_name_test');
|
|
669
|
-
$mol_assert_equal($$.$mol_func_name_test.name, '$mol_func_name_test');
|
|
670
|
-
},
|
|
671
|
-
});
|
|
672
|
-
})($ || ($ = {}));
|
|
673
|
-
//mol/func/name/name.test.ts
|
|
674
|
-
;
|
|
675
|
-
"use strict";
|
|
676
676
|
var $;
|
|
677
677
|
(function ($) {
|
|
678
678
|
$mol_test({
|