Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

knex

Package Overview
Dependencies
Maintainers
4
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knex - npm Package Compare versions

Comparing version 0.95.13 to 0.95.14

10

lib/dialects/mysql/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc