Urara-Blog/node_modules/.pnpm-store/v3/files/c7/35e8ea56dc0ae250d6434358d885acc86cbfb950edbeac051463c5bf6ad6b1ace82544fc8ebb64d1b0022822e753a15a5d31306ad1d9a1efd0fe60082db5de
2022-08-14 01:14:53 +08:00

20 lines
728 B
Text

/*
Copyright 2018 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
import { logger } from 'workbox-core/_private/logger.js';
import { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';
import '../_version.js';
export const messages = {
strategyStart: (strategyName, request) => `Using ${strategyName} to respond to '${getFriendlyURL(request.url)}'`,
printFinalResponse: (response) => {
if (response) {
logger.groupCollapsed(`View the final response here.`);
logger.log(response || '[No response returned]');
logger.groupEnd();
}
},
};