mol_dump_lib 0.0.301 → 0.0.302
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 +64 -62
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +33 -28
- package/node.js.map +1 -1
- package/node.mjs +33 -28
- package/node.test.js +82 -77
- package/node.test.js.map +1 -1
- package/package.json +2 -2
- package/web.d.ts +52 -52
- package/web.js +1 -1
- package/web.js.map +1 -1
- package/web.mjs +1 -1
package/node.mjs
CHANGED
|
@@ -817,7 +817,7 @@ var $;
|
|
|
817
817
|
destructor: result['destructor'] ?? (() => { })
|
|
818
818
|
});
|
|
819
819
|
handled.add(result);
|
|
820
|
-
const error = new Error();
|
|
820
|
+
const error = new Error(`Promise in ${this}`);
|
|
821
821
|
Object.defineProperty(result, 'stack', { get: () => error.stack });
|
|
822
822
|
}
|
|
823
823
|
if (!$mol_promise_like(result)) {
|
|
@@ -1943,6 +1943,32 @@ var $;
|
|
|
1943
1943
|
;
|
|
1944
1944
|
"use strict";
|
|
1945
1945
|
|
|
1946
|
+
;
|
|
1947
|
+
"use strict";
|
|
1948
|
+
var $;
|
|
1949
|
+
(function ($) {
|
|
1950
|
+
function $mol_wire_sync(obj) {
|
|
1951
|
+
return new Proxy(obj, {
|
|
1952
|
+
get(obj, field) {
|
|
1953
|
+
const val = obj[field];
|
|
1954
|
+
if (typeof val !== 'function')
|
|
1955
|
+
return val;
|
|
1956
|
+
const temp = $mol_wire_task.getter(val);
|
|
1957
|
+
return function $mol_wire_sync(...args) {
|
|
1958
|
+
const fiber = temp(obj, args);
|
|
1959
|
+
return fiber.sync();
|
|
1960
|
+
};
|
|
1961
|
+
},
|
|
1962
|
+
apply(obj, self, args) {
|
|
1963
|
+
const temp = $mol_wire_task.getter(obj);
|
|
1964
|
+
const fiber = temp(self, args);
|
|
1965
|
+
return fiber.sync();
|
|
1966
|
+
},
|
|
1967
|
+
});
|
|
1968
|
+
}
|
|
1969
|
+
$.$mol_wire_sync = $mol_wire_sync;
|
|
1970
|
+
})($ || ($ = {}));
|
|
1971
|
+
|
|
1946
1972
|
;
|
|
1947
1973
|
"use strict";
|
|
1948
1974
|
var $node = new Proxy({ require }, {
|
|
@@ -1974,9 +2000,12 @@ var $node = new Proxy({ require }, {
|
|
|
1974
2000
|
}
|
|
1975
2001
|
}
|
|
1976
2002
|
try {
|
|
1977
|
-
return target.require(name);
|
|
2003
|
+
return $.$mol_wire_sync(target).require(name);
|
|
1978
2004
|
}
|
|
1979
2005
|
catch (error) {
|
|
2006
|
+
if (error.code === 'ERR_REQUIRE_ESM') {
|
|
2007
|
+
return importSync(name);
|
|
2008
|
+
}
|
|
1980
2009
|
$.$mol_fail_log(error);
|
|
1981
2010
|
return null;
|
|
1982
2011
|
}
|
|
@@ -1986,6 +2015,8 @@ var $node = new Proxy({ require }, {
|
|
|
1986
2015
|
return true;
|
|
1987
2016
|
},
|
|
1988
2017
|
});
|
|
2018
|
+
const importAsync = async (uri) => import(uri);
|
|
2019
|
+
const importSync = $.$mol_wire_sync(importAsync);
|
|
1989
2020
|
require = (req => Object.assign(function require(name) {
|
|
1990
2021
|
return $node[name];
|
|
1991
2022
|
}, req))(require);
|
|
@@ -5004,32 +5035,6 @@ var $;
|
|
|
5004
5035
|
$.$mol_html_encode = $mol_html_encode;
|
|
5005
5036
|
})($ || ($ = {}));
|
|
5006
5037
|
|
|
5007
|
-
;
|
|
5008
|
-
"use strict";
|
|
5009
|
-
var $;
|
|
5010
|
-
(function ($) {
|
|
5011
|
-
function $mol_wire_sync(obj) {
|
|
5012
|
-
return new Proxy(obj, {
|
|
5013
|
-
get(obj, field) {
|
|
5014
|
-
const val = obj[field];
|
|
5015
|
-
if (typeof val !== 'function')
|
|
5016
|
-
return val;
|
|
5017
|
-
const temp = $mol_wire_task.getter(val);
|
|
5018
|
-
return function $mol_wire_sync(...args) {
|
|
5019
|
-
const fiber = temp(obj, args);
|
|
5020
|
-
return fiber.sync();
|
|
5021
|
-
};
|
|
5022
|
-
},
|
|
5023
|
-
apply(obj, self, args) {
|
|
5024
|
-
const temp = $mol_wire_task.getter(obj);
|
|
5025
|
-
const fiber = temp(self, args);
|
|
5026
|
-
return fiber.sync();
|
|
5027
|
-
},
|
|
5028
|
-
});
|
|
5029
|
-
}
|
|
5030
|
-
$.$mol_wire_sync = $mol_wire_sync;
|
|
5031
|
-
})($ || ($ = {}));
|
|
5032
|
-
|
|
5033
5038
|
;
|
|
5034
5039
|
"use strict";
|
|
5035
5040
|
|
package/node.test.js
CHANGED
|
@@ -808,7 +808,7 @@ var $;
|
|
|
808
808
|
destructor: result['destructor'] ?? (() => { })
|
|
809
809
|
});
|
|
810
810
|
handled.add(result);
|
|
811
|
-
const error = new Error();
|
|
811
|
+
const error = new Error(`Promise in ${this}`);
|
|
812
812
|
Object.defineProperty(result, 'stack', { get: () => error.stack });
|
|
813
813
|
}
|
|
814
814
|
if (!$mol_promise_like(result)) {
|
|
@@ -1934,6 +1934,32 @@ var $;
|
|
|
1934
1934
|
;
|
|
1935
1935
|
"use strict";
|
|
1936
1936
|
|
|
1937
|
+
;
|
|
1938
|
+
"use strict";
|
|
1939
|
+
var $;
|
|
1940
|
+
(function ($) {
|
|
1941
|
+
function $mol_wire_sync(obj) {
|
|
1942
|
+
return new Proxy(obj, {
|
|
1943
|
+
get(obj, field) {
|
|
1944
|
+
const val = obj[field];
|
|
1945
|
+
if (typeof val !== 'function')
|
|
1946
|
+
return val;
|
|
1947
|
+
const temp = $mol_wire_task.getter(val);
|
|
1948
|
+
return function $mol_wire_sync(...args) {
|
|
1949
|
+
const fiber = temp(obj, args);
|
|
1950
|
+
return fiber.sync();
|
|
1951
|
+
};
|
|
1952
|
+
},
|
|
1953
|
+
apply(obj, self, args) {
|
|
1954
|
+
const temp = $mol_wire_task.getter(obj);
|
|
1955
|
+
const fiber = temp(self, args);
|
|
1956
|
+
return fiber.sync();
|
|
1957
|
+
},
|
|
1958
|
+
});
|
|
1959
|
+
}
|
|
1960
|
+
$.$mol_wire_sync = $mol_wire_sync;
|
|
1961
|
+
})($ || ($ = {}));
|
|
1962
|
+
|
|
1937
1963
|
;
|
|
1938
1964
|
"use strict";
|
|
1939
1965
|
var $node = new Proxy({ require }, {
|
|
@@ -1965,9 +1991,12 @@ var $node = new Proxy({ require }, {
|
|
|
1965
1991
|
}
|
|
1966
1992
|
}
|
|
1967
1993
|
try {
|
|
1968
|
-
return target.require(name);
|
|
1994
|
+
return $.$mol_wire_sync(target).require(name);
|
|
1969
1995
|
}
|
|
1970
1996
|
catch (error) {
|
|
1997
|
+
if (error.code === 'ERR_REQUIRE_ESM') {
|
|
1998
|
+
return importSync(name);
|
|
1999
|
+
}
|
|
1971
2000
|
$.$mol_fail_log(error);
|
|
1972
2001
|
return null;
|
|
1973
2002
|
}
|
|
@@ -1977,6 +2006,8 @@ var $node = new Proxy({ require }, {
|
|
|
1977
2006
|
return true;
|
|
1978
2007
|
},
|
|
1979
2008
|
});
|
|
2009
|
+
const importAsync = async (uri) => import(uri);
|
|
2010
|
+
const importSync = $.$mol_wire_sync(importAsync);
|
|
1980
2011
|
require = (req => Object.assign(function require(name) {
|
|
1981
2012
|
return $node[name];
|
|
1982
2013
|
}, req))(require);
|
|
@@ -4995,32 +5026,6 @@ var $;
|
|
|
4995
5026
|
$.$mol_html_encode = $mol_html_encode;
|
|
4996
5027
|
})($ || ($ = {}));
|
|
4997
5028
|
|
|
4998
|
-
;
|
|
4999
|
-
"use strict";
|
|
5000
|
-
var $;
|
|
5001
|
-
(function ($) {
|
|
5002
|
-
function $mol_wire_sync(obj) {
|
|
5003
|
-
return new Proxy(obj, {
|
|
5004
|
-
get(obj, field) {
|
|
5005
|
-
const val = obj[field];
|
|
5006
|
-
if (typeof val !== 'function')
|
|
5007
|
-
return val;
|
|
5008
|
-
const temp = $mol_wire_task.getter(val);
|
|
5009
|
-
return function $mol_wire_sync(...args) {
|
|
5010
|
-
const fiber = temp(obj, args);
|
|
5011
|
-
return fiber.sync();
|
|
5012
|
-
};
|
|
5013
|
-
},
|
|
5014
|
-
apply(obj, self, args) {
|
|
5015
|
-
const temp = $mol_wire_task.getter(obj);
|
|
5016
|
-
const fiber = temp(self, args);
|
|
5017
|
-
return fiber.sync();
|
|
5018
|
-
},
|
|
5019
|
-
});
|
|
5020
|
-
}
|
|
5021
|
-
$.$mol_wire_sync = $mol_wire_sync;
|
|
5022
|
-
})($ || ($ = {}));
|
|
5023
|
-
|
|
5024
5029
|
;
|
|
5025
5030
|
"use strict";
|
|
5026
5031
|
|
|
@@ -6554,6 +6559,33 @@ var $;
|
|
|
6554
6559
|
$.$mol_test_complete = $mol_test_complete;
|
|
6555
6560
|
})($ || ($ = {}));
|
|
6556
6561
|
|
|
6562
|
+
;
|
|
6563
|
+
"use strict";
|
|
6564
|
+
|
|
6565
|
+
;
|
|
6566
|
+
"use strict";
|
|
6567
|
+
|
|
6568
|
+
;
|
|
6569
|
+
"use strict";
|
|
6570
|
+
|
|
6571
|
+
;
|
|
6572
|
+
"use strict";
|
|
6573
|
+
var $;
|
|
6574
|
+
(function ($_1) {
|
|
6575
|
+
$mol_test({
|
|
6576
|
+
'test types'($) {
|
|
6577
|
+
class A {
|
|
6578
|
+
static a() {
|
|
6579
|
+
return Promise.resolve('');
|
|
6580
|
+
}
|
|
6581
|
+
static b() {
|
|
6582
|
+
return $mol_wire_sync(this).a();
|
|
6583
|
+
}
|
|
6584
|
+
}
|
|
6585
|
+
},
|
|
6586
|
+
});
|
|
6587
|
+
})($ || ($ = {}));
|
|
6588
|
+
|
|
6557
6589
|
;
|
|
6558
6590
|
"use strict";
|
|
6559
6591
|
var $;
|
|
@@ -6581,15 +6613,6 @@ var $;
|
|
|
6581
6613
|
;
|
|
6582
6614
|
"use strict";
|
|
6583
6615
|
|
|
6584
|
-
;
|
|
6585
|
-
"use strict";
|
|
6586
|
-
|
|
6587
|
-
;
|
|
6588
|
-
"use strict";
|
|
6589
|
-
|
|
6590
|
-
;
|
|
6591
|
-
"use strict";
|
|
6592
|
-
|
|
6593
6616
|
;
|
|
6594
6617
|
"use strict";
|
|
6595
6618
|
var $;
|
|
@@ -7584,25 +7607,6 @@ var $;
|
|
|
7584
7607
|
});
|
|
7585
7608
|
})($ || ($ = {}));
|
|
7586
7609
|
|
|
7587
|
-
;
|
|
7588
|
-
"use strict";
|
|
7589
|
-
var $;
|
|
7590
|
-
(function ($) {
|
|
7591
|
-
$mol_test({
|
|
7592
|
-
'init with overload'() {
|
|
7593
|
-
class X extends $mol_object {
|
|
7594
|
-
foo() {
|
|
7595
|
-
return 1;
|
|
7596
|
-
}
|
|
7597
|
-
}
|
|
7598
|
-
var x = X.make({
|
|
7599
|
-
foo: () => 2,
|
|
7600
|
-
});
|
|
7601
|
-
$mol_assert_equal(x.foo(), 2);
|
|
7602
|
-
},
|
|
7603
|
-
});
|
|
7604
|
-
})($ || ($ = {}));
|
|
7605
|
-
|
|
7606
7610
|
;
|
|
7607
7611
|
"use strict";
|
|
7608
7612
|
var $;
|
|
@@ -7799,9 +7803,6 @@ var $;
|
|
|
7799
7803
|
});
|
|
7800
7804
|
})($ || ($ = {}));
|
|
7801
7805
|
|
|
7802
|
-
;
|
|
7803
|
-
"use strict";
|
|
7804
|
-
|
|
7805
7806
|
;
|
|
7806
7807
|
"use strict";
|
|
7807
7808
|
var $;
|
|
@@ -7821,24 +7822,6 @@ var $;
|
|
|
7821
7822
|
$.$mol_promise = $mol_promise;
|
|
7822
7823
|
})($ || ($ = {}));
|
|
7823
7824
|
|
|
7824
|
-
;
|
|
7825
|
-
"use strict";
|
|
7826
|
-
var $;
|
|
7827
|
-
(function ($_1) {
|
|
7828
|
-
$mol_test({
|
|
7829
|
-
'test types'($) {
|
|
7830
|
-
class A {
|
|
7831
|
-
static a() {
|
|
7832
|
-
return Promise.resolve('');
|
|
7833
|
-
}
|
|
7834
|
-
static b() {
|
|
7835
|
-
return $mol_wire_sync(this).a();
|
|
7836
|
-
}
|
|
7837
|
-
}
|
|
7838
|
-
},
|
|
7839
|
-
});
|
|
7840
|
-
})($ || ($ = {}));
|
|
7841
|
-
|
|
7842
7825
|
;
|
|
7843
7826
|
"use strict";
|
|
7844
7827
|
var $;
|
|
@@ -7910,6 +7893,28 @@ var $;
|
|
|
7910
7893
|
});
|
|
7911
7894
|
})($ || ($ = {}));
|
|
7912
7895
|
|
|
7896
|
+
;
|
|
7897
|
+
"use strict";
|
|
7898
|
+
var $;
|
|
7899
|
+
(function ($) {
|
|
7900
|
+
$mol_test({
|
|
7901
|
+
'init with overload'() {
|
|
7902
|
+
class X extends $mol_object {
|
|
7903
|
+
foo() {
|
|
7904
|
+
return 1;
|
|
7905
|
+
}
|
|
7906
|
+
}
|
|
7907
|
+
var x = X.make({
|
|
7908
|
+
foo: () => 2,
|
|
7909
|
+
});
|
|
7910
|
+
$mol_assert_equal(x.foo(), 2);
|
|
7911
|
+
},
|
|
7912
|
+
});
|
|
7913
|
+
})($ || ($ = {}));
|
|
7914
|
+
|
|
7915
|
+
;
|
|
7916
|
+
"use strict";
|
|
7917
|
+
|
|
7913
7918
|
;
|
|
7914
7919
|
"use strict";
|
|
7915
7920
|
var $;
|