Skip to content

Commit 7f524a5

Browse files
authored
Merge branch 'main' into v6
2 parents ce19b3d + 497b805 commit 7f524a5

23 files changed

+1003
-931
lines changed

docs/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $ sequelize init
66
```
77

88
## How can I generate a model?
9-
Specify model name with `--name` argument. List of table fields can be passed with `--attributes` option
9+
Specify model name with `--name` argument. List of table fields can be passed with `--attributes` option (comma separated with no spaces at all)
1010
```
1111
$ sequelize model:create --name User --attributes name:string,state:boolean,birth:date,card:integer,role:enum:'{Admin,Guest}'
1212
```

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,36 @@
1111
"lib"
1212
],
1313
"dependencies": {
14-
"cli-color": "^2.0.1",
14+
"cli-color": "^2.0.3",
1515
"fs-extra": "^9.1.0",
16-
"js-beautify": "^1.14.0",
16+
"js-beautify": "^1.14.5",
1717
"lodash": "^4.17.21",
18-
"resolve": "^1.20.0",
18+
"resolve": "^1.22.1",
1919
"umzug": "^2.3.0",
2020
"yargs": "^16.2.0"
2121
},
2222
"devDependencies": {
23-
"@babel/cli": "7.17.10",
24-
"@babel/core": "7.18.5",
25-
"@babel/preset-env": "7.18.2",
26-
"@babel/register": "7.17.7",
27-
"@commitlint/cli": "17.0.2",
28-
"@commitlint/config-angular": "17.0.0",
23+
"@babel/cli": "7.18.10",
24+
"@babel/core": "7.19.1",
25+
"@babel/preset-env": "7.19.1",
26+
"@babel/register": "7.18.9",
27+
"@commitlint/cli": "17.1.2",
28+
"@commitlint/config-angular": "17.1.0",
2929
"bluebird": "3.7.2",
3030
"eslint": "7.32.0",
3131
"eslint-config-prettier": "8.5.0",
32-
"eslint-plugin-prettier": "4.0.0",
32+
"eslint-plugin-prettier": "4.2.1",
3333
"expect.js": "0.3.1",
3434
"gulp": "4.0.2",
3535
"husky": "8.0.1",
36-
"lint-staged": "13.0.2",
36+
"lint-staged": "13.0.3",
3737
"mocha": "9.2.2",
3838
"mysql2": "latest",
3939
"pg": "latest",
4040
"pg-hstore": "latest",
4141
"prettier": "2.7.1",
4242
"semver": "7.3.7",
43-
"sequelize": "6.21.0",
43+
"sequelize": "6.23.1",
4444
"sqlite3": "latest",
4545
"through2": "4.0.2"
4646
},

src/assets/models/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
const fs = require('fs');
44
const path = require('path');
55
const Sequelize = require('sequelize');
6+
const process = require('process');
67
const basename = path.basename(__filename);
78
const env = process.env.NODE_ENV || 'development';
89
const config = require(<%= configFile %>)[env];

src/commands/database.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions } from '../core/yargs';
23
import { logMigrator } from '../core/migrator';
34

src/commands/init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions } from '../core/yargs';
23
import helpers from '../helpers';
34

src/commands/migrate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions } from '../core/yargs';
23
import {
34
getMigrator,

src/commands/migrate_undo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions } from '../core/yargs';
23
import { getMigrator, ensureCurrentMetaSchema } from '../core/migrator';
34

src/commands/migrate_undo_all.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions } from '../core/yargs';
23
import { getMigrator, ensureCurrentMetaSchema } from '../core/migrator';
34

src/commands/migration_generate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions, _underscoreOption } from '../core/yargs';
23

34
import helpers from '../helpers';

src/commands/model_generate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions, _underscoreOption } from '../core/yargs';
23

34
import helpers from '../helpers';

0 commit comments

Comments
 (0)