Comparing version 2.1.11 to 2.1.12
@@ -101,4 +101,27 @@ var Promise = require('bluebird'); | ||
/** | ||
* Bind Query.prototype.run() for later use | ||
* @param {Object=} options The options passed to the driver's method `run` | ||
* @param {Function=} callback | ||
* @return {Function} return a `this` bound Query.prototype.run() | ||
*/ | ||
Query.prototype.bindRun = function () { | ||
var curriedArgs = Array.prototype.slice.call(arguments); | ||
return Function.prototype.bind.apply( Query.prototype.run, [ this ].concat( curriedArgs ) ); | ||
} | ||
/** | ||
* Bind Query.prototype.execute() for later use | ||
* @param {Object=} options The options passed to the driver's method `run` | ||
* @param {Function=} callback | ||
* @return {Function} return a `this` bound Query.prototype.execute() | ||
*/ | ||
Query.prototype.bindExecute = function () { | ||
var curriedArgs = Array.prototype.slice.call(arguments); | ||
return Function.prototype.bind.apply( Query.prototype.execute, [ this ].concat( curriedArgs ) ); | ||
} | ||
/** | ||
* Internal method to execute a query. Called by `run` and `execute`. | ||
@@ -105,0 +128,0 @@ * @param {Object} options The options passed to the driver's method `run` |
{ | ||
"name": "thinky", | ||
"version": "2.1.11", | ||
"version": "2.1.12", | ||
"description": "RethinkDB ORM for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/thinky.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
219675
5907