2024-06-02 16:42:42 +02:00
|
|
|
// @push.rocks scope
|
|
|
|
|
import * as smartenv from '@push.rocks/smartenv';
|
|
|
|
|
|
|
|
|
|
export {
|
|
|
|
|
smartenv,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// lets setup dependencies
|
|
|
|
|
const smartenvInstance = new smartenv.Smartenv();
|
|
|
|
|
|
|
|
|
|
await smartenvInstance.getSafeNodeModule<typeof import('stream/web')>('stream/web', async (moduleArg) => {
|
2026-02-28 08:48:58 +00:00
|
|
|
globalThis.ReadableStream = moduleArg.ReadableStream as any;
|
|
|
|
|
globalThis.WritableStream = moduleArg.WritableStream as any;
|
|
|
|
|
globalThis.TransformStream = moduleArg.TransformStream as any;
|
2024-06-02 16:42:42 +02:00
|
|
|
})
|