mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-01 05:45:06 +09:00
chore: Update dist
This commit is contained in:
+15
-4
@@ -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");
|
||||
|
||||
|
||||
+15
-4
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user