mol_plot_all 1.2.967 → 1.2.968
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 +91 -102
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +6 -30
- package/node.js.map +1 -1
- package/node.mjs +6 -30
- package/node.test.js +87 -85
- package/node.test.js.map +1 -1
- package/package.json +1 -2
- package/web.d.ts +90 -90
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);
|
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);
|
|
@@ -6166,39 +6142,6 @@ var $;
|
|
|
6166
6142
|
$.$mol_test_complete = $mol_test_complete;
|
|
6167
6143
|
})($ || ($ = {}));
|
|
6168
6144
|
|
|
6169
|
-
;
|
|
6170
|
-
"use strict";
|
|
6171
|
-
|
|
6172
|
-
;
|
|
6173
|
-
"use strict";
|
|
6174
|
-
|
|
6175
|
-
;
|
|
6176
|
-
"use strict";
|
|
6177
|
-
|
|
6178
|
-
;
|
|
6179
|
-
"use strict";
|
|
6180
|
-
|
|
6181
|
-
;
|
|
6182
|
-
"use strict";
|
|
6183
|
-
|
|
6184
|
-
;
|
|
6185
|
-
"use strict";
|
|
6186
|
-
var $;
|
|
6187
|
-
(function ($_1) {
|
|
6188
|
-
$mol_test({
|
|
6189
|
-
'test types'($) {
|
|
6190
|
-
class A {
|
|
6191
|
-
static a() {
|
|
6192
|
-
return Promise.resolve('');
|
|
6193
|
-
}
|
|
6194
|
-
static b() {
|
|
6195
|
-
return $mol_wire_sync(this).a();
|
|
6196
|
-
}
|
|
6197
|
-
}
|
|
6198
|
-
},
|
|
6199
|
-
});
|
|
6200
|
-
})($ || ($ = {}));
|
|
6201
|
-
|
|
6202
6145
|
;
|
|
6203
6146
|
"use strict";
|
|
6204
6147
|
var $;
|
|
@@ -6226,6 +6169,21 @@ var $;
|
|
|
6226
6169
|
;
|
|
6227
6170
|
"use strict";
|
|
6228
6171
|
|
|
6172
|
+
;
|
|
6173
|
+
"use strict";
|
|
6174
|
+
|
|
6175
|
+
;
|
|
6176
|
+
"use strict";
|
|
6177
|
+
|
|
6178
|
+
;
|
|
6179
|
+
"use strict";
|
|
6180
|
+
|
|
6181
|
+
;
|
|
6182
|
+
"use strict";
|
|
6183
|
+
|
|
6184
|
+
;
|
|
6185
|
+
"use strict";
|
|
6186
|
+
|
|
6229
6187
|
;
|
|
6230
6188
|
"use strict";
|
|
6231
6189
|
var $;
|
|
@@ -7220,6 +7178,25 @@ var $;
|
|
|
7220
7178
|
});
|
|
7221
7179
|
})($ || ($ = {}));
|
|
7222
7180
|
|
|
7181
|
+
;
|
|
7182
|
+
"use strict";
|
|
7183
|
+
var $;
|
|
7184
|
+
(function ($) {
|
|
7185
|
+
$mol_test({
|
|
7186
|
+
'init with overload'() {
|
|
7187
|
+
class X extends $mol_object {
|
|
7188
|
+
foo() {
|
|
7189
|
+
return 1;
|
|
7190
|
+
}
|
|
7191
|
+
}
|
|
7192
|
+
var x = X.make({
|
|
7193
|
+
foo: () => 2,
|
|
7194
|
+
});
|
|
7195
|
+
$mol_assert_equal(x.foo(), 2);
|
|
7196
|
+
},
|
|
7197
|
+
});
|
|
7198
|
+
})($ || ($ = {}));
|
|
7199
|
+
|
|
7223
7200
|
;
|
|
7224
7201
|
"use strict";
|
|
7225
7202
|
var $;
|
|
@@ -7416,6 +7393,9 @@ var $;
|
|
|
7416
7393
|
});
|
|
7417
7394
|
})($ || ($ = {}));
|
|
7418
7395
|
|
|
7396
|
+
;
|
|
7397
|
+
"use strict";
|
|
7398
|
+
|
|
7419
7399
|
;
|
|
7420
7400
|
"use strict";
|
|
7421
7401
|
var $;
|
|
@@ -7435,6 +7415,50 @@ var $;
|
|
|
7435
7415
|
$.$mol_promise = $mol_promise;
|
|
7436
7416
|
})($ || ($ = {}));
|
|
7437
7417
|
|
|
7418
|
+
;
|
|
7419
|
+
"use strict";
|
|
7420
|
+
var $;
|
|
7421
|
+
(function ($) {
|
|
7422
|
+
function $mol_wire_sync(obj) {
|
|
7423
|
+
return new Proxy(obj, {
|
|
7424
|
+
get(obj, field) {
|
|
7425
|
+
const val = obj[field];
|
|
7426
|
+
if (typeof val !== 'function')
|
|
7427
|
+
return val;
|
|
7428
|
+
const temp = $mol_wire_task.getter(val);
|
|
7429
|
+
return function $mol_wire_sync(...args) {
|
|
7430
|
+
const fiber = temp(obj, args);
|
|
7431
|
+
return fiber.sync();
|
|
7432
|
+
};
|
|
7433
|
+
},
|
|
7434
|
+
apply(obj, self, args) {
|
|
7435
|
+
const temp = $mol_wire_task.getter(obj);
|
|
7436
|
+
const fiber = temp(self, args);
|
|
7437
|
+
return fiber.sync();
|
|
7438
|
+
},
|
|
7439
|
+
});
|
|
7440
|
+
}
|
|
7441
|
+
$.$mol_wire_sync = $mol_wire_sync;
|
|
7442
|
+
})($ || ($ = {}));
|
|
7443
|
+
|
|
7444
|
+
;
|
|
7445
|
+
"use strict";
|
|
7446
|
+
var $;
|
|
7447
|
+
(function ($_1) {
|
|
7448
|
+
$mol_test({
|
|
7449
|
+
'test types'($) {
|
|
7450
|
+
class A {
|
|
7451
|
+
static a() {
|
|
7452
|
+
return Promise.resolve('');
|
|
7453
|
+
}
|
|
7454
|
+
static b() {
|
|
7455
|
+
return $mol_wire_sync(this).a();
|
|
7456
|
+
}
|
|
7457
|
+
}
|
|
7458
|
+
},
|
|
7459
|
+
});
|
|
7460
|
+
})($ || ($ = {}));
|
|
7461
|
+
|
|
7438
7462
|
;
|
|
7439
7463
|
"use strict";
|
|
7440
7464
|
var $;
|
|
@@ -7506,28 +7530,6 @@ var $;
|
|
|
7506
7530
|
});
|
|
7507
7531
|
})($ || ($ = {}));
|
|
7508
7532
|
|
|
7509
|
-
;
|
|
7510
|
-
"use strict";
|
|
7511
|
-
var $;
|
|
7512
|
-
(function ($) {
|
|
7513
|
-
$mol_test({
|
|
7514
|
-
'init with overload'() {
|
|
7515
|
-
class X extends $mol_object {
|
|
7516
|
-
foo() {
|
|
7517
|
-
return 1;
|
|
7518
|
-
}
|
|
7519
|
-
}
|
|
7520
|
-
var x = X.make({
|
|
7521
|
-
foo: () => 2,
|
|
7522
|
-
});
|
|
7523
|
-
$mol_assert_equal(x.foo(), 2);
|
|
7524
|
-
},
|
|
7525
|
-
});
|
|
7526
|
-
})($ || ($ = {}));
|
|
7527
|
-
|
|
7528
|
-
;
|
|
7529
|
-
"use strict";
|
|
7530
|
-
|
|
7531
7533
|
;
|
|
7532
7534
|
"use strict";
|
|
7533
7535
|
var $;
|