pg-promise 11.1.0 → 11.3.0

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": "pg-promise",
3
- "version": "11.1.0",
3
+ "version": "11.3.0",
4
4
  "description": "PostgreSQL interface for Node.js",
5
5
  "main": "lib/index.js",
6
6
  "typings": "typescript/pg-promise.d.ts",
@@ -47,17 +47,17 @@
47
47
  "spex": "3.2.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@types/node": "18.11.18",
50
+ "@types/node": "18.14.0",
51
51
  "bluebird": "3.7.2",
52
52
  "coveralls": "3.1.1",
53
- "cspell": "6.19.2",
54
- "eslint": "8.32.0",
53
+ "cspell": "6.26.3",
54
+ "eslint": "8.34.0",
55
55
  "istanbul": "0.4.5",
56
56
  "jasmine-node": "3.0.0",
57
- "jsdoc": "4.0.0",
57
+ "jsdoc": "4.0.2",
58
58
  "JSONStream": "1.3.5",
59
59
  "pg-query-stream": "4.3.0",
60
60
  "tslint": "6.1.3",
61
- "typescript": "4.9.4"
61
+ "typescript": "4.9.5"
62
62
  }
63
63
  }
@@ -20,7 +20,6 @@
20
20
 
21
21
  import {EventEmitter} from 'events';
22
22
  import {checkServerIdentity} from 'tls';
23
- import {Stream} from 'stream';
24
23
 
25
24
  declare namespace pg {
26
25
 
@@ -96,14 +95,26 @@ declare namespace pg {
96
95
  idleTimeoutMillis?: number
97
96
  parseInputDatesAsUTC?: boolean
98
97
  rows?: number
98
+
99
+ // Max milliseconds any query using this connection will execute for before timing out in error.
100
+ // false = unlimited
99
101
  statement_timeout?: boolean | number
102
+
103
+ // Abort any statement that waits longer than the specified duration in milliseconds
104
+ // while attempting to acquire a lock; false = unlimited
105
+ lock_timeout?: boolean | number
106
+
107
+ // Terminate any session with an open transaction that has been idle for longer than
108
+ // the specified duration in milliseconds; false = unlimited
109
+ idle_in_transaction_session_timeout?: boolean | number
110
+
100
111
  query_timeout?: boolean | number
101
112
  connectionTimeoutMillis?: number
102
113
  keepAliveInitialDelayMillis?: number
103
114
  keepAlive?: boolean
104
115
  keepalives?: number
105
116
  keepalives_idle?: number
106
- stream?: Stream | ((cn: IConnectionParameters) => Stream)
117
+ stream?: Socket | ((cn: IConnectionParameters) => Socket)
107
118
  Client?: new(config: string | IConnectionParameters) => C
108
119
  Promise?: any
109
120
  types?: ITypeOverrides
@@ -247,10 +258,18 @@ declare namespace pg {
247
258
 
248
259
  parseInputDatesAsUTC: boolean
249
260
 
250
- // max milliseconds any query using this connection will execute for before timing out in error.
251
- // false=unlimited
261
+ // Max milliseconds any query using this connection will execute for before timing out in error.
262
+ // false = unlimited
252
263
  statement_timeout: boolean | number
253
264
 
265
+ // Abort any statement that waits longer than the specified duration in milliseconds
266
+ // while attempting to acquire a lock; false = unlimited
267
+ lock_timeout: boolean | number
268
+
269
+ // Terminate any session with an open transaction that has been idle for longer than
270
+ // the specified duration in milliseconds; false = unlimited
271
+ idle_in_transaction_session_timeout: boolean | number
272
+
254
273
  // max milliseconds to wait for query to complete (client side)
255
274
  query_timeout: boolean | number
256
275