mol_crypto2_lib 0.0.46 → 0.0.47
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 +3 -3
- package/node.js.map +1 -1
- package/node.mjs +3 -3
- package/node.test.js +3 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.js +3 -3
- package/web.js.map +1 -1
- package/web.mjs +3 -3
package/node.js
CHANGED
|
@@ -542,10 +542,10 @@ var $;
|
|
|
542
542
|
static wrap(task) {
|
|
543
543
|
const store = new WeakMap();
|
|
544
544
|
const fun = function (next) {
|
|
545
|
-
if (next === undefined && store.has(this))
|
|
546
|
-
return store.get(this);
|
|
545
|
+
if (next === undefined && store.has(this ?? fun))
|
|
546
|
+
return store.get(this ?? fun);
|
|
547
547
|
const val = task.call(this, next) ?? next;
|
|
548
|
-
store.set(this, val);
|
|
548
|
+
store.set(this ?? fun, val);
|
|
549
549
|
return val;
|
|
550
550
|
};
|
|
551
551
|
Reflect.defineProperty(fun, 'name', { value: task.name + ' ' });
|