Socket
Socket
Sign inDemoInstall

fetch-mock

Package Overview
Dependencies
7
Maintainers
3
Versions
213
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.1.0 to 8.2.0-beta.1

5

cjs/server.js

@@ -1,2 +0,5 @@

const fetch = require('node-fetch');
// avoid circular dependency when using jest.mock()
const fetch = global.jest
? global.jest.requireActual('node-fetch')
: require('node-fetch');
const Request = fetch.Request;

@@ -3,0 +6,0 @@ const Response = fetch.Response;

3

es5/server.js

@@ -13,3 +13,4 @@ 'use strict';

var fetch = require('node-fetch');
// avoid circular dependency when using jest.mock()
var fetch = global.jest ? global.jest.requireActual('node-fetch') : require('node-fetch');
var Request = fetch.Request;

@@ -16,0 +17,0 @@ var Response = fetch.Response;

{
"name": "fetch-mock",
"type": "module",
"version": "8.1.0",
"version": "8.2.0-beta.1",
"description": "Mock http requests made using fetch (or isomorphic-fetch)",

@@ -6,0 +6,0 @@ "main": "./cjs/server.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc