Skip to content

Commit 25575a1

Browse files
authored
build: update distribution (#3736)
1 parent a56e7a5 commit 25575a1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dist/index.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -32717,7 +32717,7 @@ async function fetchWrapper(requestOptions) {
3271732717
data: ""
3271832718
};
3271932719
if ("deprecation" in responseHeaders) {
32720-
const matches = responseHeaders.link && responseHeaders.link.match(/<([^>]+)>; rel="deprecation"/);
32720+
const matches = responseHeaders.link && responseHeaders.link.match(/<([^<>]+)>; rel="deprecation"/);
3272132721
const deprecationLink = matches && matches.pop();
3272232722
log.warn(
3272332723
`[@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) {
3275832758
return response.text().catch(() => "");
3275932759
}
3276032760
const mimetype = (0,fast_content_type_parse/* safeParse */.xL)(contentType);
32761-
if (mimetype.type === "application/json") {
32761+
if (isJSONResponse(mimetype)) {
3276232762
let text = "";
3276332763
try {
3276432764
text = await response.text();
@@ -32772,6 +32772,9 @@ async function getResponseData(response) {
3277232772
return response.arrayBuffer().catch(() => new ArrayBuffer(0));
3277332773
}
3277432774
}
32775+
function isJSONResponse(mimetype) {
32776+
return mimetype.type === "application/json" || mimetype.type === "application/scim+json";
32777+
}
3277532778
function toErrorMessage(data) {
3277632779
if (typeof data === "string") {
3277732780
return data;
@@ -32994,7 +32997,7 @@ var createTokenAuth = function createTokenAuth2(token) {
3299432997

3299532998

3299632999
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/version.js
32997-
const version_VERSION = "6.1.3";
33000+
const version_VERSION = "6.1.4";
3299833001

3299933002

3300033003
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/index.js

0 commit comments

Comments
 (0)