ts-service-worker 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -6638,7 +6638,7 @@ function fileFromCache(name) {
6638
6638
  function toCache(event, response) {
6639
6639
  if (!response.ok) {
6640
6640
  log(\`skipping cache of failed request \${event.request.url} with status \${response.status} \${response.statusText}\`);
6641
- return response;
6641
+ return Promise.resolve(response);
6642
6642
  }
6643
6643
  return caches.open(CACHE_NAME)
6644
6644
  .then(function (cache) {
package/dist/index.js CHANGED
@@ -6650,7 +6650,7 @@ function fileFromCache(name) {
6650
6650
  function toCache(event, response) {
6651
6651
  if (!response.ok) {
6652
6652
  log(\`skipping cache of failed request \${event.request.url} with status \${response.status} \${response.statusText}\`);
6653
- return response;
6653
+ return Promise.resolve(response);
6654
6654
  }
6655
6655
  return caches.open(CACHE_NAME)
6656
6656
  .then(function (cache) {