mol_plot_all 1.2.1714 → 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/package.json
CHANGED
package/web.js
CHANGED
|
@@ -2680,10 +2680,10 @@ var $;
|
|
|
2680
2680
|
static wrap(task) {
|
|
2681
2681
|
const store = new WeakMap();
|
|
2682
2682
|
const fun = function (next) {
|
|
2683
|
-
if (next === undefined && store.has(this))
|
|
2684
|
-
return store.get(this);
|
|
2683
|
+
if (next === undefined && store.has(this ?? fun))
|
|
2684
|
+
return store.get(this ?? fun);
|
|
2685
2685
|
const val = task.call(this, next) ?? next;
|
|
2686
|
-
store.set(this, val);
|
|
2686
|
+
store.set(this ?? fun, val);
|
|
2687
2687
|
return val;
|
|
2688
2688
|
};
|
|
2689
2689
|
Reflect.defineProperty(fun, 'name', { value: task.name + ' ' });
|