securityos/node_modules/next/dist/server/app-render/action-handler.js.map

1 line
11 KiB
Plaintext

{"version":3,"sources":["../../../src/server/app-render/action-handler.ts"],"names":["handleAction","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","filterReqHeaders","actionsForbiddenHeaders","mergedCookies","concat","Headers","addRevalidationHeader","staticGenerationStore","requestStore","Promise","all","pendingRevalidates","isTagRevalidated","revalidatedTags","length","isCookieRevalidated","getModifiedCookieValues","mutableCookies","setHeader","JSON","stringify","createRedirectRenderResult","redirectUrl","startsWith","forwardedHeaders","set","RSC","host","proto","incrementalCache","requestProtocol","fetchUrl","URL","NEXT_CACHE_REVALIDATED_TAGS_HEADER","NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER","prerenderManifest","preview","previewModeId","delete","headResponse","fetch","method","next","internal","get","RSC_CONTENT_TYPE_HEADER","response","includes","FlightRenderResult","body","err","console","RenderResult","ComponentMod","page","serverActionsManifest","generateFlight","serverActionsBodySizeLimit","ctx","actionId","ACTION","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","isRedirectError","getURLFromRedirectError","appendMutableCookies","from","values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