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.deps.json +1 -1
- package/node.js +9 -3
- package/node.js.map +1 -1
- package/node.mjs +9 -3
- package/node.test.js +9 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +9 -3
- package/web.js.map +1 -1
- package/web.mjs +9 -3
package/node.mjs
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 + ' ' });
|
package/node.test.js
CHANGED
|
@@ -779,6 +779,12 @@ var $;
|
|
|
779
779
|
// [ Symbol.toPrimitive ]() {
|
|
780
780
|
// return this.toString()
|
|
781
781
|
// }
|
|
782
|
+
match(...args) {
|
|
783
|
+
return this.toString().match(...args);
|
|
784
|
+
}
|
|
785
|
+
split(...args) {
|
|
786
|
+
return this.toString().split(...args);
|
|
787
|
+
}
|
|
782
788
|
toString() {
|
|
783
789
|
return this.join('\n');
|
|
784
790
|
}
|
|
@@ -3308,10 +3314,10 @@ var $;
|
|
|
3308
3314
|
static wrap(task) {
|
|
3309
3315
|
const store = new WeakMap();
|
|
3310
3316
|
const fun = function (next) {
|
|
3311
|
-
if (next === undefined && store.has(this))
|
|
3312
|
-
return store.get(this);
|
|
3317
|
+
if (next === undefined && store.has(this ?? fun))
|
|
3318
|
+
return store.get(this ?? fun);
|
|
3313
3319
|
const val = task.call(this, next) ?? next;
|
|
3314
|
-
store.set(this, val);
|
|
3320
|
+
store.set(this ?? fun, val);
|
|
3315
3321
|
return val;
|
|
3316
3322
|
};
|
|
3317
3323
|
Reflect.defineProperty(fun, 'name', { value: task.name + ' ' });
|