mol_plot_all 1.2.1715 → 1.2.1716
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.js +3 -3
- package/node.js.map +1 -1
- package/node.mjs +3 -3
- package/node.test.js +3 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.js +3 -3
- package/web.js.map +1 -1
- package/web.mjs +3 -3
package/node.js
CHANGED
|
@@ -3317,10 +3317,10 @@ var $;
|
|
|
3317
3317
|
static wrap(task) {
|
|
3318
3318
|
const store = new WeakMap();
|
|
3319
3319
|
const fun = function (next) {
|
|
3320
|
-
if (next === undefined && store.has(this))
|
|
3321
|
-
return store.get(this);
|
|
3320
|
+
if (next === undefined && store.has(this ?? fun))
|
|
3321
|
+
return store.get(this ?? fun);
|
|
3322
3322
|
const val = task.call(this, next) ?? next;
|
|
3323
|
-
store.set(this, val);
|
|
3323
|
+
store.set(this ?? fun, val);
|
|
3324
3324
|
return val;
|
|
3325
3325
|
};
|
|
3326
3326
|
Reflect.defineProperty(fun, 'name', { value: task.name + ' ' });
|