mol_plot_all 1.2.964 → 1.2.966
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 +102 -90
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +33 -2
- package/node.js.map +1 -1
- package/node.mjs +33 -2
- package/node.test.js +88 -83
- package/node.test.js.map +1 -1
- package/package.json +2 -1
- package/web.d.ts +90 -90
- 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);
|
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);
|
|
@@ -6137,24 +6168,9 @@ var $;
|
|
|
6137
6168
|
|
|
6138
6169
|
;
|
|
6139
6170
|
"use strict";
|
|
6140
|
-
var $;
|
|
6141
|
-
(function ($_1) {
|
|
6142
|
-
$mol_test_mocks.push($ => $.$mol_fail_log = () => false);
|
|
6143
|
-
})($ || ($ = {}));
|
|
6144
6171
|
|
|
6145
6172
|
;
|
|
6146
6173
|
"use strict";
|
|
6147
|
-
var $;
|
|
6148
|
-
(function ($_1) {
|
|
6149
|
-
$mol_test_mocks.push($ => {
|
|
6150
|
-
$.$mol_log3_come = () => { };
|
|
6151
|
-
$.$mol_log3_done = () => { };
|
|
6152
|
-
$.$mol_log3_fail = () => { };
|
|
6153
|
-
$.$mol_log3_warn = () => { };
|
|
6154
|
-
$.$mol_log3_rise = () => { };
|
|
6155
|
-
$.$mol_log3_area = () => () => { };
|
|
6156
|
-
});
|
|
6157
|
-
})($ || ($ = {}));
|
|
6158
6174
|
|
|
6159
6175
|
;
|
|
6160
6176
|
"use strict";
|
|
@@ -6167,9 +6183,42 @@ var $;
|
|
|
6167
6183
|
|
|
6168
6184
|
;
|
|
6169
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
|
+
})($ || ($ = {}));
|
|
6170
6201
|
|
|
6171
6202
|
;
|
|
6172
6203
|
"use strict";
|
|
6204
|
+
var $;
|
|
6205
|
+
(function ($_1) {
|
|
6206
|
+
$mol_test_mocks.push($ => $.$mol_fail_log = () => false);
|
|
6207
|
+
})($ || ($ = {}));
|
|
6208
|
+
|
|
6209
|
+
;
|
|
6210
|
+
"use strict";
|
|
6211
|
+
var $;
|
|
6212
|
+
(function ($_1) {
|
|
6213
|
+
$mol_test_mocks.push($ => {
|
|
6214
|
+
$.$mol_log3_come = () => { };
|
|
6215
|
+
$.$mol_log3_done = () => { };
|
|
6216
|
+
$.$mol_log3_fail = () => { };
|
|
6217
|
+
$.$mol_log3_warn = () => { };
|
|
6218
|
+
$.$mol_log3_rise = () => { };
|
|
6219
|
+
$.$mol_log3_area = () => () => { };
|
|
6220
|
+
});
|
|
6221
|
+
})($ || ($ = {}));
|
|
6173
6222
|
|
|
6174
6223
|
;
|
|
6175
6224
|
"use strict";
|
|
@@ -7171,25 +7220,6 @@ var $;
|
|
|
7171
7220
|
});
|
|
7172
7221
|
})($ || ($ = {}));
|
|
7173
7222
|
|
|
7174
|
-
;
|
|
7175
|
-
"use strict";
|
|
7176
|
-
var $;
|
|
7177
|
-
(function ($) {
|
|
7178
|
-
$mol_test({
|
|
7179
|
-
'init with overload'() {
|
|
7180
|
-
class X extends $mol_object {
|
|
7181
|
-
foo() {
|
|
7182
|
-
return 1;
|
|
7183
|
-
}
|
|
7184
|
-
}
|
|
7185
|
-
var x = X.make({
|
|
7186
|
-
foo: () => 2,
|
|
7187
|
-
});
|
|
7188
|
-
$mol_assert_equal(x.foo(), 2);
|
|
7189
|
-
},
|
|
7190
|
-
});
|
|
7191
|
-
})($ || ($ = {}));
|
|
7192
|
-
|
|
7193
7223
|
;
|
|
7194
7224
|
"use strict";
|
|
7195
7225
|
var $;
|
|
@@ -7386,9 +7416,6 @@ var $;
|
|
|
7386
7416
|
});
|
|
7387
7417
|
})($ || ($ = {}));
|
|
7388
7418
|
|
|
7389
|
-
;
|
|
7390
|
-
"use strict";
|
|
7391
|
-
|
|
7392
7419
|
;
|
|
7393
7420
|
"use strict";
|
|
7394
7421
|
var $;
|
|
@@ -7408,50 +7435,6 @@ var $;
|
|
|
7408
7435
|
$.$mol_promise = $mol_promise;
|
|
7409
7436
|
})($ || ($ = {}));
|
|
7410
7437
|
|
|
7411
|
-
;
|
|
7412
|
-
"use strict";
|
|
7413
|
-
var $;
|
|
7414
|
-
(function ($) {
|
|
7415
|
-
function $mol_wire_sync(obj) {
|
|
7416
|
-
return new Proxy(obj, {
|
|
7417
|
-
get(obj, field) {
|
|
7418
|
-
const val = obj[field];
|
|
7419
|
-
if (typeof val !== 'function')
|
|
7420
|
-
return val;
|
|
7421
|
-
const temp = $mol_wire_task.getter(val);
|
|
7422
|
-
return function $mol_wire_sync(...args) {
|
|
7423
|
-
const fiber = temp(obj, args);
|
|
7424
|
-
return fiber.sync();
|
|
7425
|
-
};
|
|
7426
|
-
},
|
|
7427
|
-
apply(obj, self, args) {
|
|
7428
|
-
const temp = $mol_wire_task.getter(obj);
|
|
7429
|
-
const fiber = temp(self, args);
|
|
7430
|
-
return fiber.sync();
|
|
7431
|
-
},
|
|
7432
|
-
});
|
|
7433
|
-
}
|
|
7434
|
-
$.$mol_wire_sync = $mol_wire_sync;
|
|
7435
|
-
})($ || ($ = {}));
|
|
7436
|
-
|
|
7437
|
-
;
|
|
7438
|
-
"use strict";
|
|
7439
|
-
var $;
|
|
7440
|
-
(function ($_1) {
|
|
7441
|
-
$mol_test({
|
|
7442
|
-
'test types'($) {
|
|
7443
|
-
class A {
|
|
7444
|
-
static a() {
|
|
7445
|
-
return Promise.resolve('');
|
|
7446
|
-
}
|
|
7447
|
-
static b() {
|
|
7448
|
-
return $mol_wire_sync(this).a();
|
|
7449
|
-
}
|
|
7450
|
-
}
|
|
7451
|
-
},
|
|
7452
|
-
});
|
|
7453
|
-
})($ || ($ = {}));
|
|
7454
|
-
|
|
7455
7438
|
;
|
|
7456
7439
|
"use strict";
|
|
7457
7440
|
var $;
|
|
@@ -7523,6 +7506,28 @@ var $;
|
|
|
7523
7506
|
});
|
|
7524
7507
|
})($ || ($ = {}));
|
|
7525
7508
|
|
|
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
|
+
|
|
7526
7531
|
;
|
|
7527
7532
|
"use strict";
|
|
7528
7533
|
var $;
|