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

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,41 @@
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.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
7
+
8
+ **Note:** Version bump only for package @midwayjs/sequelize
9
+
10
+
11
+
12
+
13
+
14
+ # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
15
+
16
+ **Note:** Version bump only for package @midwayjs/sequelize
17
+
18
+
19
+
20
+
21
+
22
+ # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
23
+
24
+
25
+ ### Features
26
+
27
+ * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
28
+
29
+
30
+
31
+
32
+
33
+ # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
34
+
35
+ **Note:** Version bump only for package @midwayjs/sequelize
36
+
37
+
38
+
39
+
40
+
6
41
  # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
7
42
 
8
43
 
@@ -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.5",
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.5",
13
+ "@midwayjs/koa": "^3.0.0-beta.5",
14
+ "@midwayjs/mock": "^3.0.0-beta.5",
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": "ab0bf05ae6d13f6435db2f7223202be61d585a1b"
43
44
  }