Comparing version 1.5.2 to 1.5.3
@@ -57,7 +57,8 @@ 'use strict'; | ||
// TODO | ||
const { body, mock } = mdData.responses[0]; | ||
const { body = {}, mock = {} } = mdData.responses[0]; | ||
const { delay = 100 } = mock.options || {}; | ||
setTimeout(function() { | ||
resolve(schemaToObject(body)); | ||
}, mock.delay); | ||
}, delay); | ||
}); | ||
@@ -64,0 +65,0 @@ } |
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="1.5.3"></a> | ||
## [1.5.3](https://github.com/forsigner/egg-leaf/compare/v1.5.2...v1.5.3) (2018-02-02) | ||
### Bug Fixes | ||
* fix delay bug ([1fa0d2f](https://github.com/forsigner/egg-leaf/commit/1fa0d2f)) | ||
<a name="1.5.2"></a> | ||
@@ -7,0 +17,0 @@ ## [1.5.2](https://github.com/forsigner/egg-leaf/compare/v1.5.1...v1.5.2) (2018-02-02) |
{ | ||
"name": "egg-leaf", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "Mock server for egg", | ||
@@ -5,0 +5,0 @@ "eggPlugin": { |
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
8027
155