Comparing version 0.3.0 to 0.3.1
@@ -11,3 +11,3 @@ 'use strict'; | ||
function onTransactionComplete(err) { | ||
self._db.run('END TRANSACTION;', [], function () { | ||
function done() { | ||
self._running = false; | ||
@@ -25,3 +25,10 @@ | ||
}); | ||
}); | ||
} | ||
if (err) { | ||
self._db.run('ROLLBACK;', [], function () { | ||
self._db.run('END TRANSACTION;', [], done); | ||
}); | ||
return; | ||
} | ||
return self._db.run('END TRANSACTION;', [], done); | ||
} | ||
@@ -28,0 +35,0 @@ |
{ | ||
"name": "websql", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"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
25819
279