bun-runtime.js 486 B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.getRuntime = void 0;
  4. const web_runtime_1 = require("./web-runtime.js");
  5. const node_fs_1 = require("node:fs");
  6. function getRuntime() {
  7. const runtime = (0, web_runtime_1.getRuntime)();
  8. function isFsReadStream(value) {
  9. return value instanceof node_fs_1.ReadStream;
  10. }
  11. return { ...runtime, isFsReadStream };
  12. }
  13. exports.getRuntime = getRuntime;
  14. //# sourceMappingURL=bun-runtime.js.map