You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

fetch-mock

Package Overview
Dependencies
Maintainers
3
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.7.0 to 7.7.2

12

es5/lib/compile-route.js

@@ -60,7 +60,9 @@ 'use strict';

var response = route.response;
route.response = new _promise2.default(function (res) {
return setTimeout(function () {
return res(response);
}, delay);
});
route.response = function () {
return new _promise2.default(function (res) {
return setTimeout(function () {
return res(response);
}, delay);
});
};
}

@@ -67,0 +69,0 @@ };

{
"name": "fetch-mock",
"version": "7.7.0",
"version": "7.7.2",
"description": "Mock http requests made using fetch (or isomorphic-fetch)",

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

@@ -47,3 +47,4 @@ const generateMatcher = require('./generate-matcher');

const response = route.response;
route.response = new Promise(res => setTimeout(() => res(response), delay));
route.response = () =>
new Promise(res => setTimeout(() => res(response), delay));
}

@@ -50,0 +51,0 @@ };

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc