pg-promise 11.11.0 → 11.12.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.
@@ -31,7 +31,7 @@ function isText(txt) {
31
31
  // Proper configuration is having NODE_ENV = 'development', but this
32
32
  // method only checks for 'dev' being present, and regardless of the case.
33
33
  function isDev() {
34
- const env = global.process.env.NODE_ENV || '';
34
+ const env = global.process.env['NODE_ENV'] || '';
35
35
  return env.toLowerCase().indexOf('dev') !== -1;
36
36
  }
37
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-promise",
3
- "version": "11.11.0",
3
+ "version": "11.12.1",
4
4
  "description": "PostgreSQL interface for Node.js",
5
5
  "main": "lib/index.js",
6
6
  "typings": "typescript/pg-promise.d.ts",
@@ -42,12 +42,12 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "assert-options": "0.8.2",
45
- "pg": "8.13.3",
45
+ "pg": "8.14.0",
46
46
  "pg-minify": "1.7.0",
47
47
  "spex": "3.4.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "pg-query-stream": "4.7.3"
50
+ "pg-query-stream": "4.8.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@eslint/js": "9.22.0",
@@ -120,6 +120,7 @@ declare namespace pg {
120
120
  types?: ITypeOverrides
121
121
  allowExitOnIdle?: boolean
122
122
  maxLifetimeSeconds?: number
123
+ enableChannelBinding?:boolean
123
124
  }
124
125
 
125
126
  // Type id-s supported by PostgreSQL, copied from: