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

egg-mock

Package Overview
Dependencies
Maintainers
4
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-mock - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

5

History.md
2.1.0 / 2017-01-16
==================
* feat: support read framework from package.json (#20)
2.0.0 / 2017-01-12

@@ -3,0 +8,0 @@ ==================

14

lib/format_options.js

@@ -7,4 +7,4 @@ 'use strict';

const assert = require('assert');
const utils = require('egg-utils');
/**

@@ -38,6 +38,10 @@ * format the options

if (!options.customEgg) {
try {
options.customEgg = path.dirname(require.resolve('egg'));
} catch (_) {
// can't find egg
options.customEgg = utils.getFrameworkOrEggPath(options.baseDir);
if (!options.customEgg) {
// try to resolve egg
try {
options.customEgg = path.dirname(require.resolve('egg'));
} catch (_) {
// can't find egg
}
}

@@ -44,0 +48,0 @@ }

{
"name": "egg-mock",
"version": "2.0.0",
"version": "2.1.0",
"eggPlugin": {

@@ -26,3 +26,4 @@ "name": "egg-mock"

"coffee": "^3.3.0",
"debug": "^2.3.2",
"debug": "^2.6.0",
"egg-utils": "^1.1.0",
"get-ready": "^1.0.0",

@@ -38,10 +39,8 @@ "is-type-of": "^1.0.0",

"egg": "^0.7.0",
"egg-bin": "^1.7.0",
"egg-bin": "^1.10.0",
"egg-ci": "^1.1.0",
"eslint": "^3.9.1",
"eslint": "^3.13.1",
"eslint-config-egg": "^3.2.0",
"intelli-espower-loader": "^1.0.1",
"ko-sleep": "^1.0.2",
"pedding": "^1.0.0",
"power-assert": "^1.4.2",
"pedding": "^1.1.0",
"supertest": "^2.0.1"

@@ -48,0 +47,0 @@ },

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