mol_view_tree2_lib 1.0.207 → 1.0.209

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mol_view_tree2_lib",
3
- "version": "1.0.207",
3
+ "version": "1.0.209",
4
4
  "exports": {
5
5
  "node": {
6
6
  "import": "./node.mjs",
package/web.test.js CHANGED
@@ -4176,10 +4176,10 @@ var $;
4176
4176
  static wrap(task) {
4177
4177
  const store = new WeakMap();
4178
4178
  const fun = function (next) {
4179
- if (next === undefined && store.has(this))
4180
- return store.get(this);
4179
+ if (next === undefined && store.has(this ?? fun))
4180
+ return store.get(this ?? fun);
4181
4181
  const val = task.call(this, next) ?? next;
4182
- store.set(this, val);
4182
+ store.set(this ?? fun, val);
4183
4183
  return val;
4184
4184
  };
4185
4185
  Reflect.defineProperty(fun, 'name', { value: task.name + ' ' });