Rocky_Mountain_Vending/.pnpm-store/v10/files/fa/292c6204f1f080e3b711122682530300c043c5a80a659facd9960ac7cc40943fd9a545d61aae56daa63520aaa72ea7a067d31dc7fb8f2d8bbb4534569756a8
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

35 lines
1.1 KiB
Text

/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import BaseGatherer from '../base-gatherer.js';
import DevtoolsLog from './devtools-log.js';
import {fetchResponseBodyFromCache} from '../driver/network.js';
import {MainResource} from '../../computed/main-resource.js';
/**
* Collects the content of the main html document.
*/
class MainDocumentContent extends BaseGatherer {
/** @type {LH.Gatherer.GathererMeta<'DevtoolsLog'>} */
meta = {
supportedModes: ['navigation'],
dependencies: {DevtoolsLog: DevtoolsLog.symbol},
};
/**
* @param {LH.Gatherer.Context<'DevtoolsLog'>} context
* @return {Promise<LH.Artifacts['MainDocumentContent']>}
*/
async getArtifact(context) {
const devtoolsLog = context.dependencies.DevtoolsLog;
const mainResource =
await MainResource.request({devtoolsLog, URL: context.baseArtifacts.URL}, context);
const session = context.driver.defaultSession;
return fetchResponseBodyFromCache(session, mainResource.requestId);
}
}
export default MainDocumentContent;