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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mol_plot_all",
3
- "version": "1.2.1714",
3
+ "version": "1.2.1716",
4
4
  "exports": {
5
5
  "node": {
6
6
  "import": "./node.mjs",
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 + ' ' });