node-ejs-renderer/node_modules/openai/_shims/bun-runtime.js

14 lines
486 B
JavaScript
Raw Normal View History

2024-06-09 13:55:01 -04:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRuntime = void 0;
const web_runtime_1 = require("./web-runtime.js");
const node_fs_1 = require("node:fs");
function getRuntime() {
const runtime = (0, web_runtime_1.getRuntime)();
function isFsReadStream(value) {
return value instanceof node_fs_1.ReadStream;
}
return { ...runtime, isFsReadStream };
}
exports.getRuntime = getRuntime;
//# sourceMappingURL=bun-runtime.js.map