mirror of
https://github.com/ChinaSiro/claude-code-sourcemap.git
synced 2026-11-22 14:28:51 +08:00
10 lines
306 B
JavaScript
10 lines
306 B
JavaScript
"use strict";
|
|||
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
|
exports.splitStream = splitStream;
|
||
|
|
async function splitStream(stream) {
|
||
|
|
if (typeof stream.stream === "function") {
|
||
|
|
stream = stream.stream();
|
||
|
|
}
|
||
|
|
const readableStream = stream;
|
||
|
|
return readableStream.tee();
|
||
|
|
}
|