Socket
Socket
Sign inDemoInstall

egg-core

Package Overview
Dependencies
Maintainers
4
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 3.2.2 to 3.3.0

5

History.md
3.3.0 / 2017-04-15
==================
* feat: always load extend/xx.unittest.js when run test (#75)
3.2.2 / 2017-04-14

@@ -3,0 +8,0 @@ ==================

6

lib/loader/mixin/extend.js

@@ -80,10 +80,12 @@ 'use strict';

loadExtend(name, proto) {
// 获取需要加载的文件
// All extend files
const filepaths = this.getLoadUnits().map(unit => path.join(unit.path, 'app/extend', name));
// if use mm.env and serverEnv is not unittest
const isAddUnittest = 'EGG_MOCK_SERVER_ENV' in process.env && this.serverEnv !== 'unittest';
for (let i = 0, l = filepaths.length; i < l; i++) {
const filepath = filepaths[i];
filepaths.push(filepath + `.${this.serverEnv}`);
if (isAddUnittest) filepaths.push(filepath + '.unittest');
}
const mergeRecord = new Map();

@@ -90,0 +92,0 @@ for (const filepath of filepaths) {

{
"name": "egg-core",
"version": "3.2.2",
"version": "3.3.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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc