Comparing version 0.2.0 to 0.2.1
@@ -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); | ||
}); | ||
}); | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
208565
28
6259
8
+ Addedwhen@2.3.0(transitive)
- Removedwhen@3.7.8(transitive)
Updatedwhen@~2.3.0