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.mjs 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 + ' ' });
package/node.test.js CHANGED
@@ -3308,10 +3308,10 @@ var $;
3308
3308
  static wrap(task) {
3309
3309
  const store = new WeakMap();
3310
3310
  const fun = function (next) {
3311
- if (next === undefined && store.has(this))
3312
- return store.get(this);
3311
+ if (next === undefined && store.has(this ?? fun))
3312
+ return store.get(this ?? fun);
3313
3313
  const val = task.call(this, next) ?? next;
3314
- store.set(this, val);
3314
+ store.set(this ?? fun, val);
3315
3315
  return val;
3316
3316
  };
3317
3317
  Reflect.defineProperty(fun, 'name', { value: task.name + ' ' });