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.1.3 to 1.1.4

5

dist/request.js

@@ -42,3 +42,3 @@ /* eslint-disable */

*/
function mockHandler({ method, svc, config }, mockReply) {
function mockHandler({ method, svc, data }, mockReply) {
const mock = this;

@@ -56,3 +56,3 @@ // handler choose

// config handling
mock[`on${firstUp(method)}`](svc, ...config)
mock[`on${firstUp(method)}`](svc, data)
.reply.apply(mock, isFn(handler) ? [handler] : handler);

@@ -115,2 +115,3 @@ }

svc,
data,
config: configHandler({ methodUp, beforeRequest, data }),

@@ -117,0 +118,0 @@ };

2

package.json
{
"name": "axios-mock-shim",
"version": "1.1.3",
"version": "1.1.4",
"description": "A plugin build for easily using axios-mock-adapter with axios",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -9,2 +9,3 @@ export interface MockAdapterOptions {

svc: string;
data?: Object;
config?: Array<any>;

@@ -11,0 +12,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