mol_plot_all 1.2.1206 → 1.2.1208
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 +4 -1
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +7 -1
- package/node.js.map +1 -1
- package/node.mjs +7 -1
- package/node.test.js +7 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +4 -1
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +7 -1
- package/web.js.map +1 -1
- package/web.mjs +7 -1
package/node.mjs
CHANGED
|
@@ -844,7 +844,7 @@ var $;
|
|
|
844
844
|
}
|
|
845
845
|
return this.cache;
|
|
846
846
|
}
|
|
847
|
-
async
|
|
847
|
+
async async_raw() {
|
|
848
848
|
while (true) {
|
|
849
849
|
this.fresh();
|
|
850
850
|
if (this.cache instanceof Error) {
|
|
@@ -860,6 +860,12 @@ var $;
|
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
|
+
async() {
|
|
864
|
+
const promise = this.async_raw();
|
|
865
|
+
if (!promise.destructor)
|
|
866
|
+
promise.destructor = () => this.destructor();
|
|
867
|
+
return promise;
|
|
868
|
+
}
|
|
863
869
|
step() {
|
|
864
870
|
return new Promise(done => {
|
|
865
871
|
const sub = new $mol_wire_pub_sub;
|
package/node.test.js
CHANGED
|
@@ -835,7 +835,7 @@ var $;
|
|
|
835
835
|
}
|
|
836
836
|
return this.cache;
|
|
837
837
|
}
|
|
838
|
-
async
|
|
838
|
+
async async_raw() {
|
|
839
839
|
while (true) {
|
|
840
840
|
this.fresh();
|
|
841
841
|
if (this.cache instanceof Error) {
|
|
@@ -851,6 +851,12 @@ var $;
|
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
|
+
async() {
|
|
855
|
+
const promise = this.async_raw();
|
|
856
|
+
if (!promise.destructor)
|
|
857
|
+
promise.destructor = () => this.destructor();
|
|
858
|
+
return promise;
|
|
859
|
+
}
|
|
854
860
|
step() {
|
|
855
861
|
return new Promise(done => {
|
|
856
862
|
const sub = new $mol_wire_pub_sub;
|