Comparing version 2.1.9 to 2.1.10
@@ -218,8 +218,9 @@ var _ = require("lodash"); | ||
Driver.prototype.clear = function (table, cb) { | ||
var query = "DELETE FROM " + this.query.escapeId(table); | ||
var debug = this.opts.debug; | ||
if (this.opts.debug) { | ||
require("../../Debug").sql('sqlite', query); | ||
} | ||
this.db.all(query, cb); | ||
this.execQuery("DELETE FROM ??", [table], function (err) { | ||
if (err) return cb(err); | ||
this.execQuery("DELETE FROM ?? WHERE NAME = ?", ['sqlite_sequence', table], cb); | ||
}.bind(this)); | ||
}; | ||
@@ -226,0 +227,0 @@ |
@@ -15,3 +15,3 @@ { | ||
], | ||
"version" : "2.1.9", | ||
"version" : "2.1.10", | ||
"license" : "MIT", | ||
@@ -42,3 +42,3 @@ "homepage" : "http://dresende.github.io/node-orm2", | ||
"sql-query" : "git://github.com/dresende/node-sql-query.git#v0.1.17", | ||
"sql-ddl-sync" : "git://github.com/dresende/node-sql-ddl-sync.git#v0.3.3", | ||
"sql-ddl-sync" : "git://github.com/dresende/node-sql-ddl-sync.git#v0.3.5", | ||
"hat" : "0.0.3", | ||
@@ -45,0 +45,0 @@ "lodash" : "2.4.1" |
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
226375