mysql2 3.6.0 → 3.6.1

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.6.0",
3
+ "version": "3.6.1",
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": {
@@ -75,7 +75,7 @@
75
75
  "c8": "^8.0.0",
76
76
  "error-stack-parser": "^2.0.3",
77
77
  "eslint": "^8.27.0",
78
- "eslint-config-prettier": "^8.5.0",
78
+ "eslint-config-prettier": "^9.0.0",
79
79
  "eslint-plugin-async-await": "0.0.0",
80
80
  "eslint-plugin-markdown": "^3.0.0",
81
81
  "husky": "^8.0.2",
package/promise.d.ts CHANGED
@@ -115,7 +115,7 @@ export interface PoolCluster extends EventEmitter {
115
115
 
116
116
  of(pattern: string, selector?: string): PoolNamespace;
117
117
 
118
- on(event: string, listener: (args: any[]) => void): this;
118
+ on(event: string, listener: (...args: any[]) => void): this;
119
119
  on(event: 'remove', listener: (nodeId: number) => void): this;
120
120
  on(event: 'warn', listener: (err: Error) => void): this;
121
121
  }
@@ -357,7 +357,7 @@ declare class Connection extends QueryableBase(ExecutableBase(EventEmitter)) {
357
357
 
358
358
  format(sql: string, values?: any | any[] | { [param: string]: any }): string;
359
359
 
360
- on(event: string, listener: (args: any[]) => void): this;
360
+ on(event: string, listener: (...args: any[]) => void): this;
361
361
 
362
362
  rollback(callback: (err: QueryError | null) => void): void;
363
363
 
@@ -63,7 +63,7 @@ declare class Pool extends QueryableBase(ExecutableBase(EventEmitter)) {
63
63
  callback?: (err: NodeJS.ErrnoException | null, ...args: any[]) => any
64
64
  ): void;
65
65
 
66
- on(event: string, listener: (args: any[]) => void): this;
66
+ on(event: string, listener: (...args: any[]) => void): this;
67
67
  on(event: 'connection', listener: (connection: PoolConnection) => any): this;
68
68
  on(event: 'acquire', listener: (connection: PoolConnection) => any): this;
69
69
  on(event: 'release', listener: (connection: PoolConnection) => any): this;
@@ -78,7 +78,7 @@ declare class PoolCluster extends EventEmitter {
78
78
 
79
79
  of(pattern: string, selector?: string): PoolNamespace;
80
80
 
81
- on(event: string, listener: (args: any[]) => void): this;
81
+ on(event: string, listener: (...args: any[]) => void): this;
82
82
  on(event: 'remove', listener: (nodeId: number) => void): this;
83
83
  on(event: 'warn', listener: (err: Error) => void): this;
84
84
  }
@@ -133,7 +133,7 @@ declare class Query extends Sequence {
133
133
  */
134
134
  stream(options?: StreamOptions): Readable;
135
135
 
136
- on(event: string, listener: (args: any[]) => void): this;
136
+ on(event: string, listener: (...args: any[]) => void): this;
137
137
  on(event: 'error', listener: (err: QueryError) => any): this;
138
138
  on(
139
139
  event: 'fields',