@@ -23291,7 +23291,7 @@ function isKeyOperator(operator) {
2329123291function getValues(context, operator, key, modifier) {
2329223292 var value = context[key], result = [];
2329323293 if (isDefined(value) && value !== "") {
23294- if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
23294+ if (typeof value === "string" || typeof value === "number" || typeof value === "bigint" || typeof value === " boolean") {
2329523295 value = value.toString();
2329623296 if (modifier && modifier !== "*") {
2329723297 value = value.substring(0, parseInt(modifier, 10));
@@ -23585,6 +23585,97 @@ var require_fast_content_type_parse = __commonJS({
2358523585 }
2358623586});
2358723587
23588+ // npm/node_modules/json-with-bigint/json-with-bigint.js
23589+ var intRegex, noiseValue, originalStringify, originalParse, customFormat, bigIntsStringify, noiseStringify, JSONStringify, isContextSourceSupported, convertMarkedBigIntsReviver, JSONParseV2, MAX_INT, MAX_DIGITS, stringsOrLargeNumbers, noiseValueWithQuotes, JSONParse;
23590+ var init_json_with_bigint = __esm({
23591+ "npm/node_modules/json-with-bigint/json-with-bigint.js"() {
23592+ intRegex = /^-?\d+$/;
23593+ noiseValue = /^-?\d+n+$/;
23594+ originalStringify = JSON.stringify;
23595+ originalParse = JSON.parse;
23596+ customFormat = /^-?\d+n$/;
23597+ bigIntsStringify = /([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;
23598+ noiseStringify = /([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;
23599+ JSONStringify = (value, replacer, space) => {
23600+ if ("rawJSON" in JSON) {
23601+ return originalStringify(
23602+ value,
23603+ (key, value2) => {
23604+ if (typeof value2 === "bigint") return JSON.rawJSON(value2.toString());
23605+ if (typeof replacer === "function") return replacer(key, value2);
23606+ if (Array.isArray(replacer) && replacer.includes(key)) return value2;
23607+ return value2;
23608+ },
23609+ space
23610+ );
23611+ }
23612+ if (!value) return originalStringify(value, replacer, space);
23613+ const convertedToCustomJSON = originalStringify(
23614+ value,
23615+ (key, value2) => {
23616+ const isNoise = typeof value2 === "string" && Boolean(value2.match(noiseValue));
23617+ if (isNoise) return value2.toString() + "n";
23618+ if (typeof value2 === "bigint") return value2.toString() + "n";
23619+ if (typeof replacer === "function") return replacer(key, value2);
23620+ if (Array.isArray(replacer) && replacer.includes(key)) return value2;
23621+ return value2;
23622+ },
23623+ space
23624+ );
23625+ const processedJSON = convertedToCustomJSON.replace(
23626+ bigIntsStringify,
23627+ "$1$2$3"
23628+ );
23629+ const denoisedJSON = processedJSON.replace(noiseStringify, "$1$2$3");
23630+ return denoisedJSON;
23631+ };
23632+ isContextSourceSupported = () => JSON.parse("1", (_, __, context) => !!context && context.source === "1");
23633+ convertMarkedBigIntsReviver = (key, value, context, userReviver) => {
23634+ const isCustomFormatBigInt = typeof value === "string" && value.match(customFormat);
23635+ if (isCustomFormatBigInt) return BigInt(value.slice(0, -1));
23636+ const isNoiseValue = typeof value === "string" && value.match(noiseValue);
23637+ if (isNoiseValue) return value.slice(0, -1);
23638+ if (typeof userReviver !== "function") return value;
23639+ return userReviver(key, value, context);
23640+ };
23641+ JSONParseV2 = (text, reviver) => {
23642+ return JSON.parse(text, (key, value, context) => {
23643+ const isBigNumber = typeof value === "number" && (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER);
23644+ const isInt = context && intRegex.test(context.source);
23645+ const isBigInt = isBigNumber && isInt;
23646+ if (isBigInt) return BigInt(context.source);
23647+ if (typeof reviver !== "function") return value;
23648+ return reviver(key, value, context);
23649+ });
23650+ };
23651+ MAX_INT = Number.MAX_SAFE_INTEGER.toString();
23652+ MAX_DIGITS = MAX_INT.length;
23653+ stringsOrLargeNumbers = /"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g;
23654+ noiseValueWithQuotes = /^"-?\d+n+"$/;
23655+ JSONParse = (text, reviver) => {
23656+ if (!text) return originalParse(text, reviver);
23657+ if (isContextSourceSupported()) return JSONParseV2(text, reviver);
23658+ const serializedData = text.replace(
23659+ stringsOrLargeNumbers,
23660+ (text2, digits, fractional, exponential) => {
23661+ const isString = text2[0] === '"';
23662+ const isNoise = isString && Boolean(text2.match(noiseValueWithQuotes));
23663+ if (isNoise) return text2.substring(0, text2.length - 1) + 'n"';
23664+ const isFractionalOrExponential = fractional || exponential;
23665+ const isLessThanMaxSafeInt = digits && (digits.length < MAX_DIGITS || digits.length === MAX_DIGITS && digits <= MAX_INT);
23666+ if (isString || isFractionalOrExponential || isLessThanMaxSafeInt)
23667+ return text2;
23668+ return '"' + text2 + 'n"';
23669+ }
23670+ );
23671+ return originalParse(
23672+ serializedData,
23673+ (key, value, context) => convertMarkedBigIntsReviver(key, value, context, reviver)
23674+ );
23675+ };
23676+ }
23677+ });
23678+
2358823679// npm/node_modules/@octokit/request-error/dist-src/index.js
2358923680var RequestError;
2359023681var init_dist_src = __esm({
@@ -23647,7 +23738,7 @@ async function fetchWrapper(requestOptions) {
2364723738 }
2364823739 const log = requestOptions.request?.log || console;
2364923740 const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
23650- const body = isPlainObject2(requestOptions.body) || Array.isArray(requestOptions.body) ? JSON.stringify (requestOptions.body) : requestOptions.body;
23741+ const body = isPlainObject2(requestOptions.body) || Array.isArray(requestOptions.body) ? JSONStringify (requestOptions.body) : requestOptions.body;
2365123742 const requestHeaders = Object.fromEntries(
2365223743 Object.entries(requestOptions.headers).map(([name, value]) => [
2365323744 name,
@@ -23746,7 +23837,7 @@ async function getResponseData(response) {
2374623837 let text = "";
2374723838 try {
2374823839 text = await response.text();
23749- return JSON.parse (text);
23840+ return JSONParse (text);
2375023841 } catch (err) {
2375123842 return text;
2375223843 }
@@ -23804,8 +23895,9 @@ var init_dist_bundle2 = __esm({
2380423895 init_dist_bundle();
2380523896 init_universal_user_agent();
2380623897 import_fast_content_type_parse = __toESM(require_fast_content_type_parse(), 1);
23898+ init_json_with_bigint();
2380723899 init_dist_src();
23808- VERSION2 = "10.0.7 ";
23900+ VERSION2 = "10.0.8 ";
2380923901 defaults_default = {
2381023902 headers: {
2381123903 "user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
@@ -28197,8 +28289,11 @@ var require_light = __commonJS({
2819728289});
2819828290
2819928291// npm/node_modules/@octokit/plugin-retry/dist-bundle/index.js
28292+ function isRequestError(error) {
28293+ return error.request !== void 0;
28294+ }
2820028295async function errorRequest(state, octokit, error, options) {
28201- if (!error.request || !error.request.request) {
28296+ if (!isRequestError( error) || !error? .request.request) {
2820228297 throw error;
2820328298 }
2820428299 if (error.status >= 400 && !state.doNotRetry.includes(error.status)) {
@@ -28211,8 +28306,8 @@ async function errorRequest(state, octokit, error, options) {
2821128306async function wrapRequest(state, octokit, request2, options) {
2821228307 const limiter = new import_light.default();
2821328308 limiter.on("failed", function(error, info) {
28214- const maxRetries = ~~error.request.request.retries;
28215- const after = ~~error.request.request.retryAfter;
28309+ const maxRetries = ~~error.request.request? .retries;
28310+ const after = ~~error.request.request? .retryAfter;
2821628311 options.request.retryCount = info.retryCount + 1;
2821728312 if (maxRetries > info.retryCount) {
2821828313 return after * state.retryAfterBaseValue;
@@ -28224,7 +28319,7 @@ async function wrapRequest(state, octokit, request2, options) {
2822428319 );
2822528320}
2822628321async function requestWithGraphqlErrorHandling(state, octokit, request2, options) {
28227- const response = await request2(request2, options);
28322+ const response = await request2(options);
2822828323 if (response.data && response.data.errors && response.data.errors.length > 0 && /Something went wrong while executing your query/.test(
2822928324 response.data.errors[0].message
2823028325 )) {
@@ -28246,11 +28341,7 @@ function retry(octokit, octokitOptions) {
2824628341 },
2824728342 octokitOptions.retry
2824828343 );
28249- if (state.enabled) {
28250- octokit.hook.error("request", errorRequest.bind(null, state, octokit));
28251- octokit.hook.wrap("request", wrapRequest.bind(null, state, octokit));
28252- }
28253- return {
28344+ const retryPlugin = {
2825428345 retry: {
2825528346 retryRequest: (error, retries, retryAfter) => {
2825628347 error.request.request = Object.assign({}, error.request.request, {
@@ -28261,6 +28352,11 @@ function retry(octokit, octokitOptions) {
2826128352 }
2826228353 }
2826328354 };
28355+ if (state.enabled) {
28356+ octokit.hook.error("request", errorRequest.bind(null, state, retryPlugin));
28357+ octokit.hook.wrap("request", wrapRequest.bind(null, state, retryPlugin));
28358+ }
28359+ return retryPlugin;
2826428360}
2826528361var import_light, VERSION7;
2826628362var init_dist_bundle7 = __esm({
0 commit comments