mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-12-01 12:24:23 +01:00
chore: Update dist
This commit is contained in:
1 parent
304d8d7e94
commit
d0421aed0f
2 files changed
+30
-8
No files matched your search
+15
-4
@@ -12332,11 +12332,22 @@ __name(writeRequestBody, "writeRequestBody");
|
|||||||
function writeBody(httpRequest, body) {
|
function writeBody(httpRequest, body) {
|
||||||
if (body instanceof import_stream.Readable) {
|
if (body instanceof import_stream.Readable) {
|
||||||
body.pipe(httpRequest);
|
body.pipe(httpRequest);
|
||||||
} else if (body) {
|
return;
|
||||||
httpRequest.end(Buffer.from(body));
|
|
||||||
} else {
|
|
||||||
httpRequest.end();
|
|
||||||
}
|
}
|
||||||
|
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");
|
__name(writeBody, "writeBody");
|
||||||
|
|
||||||
|
|||||||
+15
-4
@@ -12920,11 +12920,22 @@ __name(writeRequestBody, "writeRequestBody");
|
|||||||
function writeBody(httpRequest, body) {
|
function writeBody(httpRequest, body) {
|
||||||
if (body instanceof import_stream.Readable) {
|
if (body instanceof import_stream.Readable) {
|
||||||
body.pipe(httpRequest);
|
body.pipe(httpRequest);
|
||||||
} else if (body) {
|
return;
|
||||||
httpRequest.end(Buffer.from(body));
|
|
||||||
} else {
|
|
||||||
httpRequest.end();
|
|
||||||
}
|
}
|
||||||
|
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");
|
__name(writeBody, "writeBody");
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user