@midwayjs/bootstrap 3.4.0-beta.8 → 3.4.1

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.
Files changed (2) hide show
  1. package/dist/bootstrap.js +2 -0
  2. package/package.json +10 -8
package/dist/bootstrap.js CHANGED
@@ -4,6 +4,7 @@ exports.Bootstrap = exports.BootstrapStarter = exports.isTypeScriptEnvironment =
4
4
  const core_1 = require("@midwayjs/core");
5
5
  const path_1 = require("path");
6
6
  const logger_1 = require("@midwayjs/logger");
7
+ const async_hooks_context_manager_1 = require("@midwayjs/async-hooks-context-manager");
7
8
  function isTypeScriptEnvironment() {
8
9
  const TS_MODE_PROCESS_FLAG = process.env.MIDWAY_TS_MODE;
9
10
  if ('false' === TS_MODE_PROCESS_FLAG) {
@@ -28,6 +29,7 @@ class BootstrapStarter {
28
29
  ...this.globalOptions,
29
30
  appDir: this.appDir,
30
31
  baseDir: this.baseDir,
32
+ asyncContextManager: (0, async_hooks_context_manager_1.createContextManager)(),
31
33
  });
32
34
  return this.applicationContext;
33
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/bootstrap",
3
- "version": "3.4.0-beta.8",
3
+ "version": "3.4.1",
4
4
  "description": "midwayjs bootstrap",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -20,15 +20,17 @@
20
20
  "dist/**/*.d.ts"
21
21
  ],
22
22
  "license": "MIT",
23
+ "dependencies": {
24
+ "@midwayjs/async-hooks-context-manager": "^3.4.1"
25
+ },
23
26
  "devDependencies": {
24
- "@midwayjs/core": "^3.4.0-beta.8",
25
- "@midwayjs/decorator": "^3.4.0-beta.8",
27
+ "@midwayjs/core": "^3.4.1",
28
+ "@midwayjs/decorator": "^3.4.1",
26
29
  "@midwayjs/logger": "^2.15.0",
27
- "@midwayjs/socketio": "^3.4.0-beta.8",
28
- "@midwayjs/web": "^3.4.0-beta.8",
29
- "@types/socket.io-client": "1.4.36",
30
+ "@midwayjs/socketio": "^3.4.1",
31
+ "@midwayjs/web": "^3.4.1",
30
32
  "request": "2.88.2",
31
- "socket.io-client": "4.4.1"
33
+ "socket.io-client": "4.5.1"
32
34
  },
33
35
  "author": "Harry Chen <czy88840616@gmail.com>",
34
36
  "repository": {
@@ -38,5 +40,5 @@
38
40
  "engines": {
39
41
  "node": ">=12"
40
42
  },
41
- "gitHead": "9e4ed69eca31022e4dc93ed52ac503fe25ae383e"
43
+ "gitHead": "c7b47267c80f93407537677d8366f68bc6dfc462"
42
44
  }