Skip to content

Commit

Permalink
fix: avoid strict instance checks leading to run failures
Browse files Browse the repository at this point in the history
  • Loading branch information
aui committed May 21, 2024
1 parent 6ee3dba commit 0c04e9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/heavy-kiwis-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@web-widget/shared-cache": patch
---

Avoid strict instance checks leading to run failures.
6 changes: 3 additions & 3 deletions src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export function createSharedCacheFetch(
throw TypeError('Missing cache.');
}

if (!(cache instanceof SharedCache)) {
throw TypeError('Invalid cache.');
}
// if (!(cache instanceof SharedCache)) {
// throw TypeError('Invalid cache.');
// }

const request = new Request(input, init);
const requestCache = getRequestCacheMode(request, init?.cache);
Expand Down

0 comments on commit 0c04e9f

Please sign in to comment.