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

fetch-mock

Package Overview
Dependencies
Maintainers
0
Versions
230
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-mock - npm Package Compare versions

Comparing version 12.0.0 to 12.0.1

7

CHANGELOG.md
# Changelog
## [12.0.1](https://github.com/wheresrhys/fetch-mock/compare/fetch-mock-v12.0.0...fetch-mock-v12.0.1) (2024-10-27)
### Bug Fixes
* clearHistory() can deal with unmatched calls ([012e9ca](https://github.com/wheresrhys/fetch-mock/commit/012e9ca7d03e39e6832f9f40087ec53d6ccc2728))
## [12.0.0](https://github.com/wheresrhys/fetch-mock/compare/fetch-mock-v11.1.5...fetch-mock-v12.0.0) (2024-10-24)

@@ -4,0 +11,0 @@

6

dist/cjs/CallHistory.js

@@ -24,3 +24,7 @@ "use strict";

clear() {
this.callLogs.forEach(({ route }) => route.reset());
this.callLogs.forEach(({ route }) => {
if (route) {
route.reset();
}
});
this.callLogs = [];

@@ -27,0 +31,0 @@ }

@@ -19,3 +19,7 @@ import { createCallLogFromUrlAndOptions, } from './RequestUtils.js';

clear() {
this.callLogs.forEach(({ route }) => route.reset());
this.callLogs.forEach(({ route }) => {
if (route) {
route.reset();
}
});
this.callLogs = [];

@@ -22,0 +26,0 @@ }

2

package.json
{
"name": "fetch-mock",
"description": "Mock http requests made using fetch",
"version": "12.0.0",
"version": "12.0.1",
"exports": {

@@ -6,0 +6,0 @@ "browser": "./dist/esm/index.js",

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