mol_view_tree2_lib 1.0.208 → 1.0.210
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 +6 -0
- package/node.js.map +1 -1
- package/node.mjs +6 -0
- 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 +6 -0
- package/web.js.map +1 -1
- package/web.mjs +6 -0
- package/web.test.js +3 -3
- package/web.test.js.map +1 -1
package/node.mjs
CHANGED
|
@@ -2738,6 +2738,12 @@ var $;
|
|
|
2738
2738
|
// [ Symbol.toPrimitive ]() {
|
|
2739
2739
|
// return this.toString()
|
|
2740
2740
|
// }
|
|
2741
|
+
match(...args) {
|
|
2742
|
+
return this.toString().match(...args);
|
|
2743
|
+
}
|
|
2744
|
+
split(...args) {
|
|
2745
|
+
return this.toString().split(...args);
|
|
2746
|
+
}
|
|
2741
2747
|
toString() {
|
|
2742
2748
|
return this.join('\n');
|
|
2743
2749
|
}
|
package/node.test.js
CHANGED
|
@@ -2729,6 +2729,12 @@ var $;
|
|
|
2729
2729
|
// [ Symbol.toPrimitive ]() {
|
|
2730
2730
|
// return this.toString()
|
|
2731
2731
|
// }
|
|
2732
|
+
match(...args) {
|
|
2733
|
+
return this.toString().match(...args);
|
|
2734
|
+
}
|
|
2735
|
+
split(...args) {
|
|
2736
|
+
return this.toString().split(...args);
|
|
2737
|
+
}
|
|
2732
2738
|
toString() {
|
|
2733
2739
|
return this.join('\n');
|
|
2734
2740
|
}
|
|
@@ -9777,10 +9783,10 @@ var $;
|
|
|
9777
9783
|
static wrap(task) {
|
|
9778
9784
|
const store = new WeakMap();
|
|
9779
9785
|
const fun = function (next) {
|
|
9780
|
-
if (next === undefined && store.has(this))
|
|
9781
|
-
return store.get(this);
|
|
9786
|
+
if (next === undefined && store.has(this ?? fun))
|
|
9787
|
+
return store.get(this ?? fun);
|
|
9782
9788
|
const val = task.call(this, next) ?? next;
|
|
9783
|
-
store.set(this, val);
|
|
9789
|
+
store.set(this ?? fun, val);
|
|
9784
9790
|
return val;
|
|
9785
9791
|
};
|
|
9786
9792
|
Reflect.defineProperty(fun, 'name', { value: task.name + ' ' });
|