@midwayjs/bootstrap 3.0.0-beta.1 → 3.0.0-beta.10

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,84 @@
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.10](https://github.com/midwayjs/midway/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2021-12-20)
7
+
8
+ **Note:** Version bump only for package @midwayjs/bootstrap
9
+
10
+
11
+
12
+
13
+
14
+ # [3.0.0-beta.9](https://github.com/midwayjs/midway/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2021-12-09)
15
+
16
+ **Note:** Version bump only for package @midwayjs/bootstrap
17
+
18
+
19
+
20
+
21
+
22
+ # [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * express routing middleware takes effect at the controller level ([#1364](https://github.com/midwayjs/midway/issues/1364)) ([b9272e0](https://github.com/midwayjs/midway/commit/b9272e0971003443304b0c53815be31a0061b4bd))
28
+
29
+
30
+
31
+
32
+
33
+ # [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
34
+
35
+ **Note:** Version bump only for package @midwayjs/bootstrap
36
+
37
+
38
+
39
+
40
+
41
+ # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
42
+
43
+ **Note:** Version bump only for package @midwayjs/bootstrap
44
+
45
+
46
+
47
+
48
+
49
+ # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
50
+
51
+ **Note:** Version bump only for package @midwayjs/bootstrap
52
+
53
+
54
+
55
+
56
+
57
+ # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
58
+
59
+
60
+ ### Bug Fixes
61
+
62
+ * logger close before bootstrap close ([#1370](https://github.com/midwayjs/midway/issues/1370)) ([6cc2720](https://github.com/midwayjs/midway/commit/6cc2720ed3445e8ffccc96d124b80ed7e2517f08))
63
+
64
+
65
+
66
+
67
+
68
+ # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
69
+
70
+ **Note:** Version bump only for package @midwayjs/bootstrap
71
+
72
+
73
+
74
+
75
+
76
+ # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
77
+
78
+ **Note:** Version bump only for package @midwayjs/bootstrap
79
+
80
+
81
+
82
+
83
+
6
84
  # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
7
85
 
8
86
 
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  this is a sub package for midway.
7
7
 
8
- Document: [https://midwayjs.org/midway](https://midwayjs.org/midway)
8
+ Document: [https://midwayjs.org](https://midwayjs.org)
9
9
 
10
10
  ## License
11
11
 
@@ -1,5 +1,5 @@
1
1
  import { IMidwayBootstrapOptions, IMidwayContainer } from '@midwayjs/core';
2
- import { ILogger } from '@midwayjs/logger';
2
+ import { IMidwayLogger } from '@midwayjs/logger';
3
3
  export declare function isTypeScriptEnvironment(): boolean;
4
4
  export declare class BootstrapStarter {
5
5
  protected appDir: string;
@@ -15,7 +15,7 @@ export declare class BootstrapStarter {
15
15
  }
16
16
  export declare class Bootstrap {
17
17
  static starter: BootstrapStarter;
18
- static logger: ILogger;
18
+ static logger: IMidwayLogger;
19
19
  static configured: boolean;
20
20
  static applicationContext: IMidwayContainer;
21
21
  /**
package/dist/bootstrap.js CHANGED
@@ -57,7 +57,10 @@ class Bootstrap {
57
57
  var _a;
58
58
  this.configured = true;
59
59
  if (!this.logger && !configuration.logger) {
60
- this.logger = (0, logger_1.createConsoleLogger)('bootstrapConsole');
60
+ this.logger = new logger_1.MidwayBaseLogger({
61
+ disableError: true,
62
+ disableFile: true,
63
+ });
61
64
  if (configuration.logger === false) {
62
65
  (_a = this.logger) === null || _a === void 0 ? void 0 : _a['disableConsole']();
63
66
  }
@@ -116,6 +119,7 @@ class Bootstrap {
116
119
  static reset() {
117
120
  this.configured = false;
118
121
  this.starter = null;
122
+ this.logger.close();
119
123
  }
120
124
  /**
121
125
  * on bootstrap receive a exit signal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/bootstrap",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0-beta.10",
4
4
  "description": "midwayjs bootstrap",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -21,11 +21,11 @@
21
21
  ],
22
22
  "license": "MIT",
23
23
  "devDependencies": {
24
- "@midwayjs/core": "^3.0.0-beta.1",
25
- "@midwayjs/decorator": "^3.0.0-beta.1",
26
- "@midwayjs/logger": "^3.0.0-beta.1",
27
- "@midwayjs/socketio": "^3.0.0-beta.1",
28
- "@midwayjs/web": "^3.0.0-beta.1",
24
+ "@midwayjs/core": "^3.0.0-beta.10",
25
+ "@midwayjs/decorator": "^3.0.0-beta.10",
26
+ "@midwayjs/logger": "^3.0.0-beta.10",
27
+ "@midwayjs/socketio": "^3.0.0-beta.10",
28
+ "@midwayjs/web": "^3.0.0-beta.10",
29
29
  "@types/socket.io-client": "^1.4.36",
30
30
  "request": "^2.88.2",
31
31
  "socket.io-client": "^4.0.0"
@@ -38,5 +38,5 @@
38
38
  "engines": {
39
39
  "node": ">=12"
40
40
  },
41
- "gitHead": "72e4d20c678e65a5440c4e9a6d3b70046daa497c"
41
+ "gitHead": "153870f2e2dd6b17673ec7591e49224a6bd51b36"
42
42
  }