slite-change
Advanced tools
Comparing version 1.1.3-0 to 1.1.3-1
{ | ||
"name": "slite-change", | ||
"version": "1.1.3-0", | ||
"version": "1.1.3-1", | ||
"description": "A simple change management system for SQLite3 written in pure JavaScript/TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/slite-change.js", |
@@ -224,3 +224,7 @@ "use strict"; | ||
//export default SliteChange; | ||
module.exports = SliteChange; | ||
// const sliteChange = (Sql: typeof sqlite.Database, ChangeLog: string, Callback: (string)): void => { | ||
// let instanceOfSliteChange = new SliteChange(Sql, ChangeLog, Callback); | ||
// } | ||
// export default sliteChange; | ||
export default SliteChange; |
@@ -26,3 +26,3 @@ import { resolve } from "path/posix"; | ||
console.error('Connected to database'); | ||
new SliteChange(Sql, DbChanges, (ReturnMsg) => { | ||
new SliteChange(Sql, DbChanges, (ReturnMsg: string) => { | ||
console.error('ReturnMsg: '+ReturnMsg); | ||
@@ -43,7 +43,7 @@ if(ReturnMsg.length != 0) { | ||
fs.unlinkSync('./db-changes/999-db-change.sql', (err) => {}); | ||
} | ||
} | ||
if(fs.existsSync(DbFile)) { | ||
console.log('Delete %s', DbFile); | ||
fs.unlinkSync(DbFile, (err) => {}); | ||
} | ||
} | ||
@@ -58,3 +58,3 @@ } | ||
}); | ||
it('Should create a new database from samples', () => { | ||
it('Should create a new database from samples', () => { | ||
return ChangeSync(DbFile, './db-changes/').then(result => { | ||
@@ -73,3 +73,3 @@ console.log('res = "%s"', result); | ||
assert.equal(result, 'Invalid change set', 'Returnded a message thing'); | ||
}); | ||
}); | ||
})//.timeout(5000); | ||
@@ -76,0 +76,0 @@ }); |
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
37348
302