Socket
Socket
Sign inDemoInstall

egg-core

Package Overview
Dependencies
16
Maintainers
5
Versions
137
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.10.2 to 4.10.3

9

History.md
4.10.3 / 2018-09-29
===================
**fixes**
* [[`58a49e4`](https://github.com/eggjs/egg-core/pull/184/commits/58a49e46684bf6adceada18abb1fe1b7086a764e)] - fix(lifecycle): forbid adding hook after initialization (#184) (initialwu)
**others**
* [[`9c16f2e`](https://github.com/eggjs/egg-core/pull/184/commits/9c16f2e8919384b65ba36e2a7050db524d18c3a5)] - chore(eslint): set root=true to stop looking in parent folders (#183) (initialwu)
4.10.2 / 2018-09-21

@@ -3,0 +12,0 @@ ==================

2

lib/lifecycle.js

@@ -80,2 +80,3 @@ 'use strict';

addBootHook(hook) {
assert(this[INIT] === false, 'do not add hook when lifecycle has been initialized');
this[BOOT_HOOKS].push(hook);

@@ -85,2 +86,3 @@ }

addFunctionAsBootHook(hook) {
assert(this[INIT] === false, 'do not add hook when lifecycle has been initialized');
// app.js is export as a funciton

@@ -87,0 +89,0 @@ // call this function in configDidLoad

2

package.json
{
"name": "egg-core",
"version": "4.10.2",
"version": "4.10.3",
"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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc