securityos/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js.map

1 line
8.2 KiB
Plaintext
Raw Normal View History

2024-09-06 15:32:35 +00:00
{"version":3,"sources":["../../../src/server/stream-utils/node-web-streams-helper.ts"],"names":["streamToBufferedResult","cloneTransformStream","chainStreams","streamFromString","streamToString","createBufferedTransformStream","createInsertedHTMLStream","renderToInitialFizzStream","createRootLayoutValidatorStream","continueFizzStream","queueTask","process","env","NEXT_RUNTIME","globalThis","setTimeout","setImmediate","renderResult","textDecoder","TextDecoder","concatenatedString","writable","write","chunk","decodeText","end","on","off","pipe","source","sourceReader","readable","getReader","clone","TransformStream","start","controller","done","value","read","enqueue","transform","streams","promise","Promise","resolve","i","length","then","pipeTo","preventClose","str","ReadableStream","encodeText","close","stream","reader","bufferedString","bufferedBytes","Uint8Array","pendingFlush","flushBuffer","newBufferedBytes","byteLength","set","flush","getServerInsertedHTML","insertedHTMLChunk","ReactDOMServer","element","streamOptions","getTracer","trace","AppRenderSpan","renderToReadableStream","createHeadInsertionTransformStream","insert","inserted","freezing","insertion","content","index","indexOf","insertedHeadContent","slice","createDeferredSuffixStream","suffix","suffixFlushed","suffixFlushTask","res","createMergedTransformStream","dataStream","dataStreamFinished","dataStreamReader","err","error","createMoveSuffixStream","foundSuffix","endsWith","contentWithoutSuffix","assetPrefix","getTree","foundHtml","foundBody","includes","missingTags","filter","nonNullable","JSON","stringify","tree","renderStream","inlinedDataStream","generateStaticHTML","serverInsertedHTMLToHead","validateRootLayout","closeTag","suffixUnclosed","split","allReady","transforms","reduce","pipeThrough"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;IAeaA,sBAAsB;eAAtBA;;IAoBGC,oBAAoB;eAApBA;;IAmBAC,YAAY;eAAZA;;IAeAC,gBAAgB;eAAhBA;;IASMC,cAAc;eAAdA;;IAmBNC,6BAA6B;eAA7BA;;IAuCAC,wBAAwB;eAAxBA;;IAYAC,yBAAyB;eAAzBA;;IAwLAC,+BAA+B;eAA/BA;;IA0CMC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