Socket
Socket
Sign inDemoInstall

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.30.0 to 4.30.1

4

lib/egg.js

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

options.baseDir = options.baseDir || process.cwd();
// auto require('tsconfig-paths/register') on typescript app
if (process.env.EGG_TYPESCRIPT === 'true') {
require('tsconfig-paths').register({ cwd: options.baseDir });
}
options.type = options.type || 'application';

@@ -40,0 +36,0 @@

6

lib/loader/egg_loader.js

@@ -46,2 +46,8 @@ 'use strict';

// auto require('tsconfig-paths/register') on typescript app
// support env.EGG_TYPESCRIPT = true or { "egg": { "typescript": true } } on package.json
if (process.env.EGG_TYPESCRIPT === 'true' || (this.pkg.egg && this.pkg.egg.typescript)) {
require('tsconfig-paths').register({ cwd: this.options.baseDir });
}
/**

@@ -48,0 +54,0 @@ * All framework directories.

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