mol_plot_all 1.2.1715 → 1.2.1717

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/web.mjs CHANGED
@@ -1091,6 +1091,12 @@ var $;
1091
1091
  // [ Symbol.toPrimitive ]() {
1092
1092
  // return this.toString()
1093
1093
  // }
1094
+ match(...args) {
1095
+ return this.toString().match(...args);
1096
+ }
1097
+ split(...args) {
1098
+ return this.toString().split(...args);
1099
+ }
1094
1100
  toString() {
1095
1101
  return this.join('\n');
1096
1102
  }
@@ -2680,10 +2686,10 @@ var $;
2680
2686
  static wrap(task) {
2681
2687
  const store = new WeakMap();
2682
2688
  const fun = function (next) {
2683
- if (next === undefined && store.has(this))
2684
- return store.get(this);
2689
+ if (next === undefined && store.has(this ?? fun))
2690
+ return store.get(this ?? fun);
2685
2691
  const val = task.call(this, next) ?? next;
2686
- store.set(this, val);
2692
+ store.set(this ?? fun, val);
2687
2693
  return val;
2688
2694
  };
2689
2695
  Reflect.defineProperty(fun, 'name', { value: task.name + ' ' });