Rocky_Mountain_Vending/.pnpm-store/v10/files/d2/925af1ffe01d4f977b7a93e49400d23cb1fb7b183ba1ddaf47dee0d7f6da28b079d1f5b641251d7334264221e446701b473df3ee3f359c480c85f0e86c8aa8
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

36 lines
1.1 KiB
Text

/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import log from 'lighthouse-logger';
import * as Lantern from '../lib/lantern/lantern.js';
import {makeComputedArtifact} from './computed-artifact.js';
import {NetworkRecords} from './network-records.js';
class NetworkAnalysis {
/**
* @param {LH.DevtoolsLog} devtoolsLog
* @param {LH.Artifacts.ComputedContext} context
* @return {Promise<LH.Artifacts.NetworkAnalysis>}
*/
static async compute_(devtoolsLog, context) {
const records = await NetworkRecords.request(devtoolsLog, context);
const analysis = Lantern.Core.NetworkAnalyzer.analyze(records);
if (!analysis) {
log.error('NetworkAnalysis', 'Network analysis failed due to lack of transfer data');
return {
throughput: 0,
rtt: Number.POSITIVE_INFINITY,
additionalRttByOrigin: new Map(),
serverResponseTimeByOrigin: new Map(),
};
}
return analysis;
}
}
const NetworkAnalysisComputed = makeComputedArtifact(NetworkAnalysis, null);
export {NetworkAnalysisComputed as NetworkAnalysis};