mysql2 3.5.1 → 3.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysql2",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
5
5
  "main": "index.js",
6
6
  "directories": {
package/promise.d.ts CHANGED
@@ -117,7 +117,7 @@ export interface PoolCluster extends EventEmitter {
117
117
 
118
118
  on(event: string, listener: (args: any[]) => void): this;
119
119
  on(event: 'remove', listener: (nodeId: number) => void): this;
120
- on(event: 'connection', listener: (connection: PoolConnection) => void): this;
120
+ on(event: 'warn', listener: (err: Error) => void): this;
121
121
  }
122
122
 
123
123
  export function createConnection(connectionUri: string): Promise<Connection>;
package/promise.js CHANGED
@@ -448,7 +448,7 @@ class PromisePoolCluster extends EventEmitter {
448
448
  super();
449
449
  this.poolCluster = poolCluster;
450
450
  this.Promise = thePromise || Promise;
451
- inheritEvents(poolCluster, this, ['acquire', 'connection', 'enqueue', 'release']);
451
+ inheritEvents(poolCluster, this, ['warn', 'remove']);
452
452
  }
453
453
 
454
454
  getConnection() {
@@ -80,7 +80,7 @@ declare class PoolCluster extends EventEmitter {
80
80
 
81
81
  on(event: string, listener: (args: any[]) => void): this;
82
82
  on(event: 'remove', listener: (nodeId: number) => void): this;
83
- on(event: 'connection', listener: (connection: PoolConnection) => void): this;
83
+ on(event: 'warn', listener: (err: Error) => void): this;
84
84
  }
85
85
 
86
86
  export { PoolCluster };