Skip to content

Commit e7f9206

Browse files
Apply suggestions from code review
Co-authored-by: Dario Piotrowicz <[email protected]>
1 parent 627d10b commit e7f9206

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/cloudflare/src/cli/templates/utils/create-als-proxy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { AsyncLocalStorage } from "node:async_hooks";
22

33
/**
4-
* Creates a proxy for to use for an instance of AsyncLocalStorage.
4+
* Creates a proxy that exposes values from an AsyncLocalStorage store
55
*
6-
* @param als AsyncLocalStorage instance.
6+
* @param als AsyncLocalStorage instance
77
*/
88
export function createALSProxy<T>(als: AsyncLocalStorage<T>) {
99
return new Proxy(

packages/cloudflare/src/cli/templates/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { AsyncLocalStorage } from "node:async_hooks";
22
import type { IncomingMessage } from "node:http";
33
import Stream from "node:stream";
4-
import { createALSProxy } from "./utils";
54

65
import type { ExportedHandler, Fetcher } from "@cloudflare/workers-types";
76
import type { NextConfig } from "next";
@@ -10,6 +9,7 @@ import { MockedResponse } from "next/dist/server/lib/mock-request";
109
import type { NodeRequestHandler } from "next/dist/server/next-server";
1110

1211
import type { CloudflareContext } from "../../api";
12+
import { createALSProxy } from "./utils";
1313

1414
const NON_BODY_RESPONSES = new Set([101, 204, 205, 304]);
1515

0 commit comments

Comments
 (0)