build: update distribution (#3736)

This commit is contained in:
actions-bot 2025-02-18 17:04:50 +00:00 committed by GitHub
parent a56e7a56e9
commit 25575a12f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

9
dist/index.js vendored
View File

@ -32717,7 +32717,7 @@ async function fetchWrapper(requestOptions) {
data: ""
};
if ("deprecation" in responseHeaders) {
const matches = responseHeaders.link && responseHeaders.link.match(/<([^>]+)>; rel="deprecation"/);
const matches = responseHeaders.link && responseHeaders.link.match(/<([^<>]+)>; rel="deprecation"/);
const deprecationLink = matches && matches.pop();
log.warn(
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${responseHeaders.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
@ -32758,7 +32758,7 @@ async function getResponseData(response) {
return response.text().catch(() => "");
}
const mimetype = (0,fast_content_type_parse/* safeParse */.xL)(contentType);
if (mimetype.type === "application/json") {
if (isJSONResponse(mimetype)) {
let text = "";
try {
text = await response.text();
@ -32772,6 +32772,9 @@ async function getResponseData(response) {
return response.arrayBuffer().catch(() => new ArrayBuffer(0));
}
}
function isJSONResponse(mimetype) {
return mimetype.type === "application/json" || mimetype.type === "application/scim+json";
}
function toErrorMessage(data) {
if (typeof data === "string") {
return data;
@ -32994,7 +32997,7 @@ var createTokenAuth = function createTokenAuth2(token) {
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/version.js
const version_VERSION = "6.1.3";
const version_VERSION = "6.1.4";
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/index.js