Skip to content

Commit cdf5edf

Browse files
authored
Merge remote-tracking branch 'origin/main' into v6
2 parents 6973338 + 8ba4748 commit cdf5edf

File tree

4 files changed

+641
-580
lines changed

4 files changed

+641
-580
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,27 @@
2121
"yargs": "^16.2.0"
2222
},
2323
"devDependencies": {
24-
"@babel/cli": "7.19.3",
25-
"@babel/core": "7.19.6",
26-
"@babel/preset-env": "7.19.4",
24+
"@babel/cli": "7.20.7",
25+
"@babel/core": "7.20.12",
26+
"@babel/preset-env": "7.20.2",
2727
"@babel/register": "7.18.9",
28-
"@commitlint/cli": "17.1.2",
29-
"@commitlint/config-angular": "17.1.0",
28+
"@commitlint/cli": "17.4.2",
29+
"@commitlint/config-angular": "17.4.2",
3030
"bluebird": "3.7.2",
3131
"eslint": "7.32.0",
32-
"eslint-config-prettier": "8.5.0",
32+
"eslint-config-prettier": "8.6.0",
3333
"eslint-plugin-prettier": "4.2.1",
3434
"expect.js": "0.3.1",
3535
"gulp": "4.0.2",
36-
"husky": "8.0.1",
37-
"lint-staged": "13.0.3",
36+
"husky": "8.0.3",
37+
"lint-staged": "13.1.0",
3838
"mocha": "9.2.2",
3939
"mysql2": "latest",
4040
"pg": "latest",
4141
"pg-hstore": "latest",
42-
"prettier": "2.7.1",
42+
"prettier": "2.8.3",
4343
"semver": "7.3.8",
44-
"sequelize": "6.25.3",
44+
"sequelize": "6.28.0",
4545
"sqlite3": "latest",
4646
"through2": "4.0.2"
4747
},

src/assets/models/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ if (config.use_env_variable) {
1919
fs
2020
.readdirSync(__dirname)
2121
.filter(file => {
22-
return (file.indexOf('.') !== 0) && (file !== basename) && (file.slice(-3) === '.js');
22+
return (
23+
file.indexOf('.') !== 0 &&
24+
file !== basename &&
25+
file.slice(-3) === '.js' &&
26+
file.indexOf('.test.js') === -1
27+
);
2328
})
2429
.forEach(file => {
2530
const model = require(path.join(__dirname, file))(sequelize, Sequelize.DataTypes);

src/helpers/view-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = {
3737

3838
this.log();
3939
console.error(`${clc.red('ERROR:')} ${message}`);
40-
if (error.original.detail) {
40+
if (error.original && error.original.detail) {
4141
console.error(`${clc.red('ERROR DETAIL:')} ${error.original.detail}`);
4242
}
4343

0 commit comments

Comments
 (0)