Comparing version 0.7.8 to 0.7.9
@@ -62,4 +62,3 @@ /* SQB | ||
} | ||
const self = this; | ||
const promise = Promisify.fromCallback(cb => self.execute(options, cb)); | ||
const promise = this.execute(options); | ||
return callback ? promise.then(callback) : promise; | ||
@@ -73,3 +72,9 @@ } | ||
} | ||
if (typeof callback !== 'function') | ||
callback = undefined; | ||
const self = this; | ||
if (!callback) | ||
return Promisify.fromCallback(cb => self.execute(options, cb)); | ||
if (self.connection) | ||
@@ -76,0 +81,0 @@ return self.connection.execute(this, this._params, options, callback); |
{ | ||
"name": "sqb", | ||
"description": "Plugin-driven, multi-dialect SQL query builder and Database connection framework for JavaScript", | ||
"version": "0.7.8", | ||
"version": "0.7.9", | ||
"author": "Panates Ltd.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
95197
3257