egg-core
Advanced tools
Comparing version 5.4.0 to 5.4.1
5.4.1 / 2023-12-20 | ||
================== | ||
**fixes** | ||
* [[`e1ff721`](http://github.com/eggjs/egg-core/commit/e1ff721db1286aefd4f6f223709aad17d0399be6)] - fix: use gals lib (#268) (fengmk2 <<suqian.yf@antgroup.com>>) | ||
5.4.0 / 2023-12-19 | ||
@@ -3,0 +9,0 @@ ================== |
const assert = require('assert'); | ||
const { AsyncLocalStorage } = require('async_hooks'); | ||
const fs = require('fs'); | ||
@@ -10,2 +9,3 @@ const KoaApplication = require('koa'); | ||
const Router = require('@eggjs/router').EggRouter; | ||
const { getAsyncLocalStorage } = require('gals'); | ||
const BaseContextClass = require('./utils/base_context_class'); | ||
@@ -20,3 +20,2 @@ const utils = require('./utils'); | ||
const CLOSE_PROMISE = Symbol('EggCore#closePromise'); | ||
const EGG_CTX_STORAGE = Symbol.for('egg#ctxStorage'); | ||
@@ -45,6 +44,3 @@ class EggCore extends KoaApplication { | ||
// can access the AsyncLocalStorage instance in global | ||
if (!global[EGG_CTX_STORAGE]) { | ||
global[EGG_CTX_STORAGE] = new AsyncLocalStorage(); | ||
} | ||
this.ctxStorage = global[EGG_CTX_STORAGE]; | ||
this.ctxStorage = getAsyncLocalStorage(); | ||
@@ -51,0 +47,0 @@ this.timing = new Timing(); |
{ | ||
"name": "egg-core", | ||
"version": "5.4.0", | ||
"version": "5.4.1", | ||
"publishConfig": { | ||
@@ -68,2 +68,3 @@ "tag": "latest-5" | ||
"extend2": "^1.0.0", | ||
"gals": "^1.0.1", | ||
"get-ready": "^2.0.1", | ||
@@ -70,0 +71,0 @@ "globby": "^11.0.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
143917
24
19
3049
+ Addedgals@^1.0.1
+ Addedgals@1.0.2(transitive)