mock-js-server
Advanced tools
Comparing version 0.0.12 to 0.1.0
@@ -104,2 +104,3 @@ 'use strict'; | ||
params: fileInfo.params, | ||
body: req.body, | ||
query: fileInfo.query, | ||
@@ -106,0 +107,0 @@ mock: false |
{ | ||
"name": "mock-js-server", | ||
"version": "0.0.12", | ||
"version": "0.1.0", | ||
"description": "Mock server for API", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -27,3 +27,3 @@ # mock-js-server | ||
```javascript | ||
/*globals req, params, query, mock*/ | ||
/*globals req, params, body, query, mock*/ | ||
mock = { | ||
@@ -30,0 +30,0 @@ 'id': Math.floor(Math.random()*1000), |
@@ -11,2 +11,4 @@ | ||
app.use(express.json()) | ||
app.use((req, _, next) => | ||
@@ -13,0 +15,0 @@ setTimeout(() => { |
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
31257
353