agsamantha/node_modules/openai/_shims/bun-runtime.mjs
2024-10-02 15:15:21 -05:00

10 lines
No EOL
361 B
JavaScript

import { getRuntime as getWebRuntime } from "./web-runtime.mjs";
import { ReadStream as FsReadStream } from 'node:fs';
export function getRuntime() {
const runtime = getWebRuntime();
function isFsReadStream(value) {
return value instanceof FsReadStream;
}
return { ...runtime, isFsReadStream };
}
//# sourceMappingURL=bun-runtime.mjs.map