Comparing version 2.0.1 to 2.0.2
@@ -36,5 +36,15 @@ 'use strict'; | ||
function done() { | ||
if (err) { | ||
self._currentTask.errorCallback(err); | ||
function done(rollbackOrCommitError, results) { | ||
var error = err || rollbackOrCommitError || null; | ||
if (!error && typeof results !== "undefined") { | ||
for (var i = 0; i < results.length; i++) { | ||
var result = results[i]; | ||
if (result.error) { | ||
error = result.error; | ||
break; | ||
} | ||
} | ||
} | ||
if (error) { | ||
self._currentTask.errorCallback(error); | ||
} else { | ||
@@ -41,0 +51,0 @@ self._currentTask.successCallback(); |
{ | ||
"name": "websql", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "WebSQL Database API, implemented for Node using sqlite3", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
32498
337