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

clever-orm

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clever-orm - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

13

bin/rebase.js

@@ -8,2 +8,3 @@ var injector = require( 'injector' )

, fs = require( 'fs' )
, debug = require( 'debug' )( 'cleverstack:cleverOrm:rebase' )
, ormUtils = utils.ormUtils

@@ -13,4 +14,4 @@ , env = utils.bootstrapEnv()

console.log( 'Using configuration:' );
console.log( util.inspect( config[ 'clever-orm' ].modelAssociations ) );
debug( 'Using configuration:' );
debug( util.inspect( config[ 'clever-orm' ].modelAssociations ) );

@@ -21,3 +22,3 @@ // Rebase once our modules have loaded

console.log('Forcing Database to be created! (Note: All your data will disapear!)');
debug('Forcing Database to be created! (Note: All your data will disapear!)');
async.waterfall(

@@ -50,7 +51,7 @@ [

if ( err || !sql ) {
console.log( 'No specific dialect SQL found continuing...' );
debug( 'No specific dialect SQL found continuing...' );
return callback();
}
console.log( 'Running dialect specific SQL' );
debug( 'Running dialect specific SQL' );
sequelize.query( sql.toString(), null, { raw: true } ).then(function() {

@@ -68,3 +69,3 @@ callback( null );

if ( err === null ) {
console.log( 'Database is rebased' );
debug( 'Database is rebased' );
process.exit( 0 );

@@ -71,0 +72,0 @@ } else {

@@ -8,2 +8,3 @@ var utils = require( 'utils' )

, config = require( 'config' )
, debug = require( 'debug' )( 'cleverstack:cleverOrm:rebase' )
, inflect = require( 'i' )();

@@ -45,3 +46,3 @@

.then(function( model ) {
console.log( 'Created ' + modelName );
debug( 'Created ' + modelName );
if ( associations ) {

@@ -126,3 +127,3 @@ model.associations = associations;

console.log( 'Calling ' + modelName + '.' + funcName + '()' );
debug( 'Calling ' + modelName + '.' + funcName + '()' );
model[ funcName ]( associations )

@@ -154,6 +155,6 @@ .then(function() {

if ( err === null || err === undefined ) {
console.log( 'Seed completed with no errors' );
debug( 'Seed completed with no errors' );
process.exit( 0 );
} else {
console.log( err );
debug( err );
process.exit( 1 );

@@ -160,0 +161,0 @@ }

@@ -208,2 +208,7 @@ var injector = require( 'injector' )

}
if ( Static.indexes !== false ) {
parseDebug( 'Setting indexes...' );
sequelizeConf.indexes = Static.indexes;
}
},

@@ -210,0 +215,0 @@

{
"name": "clever-orm",
"description": "CleverStack ORM (SQL) Module",
"version": "1.1.4",
"version": "1.1.5",
"main": "module.js",

@@ -6,0 +6,0 @@ "author": {

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