Comparing version 5.7.0 to 5.8.0
@@ -407,3 +407,3 @@ "use strict"; | ||
const createConnection = async (connectionConfiguration, clientConfiguration = {}) => { | ||
const pool = new _pg.default.Pool(typeof connectionConfiguration === 'string' ? (0, _pgConnectionString.parse)(connectionConfiguration) : connectionConfiguration); | ||
const pool = new _pg.default.native.Pool(typeof connectionConfiguration === 'string' ? (0, _pgConnectionString.parse)(connectionConfiguration) : connectionConfiguration); | ||
const connection = await pool.connect(); | ||
@@ -440,3 +440,3 @@ let ended = false; | ||
const createPool = (connectionConfiguration, clientConfiguration = {}) => { | ||
const pool = new _pg.default.Pool(typeof connectionConfiguration === 'string' ? (0, _pgConnectionString.parse)(connectionConfiguration) : connectionConfiguration); | ||
const pool = new _pg.default.native.Pool(typeof connectionConfiguration === 'string' ? (0, _pgConnectionString.parse)(connectionConfiguration) : connectionConfiguration); | ||
@@ -443,0 +443,0 @@ const connect = async () => { |
@@ -20,2 +20,3 @@ { | ||
"pg-connection-string": "^2.0.0", | ||
"pg-native": "^3.0.0", | ||
"pretty-hrtime": "^1.0.3", | ||
@@ -87,3 +88,3 @@ "roarr": "^2.3.0", | ||
}, | ||
"version": "5.7.0" | ||
"version": "5.8.0" | ||
} |
@@ -417,3 +417,3 @@ // @flow | ||
): Promise<DatabaseSingleConnectionType> => { | ||
const pool = new pg.Pool(typeof connectionConfiguration === 'string' ? parseConnectionString(connectionConfiguration) : connectionConfiguration); | ||
const pool = new pg.native.Pool(typeof connectionConfiguration === 'string' ? parseConnectionString(connectionConfiguration) : connectionConfiguration); | ||
@@ -457,3 +457,3 @@ const connection = await pool.connect(); | ||
): DatabasePoolType => { | ||
const pool = new pg.Pool(typeof connectionConfiguration === 'string' ? parseConnectionString(connectionConfiguration) : connectionConfiguration); | ||
const pool = new pg.native.Pool(typeof connectionConfiguration === 'string' ? parseConnectionString(connectionConfiguration) : connectionConfiguration); | ||
@@ -460,0 +460,0 @@ const connect = async () => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134230
13
+ Addedpg-native@^3.0.0
+ Addedbindings@1.5.0(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
+ Addedlibpq@1.8.13(transitive)
+ Addednan@2.19.0(transitive)
+ Addedpg-native@3.2.0(transitive)
+ Addedpg-types@1.13.0(transitive)
+ Addedpostgres-array@1.0.3(transitive)