mol_plot_all 1.2.1517 → 1.2.1519
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/package.json
CHANGED
package/web.d.ts
CHANGED
|
@@ -949,8 +949,8 @@ declare namespace $ {
|
|
|
949
949
|
static run<Result>(task: () => Result): Result;
|
|
950
950
|
static func<Args extends any[], Result, Host = void>(func: (this: Host, ...args: Args) => Result): (this: Host, ...args: Args) => Result;
|
|
951
951
|
static get class(): <Class extends new (...args: any[]) => any>(Class: Class) => Class;
|
|
952
|
-
static get method(): (obj: object, name: PropertyKey, descr
|
|
953
|
-
static get field(): <Host, Field extends keyof Host, Args extends any[], Result>(obj: Host, name: Field, descr
|
|
952
|
+
static get method(): (obj: object, name: PropertyKey, descr?: TypedPropertyDescriptor<any>) => TypedPropertyDescriptor<any>;
|
|
953
|
+
static get field(): <Host extends object, Field extends keyof Host, Args extends any[], Result>(obj: Host, name: Field, descr?: TypedPropertyDescriptor<Result>) => TypedPropertyDescriptor<Result>;
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
956
|
|
package/web.js
CHANGED
|
@@ -2854,13 +2854,13 @@ var $;
|
|
|
2854
2854
|
};
|
|
2855
2855
|
}
|
|
2856
2856
|
static get method() {
|
|
2857
|
-
return (obj, name, descr) => {
|
|
2857
|
+
return (obj, name, descr = Reflect.getOwnPropertyDescriptor(obj, name)) => {
|
|
2858
2858
|
descr.value = this.func(descr.value);
|
|
2859
2859
|
return descr;
|
|
2860
2860
|
};
|
|
2861
2861
|
}
|
|
2862
2862
|
static get field() {
|
|
2863
|
-
return (obj, name, descr) => {
|
|
2863
|
+
return (obj, name, descr = Reflect.getOwnPropertyDescriptor(obj, name)) => {
|
|
2864
2864
|
descr.get = descr.set = this.func(descr.get);
|
|
2865
2865
|
return descr;
|
|
2866
2866
|
};
|