Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
234 changes: 138 additions & 96 deletions dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20055,8 +20055,8 @@ var require_semver = __commonJS({
}
}
var i;
exports2.parse = parse2;
function parse2(version, options) {
exports2.parse = parse3;
function parse3(version, options) {
if (!options || typeof options !== "object") {
options = {
loose: !!options,
Expand Down Expand Up @@ -20084,12 +20084,12 @@ var require_semver = __commonJS({
}
exports2.valid = valid;
function valid(version, options) {
var v = parse2(version, options);
var v = parse3(version, options);
return v ? v.version : null;
}
exports2.clean = clean;
function clean(version, options) {
var s = parse2(version.trim().replace(/^[=v]+/, ""), options);
var s = parse3(version.trim().replace(/^[=v]+/, ""), options);
return s ? s.version : null;
}
exports2.SemVer = SemVer;
Expand Down Expand Up @@ -20325,8 +20325,8 @@ var require_semver = __commonJS({
if (eq(version1, version2)) {
return null;
} else {
var v1 = parse2(version1);
var v2 = parse2(version2);
var v1 = parse3(version1);
var v2 = parse3(version2);
var prefix = "";
if (v1.prerelease.length || v2.prerelease.length) {
prefix = "pre";
Expand Down Expand Up @@ -21032,7 +21032,7 @@ var require_semver = __commonJS({
}
exports2.prerelease = prerelease;
function prerelease(version, options) {
var parsed = parse2(version, options);
var parsed = parse3(version, options);
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
}
exports2.intersects = intersects;
Expand Down Expand Up @@ -21069,7 +21069,7 @@ var require_semver = __commonJS({
if (match === null) {
return null;
}
return parse2(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
return parse3(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
}
}
});
Expand Down Expand Up @@ -22660,10 +22660,10 @@ var require_parse2 = __commonJS({
"npm/script/deps/jsr.io/@std/semver/1.0.8/parse.js"(exports2) {
"use strict";
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.parse = parse2;
exports2.parse = parse3;
var _shared_js_1 = require_shared();
var _shared_js_2 = require_shared();
function parse2(value) {
function parse3(value) {
if (typeof value !== "string") {
throw new TypeError(`Cannot parse version as version must be a string: received ${typeof value}`);
}
Expand Down Expand Up @@ -23489,99 +23489,134 @@ var init_dist_bundle = __esm({
}
});

// npm/node_modules/fast-content-type-parse/index.js
var require_fast_content_type_parse = __commonJS({
"npm/node_modules/fast-content-type-parse/index.js"(exports2, module2) {
// npm/node_modules/content-type/dist/index.js
var require_dist = __commonJS({
"npm/node_modules/content-type/dist/index.js"(exports2) {
"use strict";
var NullObject = function NullObject2() {
};
NullObject.prototype = /* @__PURE__ */ Object.create(null);
var paramRE = /; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu;
var quotedPairRE = /\\([\v\u0020-\u00ff])/gu;
var mediaTypeRE = /^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u;
var defaultContentType = { type: "", parameters: new NullObject() };
Object.freeze(defaultContentType.parameters);
Object.freeze(defaultContentType);
function parse2(header) {
if (typeof header !== "string") {
throw new TypeError("argument header is required and must be a string");
}
let index = header.indexOf(";");
const type = index !== -1 ? header.slice(0, index).trim() : header.trim();
if (mediaTypeRE.test(type) === false) {
throw new TypeError("invalid media type");
}
const result = {
type: type.toLowerCase(),
parameters: new NullObject()
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.format = format;
exports2.parse = parse3;
var TEXT_REGEXP = /^[\u0009\u0020-\u007e\u0080-\u00ff]*$/;
var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
var QUOTE_REGEXP = /[\\"]/g;
var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
var NullObject = /* @__PURE__ */ (() => {
const C = function() {
};
if (index === -1) {
return result;
C.prototype = /* @__PURE__ */ Object.create(null);
return C;
})();
function format(obj) {
const { type, parameters } = obj;
if (!type || !TYPE_REGEXP.test(type)) {
throw new TypeError(`Invalid type: ${type}`);
}
let key;
let match;
let value;
paramRE.lastIndex = index;
while (match = paramRE.exec(header)) {
if (match.index !== index) {
throw new TypeError("invalid parameter format");
}
index += match[0].length;
key = match[1].toLowerCase();
value = match[2];
if (value[0] === '"') {
value = value.slice(1, value.length - 1);
quotedPairRE.test(value) && (value = value.replace(quotedPairRE, "$1"));
let result = type;
if (parameters) {
for (const param of Object.keys(parameters)) {
if (!TOKEN_REGEXP.test(param)) {
throw new TypeError(`Invalid parameter name: ${param}`);
}
result += `; ${param}=${qstring(parameters[param])}`;
}
result.parameters[key] = value;
}
if (index !== header.length) {
throw new TypeError("invalid parameter format");
}
return result;
}
function safeParse2(header) {
if (typeof header !== "string") {
return defaultContentType;
}
let index = header.indexOf(";");
const type = index !== -1 ? header.slice(0, index).trim() : header.trim();
if (mediaTypeRE.test(type) === false) {
return defaultContentType;
function parse3(header, options) {
const len = header.length;
let index = skipOWS(header, 0, len);
const valueStart = index;
index = skipValue(header, index, len);
const valueEnd = trailingOWS(header, valueStart, index);
const type = header.slice(valueStart, valueEnd).toLowerCase();
const parameters = options?.parameters === false ? new NullObject() : parseParameters(header, index, len);
return { type, parameters };
}
var SP = 32;
var HTAB = 9;
var SEMI = 59;
var EQ = 61;
var DQUOTE = 34;
var BSLASH = 92;
function parseParameters(header, index, len) {
const parameters = new NullObject();
parameter: while (index < len) {
index = skipOWS(header, index + 1, len);
const keyStart = index;
while (index < len) {
const code = header.charCodeAt(index);
if (code === SEMI)
continue parameter;
if (code === EQ) {
const keyEnd = trailingOWS(header, keyStart, index);
const key = header.slice(keyStart, keyEnd).toLowerCase();
index = skipOWS(header, index + 1, len);
if (index < len && header.charCodeAt(index) === DQUOTE) {
index++;
let value = "";
while (index < len) {
const code2 = header.charCodeAt(index++);
if (code2 === DQUOTE) {
index = skipValue(header, index, len);
if (parameters[key] === void 0)
parameters[key] = value;
break;
}
if (code2 === BSLASH && index < len) {
value += header[index++];
continue;
}
value += String.fromCharCode(code2);
}
continue parameter;
}
const valueStart = index;
index = skipValue(header, index, len);
if (parameters[key] === void 0) {
const valueEnd = trailingOWS(header, valueStart, index);
parameters[key] = header.slice(valueStart, valueEnd);
}
continue parameter;
}
index++;
}
}
const result = {
type: type.toLowerCase(),
parameters: new NullObject()
};
if (index === -1) {
return result;
return parameters;
}
function skipValue(str, index, len) {
while (index < len) {
const char = str.charCodeAt(index);
if (char === SEMI)
break;
index++;
}
let key;
let match;
let value;
paramRE.lastIndex = index;
while (match = paramRE.exec(header)) {
if (match.index !== index) {
return defaultContentType;
}
index += match[0].length;
key = match[1].toLowerCase();
value = match[2];
if (value[0] === '"') {
value = value.slice(1, value.length - 1);
quotedPairRE.test(value) && (value = value.replace(quotedPairRE, "$1"));
}
result.parameters[key] = value;
return index;
}
function skipOWS(header, index, len) {
while (index < len) {
const char = header.charCodeAt(index);
if (char !== SP && char !== HTAB)
break;
index++;
}
if (index !== header.length) {
return defaultContentType;
return index;
}
function trailingOWS(header, start, end) {
while (end > start) {
const char = header.charCodeAt(end - 1);
if (char !== SP && char !== HTAB)
break;
end--;
}
return result;
return end;
}
function qstring(str) {
if (TOKEN_REGEXP.test(str))
return str;
if (TEXT_REGEXP.test(str))
return `"${str.replace(QUOTE_REGEXP, "\\$&")}"`;
throw new TypeError(`Invalid parameter value: ${str}`);
}
module2.exports.default = { parse: parse2, safeParse: safeParse2 };
module2.exports.parse = parse2;
module2.exports.safeParse = safeParse2;
module2.exports.defaultContentType = defaultContentType;
}
});

Expand Down Expand Up @@ -23849,7 +23884,7 @@ async function getResponseData(response) {
if (!contentType) {
return response.text().catch(noop);
}
const mimetype = (0, import_fast_content_type_parse.safeParse)(contentType);
const mimetype = (0, import_content_type.parse)(contentType);
if (isJSONResponse(mimetype)) {
let text = "";
try {
Expand Down Expand Up @@ -23906,15 +23941,15 @@ function withDefaults2(oldEndpoint, newDefaults) {
defaults: withDefaults2.bind(null, endpoint2)
});
}
var import_fast_content_type_parse, VERSION2, defaults_default, noop, request;
var import_content_type, VERSION2, defaults_default, noop, request;
var init_dist_bundle2 = __esm({
"npm/node_modules/@octokit/request/dist-bundle/index.js"() {
init_dist_bundle();
init_universal_user_agent();
import_fast_content_type_parse = __toESM(require_fast_content_type_parse(), 1);
import_content_type = __toESM(require_dist(), 1);
init_json_with_bigint();
init_dist_src();
VERSION2 = "10.0.8";
VERSION2 = "10.0.10";
defaults_default = {
headers: {
"user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
Expand Down Expand Up @@ -32259,6 +32294,13 @@ undici/lib/fetch/body.js:
undici/lib/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)

content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)

@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)

Expand All @@ -32270,7 +32312,7 @@ toad-cache/dist/toad-cache.mjs:
(**
* toad-cache
*
* @copyright 2024 Igor Savin <kibertoad@gmail.com>
* @copyright 2026 Igor Savin <kibertoad@gmail.com>
* @license MIT
* @version 3.7.0
*)
Expand Down
Loading