Socket
Socket
Sign inDemoInstall

loopback-component-migrate

Package Overview
Dependencies
7
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.5 to 0.4.0

7

lib/index.js

@@ -41,2 +41,9 @@ var debug = require('debug')('loopback-component-migrate');

// Support for loopback 2.x.
if (app.loopback.version.startsWith(2)) {
Object.keys(migrationModelSettings.methods).forEach(key => {
migrationModelSettings.methods[key].isStatic = true;
});
}
debug('Creating Migration model using settings: %o', migrationModelSettings);

@@ -43,0 +50,0 @@ var MigrationModel = dataSource.createModel(

2

lib/models/migration.js

@@ -7,3 +7,3 @@ 'use strict';

var assert = require('assert');
var utils = require('loopback-datasource-juggler/lib/utils');
var utils = require('loopback/lib/utils');
var util = require('util');

@@ -10,0 +10,0 @@

{
"name": "loopback-component-migrate",
"version": "0.3.5",
"version": "0.4.0",
"description": "Migration framework for Loopback.",

@@ -50,10 +50,7 @@ "author": {

"dependencies": {
"cli-prompt": "^0.4.2",
"cli-prompt": "^0.6.0",
"commander": "^2.8.1",
"debug": "^2.2.0",
"debug": "^2.6.8",
"mkdirp": "^0.5.1"
},
"peerDependencies": {
"loopback": ">=2.22.0"
},
"devDependencies": {

@@ -63,17 +60,16 @@ "bluebird": "^3.5.0",

"condition-circle": "^1.5.0",
"ghooks": "^1.3.2",
"ghooks": "^2.0.0",
"jscs": "latest",
"jshint": "latest",
"lodash": "latest",
"loopback": ">=2.22.0",
"loopback-boot": "^2.12.2",
"loopback-component-explorer": "2.1.1",
"loopback-datasource-juggler": ">=2.4.0",
"loopback-testing": "1.2.0",
"loopback": "^3.8.0",
"loopback-boot": "^2.24.1",
"loopback-component-explorer": "^4.2.0",
"loopback-testing": "^1.4.0",
"mocha": "latest",
"nyc": "latest",
"semantic-release": "^4.3.5",
"semantic-release": "^6.3.6",
"sinon": "latest",
"sinon-chai": "latest",
"validate-commit-msg": "^2.8.0"
"validate-commit-msg": "^2.12.2"
},

@@ -80,0 +76,0 @@ "config": {

@@ -11,2 +11,4 @@ A library to add simple database migration support to loopback projects.

[![Greenkeeper badge](https://badges.greenkeeper.io/fullcube/loopback-component-migrate.svg)](https://greenkeeper.io/)
1. Install in you loopback project:

@@ -13,0 +15,0 @@

{
"restApiRoot": "/api",
"host": "localhost",
"host": "0.0.0.0",
"port": 3000,
"remoting": {
"context": false,
"rest": {
"normalizeHttpPath": false,
"xml": false
},
"json": {
"strict": false,
"limit": "100kb"
},
"urlencoded": {
"extended": true,
"limit": "100kb"
},
"cors": false
},
"legacyExplorer": false
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc