refactor: replace references of options with config (#1903)

This commit is contained in:
Asher Gomez
2023-10-11 09:25:03 +02:00
committed by GitHub
parent 1d12853889
commit 6ddef91d95
28 changed files with 138 additions and 127 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ import { colors, toFileUrl } from "$fresh/src/server/deps.ts";
import { assert } from "$std/_util/asserts.ts";
import * as path from "$std/path/mod.ts";
import {
FromManifestOptions,
FromManifestConfig,
Manifest,
ServeHandlerInfo,
ServerContext,
@@ -252,9 +252,9 @@ async function handleRequest(
export async function fakeServe(
manifest: Manifest,
options: FromManifestOptions,
config: FromManifestConfig,
): Promise<FakeServer> {
const ctx = await ServerContext.fromManifest(manifest, options);
const ctx = await ServerContext.fromManifest(manifest, config);
const handler = ctx.handler();
const conn: ServeHandlerInfo = {