Socket
Socket
Sign inDemoInstall

node-mini-migrations

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mini-migrations - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

package.json
{
"name": "node-mini-migrations",
"version": "4.0.0",
"version": "4.0.1",
"description": "A very small, lightweight and flexible migrations library unconcerned with what database you use",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -28,5 +28,3 @@ # Mini Migrations for NodeJS

getMigrationState: (id, callback) => {
sqlite.get(db, 'SELECT file FROM _migrations WHERE file = ?', [id], (error, result) => {
callback(error, (result && result.length > 0));
});
sqlite.getOne(db, 'SELECT file FROM _migrations WHERE file = ?', [id], callback);
},

@@ -33,0 +31,0 @@

@@ -9,11 +9,4 @@ const sqlite = require('sqlite-fp');

finish: (direction, callback) => {
// sqlite.close(db, callback);
callback();
},
getMigrationState: (id, callback) => {
sqlite.get(db, 'SELECT file FROM _migrations WHERE file = ?', [id], (error, result) => {
callback(error, (result && result.length > 0));
});
sqlite.getOne(db, 'SELECT file FROM _migrations WHERE file = ?', [id], callback);
},

@@ -20,0 +13,0 @@

@@ -9,11 +9,4 @@ const sqlite = require('sqlite-fp');

finish: (direction, callback) => {
// sqlite.close(db, callback);
callback();
},
getMigrationState: (id, callback) => {
sqlite.get(db, 'SELECT file FROM _migrations WHERE file = ?', [id], (error, result) => {
callback(error, (result && result.length > 0));
});
sqlite.get(db, 'SELECT file FROM _migrations WHERE file = ?', [id], callback);
},

@@ -20,0 +13,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