@axiosleo/orm-mysql 0.6.0 → 0.6.2

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/index.d.ts CHANGED
@@ -235,8 +235,7 @@ export declare class Hook {
235
235
  * trigger event
236
236
  */
237
237
  static trigger: (
238
- label: string,
239
- options?: QueryOperatorOptions,
238
+ paths: string[],
240
239
  ...args: any[]
241
240
  ) => void
242
241
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiosleo/orm-mysql",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "MySQL ORM tool",
5
5
  "keywords": [
6
6
  "mysql",
package/src/hook.js CHANGED
@@ -65,15 +65,15 @@ class Hook {
65
65
  });
66
66
  }
67
67
 
68
+ static register(callback, ...paths) {
69
+ push(callback, paths);
70
+ }
71
+
68
72
  static listen(options = {}, ...args) {
69
73
  const { label, table, opt } = options;
70
74
  Hook.trigger([label, table, opt], ...args);
71
75
  }
72
76
 
73
- static register(callback, ...paths) {
74
- push(callback, paths);
75
- }
76
-
77
77
  static trigger(paths = [], ...args) {
78
78
  let curr = events;
79
79
  let step = 0;