Comparing version 0.5.7 to 0.5.8
@@ -1,2 +0,2 @@ | ||
// Knex.js 0.5.7 | ||
// Knex.js 0.5.8 | ||
// -------------- | ||
@@ -91,3 +91,3 @@ | ||
// Keep in sync with package.json | ||
knex.VERSION = '0.5.7'; | ||
knex.VERSION = '0.5.8'; | ||
@@ -94,0 +94,0 @@ // Runs a new transaction, taking a container and returning a promise |
@@ -58,2 +58,12 @@ // Common | ||
map: function() { | ||
var promise = this.then(); | ||
return promise.map.apply(promise, arguments); | ||
}, | ||
reduce: function() { | ||
var promise = this.then(); | ||
return promise.reduce.apply(promise, arguments); | ||
}, | ||
catch: function() { | ||
@@ -144,5 +154,7 @@ return this.caught.apply(this, arguments); | ||
flags.selectMode = 'ForUpdate'; | ||
return this; | ||
}; | ||
this.forShare = function() { | ||
flags.selectMode = 'ForShare'; | ||
return this; | ||
}; | ||
@@ -149,0 +161,0 @@ } |
{ | ||
"name": "knex", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"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", |
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
252014
6496