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.2 to 0.5.3

8

clients/base/grammar.js

@@ -81,7 +81,11 @@ // Grammar

return sql.join(', ');
},
},
// Compiles the columns in the query, specifying if an item was distinct.
compileColumns: function(qb, columns) {
return (qb.flags.distinct ? 'select distinct' : 'select') + ((_.isArray(columns) && _.isEmpty(columns)) ? '' : ' '+this.columnize(columns));
var columnsIsArray = _.isArray(columns);
var columnsEmpty = _.isEmpty(columns);
var sql = (qb.flags.distinct ? 'select distinct' : 'select') + ((columnsIsArray && columnsEmpty) ? '' : ' '+this.columnize(columns));
sql = qb.aggregates.length && !columnsEmpty ? sql + ',' : sql;
return sql;
},

@@ -88,0 +92,0 @@

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

// Knex.js 0.5.2
// Knex.js 0.5.3
// --------------

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

// Keep in sync with package.json
knex.VERSION = '0.5.2';
knex.VERSION = '0.5.3';

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

{
"name": "knex",
"version": "0.5.2",
"version": "0.5.3",
"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",

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