chore: Update dist

This commit is contained in:
GitHub Actions
2024-03-19 03:58:25 +00:00
parent 304d8d7e94
commit d0421aed0f
2 changed files with 30 additions and 8 deletions
Generated Vendored
+15 -4
View File
@@ -12332,11 +12332,22 @@ __name(writeRequestBody, "writeRequestBody");
function writeBody(httpRequest, body) {
if (body instanceof import_stream.Readable) {
body.pipe(httpRequest);
} else if (body) {
httpRequest.end(Buffer.from(body));
} else {
httpRequest.end();
return;
}
if (body) {
if (Buffer.isBuffer(body) || typeof body === "string") {
httpRequest.end(body);
return;
}
const uint8 = body;
if (typeof uint8 === "object" && uint8.buffer && typeof uint8.byteOffset === "number" && typeof uint8.byteLength === "number") {
httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength));
return;
}
httpRequest.end(Buffer.from(body));
return;
}
httpRequest.end();
}
__name(writeBody, "writeBody");
Generated Vendored
+15 -4
View File
@@ -12920,11 +12920,22 @@ __name(writeRequestBody, "writeRequestBody");
function writeBody(httpRequest, body) {
if (body instanceof import_stream.Readable) {
body.pipe(httpRequest);
} else if (body) {
httpRequest.end(Buffer.from(body));
} else {
httpRequest.end();
return;
}
if (body) {
if (Buffer.isBuffer(body) || typeof body === "string") {
httpRequest.end(body);
return;
}
const uint8 = body;
if (typeof uint8 === "object" && uint8.buffer && typeof uint8.byteOffset === "number" && typeof uint8.byteLength === "number") {
httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength));
return;
}
httpRequest.end(Buffer.from(body));
return;
}
httpRequest.end();
}
__name(writeBody, "writeBody");