angular/packages/service-worker/worker/src
Matthieu Riegler cc7973f5a5 fix(service-worker): throw a critical error when handleFetch fails (#51960)
#51885 patched a call site that threw an error but there were 2 others call that needed to be wrapped in the same way by a try/catch.

`initializeFully` is part of the calls in `responseWith(handleFetch)`.

Same #51885, throwing `SwCriticalError`allows the driver to fallback to `safeFetch` and ensure `responseWith` doesn't fail.

Fixes #50378

PR Close #51960
2023-10-04 08:50:50 -07:00
..
adapter.ts test(service-worker): better align mock global scope implementation with actual implementation (#42736) 2021-07-08 10:28:22 -07:00
api.ts docs: fix spelling (#46713) 2022-07-08 20:54:52 +00:00
app-version.ts refactor: update code to be ES2022 compliant (#49559) 2023-03-23 08:18:45 -07:00
assets.ts fix(service-worker): throw a critical error when handleFetch fails (#51960) 2023-10-04 08:50:50 -07:00
data.ts build: enable useUnknownInCatchVariables (#44679) 2022-02-01 18:17:29 +00:00
database.ts refactor(service-worker): simplify accessing CacheStorage throughout the ServiceWorker (#42622) 2021-06-24 09:55:32 -07:00
db-cache.ts refactor: update code to be ES2022 compliant (#49559) 2023-03-23 08:18:45 -07:00
debug.ts feat(service-worker): include ServiceWorker version in debug info (#42622) 2021-06-24 09:55:32 -07:00
driver.ts build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
error.ts feat(service-worker): add UnrecoverableStateError (#36847) 2020-08-31 11:41:11 -07:00
idle.ts build: enable useUnknownInCatchVariables (#44679) 2022-02-01 18:17:29 +00:00
manifest.ts feat(service-worker): add cacheOpaqueResponses option for data-groups (#44723) 2022-01-24 14:51:59 -08:00
msg.ts feat(service-worker): SwUpdate#activeUpdate and SwUpdate#checkForUpdate should have a meaningful outcome (#43668) 2021-10-05 11:00:07 -07:00
named-cache-storage.ts refactor(service-worker): simplify accessing CacheStorage throughout the ServiceWorker (#42622) 2021-06-24 09:55:32 -07:00
service-worker.d.ts refactor(service-worker): switch to the official TypeScript typings (#42736) 2021-07-08 10:28:22 -07:00
sha1.ts docs: update links to use HTTPS as protocol (#39718) 2020-11-20 12:52:16 -08:00