index.mjs 991 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. Copyright 2018 Google LLC
  3. Use of this source code is governed by an MIT-style
  4. license that can be found in the LICENSE file or at
  5. https://opensource.org/licenses/MIT.
  6. */
  7. import {registerQuotaErrorCallback} from './registerQuotaErrorCallback.mjs';
  8. import * as _private from './_private.mjs';
  9. import {clientsClaim} from './clientsClaim.mjs';
  10. import {cacheNames} from './cacheNames.mjs';
  11. import {setCacheNameDetails} from './setCacheNameDetails.mjs';
  12. import {skipWaiting} from './skipWaiting.mjs';
  13. import './_version.mjs';
  14. // Give our version strings something to hang off of.
  15. try {
  16. self.workbox.v = self.workbox.v || {};
  17. } catch (errer) {
  18. // NOOP
  19. }
  20. /**
  21. * All of the Workbox service worker libraries use workbox-core for shared
  22. * code as well as setting default values that need to be shared (like cache
  23. * names).
  24. *
  25. * @namespace workbox.core
  26. */
  27. export {
  28. _private,
  29. clientsClaim,
  30. cacheNames,
  31. registerQuotaErrorCallback,
  32. setCacheNameDetails,
  33. skipWaiting,
  34. };