mol_wire_lib 1.0.973 → 1.0.975
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 +33 -31
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -2532,33 +2532,6 @@ var $;
|
|
|
2532
2532
|
;
|
|
2533
2533
|
"use strict";
|
|
2534
2534
|
|
|
2535
|
-
;
|
|
2536
|
-
"use strict";
|
|
2537
|
-
|
|
2538
|
-
;
|
|
2539
|
-
"use strict";
|
|
2540
|
-
|
|
2541
|
-
;
|
|
2542
|
-
"use strict";
|
|
2543
|
-
|
|
2544
|
-
;
|
|
2545
|
-
"use strict";
|
|
2546
|
-
var $;
|
|
2547
|
-
(function ($_1) {
|
|
2548
|
-
$mol_test({
|
|
2549
|
-
'test types'($) {
|
|
2550
|
-
class A {
|
|
2551
|
-
static a() {
|
|
2552
|
-
return Promise.resolve('');
|
|
2553
|
-
}
|
|
2554
|
-
static b() {
|
|
2555
|
-
return $mol_wire_sync(this).a();
|
|
2556
|
-
}
|
|
2557
|
-
}
|
|
2558
|
-
},
|
|
2559
|
-
});
|
|
2560
|
-
})($ || ($ = {}));
|
|
2561
|
-
|
|
2562
2535
|
;
|
|
2563
2536
|
"use strict";
|
|
2564
2537
|
var $;
|
|
@@ -2597,11 +2570,14 @@ var $node = new Proxy({ require }, {
|
|
|
2597
2570
|
}
|
|
2598
2571
|
}
|
|
2599
2572
|
try {
|
|
2600
|
-
return
|
|
2573
|
+
return target.require(name);
|
|
2601
2574
|
}
|
|
2602
2575
|
catch (error) {
|
|
2603
2576
|
if (error.code === 'ERR_REQUIRE_ESM') {
|
|
2604
|
-
|
|
2577
|
+
const module = cache.get(name);
|
|
2578
|
+
if (module)
|
|
2579
|
+
return module;
|
|
2580
|
+
throw import(name).then(module => cache.set(name, module));
|
|
2605
2581
|
}
|
|
2606
2582
|
$.$mol_fail_log(error);
|
|
2607
2583
|
return null;
|
|
@@ -2612,8 +2588,7 @@ var $node = new Proxy({ require }, {
|
|
|
2612
2588
|
return true;
|
|
2613
2589
|
},
|
|
2614
2590
|
});
|
|
2615
|
-
const
|
|
2616
|
-
const importSync = $.$mol_wire_sync(importAsync);
|
|
2591
|
+
const cache = new Map();
|
|
2617
2592
|
require = (req => Object.assign(function require(name) {
|
|
2618
2593
|
return $node[name];
|
|
2619
2594
|
}, req))(require);
|
|
@@ -2747,6 +2722,15 @@ var $;
|
|
|
2747
2722
|
;
|
|
2748
2723
|
"use strict";
|
|
2749
2724
|
|
|
2725
|
+
;
|
|
2726
|
+
"use strict";
|
|
2727
|
+
|
|
2728
|
+
;
|
|
2729
|
+
"use strict";
|
|
2730
|
+
|
|
2731
|
+
;
|
|
2732
|
+
"use strict";
|
|
2733
|
+
|
|
2750
2734
|
;
|
|
2751
2735
|
"use strict";
|
|
2752
2736
|
var $;
|
|
@@ -4010,6 +3994,24 @@ var $;
|
|
|
4010
3994
|
;
|
|
4011
3995
|
"use strict";
|
|
4012
3996
|
|
|
3997
|
+
;
|
|
3998
|
+
"use strict";
|
|
3999
|
+
var $;
|
|
4000
|
+
(function ($_1) {
|
|
4001
|
+
$mol_test({
|
|
4002
|
+
'test types'($) {
|
|
4003
|
+
class A {
|
|
4004
|
+
static a() {
|
|
4005
|
+
return Promise.resolve('');
|
|
4006
|
+
}
|
|
4007
|
+
static b() {
|
|
4008
|
+
return $mol_wire_sync(this).a();
|
|
4009
|
+
}
|
|
4010
|
+
}
|
|
4011
|
+
},
|
|
4012
|
+
});
|
|
4013
|
+
})($ || ($ = {}));
|
|
4014
|
+
|
|
4013
4015
|
;
|
|
4014
4016
|
"use strict";
|
|
4015
4017
|
var $;
|