diff --git a/dist/index.js b/dist/index.js index 35edb35..1f1f609 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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