Socket
Socket
Sign inDemoInstall

egg-core

Package Overview
Dependencies
Maintainers
5
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.5.0 to 4.6.0

6

History.md
4.6.0 / 2018-04-09
==================
**features**
* [[`7f087e7`](http://github.com/eggjs/egg-core/commit/7f087e7d30bf9b07249b44fb943bcc9d109f26f6)] - feat: change assert to warning (#157) (Axes <<whxaxes@qq.com>>)
4.5.0 / 2018-03-25

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

4

lib/loader/egg_loader.js

@@ -33,2 +33,6 @@ 'use strict';

if (options.typescript && !require.extensions['.ts']) {
this.options.logger.warn('[egg:loader] `require.extensions` should contains `.ts` while `options.typescript` was true');
}
this.app = this.options.app;

@@ -35,0 +39,0 @@

5

lib/loader/file_loader.js

@@ -53,5 +53,2 @@ 'use strict';

assert(options.target, 'options.target is required');
if (options.typescript) {
assert(require.extensions['.ts'], '`require.extensions` should contains `.ts` while `options.typescript` was true');
}
this.options = Object.assign({}, defaults, options);

@@ -131,3 +128,3 @@

if (!files) {
files = this.options.typescript
files = (this.options.typescript && require.extensions['.ts'])
? [ '**/*.(js|ts)', '!**/*.d.ts' ]

@@ -134,0 +131,0 @@ : [ '**/*.js' ];

{
"name": "egg-core",
"version": "4.5.0",
"version": "4.6.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