fetch-mock
Advanced tools
Comparing version 12.0.0 to 12.0.1
# 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 @@ |
@@ -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 @@ } |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
114917
2606
0