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/node.js CHANGED
@@ -788,6 +788,12 @@ var $;
788
788
  // [ Symbol.toPrimitive ]() {
789
789
  // return this.toString()
790
790
  // }
791
+ match(...args) {
792
+ return this.toString().match(...args);
793
+ }
794
+ split(...args) {
795
+ return this.toString().split(...args);
796
+ }
791
797
  toString() {
792
798
  return this.join('\n');
793
799
  }
@@ -3317,10 +3323,10 @@ var $;
3317
3323
  static wrap(task) {
3318
3324
  const store = new WeakMap();
3319
3325
  const fun = function (next) {
3320
- if (next === undefined && store.has(this))
3321
- return store.get(this);
3326
+ if (next === undefined && store.has(this ?? fun))
3327
+ return store.get(this ?? fun);
3322
3328
  const val = task.call(this, next) ?? next;
3323
- store.set(this, val);
3329
+ store.set(this ?? fun, val);
3324
3330
  return val;
3325
3331
  };
3326
3332
  Reflect.defineProperty(fun, 'name', { value: task.name + ' ' });