Socket
Socket
Sign inDemoInstall

egg-core

Package Overview
Dependencies
Maintainers
14
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-core - npm Package Compare versions

Comparing version 5.4.0 to 5.4.1

6

History.md
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 @@ ==================

8

lib/egg.js
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc