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.2.0 to 0.2.1

gruntfile.js

6

knex.js

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

// Knex.js 0.2.0
// Knex.js 0.2.1
//

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

// Keep in sync with package.json
Knex.VERSION = '0.2.0';
Knex.VERSION = '0.2.1';

@@ -789,3 +789,3 @@ // Methods common to both the `Grammar` and `SchemaGrammar` interfaces,

if (returning) this.returning(returning);
this.values = this._prepValues(values);
this.values = this._prepValues(_.clone(values));
return this._setType('insert');

@@ -792,0 +792,0 @@ },

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

@@ -11,10 +11,12 @@ "main": "knex.js",

"mocha": "~1.12.0",
"objectdump": "~0.2.1",
"objectdump": "~0.3.0",
"mysql": "~2.0.0-alpha7",
"pg": "~2.3.1",
"sqlite3": "~2.1.7",
"node-uuid": "~1.4.0"
"node-uuid": "~1.4.0",
"grunt": "~0.4.1",
"grunt-release": "~0.5.1"
},
"dependencies": {
"when": ">=2.1.0",
"when": "~2.3.0",
"underscore": "~1.5.1",

@@ -21,0 +23,0 @@ "generic-pool": "~2.0.3"

var uuid = require('node-uuid');
var deepEqual = require('assert').deepEqual;

@@ -159,4 +160,19 @@ module.exports = function(Knex, dbName, resolver) {

it('should not mutate the array passed in', function(ok) {
var a = {enum_value: 'a', uuid: uuid.v4()};
var b = {enum_value: 'c', uuid: uuid.v4()};
var x = [a, b];
Knex('datatype_test')
.insert(x)
.then(function() {
deepEqual(x, [a, b]);
ok();
})
.then(null, ok);
});
});
};
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