pg-promise 10.14.2 → 10.15.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/lib/index.js CHANGED
@@ -12,16 +12,16 @@ var v = process.versions.node.split(`.`),
12
12
  highVer = +v[0];
13
13
 
14
14
  // istanbul ignore next
15
- if (highVer < 8) {
15
+ if (highVer < 12) {
16
16
 
17
- // From pg-promise v10.4.0, the oldest supported Node.js is v8.0.0,
18
- // which among other things, adds method 'destroy' to streams.
17
+ // From pg-promise v10.15.0, the oldest supported Node.js is v12.0.0
19
18
 
19
+ // Node.js v8.0.0 was supported up to pg-promise v10.14.2
20
20
  // Node.js v7.6.0 was supported up to pg-promise v10.3.5
21
21
  // Node.js v4.5.0 was supported up to pg-promise v8.7.5
22
22
  // Node.js v0.10 was supported up to pg-promise v5.5.8
23
23
 
24
- throw new Error(`Minimum Node.js version supported by pg-promise is 8.0.0`);
24
+ throw new Error(`Minimum Node.js version supported by pg-promise is 12.0.0`);
25
25
  }
26
26
 
27
27
  module.exports = require(`./main`);
package/lib/main.js CHANGED
@@ -36,7 +36,7 @@ let originalClientConnect;
36
36
  * @module pg-promise
37
37
  *
38
38
  * @description
39
- * ## pg-promise v10
39
+ * ## pg-promise v10.15
40
40
  * All documentation here is for the latest official release only.
41
41
  *
42
42
  * ### Initialization Options
package/lib/query.js CHANGED
@@ -160,6 +160,8 @@ function $query(ctx, query, values, qrm, config) {
160
160
  if (npm.utils.isConnectivityError(err)) {
161
161
  ctx.db.client.$connectionError = err;
162
162
  }
163
+ err.query = err.query ?? query;
164
+ err.params = err.params ?? params;
163
165
  error = err;
164
166
  } else {
165
167
  multiResult = Array.isArray(result);
package/lib/task.js CHANGED
@@ -399,7 +399,7 @@ module.exports = config => {
399
399
  * allocated physical connection.
400
400
  *
401
401
  * @property {string} serverVersion
402
- * **(Added in v10.1.0)** - Version of the PostgreSQL server to which we are connected.
402
+ * Version of the PostgreSQL server to which we are connected.
403
403
  * Not available with $[Native Bindings].
404
404
  *
405
405
  * @property {Date} finish
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-promise",
3
- "version": "10.14.2",
3
+ "version": "10.15.1",
4
4
  "description": "PostgreSQL interface for Node.js",
5
5
  "main": "lib/index.js",
6
6
  "typings": "typescript/pg-promise.d.ts",
@@ -49,8 +49,8 @@
49
49
  "@types/node": "18.11.9",
50
50
  "bluebird": "3.7.2",
51
51
  "coveralls": "3.1.1",
52
- "cspell": "6.14.2",
53
- "eslint": "8.27.0",
52
+ "cspell": "6.14.3",
53
+ "eslint": "8.28.0",
54
54
  "istanbul": "0.4.5",
55
55
  "jasmine-node": "3.0.0",
56
56
  "jsdoc": "3.6.11",