ah-sequelize-plugin
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -13,3 +13,4 @@ export declare const DEFAULT: { | ||
migrations: string[]; | ||
migrationLogLevel: string; | ||
}; | ||
}; |
@@ -46,2 +46,4 @@ "use strict"; | ||
migrations: [path_1.join(__dirname, "..", "migrations")], | ||
migrationLogLevel: "info", | ||
// you can also pass "dialectOptions", for example if you need `{ssl: true}` for Postgres | ||
}; | ||
@@ -48,0 +50,0 @@ }, |
@@ -61,3 +61,3 @@ "use strict"; | ||
return function (name, migration) { | ||
actionhero_1.log(`${name} ${eventName}`); | ||
actionhero_1.log(`${name} ${eventName}`, actionhero_1.config.sequelize.migrationLogLevel || "info"); | ||
}; | ||
@@ -64,0 +64,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"description": "Use Sequelize in ActionHero", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"homepage": "http://actionherojs.com", | ||
@@ -46,5 +46,5 @@ "repository": { | ||
"peerDependencies": { | ||
"actionhero": ">=22.0.0", | ||
"sequelize": ">=6.4.0", | ||
"sequelize-typescript": ">=2.0.0", | ||
"actionhero": ">=22.0.0" | ||
"sequelize-typescript": ">=2.0.0" | ||
}, | ||
@@ -51,0 +51,0 @@ "scripts": { |
@@ -113,2 +113,3 @@ ![plugin](https://i.imgur.com/nd1btLt.png) | ||
migrations: [join(__dirname, "..", "migrations")], | ||
migrationLogLevel: "info", | ||
// you can also pass "dialectOptions", for example if you need `{ssl: true}` for Postgres | ||
@@ -115,0 +116,0 @@ }; |
@@ -47,2 +47,3 @@ import { URL } from "url"; | ||
migrations: [join(__dirname, "..", "migrations")], | ||
migrationLogLevel: "info", | ||
// you can also pass "dialectOptions", for example if you need `{ssl: true}` for Postgres | ||
@@ -49,0 +50,0 @@ }; |
@@ -72,3 +72,6 @@ import { Sequelize } from "sequelize-typescript"; | ||
return function (name, migration) { | ||
log(`${name} ${eventName}`); | ||
log( | ||
`${name} ${eventName}`, | ||
config.sequelize.migrationLogLevel || "info" | ||
); | ||
}; | ||
@@ -75,0 +78,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45444
950
363