build: update distribution (#3736)
This commit is contained in:
parent
a56e7a56e9
commit
25575a12f3
9
dist/index.js
vendored
9
dist/index.js
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user