Socket
Socket
Sign inDemoInstall

egg-core

Package Overview
Dependencies
Maintainers
15
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.22.0 to 4.22.1

6

History.md
4.22.1 / 2022-01-28
==================
**fixes**
* [[`a9fc514`](http://github.com/eggjs/egg-core/commit/a9fc514f506a4f804099b60ea12c29351f373676)] - fix: plugin loader support pnpm (#239) (hyj1991 <<yeekwanvong@gmail.com>>)
4.22.0 / 2022-01-07

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

11

lib/loader/mixin/plugin.js

@@ -346,4 +346,10 @@ 'use strict';

lookupDirs.add(path.join(eggPath, 'node_modules'));
}
// should find the siblings directory of framework when using pnpm
// should find the $cwd/node_modules when test the plugins under npm3
lookupDirs.add(path.join(process.cwd(), 'node_modules'));
// should find the siblings directory of framework when using pnpm
for (let i = this.eggPaths.length - 1; i >= 0; i--) {
const eggPath = this.eggPaths[i];
// 'node_modules/.pnpm/yadan@2.0.0/node_modules/yadan/node_modules',

@@ -356,5 +362,2 @@ // 'node_modules/.pnpm/yadan@2.0.0/node_modules', <- this is the sibling directory

// should find the $cwd/node_modules when test the plugins under npm3
lookupDirs.add(path.join(process.cwd(), 'node_modules'));
for (let dir of lookupDirs) {

@@ -361,0 +364,0 @@ dir = path.join(dir, name);

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