mol_plot_all 1.2.1518 → 1.2.1520

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_plot_all",
3
- "version": "1.2.1518",
3
+ "version": "1.2.1520",
4
4
  "exports": {
5
5
  "node": {
6
6
  "import": "./node.mjs",
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: PropertyDescriptor) => PropertyDescriptor;
953
- static get field(): <Host, Field extends keyof Host, Args extends any[], Result>(obj: Host, name: Field, descr: TypedPropertyDescriptor<Result>) => TypedPropertyDescriptor<Result>;
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
  };