Socket
Socket
Sign inDemoInstall

egg-core

Package Overview
Dependencies
Maintainers
13
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 5.3.0 to 5.3.1

8

lib/loader/egg_loader.js

@@ -49,3 +49,9 @@ 'use strict';

if (process.env.EGG_TYPESCRIPT === 'true' || (this.pkg.egg && this.pkg.egg.typescript)) {
require('tsconfig-paths').register({ cwd: this.options.baseDir });
// skip require tsconfig-paths if tsconfig.json not exists
const tsConfigFile = path.join(this.options.baseDir, 'tsconfig.json');
if (fs.existsSync(tsConfigFile)) {
require('tsconfig-paths').register({ cwd: this.options.baseDir });
} else {
this.options.logger.info('[egg:loader] skip register "tsconfig-paths" because tsconfig.json not exists at %s', tsConfigFile);
}
}

@@ -52,0 +58,0 @@

4

package.json
{
"name": "egg-core",
"version": "5.3.0",
"version": "5.3.1",
"description": "A core Pluggable framework based on koa",

@@ -36,3 +36,3 @@ "main": "index.js",

"engines": {
"node": ">= 14.17.0"
"node": ">= 14.19.0"
},

@@ -39,0 +39,0 @@ "devDependencies": {

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