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 4.30.1 to 4.30.2

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 @@

5

package.json
{
"name": "egg-core",
"version": "4.30.1",
"version": "4.30.2",
"publishConfig": {
"tag": "latest-4"
},
"description": "A core Pluggable framework based on koa",

@@ -5,0 +8,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