Comparing version 0.95.13 to 0.95.14
@@ -92,9 +92,5 @@ // MySQL Client | ||
validateConnection(connection) { | ||
if ( | ||
connection.state === 'connected' || | ||
connection.state === 'authenticated' | ||
) { | ||
return true; | ||
} | ||
return false; | ||
return ( | ||
connection.state === 'connected' || connection.state === 'authenticated' | ||
); | ||
} | ||
@@ -101,0 +97,0 @@ |
@@ -18,6 +18,9 @@ // MySQL2 Client | ||
validateConnection(connection) { | ||
if (connection._fatalError) { | ||
return false; | ||
} | ||
return true; | ||
return ( | ||
connection && | ||
!connection._fatalError && | ||
!connection._protocolError && | ||
!connection._closing && | ||
!connection.stream.destroyed | ||
); | ||
} | ||
@@ -24,0 +27,0 @@ } |
{ | ||
"name": "knex", | ||
"version": "0.95.13", | ||
"version": "0.95.14", | ||
"description": "A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3", | ||
@@ -5,0 +5,0 @@ "main": "knex", |
Sorry, the diff of this file is too big to display
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
770007
20333