Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

axios-mock-shim

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-mock-shim - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc