mol_dump_lib 0.0.303 → 0.0.305
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 +63 -64
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +33 -31
- package/node.js.map +1 -1
- package/node.mjs +33 -31
- package/node.test.js +82 -80
- package/node.test.js.map +1 -1
- package/package.json +2 -2
- package/web.d.ts +52 -52
- package/web.deps.json +1 -1
- package/web.js +1 -1
- package/web.js.map +1 -1
- package/web.mjs +1 -1
package/node.mjs
CHANGED
|
@@ -1943,32 +1943,6 @@ 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
|
-
|
|
1972
1946
|
;
|
|
1973
1947
|
"use strict";
|
|
1974
1948
|
var $node = new Proxy({ require }, {
|
|
@@ -2000,11 +1974,14 @@ var $node = new Proxy({ require }, {
|
|
|
2000
1974
|
}
|
|
2001
1975
|
}
|
|
2002
1976
|
try {
|
|
2003
|
-
return
|
|
1977
|
+
return target.require(name);
|
|
2004
1978
|
}
|
|
2005
1979
|
catch (error) {
|
|
2006
1980
|
if (error.code === 'ERR_REQUIRE_ESM') {
|
|
2007
|
-
|
|
1981
|
+
const module = cache.get(name);
|
|
1982
|
+
if (module)
|
|
1983
|
+
return module;
|
|
1984
|
+
throw import(name).then(module => cache.set(name, module));
|
|
2008
1985
|
}
|
|
2009
1986
|
$.$mol_fail_log(error);
|
|
2010
1987
|
return null;
|
|
@@ -2015,8 +1992,7 @@ var $node = new Proxy({ require }, {
|
|
|
2015
1992
|
return true;
|
|
2016
1993
|
},
|
|
2017
1994
|
});
|
|
2018
|
-
const
|
|
2019
|
-
const importSync = $.$mol_wire_sync(importAsync);
|
|
1995
|
+
const cache = new Map();
|
|
2020
1996
|
require = (req => Object.assign(function require(name) {
|
|
2021
1997
|
return $node[name];
|
|
2022
1998
|
}, req))(require);
|
|
@@ -4744,7 +4720,7 @@ var $;
|
|
|
4744
4720
|
"use strict";
|
|
4745
4721
|
var $;
|
|
4746
4722
|
(function ($) {
|
|
4747
|
-
$mol_style_attach("mol/button/button.view.css", "[mol_button] {\n\tborder: none;\n\tfont: inherit;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\ttext-decoration: inherit;\n\tcursor: inherit;\n\tposition: relative;\n\tbox-sizing: border-box;\n\tword-break: normal;\n\tcursor: default;\n\tuser-select: none;\n\tborder-radius: var(--mol_gap_round);\n}\n\n[mol_button]:where(:not(:disabled)):hover {\n\tz-index: var(--mol_layer_hover);\n}\n\n[mol_button]:focus-visible {\n\toutline: none;\n\tz-index: var(--mol_layer_focus);\n}\n");
|
|
4723
|
+
$mol_style_attach("mol/button/button.view.css", "[mol_button] {\n\tborder: none;\n\tfont: inherit;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\ttext-decoration: inherit;\n\tcursor: inherit;\n\tposition: relative;\n\tbox-sizing: border-box;\n\tword-break: normal;\n\tcursor: default;\n\tuser-select: none;\n\tborder-radius: var(--mol_gap_round);\n\tbackground: transparent;\n\tcolor: inherit;\n}\n\n[mol_button]:where(:not(:disabled)):hover {\n\tz-index: var(--mol_layer_hover);\n}\n\n[mol_button]:focus-visible {\n\toutline: none;\n\tz-index: var(--mol_layer_focus);\n}\n");
|
|
4748
4724
|
})($ || ($ = {}));
|
|
4749
4725
|
|
|
4750
4726
|
;
|
|
@@ -5035,6 +5011,32 @@ var $;
|
|
|
5035
5011
|
$.$mol_html_encode = $mol_html_encode;
|
|
5036
5012
|
})($ || ($ = {}));
|
|
5037
5013
|
|
|
5014
|
+
;
|
|
5015
|
+
"use strict";
|
|
5016
|
+
var $;
|
|
5017
|
+
(function ($) {
|
|
5018
|
+
function $mol_wire_sync(obj) {
|
|
5019
|
+
return new Proxy(obj, {
|
|
5020
|
+
get(obj, field) {
|
|
5021
|
+
const val = obj[field];
|
|
5022
|
+
if (typeof val !== 'function')
|
|
5023
|
+
return val;
|
|
5024
|
+
const temp = $mol_wire_task.getter(val);
|
|
5025
|
+
return function $mol_wire_sync(...args) {
|
|
5026
|
+
const fiber = temp(obj, args);
|
|
5027
|
+
return fiber.sync();
|
|
5028
|
+
};
|
|
5029
|
+
},
|
|
5030
|
+
apply(obj, self, args) {
|
|
5031
|
+
const temp = $mol_wire_task.getter(obj);
|
|
5032
|
+
const fiber = temp(self, args);
|
|
5033
|
+
return fiber.sync();
|
|
5034
|
+
},
|
|
5035
|
+
});
|
|
5036
|
+
}
|
|
5037
|
+
$.$mol_wire_sync = $mol_wire_sync;
|
|
5038
|
+
})($ || ($ = {}));
|
|
5039
|
+
|
|
5038
5040
|
;
|
|
5039
5041
|
"use strict";
|
|
5040
5042
|
|
package/node.test.js
CHANGED
|
@@ -1934,32 +1934,6 @@ 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
|
-
|
|
1963
1937
|
;
|
|
1964
1938
|
"use strict";
|
|
1965
1939
|
var $node = new Proxy({ require }, {
|
|
@@ -1991,11 +1965,14 @@ var $node = new Proxy({ require }, {
|
|
|
1991
1965
|
}
|
|
1992
1966
|
}
|
|
1993
1967
|
try {
|
|
1994
|
-
return
|
|
1968
|
+
return target.require(name);
|
|
1995
1969
|
}
|
|
1996
1970
|
catch (error) {
|
|
1997
1971
|
if (error.code === 'ERR_REQUIRE_ESM') {
|
|
1998
|
-
|
|
1972
|
+
const module = cache.get(name);
|
|
1973
|
+
if (module)
|
|
1974
|
+
return module;
|
|
1975
|
+
throw import(name).then(module => cache.set(name, module));
|
|
1999
1976
|
}
|
|
2000
1977
|
$.$mol_fail_log(error);
|
|
2001
1978
|
return null;
|
|
@@ -2006,8 +1983,7 @@ var $node = new Proxy({ require }, {
|
|
|
2006
1983
|
return true;
|
|
2007
1984
|
},
|
|
2008
1985
|
});
|
|
2009
|
-
const
|
|
2010
|
-
const importSync = $.$mol_wire_sync(importAsync);
|
|
1986
|
+
const cache = new Map();
|
|
2011
1987
|
require = (req => Object.assign(function require(name) {
|
|
2012
1988
|
return $node[name];
|
|
2013
1989
|
}, req))(require);
|
|
@@ -4735,7 +4711,7 @@ var $;
|
|
|
4735
4711
|
"use strict";
|
|
4736
4712
|
var $;
|
|
4737
4713
|
(function ($) {
|
|
4738
|
-
$mol_style_attach("mol/button/button.view.css", "[mol_button] {\n\tborder: none;\n\tfont: inherit;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\ttext-decoration: inherit;\n\tcursor: inherit;\n\tposition: relative;\n\tbox-sizing: border-box;\n\tword-break: normal;\n\tcursor: default;\n\tuser-select: none;\n\tborder-radius: var(--mol_gap_round);\n}\n\n[mol_button]:where(:not(:disabled)):hover {\n\tz-index: var(--mol_layer_hover);\n}\n\n[mol_button]:focus-visible {\n\toutline: none;\n\tz-index: var(--mol_layer_focus);\n}\n");
|
|
4714
|
+
$mol_style_attach("mol/button/button.view.css", "[mol_button] {\n\tborder: none;\n\tfont: inherit;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\ttext-decoration: inherit;\n\tcursor: inherit;\n\tposition: relative;\n\tbox-sizing: border-box;\n\tword-break: normal;\n\tcursor: default;\n\tuser-select: none;\n\tborder-radius: var(--mol_gap_round);\n\tbackground: transparent;\n\tcolor: inherit;\n}\n\n[mol_button]:where(:not(:disabled)):hover {\n\tz-index: var(--mol_layer_hover);\n}\n\n[mol_button]:focus-visible {\n\toutline: none;\n\tz-index: var(--mol_layer_focus);\n}\n");
|
|
4739
4715
|
})($ || ($ = {}));
|
|
4740
4716
|
|
|
4741
4717
|
;
|
|
@@ -5026,6 +5002,32 @@ var $;
|
|
|
5026
5002
|
$.$mol_html_encode = $mol_html_encode;
|
|
5027
5003
|
})($ || ($ = {}));
|
|
5028
5004
|
|
|
5005
|
+
;
|
|
5006
|
+
"use strict";
|
|
5007
|
+
var $;
|
|
5008
|
+
(function ($) {
|
|
5009
|
+
function $mol_wire_sync(obj) {
|
|
5010
|
+
return new Proxy(obj, {
|
|
5011
|
+
get(obj, field) {
|
|
5012
|
+
const val = obj[field];
|
|
5013
|
+
if (typeof val !== 'function')
|
|
5014
|
+
return val;
|
|
5015
|
+
const temp = $mol_wire_task.getter(val);
|
|
5016
|
+
return function $mol_wire_sync(...args) {
|
|
5017
|
+
const fiber = temp(obj, args);
|
|
5018
|
+
return fiber.sync();
|
|
5019
|
+
};
|
|
5020
|
+
},
|
|
5021
|
+
apply(obj, self, args) {
|
|
5022
|
+
const temp = $mol_wire_task.getter(obj);
|
|
5023
|
+
const fiber = temp(self, args);
|
|
5024
|
+
return fiber.sync();
|
|
5025
|
+
},
|
|
5026
|
+
});
|
|
5027
|
+
}
|
|
5028
|
+
$.$mol_wire_sync = $mol_wire_sync;
|
|
5029
|
+
})($ || ($ = {}));
|
|
5030
|
+
|
|
5029
5031
|
;
|
|
5030
5032
|
"use strict";
|
|
5031
5033
|
|
|
@@ -6559,33 +6561,6 @@ var $;
|
|
|
6559
6561
|
$.$mol_test_complete = $mol_test_complete;
|
|
6560
6562
|
})($ || ($ = {}));
|
|
6561
6563
|
|
|
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
|
-
|
|
6589
6564
|
;
|
|
6590
6565
|
"use strict";
|
|
6591
6566
|
var $;
|
|
@@ -6613,6 +6588,15 @@ var $;
|
|
|
6613
6588
|
;
|
|
6614
6589
|
"use strict";
|
|
6615
6590
|
|
|
6591
|
+
;
|
|
6592
|
+
"use strict";
|
|
6593
|
+
|
|
6594
|
+
;
|
|
6595
|
+
"use strict";
|
|
6596
|
+
|
|
6597
|
+
;
|
|
6598
|
+
"use strict";
|
|
6599
|
+
|
|
6616
6600
|
;
|
|
6617
6601
|
"use strict";
|
|
6618
6602
|
var $;
|
|
@@ -7607,6 +7591,25 @@ var $;
|
|
|
7607
7591
|
});
|
|
7608
7592
|
})($ || ($ = {}));
|
|
7609
7593
|
|
|
7594
|
+
;
|
|
7595
|
+
"use strict";
|
|
7596
|
+
var $;
|
|
7597
|
+
(function ($) {
|
|
7598
|
+
$mol_test({
|
|
7599
|
+
'init with overload'() {
|
|
7600
|
+
class X extends $mol_object {
|
|
7601
|
+
foo() {
|
|
7602
|
+
return 1;
|
|
7603
|
+
}
|
|
7604
|
+
}
|
|
7605
|
+
var x = X.make({
|
|
7606
|
+
foo: () => 2,
|
|
7607
|
+
});
|
|
7608
|
+
$mol_assert_equal(x.foo(), 2);
|
|
7609
|
+
},
|
|
7610
|
+
});
|
|
7611
|
+
})($ || ($ = {}));
|
|
7612
|
+
|
|
7610
7613
|
;
|
|
7611
7614
|
"use strict";
|
|
7612
7615
|
var $;
|
|
@@ -7803,6 +7806,9 @@ var $;
|
|
|
7803
7806
|
});
|
|
7804
7807
|
})($ || ($ = {}));
|
|
7805
7808
|
|
|
7809
|
+
;
|
|
7810
|
+
"use strict";
|
|
7811
|
+
|
|
7806
7812
|
;
|
|
7807
7813
|
"use strict";
|
|
7808
7814
|
var $;
|
|
@@ -7822,6 +7828,24 @@ var $;
|
|
|
7822
7828
|
$.$mol_promise = $mol_promise;
|
|
7823
7829
|
})($ || ($ = {}));
|
|
7824
7830
|
|
|
7831
|
+
;
|
|
7832
|
+
"use strict";
|
|
7833
|
+
var $;
|
|
7834
|
+
(function ($_1) {
|
|
7835
|
+
$mol_test({
|
|
7836
|
+
'test types'($) {
|
|
7837
|
+
class A {
|
|
7838
|
+
static a() {
|
|
7839
|
+
return Promise.resolve('');
|
|
7840
|
+
}
|
|
7841
|
+
static b() {
|
|
7842
|
+
return $mol_wire_sync(this).a();
|
|
7843
|
+
}
|
|
7844
|
+
}
|
|
7845
|
+
},
|
|
7846
|
+
});
|
|
7847
|
+
})($ || ($ = {}));
|
|
7848
|
+
|
|
7825
7849
|
;
|
|
7826
7850
|
"use strict";
|
|
7827
7851
|
var $;
|
|
@@ -7893,28 +7917,6 @@ var $;
|
|
|
7893
7917
|
});
|
|
7894
7918
|
})($ || ($ = {}));
|
|
7895
7919
|
|
|
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
|
-
|
|
7918
7920
|
;
|
|
7919
7921
|
"use strict";
|
|
7920
7922
|
var $;
|