pg-promise 10.15.2 → 10.15.4

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,11 +1,11 @@
1
1
  {
2
2
  "name": "pg-promise",
3
- "version": "10.15.2",
3
+ "version": "10.15.4",
4
4
  "description": "PostgreSQL interface for Node.js",
5
5
  "main": "lib/index.js",
6
6
  "typings": "typescript/pg-promise.d.ts",
7
7
  "scripts": {
8
- "check-spelling": "cspell --config=.cspell.json \"**/*.{md,ts,js}\" --no-progress",
8
+ "spelling": "cspell --config=.cspell.json \"**/*.{md,ts,js}\" --no-progress",
9
9
  "coverage": "istanbul cover ./node_modules/jasmine-node/bin/jasmine-node test",
10
10
  "doc": "jsdoc -c ./jsdoc/jsdoc.js ./jsdoc/README.md -t ./jsdoc/templates/custom",
11
11
  "lint": "eslint ./lib ./test/*.js ./test/db --fix",
@@ -49,7 +49,7 @@
49
49
  "@types/node": "18.11.9",
50
50
  "bluebird": "3.7.2",
51
51
  "coveralls": "3.1.1",
52
- "cspell": "6.14.3",
52
+ "cspell": "6.15.0",
53
53
  "eslint": "8.28.0",
54
54
  "istanbul": "0.4.5",
55
55
  "jasmine-node": "3.0.0",
@@ -261,6 +261,9 @@ declare namespace pg {
261
261
  // https://github.com/brianc/node-postgres/blob/master/packages/pg-pool/index.js#L61
262
262
  // NOTE: We declare only what can be used from pg-promise
263
263
  interface IPool extends EventEmitter {
264
+
265
+ connect(): Promise<IClient>;
266
+
264
267
  end(): Promise<undefined>;
265
268
 
266
269
  end(cb: (err: Error) => any): any;
@@ -290,14 +293,16 @@ declare namespace pg {
290
293
 
291
294
  interface IClient extends EventEmitter {
292
295
 
293
- query<T>(config: any, values: any[], callback: (err: Error, result: IResult<T>) => void): undefined
296
+ query<T>(config: any, values: any[], callback: (err: Error, result: IResult<T>) => void): void
294
297
 
295
- query<T>(config: any, callback: (err: Error, result: IResult<T>) => void): undefined
298
+ query<T>(config: any, callback: (err: Error, result: IResult<T>) => void): void
296
299
 
297
300
  query<T>(config: any, values: any[]): Promise<IResult<T>>
298
301
 
299
302
  query<T>(config: any): Promise<IResult<T>>
300
303
 
304
+ release(): void
305
+
301
306
  connectionParameters: IConnectionParameters
302
307
  database: string
303
308
  user: string