Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

slite-change

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slite-change - npm Package Compare versions

Comparing version 1.1.3-0 to 1.1.3-1

2

package.json
{
"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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc