mol_crypto_lib 0.1.1628 → 0.1.1630
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.d.ts +2 -2
- package/node.js +2 -2
- package/node.js.map +1 -1
- package/node.mjs +2 -2
- package/node.test.js +2 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +2 -2
- package/web.js +2 -2
- package/web.js.map +1 -1
- package/web.mjs +2 -2
package/node.d.ts
CHANGED
@@ -546,8 +546,8 @@ declare namespace $ {
|
|
546
546
|
static run<Result>(task: () => Result): Result;
|
547
547
|
static func<Args extends any[], Result, Host = void>(func: (this: Host, ...args: Args) => Result): (this: Host, ...args: Args) => Result;
|
548
548
|
static get class(): <Class extends new (...args: any[]) => any>(Class: Class) => Class;
|
549
|
-
static get method(): (obj: object, name: PropertyKey, descr
|
550
|
-
static get field(): <Host, Field extends keyof Host, Args extends any[], Result>(obj: Host, name: Field, descr
|
549
|
+
static get method(): (obj: object, name: PropertyKey, descr?: TypedPropertyDescriptor<any>) => TypedPropertyDescriptor<any>;
|
550
|
+
static get field(): <Host extends object, Field extends keyof Host, Args extends any[], Result>(obj: Host, name: Field, descr?: TypedPropertyDescriptor<Result>) => TypedPropertyDescriptor<Result>;
|
551
551
|
}
|
552
552
|
}
|
553
553
|
|
package/node.js
CHANGED
@@ -2354,13 +2354,13 @@ var $;
|
|
2354
2354
|
};
|
2355
2355
|
}
|
2356
2356
|
static get method() {
|
2357
|
-
return (obj, name, descr) => {
|
2357
|
+
return (obj, name, descr = Reflect.getOwnPropertyDescriptor(obj, name)) => {
|
2358
2358
|
descr.value = this.func(descr.value);
|
2359
2359
|
return descr;
|
2360
2360
|
};
|
2361
2361
|
}
|
2362
2362
|
static get field() {
|
2363
|
-
return (obj, name, descr) => {
|
2363
|
+
return (obj, name, descr = Reflect.getOwnPropertyDescriptor(obj, name)) => {
|
2364
2364
|
descr.get = descr.set = this.func(descr.get);
|
2365
2365
|
return descr;
|
2366
2366
|
};
|