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/node.d.ts CHANGED
@@ -1188,8 +1188,8 @@ declare namespace $ {
1188
1188
  static run<Result>(task: () => Result): Result;
1189
1189
  static func<Args extends any[], Result, Host = void>(func: (this: Host, ...args: Args) => Result): (this: Host, ...args: Args) => Result;
1190
1190
  static get class(): <Class extends new (...args: any[]) => any>(Class: Class) => Class;
1191
- static get method(): (obj: object, name: PropertyKey, descr: PropertyDescriptor) => PropertyDescriptor;
1192
- static get field(): <Host, Field extends keyof Host, Args extends any[], Result>(obj: Host, name: Field, descr: TypedPropertyDescriptor<Result>) => TypedPropertyDescriptor<Result>;
1191
+ static get method(): (obj: object, name: PropertyKey, descr?: TypedPropertyDescriptor<any>) => TypedPropertyDescriptor<any>;
1192
+ static get field(): <Host extends object, Field extends keyof Host, Args extends any[], Result>(obj: Host, name: Field, descr?: TypedPropertyDescriptor<Result>) => TypedPropertyDescriptor<Result>;
1193
1193
  }
1194
1194
  }
1195
1195
 
package/node.js CHANGED
@@ -4083,13 +4083,13 @@ var $;
4083
4083
  };
4084
4084
  }
4085
4085
  static get method() {
4086
- return (obj, name, descr) => {
4086
+ return (obj, name, descr = Reflect.getOwnPropertyDescriptor(obj, name)) => {
4087
4087
  descr.value = this.func(descr.value);
4088
4088
  return descr;
4089
4089
  };
4090
4090
  }
4091
4091
  static get field() {
4092
- return (obj, name, descr) => {
4092
+ return (obj, name, descr = Reflect.getOwnPropertyDescriptor(obj, name)) => {
4093
4093
  descr.get = descr.set = this.func(descr.get);
4094
4094
  return descr;
4095
4095
  };