axios-mock-shim
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "axios-mock-shim", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A plugin build for easily using axios-mock-adapter with axios", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -30,3 +30,3 @@ # Axios Mock Shim | ||
Create Axios instance by given config. | ||
Create Axios instance by given config.(default config or your custom config) | ||
@@ -164,2 +164,27 @@ ```js | ||
## Default setting | ||
### Mock Adapter Config | ||
```js | ||
const mockDefaultConfig = { | ||
delayResponse: 500, | ||
onNoMatch: "passthrough", | ||
} | ||
``` | ||
### Axios Config | ||
```js | ||
const axiosDefaultConfig = { | ||
baseURL: '/api/', | ||
headers: { | ||
'Content-Type': 'application/json', | ||
}, | ||
timeout: 5000, | ||
withCredentials: true, | ||
} | ||
``` | ||
## License | ||
@@ -166,0 +191,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
16312
192