<commit_before>import { precacheAndRoute } from 'workbox-precaching'

precacheAndRoute(self.__WB_MANIFEST)

addEventListener('message', event => {
  if (event.data && event.data.type === 'SKIP_WAITING') {
    self.skipWaiting()
  }
})

// I choose https://developer.chrome.com/docs/workbox/the-ways-of-workbox/#workbox-cli<commit_msg>fix(service-worker): install new service worker without waiting<commit_after>import { precacheAndRoute } from 'workbox-precaching'

precacheAndRoute(self.__WB_MANIFEST)

self.addEventListener('install', () => {
  self.skipWaiting()

  // Perform any other actions required for your
  // service worker to install, potentially inside
  // of event.waitUntil();
})

// I choose https://developer.chrome.com/docs/workbox/the-ways-of-workbox/#workbox-cli
{'fraction_non_alphanumeric': 0.14030612244897958, 'fraction_numerical': 0.0, 'mean_word_length': 4.858208955223881, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5307050', 'n_tokens_mistral': 250, 'n_tokens_neox': 244, 'n_words': 45}