@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 417 B
JavaScript
import{Readable as e}from"node:stream";const t=t=>t instanceof e?t:t instanceof Uint8Array?e.from(t):e.fromWeb(t),n=e=>{if(e instanceof ReadableStream){let[t,n]=e.tee();return{processingBody:t,fallbackBody:n}}return e instanceof Uint8Array?{processingBody:e,fallbackBody:e.slice()}:{processingBody:e,fallbackBody:e}};export{n as splitBodyForProcessing,t as toNodeReadable};
//# sourceMappingURL=normalize-body.mjs.map