mysql2 3.24.2 → 3.24.3

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": "mysql2",
3
- "version": "3.24.2",
3
+ "version": "3.24.3",
4
4
  "description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
5
5
  "main": "index.js",
6
6
  "typings": "typings/mysql/index",
package/promise.d.ts CHANGED
@@ -126,7 +126,7 @@ export interface PoolCluster extends EventEmitter {
126
126
  of(pattern: string, selector?: string): PoolNamespace;
127
127
 
128
128
  on(event: string, listener: (...args: any[]) => void): this;
129
- on(event: 'remove', listener: (nodeId: number) => void): this;
129
+ on(event: 'remove', listener: (nodeId: string) => void): this;
130
130
  on(event: 'warn', listener: (err: Error) => void): this;
131
131
  }
132
132
 
@@ -83,9 +83,9 @@ declare class PoolCluster extends EventEmitter {
83
83
  of(pattern: string, selector?: string): PoolNamespace;
84
84
 
85
85
  on(event: string, listener: (...args: any[]) => void): this;
86
- on(event: 'online', listener: (nodeId: number) => void): this;
87
- on(event: 'offline', listener: (nodeId: number) => void): this;
88
- on(event: 'remove', listener: (nodeId: number) => void): this;
86
+ on(event: 'online', listener: (nodeId: string) => void): this;
87
+ on(event: 'offline', listener: (nodeId: string) => void): this;
88
+ on(event: 'remove', listener: (nodeId: string) => void): this;
89
89
  on(event: 'warn', listener: (err: Error) => void): this;
90
90
  }
91
91