pluginEvents.js 735 B

123456789101112131415161718
  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 '../_version.js';
  8. export var pluginEvents;
  9. (function (pluginEvents) {
  10. pluginEvents["CACHE_DID_UPDATE"] = "cacheDidUpdate";
  11. pluginEvents["CACHE_KEY_WILL_BE_USED"] = "cacheKeyWillBeUsed";
  12. pluginEvents["CACHE_WILL_UPDATE"] = "cacheWillUpdate";
  13. pluginEvents["CACHED_RESPONSE_WILL_BE_USED"] = "cachedResponseWillBeUsed";
  14. pluginEvents["FETCH_DID_FAIL"] = "fetchDidFail";
  15. pluginEvents["FETCH_DID_SUCCEED"] = "fetchDidSucceed";
  16. pluginEvents["REQUEST_WILL_FETCH"] = "requestWillFetch";
  17. })(pluginEvents || (pluginEvents = {}));