/opt/canhelp/node_modules/next/dist/server/app-render
NameSizeModeActions
metadata-insertion/-0755rm
module-loading/-0755rm
rsc/-0755rm
action-async-storage-instance.d.ts1440644editdlrm
action-async-storage-instance.js4460644editdlrm
action-async-storage-instance.js.map5020644editdlrm
action-async-storage.external.d.ts3590644editdlrm
action-async-storage.external.js3990644editdlrm
action-async-storage.external.js.map7040644editdlrm
action-handler.d.ts18070644editdlrm
action-handler.js486910644editdlrm
action-handler.js.map683500644editdlrm
action-utils.d.ts5180644editdlrm
action-utils.js38670644editdlrm
action-utils.js.map54880644editdlrm
after-task-async-storage-instance.d.ts1570644editdlrm
after-task-async-storage-instance.js4590644editdlrm
after-task-async-storage-instance.js.map5220644editdlrm
after-task-async-storage.external.d.ts6490644editdlrm
after-task-async-storage.external.js4190644editdlrm
after-task-async-storage.external.js.map9710644editdlrm
app-render-prerender-utils.d.ts18890644editdlrm
app-render-prerender-utils.js72520644editdlrm
app-render-prerender-utils.js.map108830644editdlrm
app-render-render-utils.d.ts3350644editdlrm
app-render-render-utils.js11520644editdlrm
app-render-render-utils.js.map16080644editdlrm
app-render.d.ts41060644editdlrm
app-render.js1659650644editdlrm
app-render.js.map2406730644editdlrm
async-local-storage.d.ts3160644editdlrm
async-local-storage.js20710644editdlrm
async-local-storage.js.map27990644editdlrm
cache-signal.d.ts12790644editdlrm
cache-signal.js59840644editdlrm
cache-signal.js.map81410644editdlrm
collect-segment-data.d.ts11250644editdlrm
collect-segment-data.js133860644editdlrm
collect-segment-data.js.map223820644editdlrm
create-component-styles-and-scripts.d.ts4100644editdlrm
create-component-styles-and-scripts.js16890644editdlrm
create-component-styles-and-scripts.js.map24200644editdlrm
create-component-tree.d.ts10300644editdlrm
create-component-tree.js417000644editdlrm
create-component-tree.js.map593530644editdlrm
create-error-handler.d.ts13900644editdlrm
create-error-handler.js103860644editdlrm
create-error-handler.js.map140970644editdlrm
create-flight-router-state-from-loader-tree.d.ts5000644editdlrm
create-flight-router-state-from-loader-tree.js38210644editdlrm
create-flight-router-state-from-loader-tree.js.map57150644editdlrm
csrf-protection.d.ts1040644editdlrm
csrf-protection.js30210644editdlrm
csrf-protection.js.map39370644editdlrm
dynamic-access-async-storage-instance.d.ts1630644editdlrm
dynamic-access-async-storage-instance.js4750644editdlrm
dynamic-access-async-storage-instance.js.map5360644editdlrm
dynamic-access-async-storage.external.d.ts3930644editdlrm
dynamic-access-async-storage.external.js4430644editdlrm
dynamic-access-async-storage.external.js.map7620644editdlrm
dynamic-rendering.d.ts61740644editdlrm
dynamic-rendering.js331170644editdlrm
dynamic-rendering.js.map458310644editdlrm
encryption-utils-server.d.ts1410644editdlrm
encryption-utils-server.js48230644editdlrm
encryption-utils-server.js.map71530644editdlrm
encryption-utils.d.ts14430644editdlrm
encryption-utils.js78490644editdlrm
encryption-utils.js.map112570644editdlrm
encryption.d.ts2410644editdlrm
encryption.js118560644editdlrm
encryption.js.map166820644editdlrm
entry-base.d.ts21990644editdlrm
entry-base.js84670644editdlrm
entry-base.js.map62570644editdlrm
flight-render-result.d.ts3530644editdlrm
flight-render-result.js7940644editdlrm
flight-render-result.js.map9670644editdlrm
get-asset-query-string.d.ts1530644editdlrm
get-asset-query-string.js9990644editdlrm
get-asset-query-string.js.map15910644editdlrm
get-css-inlined-link-tags.d.ts5240644editdlrm
get-css-inlined-link-tags.js15490644editdlrm
get-css-inlined-link-tags.js.map25760644editdlrm
get-layer-assets.d.ts5990644editdlrm
get-layer-assets.js33290644editdlrm
get-layer-assets.js.map55030644editdlrm
get-preloadable-fonts.d.ts7090644editdlrm
get-preloadable-fonts.js11600644editdlrm
get-preloadable-fonts.js.map23860644editdlrm
get-script-nonce-from-header.d.ts940644editdlrm
get-script-nonce-from-header.js20170644editdlrm
get-script-nonce-from-header.js.map27850644editdlrm
get-segment-param.d.ts2280644editdlrm
get-segment-param.js15240644editdlrm
get-segment-param.js.map23400644editdlrm
get-short-dynamic-param-type.d.ts3620644editdlrm
get-short-dynamic-param-type.js10690644editdlrm
get-short-dynamic-param-type.js.map11990644editdlrm
has-loading-component-in-tree.d.ts1350644editdlrm
has-loading-component-in-tree.js5440644editdlrm
has-loading-component-in-tree.js.map8130644editdlrm
interop-default.d.ts1210644editdlrm
interop-default.js3910644editdlrm
interop-default.js.map4090644editdlrm
make-get-server-inserted-html.d.ts5000644editdlrm
make-get-server-inserted-html.js46410644editdlrm
make-get-server-inserted-html.js.map65180644editdlrm
parse-and-validate-flight-router-state.d.ts3880644editdlrm
parse-and-validate-flight-router-state.js18350644editdlrm
parse-and-validate-flight-router-state.js.map24290644editdlrm
parse-loader-tree.d.ts4300644editdlrm
parse-loader-tree.js10090644editdlrm
parse-loader-tree.js.map14260644editdlrm
postponed-state.d.ts21530644editdlrm
postponed-state.js64250644editdlrm
postponed-state.js.map92110644editdlrm
prospective-render-utils.d.ts1150644editdlrm
prospective-render-utils.js25870644editdlrm
prospective-render-utils.js.map34120644editdlrm
react-large-shell-error.d.ts1070644editdlrm
react-large-shell-error.js5960644editdlrm
react-large-shell-error.js.map7890644editdlrm
react-server.node.d.ts1520644editdlrm
react-server.node.js11110644editdlrm
react-server.node.js.map7140644editdlrm
render-css-resource.d.ts6120644editdlrm
render-css-resource.js24600644editdlrm
render-css-resource.js.map39470644editdlrm
required-scripts.d.ts4440644editdlrm
required-scripts.js28550644editdlrm
required-scripts.js.map42910644editdlrm
segment-explorer-path.d.ts9560644editdlrm
segment-explorer-path.js38540644editdlrm
segment-explorer-path.js.map52930644editdlrm
server-inserted-html.d.ts2930644editdlrm
server-inserted-html.js15030644editdlrm
server-inserted-html.js.map17710644editdlrm
strip-flight-headers.d.ts2450644editdlrm
strip-flight-headers.js4940644editdlrm
strip-flight-headers.js.map7250644editdlrm
types.d.ts101850644editdlrm
types.js29230644editdlrm
types.js.map132650644editdlrm
use-flight-response.d.ts11360644editdlrm
use-flight-response.js68440644editdlrm
use-flight-response.js.map111740644editdlrm
walk-tree-with-flight-router-state.d.ts13940644editdlrm
walk-tree-with-flight-router-state.js111740644editdlrm
walk-tree-with-flight-router-state.js.map173160644editdlrm
work-async-storage-instance.d.ts1360644editdlrm
work-async-storage-instance.js4380644editdlrm
work-async-storage-instance.js.map4900644editdlrm
work-async-storage.external.d.ts37450644editdlrm
work-async-storage.external.js3870644editdlrm
work-async-storage.external.js.map42140644editdlrm
work-unit-async-storage-instance.d.ts1530644editdlrm
work-unit-async-storage-instance.js4550644editdlrm
work-unit-async-storage-instance.js.map5160644editdlrm
work-unit-async-storage.external.d.ts123010644editdlrm
work-unit-async-storage.external.js78220644editdlrm
work-unit-async-storage.external.js.map210370644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/server/app-render/work-unit-async-storage.external.d.ts (12301B)
import type { AsyncLocalStorage } from 'async_hooks'; import type { DraftModeProvider } from '../async-storage/draft-mode-provider'; import type { ResponseCookies } from '../web/spec-extension/cookies'; import type { ReadonlyHeaders } from '../web/spec-extension/adapters/headers'; import type { ReadonlyRequestCookies } from '../web/spec-extension/adapters/request-cookies'; import type { CacheSignal } from './cache-signal'; import type { DynamicTrackingState } from './dynamic-rendering'; import type { FallbackRouteParams } from '../request/fallback-params'; import { workUnitAsyncStorageInstance } from './work-unit-async-storage-instance'; import type { ServerComponentsHmrCache } from '../response-cache'; import type { RenderResumeDataCache, PrerenderResumeDataCache } from '../resume-data-cache/resume-data-cache'; import type { Params } from '../request/params'; import type { ImplicitTags } from '../lib/implicit-tags'; import type { WorkStore } from './work-async-storage.external'; export type WorkUnitPhase = 'action' | 'render' | 'after'; export interface CommonWorkUnitStore { /** NOTE: Will be mutated as phases change */ phase: WorkUnitPhase; readonly implicitTags: ImplicitTags; } export interface RequestStore extends CommonWorkUnitStore { readonly type: 'request'; /** * The URL of the request. This only specifies the pathname and the search * part of the URL. */ readonly url: { /** * The pathname of the requested URL. */ readonly pathname: string; /** * The search part of the requested URL. If the request did not provide a * search part, this will be an empty string. */ readonly search: string; }; readonly headers: ReadonlyHeaders; cookies: ReadonlyRequestCookies; readonly mutableCookies: ResponseCookies; readonly userspaceMutableCookies: ResponseCookies; readonly draftMode: DraftModeProvider; readonly isHmrRefresh?: boolean; readonly serverComponentsHmrCache?: ServerComponentsHmrCache; readonly rootParams: Params; /** * The resume data cache for this request. This will be a immutable cache. */ renderResumeDataCache: RenderResumeDataCache | null; usedDynamic?: boolean; prerenderPhase?: boolean; devFallbackParams?: FallbackRouteParams | null; } /** * The Prerender store is for tracking information related to prerenders. * * It can be used for both RSC and SSR prerendering and should be scoped as close * to the individual `renderTo...` API call as possible. To keep the type simple * we don't distinguish between RSC and SSR prerendering explicitly but instead * use conditional object properties to infer which mode we are in. For instance cache tracking * only needs to happen during the RSC prerender when we are prospectively prerendering * to fill all caches. */ export type PrerenderStoreModern = PrerenderStoreModernClient | PrerenderStoreModernServer | PrerenderStoreModernRuntime; /** Like `PrerenderStoreModern`, but only including static prerenders (i.e. not runtime prerenders) */ export type StaticPrerenderStoreModern = Exclude; export interface PrerenderStoreModernClient extends PrerenderStoreModernCommon, StaticPrerenderStoreCommon { readonly type: 'prerender-client'; } export interface PrerenderStoreModernServer extends PrerenderStoreModernCommon, StaticPrerenderStoreCommon { readonly type: 'prerender'; } export interface PrerenderStoreModernRuntime extends PrerenderStoreModernCommon { readonly type: 'prerender-runtime'; /** * A runtime prerender resolves APIs in two tasks: * * 1. Static data (available in a static prerender) * 2. Runtime data (available in a runtime prerender) * * This separation is achieved by awaiting this promise in "runtime" APIs. * In the final prerender, the promise will be resolved during the second task, * and the render will be aborted in the task that follows it. */ readonly runtimeStagePromise: Promise | null; readonly cookies: RequestStore['cookies']; readonly draftMode: RequestStore['draftMode']; } export interface RevalidateStore { revalidate: number; expire: number; stale: number; tags: null | string[]; } interface PrerenderStoreModernCommon extends CommonWorkUnitStore, RevalidateStore { /** * The render signal is aborted after React's `prerender` function is aborted * (using a separate signal), which happens in two cases: * * 1. When all caches are filled during the prospective prerender. * 2. When the final prerender is aborted immediately after the prerender was * started. * * It can be used to reject any pending I/O, including hanging promises. This * allows React to properly track the async I/O in dev mode, which yields * better owner stacks for dynamic validation errors. */ readonly renderSignal: AbortSignal; /** * This is the AbortController which represents the boundary between Prerender * and dynamic. In some renders it is the same as the controller for React, * but in others it is a separate controller. It should be aborted whenever we * are no longer in the prerender phase of rendering. Typically this is after * one task, or when you call a sync API which requires the prerender to end * immediately. */ readonly controller: AbortController; /** * When not null, this signal is used to track cache reads during prerendering * and to await all cache reads completing, before aborting the prerender. */ readonly cacheSignal: null | CacheSignal; /** * During some prerenders we want to track dynamic access. */ readonly dynamicTracking: null | DynamicTrackingState; readonly rootParams: Params; /** * A mutable resume data cache for this prerender. */ prerenderResumeDataCache: PrerenderResumeDataCache | null; /** * An immutable resume data cache for this prerender. This may be provided * instead of the `prerenderResumeDataCache` if the prerender is not supposed * to fill caches, and only read from prefilled caches, e.g. when prerendering * an optional fallback shell. */ renderResumeDataCache: RenderResumeDataCache | null; /** * The HMR refresh hash is only provided in dev mode. It is needed for the dev * warmup render to ensure that the cache keys will be identical for the * subsequent dynamic render. */ readonly hmrRefreshHash: string | undefined; /** * Only available in dev mode. */ readonly captureOwnerStack: undefined | (() => string | null); } interface StaticPrerenderStoreCommon { /** * The set of unknown route parameters. Accessing these will be tracked as * a dynamic access. */ readonly fallbackRouteParams: FallbackRouteParams | null; /** * When true, the page is prerendered as a fallback shell, while allowing any * dynamic accesses to result in an empty shell. This is the case when there * are also routes prerendered with a more complete set of params. * Prerendering those routes would catch any invalid dynamic accesses. */ readonly allowEmptyStaticShell: boolean; } export interface PrerenderStorePPR extends CommonWorkUnitStore, RevalidateStore { readonly type: 'prerender-ppr'; readonly rootParams: Params; readonly dynamicTracking: null | DynamicTrackingState; /** * The set of unknown route parameters. Accessing these will be tracked as * a dynamic access. */ readonly fallbackRouteParams: FallbackRouteParams | null; /** * The resume data cache for this prerender. */ prerenderResumeDataCache: PrerenderResumeDataCache; } export interface PrerenderStoreLegacy extends CommonWorkUnitStore, RevalidateStore { readonly type: 'prerender-legacy'; readonly rootParams: Params; } export type PrerenderStore = PrerenderStoreLegacy | PrerenderStorePPR | PrerenderStoreModern; export type StaticPrerenderStore = Exclude; export interface CommonCacheStore extends Omit { /** * A cache work unit store might not always have an outer work unit store, * from which implicit tags could be inherited. */ readonly implicitTags: ImplicitTags | undefined; /** * Draft mode is only available if the outer work unit store is a request * store and draft mode is enabled. */ readonly draftMode: DraftModeProvider | undefined; } export interface CommonUseCacheStore extends CommonCacheStore, RevalidateStore { explicitRevalidate: undefined | number; explicitExpire: undefined | number; explicitStale: undefined | number; readonly hmrRefreshHash: string | undefined; readonly isHmrRefresh: boolean; readonly serverComponentsHmrCache: ServerComponentsHmrCache | undefined; readonly forceRevalidate: boolean; } export interface PublicUseCacheStore extends CommonUseCacheStore { readonly type: 'cache'; } export interface PrivateUseCacheStore extends CommonUseCacheStore { readonly type: 'private-cache'; /** * A runtime prerender resolves APIs in two tasks: * * 1. Static data (available in a static prerender) * 2. Runtime data (available in a runtime prerender) * * This separation is achieved by awaiting this promise in "runtime" APIs. * In the final prerender, the promise will be resolved during the second task, * and the render will be aborted in the task that follows it. */ readonly runtimeStagePromise: Promise | null; /** * As opposed to the public cache store, the private cache store is allowed to * access the request cookies. */ readonly cookies: ReadonlyRequestCookies; /** * Private caches don't currently need to track root params in the cache key * because they're not persisted anywhere, so we can allow root params access * (unlike public caches) */ readonly rootParams: Params; } export type UseCacheStore = PublicUseCacheStore | PrivateUseCacheStore; export interface UnstableCacheStore extends CommonCacheStore { readonly type: 'unstable-cache'; } /** * The Cache store is for tracking information inside a "use cache" or * unstable_cache context. A cache store shadows an outer request store (if * present) as a work unit, so that we never accidentally expose any request or * page specific information to cache functions, unless it's explicitly desired. * For those exceptions, the data is copied over from the request store to the * cache store, instead of generally making the request store available to cache * functions. */ export type CacheStore = UseCacheStore | UnstableCacheStore; export type WorkUnitStore = RequestStore | CacheStore | PrerenderStore; export type WorkUnitAsyncStorage = AsyncLocalStorage; export { workUnitAsyncStorageInstance as workUnitAsyncStorage }; export declare function throwForMissingRequestStore(callingExpression: string): never; export declare function throwInvariantForMissingStore(): never; export declare function getPrerenderResumeDataCache(workUnitStore: WorkUnitStore): PrerenderResumeDataCache | null; export declare function getRenderResumeDataCache(workUnitStore: WorkUnitStore): RenderResumeDataCache | null; export declare function getHmrRefreshHash(workStore: WorkStore, workUnitStore: WorkUnitStore): string | undefined; export declare function isHmrRefresh(workStore: WorkStore, workUnitStore: WorkUnitStore): boolean; export declare function getServerComponentsHmrCache(workStore: WorkStore, workUnitStore: WorkUnitStore): ServerComponentsHmrCache | undefined; /** * Returns a draft mode provider only if draft mode is enabled. */ export declare function getDraftModeProviderForCacheScope(workStore: WorkStore, workUnitStore: WorkUnitStore): DraftModeProvider | undefined; export declare function getCacheSignal(workUnitStore: WorkUnitStore): CacheSignal | null; export declare function getRuntimeStagePromise(workUnitStore: WorkUnitStore): Promise | null;