Comparing version 2.0.0 to 2.1.0
2.1.0 / 2017-01-16 | ||
================== | ||
* feat: support read framework from package.json (#20) | ||
2.0.0 / 2017-01-12 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30992
9
753
9
+ Addedegg-utils@^1.1.0
+ Addedegg-utils@1.1.0(transitive)
Updateddebug@^2.6.0