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

east

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

east - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

8

lib/migrator.js

@@ -241,4 +241,8 @@ 'use strict';

if (!utils.isFunction(migration.migrate)) msg = '`migrate` is not a function';
if (migration.rollback && !utils.isFunction(migration.rollback))
msg = '`rollback` set but it`s not a function';
if (migration.rollback && !utils.isFunction(migration.rollback)) {
msg = '`rollback` set but it`s not a function';
}
if (migration.tags && !utils.isArray(migration.tags)) {
msg = '`tags` set but it`s not an array';
}
callback(msg ? new Error(msg) : null);

@@ -245,0 +249,0 @@ };

@@ -13,2 +13,4 @@ 'use strict';

exports.isArray = Array.isArray;
exports.noop = function() {};

@@ -15,0 +17,0 @@

{
"name": "east",
"description": "node.js database migration tool for mongodb, sqlite, postgres, mysql",
"version": "0.3.0",
"version": "0.4.0",
"author": "Oleg Korobenko <oleg.korobenko@gmail.com>",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -178,2 +178,5 @@ # east

You also can export `tags` array from migration and then migrate only
migrations with selected tag specified by `--tag` option.
### rollback

@@ -180,0 +183,0 @@

Sorry, the diff of this file is not supported yet

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