Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.4.0 to 4.4.1

6

History.md
4.4.1 / 2018-03-09
==================
**fixes**
* [[`046ffdd`](http://github.com/eggjs/egg-core/commit/046ffdd5d4b918ddfc0e9f7980567374b594ef97)] - fix: should not load optional plugin & their deps (#154) (zōng yǔ <<gxcsoccer@users.noreply.github.com>>)
4.4.0 / 2018-01-18

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

25

lib/utils/sequencify.js
'use strict';
function sequence(tasks, names, results, missing, recursive, nest, optional) {
const debug = require('debug')('egg-core#sequencify');
function sequence(tasks, names, results, missing, recursive, nest, optional, parent) {
names.forEach(function(name) {
if (results.sequence.includes(name)) {
results.requires[name] = results.requires[name] || !optional;
return; // de-dup results
}
if (results.requires[name]) return;
const node = tasks[name];

@@ -21,11 +21,16 @@

if (node.dependencies.length) {
sequence(tasks, node.dependencies, results, missing, recursive, nest);
sequence(tasks, node.dependencies, results, missing, recursive, nest, optional, name);
}
if (node.optionalDependencies.length) {
sequence(tasks, node.optionalDependencies, results, missing, recursive, nest, true);
sequence(tasks, node.optionalDependencies, results, missing, recursive, nest, true, name);
}
nest.pop(name);
}
results.requires[name] = results.requires[name] || !optional;
results.sequence.push(name);
if (!optional) {
results.requires[name] = true;
debug('task: %s is enabled by %s', name, parent);
}
if (!results.sequence.includes(name)) {
results.sequence.push(name);
}
});

@@ -44,3 +49,3 @@ }

sequence(tasks, names, results, missing, recursive, []);
sequence(tasks, names, results, missing, recursive, [], false, 'app');

@@ -47,0 +52,0 @@ if (missing.length || recursive.length) {

22

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

@@ -38,9 +38,9 @@ "main": "index.js",

"coffee": "^4.1.0",
"egg-bin": "^4.3.6",
"egg-bin": "^4.3.7",
"egg-ci": "^1.8.0",
"eslint": "^4.13.1",
"eslint-config-egg": "^5.1.1",
"js-yaml": "^3.10.0",
"eslint": "^4.18.2",
"eslint-config-egg": "^7.0.0",
"js-yaml": "^3.11.0",
"mm": "^2.2.0",
"mz-modules": "^2.0.0",
"mz-modules": "^2.1.0",
"pedding": "^1.1.0",

@@ -54,12 +54,12 @@ "rimraf": "^2.6.2",

"debug": "^3.1.0",
"depd": "^1.1.1",
"egg-logger": "^1.6.0",
"depd": "^1.1.2",
"egg-logger": "^1.6.1",
"egg-path-matching": "^1.0.1",
"extend2": "^1.0.0",
"globby": "^7.1.1",
"globby": "^8.0.1",
"inflection": "^1.12.0",
"is-type-of": "^1.2.0",
"koa": "^2.4.1",
"koa": "^2.5.0",
"koa-convert": "^1.2.0",
"koa-router": "^7.3.0",
"koa-router": "^7.4.0",
"node-homedir": "^1.1.0",

@@ -66,0 +66,0 @@ "ready-callback": "^2.0.1",

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