mol_plot_all 1.2.960 → 1.2.962
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 +93 -94
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +15 -13
- package/node.js.map +1 -1
- package/node.mjs +15 -13
- package/node.test.js +15 -13
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +93 -94
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +15 -13
- package/web.js.map +1 -1
- package/web.mjs +15 -13
package/node.mjs
CHANGED
|
@@ -789,16 +789,13 @@ var $;
|
|
|
789
789
|
result = this.task.call(this.host, ...this.args);
|
|
790
790
|
break;
|
|
791
791
|
}
|
|
792
|
-
if ($mol_promise_like(result)) {
|
|
792
|
+
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
793
793
|
const put = (res) => {
|
|
794
794
|
if (this.cache === result)
|
|
795
795
|
this.put(res);
|
|
796
796
|
return res;
|
|
797
797
|
};
|
|
798
|
-
result =
|
|
799
|
-
destructor: result['destructor'] ?? (() => { })
|
|
800
|
-
});
|
|
801
|
-
handled.add(result);
|
|
798
|
+
result = result.then(put, put);
|
|
802
799
|
}
|
|
803
800
|
}
|
|
804
801
|
catch (error) {
|
|
@@ -809,15 +806,20 @@ var $;
|
|
|
809
806
|
result = new Error(String(error), { cause: error });
|
|
810
807
|
}
|
|
811
808
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
812
|
-
result =
|
|
809
|
+
result = result.finally(() => {
|
|
813
810
|
if (this.cache === result)
|
|
814
811
|
this.absorb();
|
|
815
|
-
}), {
|
|
816
|
-
destructor: result['destructor'] ?? (() => { })
|
|
817
812
|
});
|
|
818
|
-
handled.add(result);
|
|
819
813
|
}
|
|
820
814
|
}
|
|
815
|
+
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
816
|
+
result = Object.assign(result, {
|
|
817
|
+
destructor: result['destructor'] ?? (() => { })
|
|
818
|
+
});
|
|
819
|
+
handled.add(result);
|
|
820
|
+
const error = new Error();
|
|
821
|
+
Object.defineProperty(result, 'stack', { get: () => error.stack });
|
|
822
|
+
}
|
|
821
823
|
if (!$mol_promise_like(result)) {
|
|
822
824
|
this.track_cut();
|
|
823
825
|
}
|
|
@@ -2587,10 +2589,10 @@ var $;
|
|
|
2587
2589
|
"use strict";
|
|
2588
2590
|
var $;
|
|
2589
2591
|
(function ($) {
|
|
2590
|
-
function $mol_style_prop(prefix,
|
|
2591
|
-
const record =
|
|
2592
|
-
|
|
2593
|
-
return
|
|
2592
|
+
function $mol_style_prop(prefix, keys) {
|
|
2593
|
+
const record = keys.reduce((rec, key) => {
|
|
2594
|
+
rec[key] = $mol_style_func.vary(`--${prefix}_${key}`);
|
|
2595
|
+
return rec;
|
|
2594
2596
|
}, {});
|
|
2595
2597
|
return record;
|
|
2596
2598
|
}
|
package/node.test.js
CHANGED
|
@@ -780,16 +780,13 @@ var $;
|
|
|
780
780
|
result = this.task.call(this.host, ...this.args);
|
|
781
781
|
break;
|
|
782
782
|
}
|
|
783
|
-
if ($mol_promise_like(result)) {
|
|
783
|
+
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
784
784
|
const put = (res) => {
|
|
785
785
|
if (this.cache === result)
|
|
786
786
|
this.put(res);
|
|
787
787
|
return res;
|
|
788
788
|
};
|
|
789
|
-
result =
|
|
790
|
-
destructor: result['destructor'] ?? (() => { })
|
|
791
|
-
});
|
|
792
|
-
handled.add(result);
|
|
789
|
+
result = result.then(put, put);
|
|
793
790
|
}
|
|
794
791
|
}
|
|
795
792
|
catch (error) {
|
|
@@ -800,15 +797,20 @@ var $;
|
|
|
800
797
|
result = new Error(String(error), { cause: error });
|
|
801
798
|
}
|
|
802
799
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
803
|
-
result =
|
|
800
|
+
result = result.finally(() => {
|
|
804
801
|
if (this.cache === result)
|
|
805
802
|
this.absorb();
|
|
806
|
-
}), {
|
|
807
|
-
destructor: result['destructor'] ?? (() => { })
|
|
808
803
|
});
|
|
809
|
-
handled.add(result);
|
|
810
804
|
}
|
|
811
805
|
}
|
|
806
|
+
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
807
|
+
result = Object.assign(result, {
|
|
808
|
+
destructor: result['destructor'] ?? (() => { })
|
|
809
|
+
});
|
|
810
|
+
handled.add(result);
|
|
811
|
+
const error = new Error();
|
|
812
|
+
Object.defineProperty(result, 'stack', { get: () => error.stack });
|
|
813
|
+
}
|
|
812
814
|
if (!$mol_promise_like(result)) {
|
|
813
815
|
this.track_cut();
|
|
814
816
|
}
|
|
@@ -2578,10 +2580,10 @@ var $;
|
|
|
2578
2580
|
"use strict";
|
|
2579
2581
|
var $;
|
|
2580
2582
|
(function ($) {
|
|
2581
|
-
function $mol_style_prop(prefix,
|
|
2582
|
-
const record =
|
|
2583
|
-
|
|
2584
|
-
return
|
|
2583
|
+
function $mol_style_prop(prefix, keys) {
|
|
2584
|
+
const record = keys.reduce((rec, key) => {
|
|
2585
|
+
rec[key] = $mol_style_func.vary(`--${prefix}_${key}`);
|
|
2586
|
+
return rec;
|
|
2585
2587
|
}, {});
|
|
2586
2588
|
return record;
|
|
2587
2589
|
}
|