Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

egg-core

Package Overview
Dependencies
Maintainers
12
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 4.28.0 to 4.28.1

6

History.md
4.28.1 / 2022-11-28
==================
**fixes**
* [[`1d7d19b`](http://github.com/eggjs/egg-core/commit/1d7d19bc6c1fabdb8cea51dcd680fd608f5cc4fe)] - fix: fix call legacyReadyCallback with options (#250) (killa <<killa123@126.com>>)
4.28.0 / 2022-11-28

@@ -3,0 +9,0 @@ ==================

26

lib/lifecycle.js

@@ -74,19 +74,11 @@ 'use strict';

legacyReadyCallback(name, opt) {
const timingKeyPrefix = 'Did Load';
if (!opt) {
const timing = this.timing;
const cb = this.loadReady.readyCallback(name);
const timingkey = `${timingKeyPrefix} in ` + utils.getResolvedFilename(name, this.app.baseDir);
this.timing.start(timingkey);
return function legacyReadyCallback(...args) {
timing.end(timingkey);
cb(...args);
};
}
this[REGISTER_READY_CALLBACK]({
scope: opt,
ready: this.loadReady,
timingKeyPrefix,
scopeFullName: name,
});
const timingKeyPrefix = 'readyCallback';
const timing = this.timing;
const cb = this.loadReady.readyCallback(name, opt);
const timingkey = `${timingKeyPrefix} in ` + utils.getResolvedFilename(name, this.app.baseDir);
this.timing.start(timingkey);
return function legacyReadyCallback(...args) {
timing.end(timingkey);
cb(...args);
};
}

@@ -93,0 +85,0 @@

{
"name": "egg-core",
"version": "4.28.0",
"version": "4.28.1",
"description": "A core Pluggable framework based on koa",

@@ -5,0 +5,0 @@ "main": "index.js",

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