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

knex

Package Overview
Dependencies
Maintainers
1
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.5.8 to 0.5.9

7

clients/pool.js

@@ -36,2 +36,9 @@ // Pool

.tap(function(connection) {
// remove connection from the pool if the connection disconnects
connection.on('error', function (err) {
//console.log('connection error: ' + err);
pool.poolInstance.destroy(connection);
});
connection.__cid = _.uniqueId('__cid');

@@ -38,0 +45,0 @@ if (pool.config.afterCreate) {

2

clients/server/mysql.js

@@ -70,2 +70,2 @@ // MySQL

});
});
// PostgreSQL
// -------
// Other dependencies, including the `pg` library,
// Other dependencies, including the `pg` or `pg.js` libraries,
// which needs to be added as a dependency to the project
// using this database.
var _ = require('lodash');
var pg = require('pg');
var pg = null;
try {
pg = require('pg');
} catch (e) {
pg = require('pg.js');
}
// All other local project modules needed in this scope.

@@ -11,0 +17,0 @@ var ServerBase = require('./base').ServerBase;

@@ -1,2 +0,2 @@

// Knex.js 0.5.8
// Knex.js 0.5.9
// --------------

@@ -91,3 +91,3 @@

// Keep in sync with package.json
knex.VERSION = '0.5.8';
knex.VERSION = '0.5.9';

@@ -94,0 +94,0 @@ // Runs a new transaction, taking a container and returning a promise

@@ -145,2 +145,4 @@ // Builder

operator = '=';
} else if (!_.contains(operators, operator)) {
throw new Error('Invalid operator: ' + operator);
}

@@ -435,7 +437,2 @@

option: function(opts) {
this.opts = _.extend(this.opts, opts);
return this;
},
// Truncate

@@ -442,0 +439,0 @@ truncate: function() {

{
"name": "knex",
"version": "0.5.8",
"version": "0.5.9",
"description": "A query builder for Postgres, MySQL and SQLite3, designed to be flexible, portable, and fun to use.",

@@ -5,0 +5,0 @@ "main": "knex.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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