1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
{"version":3,"sources":["../../../src/server/app-render/action-handler.ts"],"names":["ACTION","RSC","RSC_CONTENT_TYPE_HEADER","isNotFoundError","getURLFromRedirectError","isRedirectError","RenderResult","FlightRenderResult","filterReqHeaders","actionsForbiddenHeaders","appendMutableCookies","getModifiedCookieValues","NEXT_CACHE_REVALIDATED_TAGS_HEADER","NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER","nodeToWebReadableStream","nodeReadable","process","env","NEXT_RUNTIME","Readable","require","toWeb","ReadableStream","start","controller","on","chunk","enqueue","close","error","Error","formDataFromSearchQueryString","query","searchParams","URLSearchParams","formData","FormData","key","value","append","nodeHeadersToRecord","headers","record","Object","entries","undefined","Array","isArray","join","getForwardedHeaders","req","res","requestHeaders","requestCookies","responseHeaders","getHeaders","rawSetCookies","setCookies","map","setCookie","cookie","split","mergedHeaders","mergedCookies","concat","Headers","addRevalidationHeader","staticGenerationStore","requestStore","Promise","all","pendingRevalidates","isTagRevalidated","revalidatedTags","length","isCookieRevalidated","mutableCookies","setHeader","JSON","stringify","createRedirectRenderResult","redirectUrl","startsWith","forwardedHeaders","set","host","proto","incrementalCache","requestProtocol","fetchUrl","URL","prerenderManifest","preview","previewModeId","delete","headResponse","fetch","method","next","internal","get","response","includes","body","err","console","handleAction","ComponentMod","page","serverActionsManifest","generateFlight","serverActionsBodySizeLimit","ctx","actionId","toLowerCase","contentType","isURLEncodedAction","isMultipartAction","isFetchAction","originHostname","warn","statusCode","promise","reject","type","result","actionResult","skipFlight","pathWasRevalidated","bound","workerName","serverModuleMap","Proxy","_","id","workers","name","chunks","actionAsyncStorage","formState","run","isAction","decodeReply","decodeAction","decodeFormState","webRequest","request","action","actionReturnedState","actionData","reader","getReader","done","read","TextDecoder","decode","decodeReplyFromBusboy","busboy","bb","pipe","UndiciRequest","Request","fakeRequest","duplex","parseBody","e","message","actionWorkers","actionModId","actionHandler","__next_app__","returnVal","apply","resolve","from","values","asNotF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