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.1.6 to 0.1.7

13

knex.js

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

// Knex.js 0.1.6
// Knex.js 0.1.7
//

@@ -26,4 +26,8 @@ // (c) 2013 Tim Griesser

// Keep in sync with package.json
Knex.VERSION = '0.1.6';
Knex.VERSION = '0.1.7';
var rethrower = function(err) {
throw err;
};
// Methods common to both the `Grammar` and `SchemaGrammar` interfaces,

@@ -44,3 +48,4 @@ // used to generate the sql in one form or another.

// Multiple calls to `exec` will resolve with the same value
// if called more than once.
// if called more than once. Any unhandled errors will be thrown
// after the last block.
exec: function(callback) {

@@ -52,2 +57,4 @@ this._promise || (this._promise = this.runQuery());

callback(err, null);
}).then(null, function(err) {
setTimeout(function() { throw err; }, 0);
});

@@ -54,0 +61,0 @@ },

{
"name": "knex",
"version": "0.1.6",
"version": "0.1.7",
"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",

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

var When = require('when');
var When = require('when');
var assert = require('assert');
module.exports = function(Knex, dbName, resolver) {

@@ -10,2 +12,21 @@

it('throws errors on the exec if uncaught in the last block', function(ok) {
var listeners = process.listeners('uncaughtException');
process.removeAllListeners('uncaughtException');
process.on('uncaughtException', function(err) {
process.removeAllListeners('uncaughtException');
for (var i = 0, l = listeners.length; i < l; i++) {
process.on('uncaughtException', listeners[i]);
}
ok();
});
Knex('accounts').select().exec(function(err, resp) {
console.log(undefinedVar);
});
});
it('uses `orderBy`', function(ok) {

@@ -12,0 +33,0 @@ Knex('accounts')

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