slonik
Advanced tools
Comparing version 8.3.0 to 8.3.1
@@ -24,8 +24,9 @@ "use strict"; | ||
const connection = await pool.connect(); | ||
const bindedConnection = (0, _bindPoolConnection.default)(parentLog, pool, connection, clientConfiguration); | ||
if (clientConfiguration.onConnect) { | ||
await clientConfiguration.onConnect(connection); | ||
await clientConfiguration.onConnect(bindedConnection); | ||
} | ||
return (0, _bindPoolConnection.default)(parentLog, pool, connection, clientConfiguration); | ||
return bindedConnection; | ||
}, | ||
@@ -32,0 +33,0 @@ many: (0, _utilities.mapTaggedTemplateLiteralInvocation)(_connectionMethods.many.bind(null, parentLog, pool, clientConfiguration)), |
@@ -73,8 +73,9 @@ "use strict"; | ||
}); | ||
const bindedConnection = (0, _bindSingleConnection.default)(connectionLog, pool, connection, clientConfiguration); | ||
if (clientConfiguration.onConnect) { | ||
await clientConfiguration.onConnect(connection); | ||
await clientConfiguration.onConnect(bindedConnection); | ||
} | ||
return (0, _bindSingleConnection.default)(connectionLog, pool, connection, clientConfiguration); | ||
return bindedConnection; | ||
}; | ||
@@ -81,0 +82,0 @@ |
@@ -93,3 +93,3 @@ { | ||
}, | ||
"version": "8.3.0" | ||
"version": "8.3.1" | ||
} |
@@ -38,7 +38,9 @@ // @flow | ||
const bindedConnection = bindPoolConnection(parentLog, pool, connection, clientConfiguration); | ||
if (clientConfiguration.onConnect) { | ||
await clientConfiguration.onConnect(connection); | ||
await clientConfiguration.onConnect(bindedConnection); | ||
} | ||
return bindPoolConnection(parentLog, pool, connection, clientConfiguration); | ||
return bindedConnection; | ||
}, | ||
@@ -45,0 +47,0 @@ many: mapTaggedTemplateLiteralInvocation(many.bind(null, parentLog, pool, clientConfiguration)), |
@@ -81,7 +81,9 @@ // @flow | ||
const bindedConnection = bindSingleConnection(connectionLog, pool, connection, clientConfiguration); | ||
if (clientConfiguration.onConnect) { | ||
await clientConfiguration.onConnect(connection); | ||
await clientConfiguration.onConnect(bindedConnection); | ||
} | ||
return bindSingleConnection(connectionLog, pool, connection, clientConfiguration); | ||
return bindedConnection; | ||
}; |
@@ -32,3 +32,2 @@ // @flow | ||
} from './types'; | ||
export { | ||
@@ -35,0 +34,0 @@ createConnection, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
230532
2537