axios-mock-shim
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "axios-mock-shim", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A plugin build for easily using axios-mock-adapter with axios", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -136,2 +136,4 @@ # Axios Mock Shim | ||
// function type reply | ||
// the function is wrap with a promise | ||
// by resolving the function to pass response data | ||
getSoloConfig() { | ||
@@ -141,3 +143,3 @@ return api.use('get', 'profile', { id: 100 }) | ||
console.log(config); // mock-adapter's config | ||
res([ | ||
resolve([ | ||
200, | ||
@@ -144,0 +146,0 @@ { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
49586
334
6