Socket
Socket
Sign inDemoInstall

egg-core

Package Overview
Dependencies
16
Maintainers
11
Versions
137
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.13.3 to 4.14.0

6

History.md
4.14.0 / 2019-02-03
==================
**features**
* [[`2eb0076`](http://github.com/eggjs/egg-core/commit/2eb007695e9509eb41d8e86032c7739d085d3d2c)] - feat: support options.env to specific server env (#199) (Yiyu He <<dead_horse@qq.com>>)
4.13.3 / 2019-01-30

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

1

lib/egg.js

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

serverScope: options.serverScope,
env: options.env,
});

@@ -126,0 +127,0 @@ }

4

lib/loader/egg_loader.js

@@ -106,6 +106,6 @@ 'use strict';

getServerEnv() {
let serverEnv;
let serverEnv = this.options.env;
const envPath = path.join(this.options.baseDir, 'config/env');
if (fs.existsSync(envPath)) {
if (!serverEnv && fs.existsSync(envPath)) {
serverEnv = fs.readFileSync(envPath, 'utf8').trim();

@@ -112,0 +112,0 @@ }

{
"name": "egg-core",
"version": "4.13.3",
"version": "4.14.0",
"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