@midwayjs/sequelize 3.0.0-beta.1 → 3.0.0-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,108 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.0.0-beta.13](https://github.com/midwayjs/midway/compare/v3.0.0-beta.12...v3.0.0-beta.13) (2021-12-30)
7
+
8
+ **Note:** Version bump only for package @midwayjs/sequelize
9
+
10
+
11
+
12
+
13
+
14
+ # [3.0.0-beta.12](https://github.com/midwayjs/midway/compare/v3.0.0-beta.11...v3.0.0-beta.12) (2021-12-28)
15
+
16
+ **Note:** Version bump only for package @midwayjs/sequelize
17
+
18
+
19
+
20
+
21
+
22
+ # [3.0.0-beta.11](https://github.com/midwayjs/midway/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2021-12-21)
23
+
24
+ **Note:** Version bump only for package @midwayjs/sequelize
25
+
26
+
27
+
28
+
29
+
30
+ # [3.0.0-beta.10](https://github.com/midwayjs/midway/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2021-12-20)
31
+
32
+ **Note:** Version bump only for package @midwayjs/sequelize
33
+
34
+
35
+
36
+
37
+
38
+ # [3.0.0-beta.9](https://github.com/midwayjs/midway/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2021-12-09)
39
+
40
+ **Note:** Version bump only for package @midwayjs/sequelize
41
+
42
+
43
+
44
+
45
+
46
+ # [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
47
+
48
+ **Note:** Version bump only for package @midwayjs/sequelize
49
+
50
+
51
+
52
+
53
+
54
+ # [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * add app.keys ([#1395](https://github.com/midwayjs/midway/issues/1395)) ([c44afc6](https://github.com/midwayjs/midway/commit/c44afc6cc6764a959d1fa7ae04d60099282d156a))
60
+
61
+
62
+
63
+
64
+
65
+ # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
66
+
67
+ **Note:** Version bump only for package @midwayjs/sequelize
68
+
69
+
70
+
71
+
72
+
73
+ # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
74
+
75
+ **Note:** Version bump only for package @midwayjs/sequelize
76
+
77
+
78
+
79
+
80
+
81
+ # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
82
+
83
+ **Note:** Version bump only for package @midwayjs/sequelize
84
+
85
+
86
+
87
+
88
+
89
+ # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
90
+
91
+
92
+ ### Features
93
+
94
+ * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
95
+
96
+
97
+
98
+
99
+
100
+ # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
101
+
102
+ **Note:** Version bump only for package @midwayjs/sequelize
103
+
104
+
105
+
106
+
107
+
6
108
  # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
7
109
 
8
110
 
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.SequelizeConfiguration = void 0;
13
13
  const decorator_1 = require("@midwayjs/decorator");
14
14
  const sequelize_typescript_1 = require("sequelize-typescript");
15
- const path = require("path");
15
+ const DefaultConfig = require("./config/config.default");
16
16
  let SequelizeConfiguration = class SequelizeConfiguration {
17
17
  async onReady() {
18
18
  const options = this.sequelizeConfig.options;
@@ -32,7 +32,11 @@ __decorate([
32
32
  SequelizeConfiguration = __decorate([
33
33
  (0, decorator_1.Configuration)({
34
34
  namespace: 'sequelize',
35
- importConfigs: [path.join(__dirname, 'config')],
35
+ importConfigs: [
36
+ {
37
+ default: DefaultConfig,
38
+ },
39
+ ],
36
40
  })
37
41
  ], SequelizeConfiguration);
38
42
  exports.SequelizeConfiguration = SequelizeConfiguration;
package/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { SequelizeOptions } from 'sequelize-typescript';
2
+
3
+ export * from './dist/index';
4
+
5
+ declare module '@midwayjs/core/dist/interface' {
6
+ interface MidwayConfig {
7
+ sequelize?: {
8
+ options?: SequelizeOptions;
9
+ sync?: boolean;
10
+ };
11
+ }
12
+ }
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@midwayjs/sequelize",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0-beta.13",
4
4
  "main": "dist/index",
5
- "typings": "dist/index.d.ts",
5
+ "typings": "index.d.ts",
6
6
  "files": [
7
7
  "dist/**/*.js",
8
- "dist/**/*.d.ts"
8
+ "dist/**/*.d.ts",
9
+ "index.d.ts"
9
10
  ],
10
11
  "devDependencies": {
11
- "@midwayjs/decorator": "^3.0.0-beta.1",
12
- "@midwayjs/koa": "^3.0.0-beta.1",
13
- "@midwayjs/mock": "^3.0.0-beta.1",
12
+ "@midwayjs/decorator": "^3.0.0-beta.13",
13
+ "@midwayjs/koa": "^3.0.0-beta.13",
14
+ "@midwayjs/mock": "^3.0.0-beta.13",
14
15
  "sqlite3": "^5.0.2"
15
16
  },
16
17
  "dependencies": {
@@ -39,5 +40,5 @@
39
40
  "type": "git",
40
41
  "url": "http://github.com/midwayjs/midway.git"
41
42
  },
42
- "gitHead": "72e4d20c678e65a5440c4e9a6d3b70046daa497c"
43
+ "gitHead": "d3c47770fee9dce33a8d148882173fd7782864ad"
43
44
  }