source: frontend/node_modules/workbox-strategies/src/utils/messages.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 740 bytes
RevLine 
[9af201e]1/*
2 Copyright 2018 Google LLC
3
4 Use of this source code is governed by an MIT-style
5 license that can be found in the LICENSE file or at
6 https://opensource.org/licenses/MIT.
7*/
8
9import {logger} from 'workbox-core/_private/logger.js';
10import {getFriendlyURL} from 'workbox-core/_private/getFriendlyURL.js';
11import '../_version.js';
12
13export const messages = {
14 strategyStart: (strategyName: string, request: Request): string =>
15 `Using ${strategyName} to respond to '${getFriendlyURL(request.url)}'`,
16 printFinalResponse: (response?: Response): void => {
17 if (response) {
18 logger.groupCollapsed(`View the final response here.`);
19 logger.log(response || '[No response returned]');
20 logger.groupEnd();
21 }
22 },
23};
Note: See TracBrowser for help on using the repository browser.