Skip to content

Commit f390e2d

Browse files
angular-robotthePunderWoman
authored andcommitted
build: lock file maintenance
See associated pull request for more information.
1 parent dd77363 commit f390e2d

File tree

26 files changed

+8459
-5902
lines changed

26 files changed

+8459
-5902
lines changed

.github/actions/deploy-docs-site/main.js

Lines changed: 135 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10271,7 +10271,7 @@ function isKeyOperator(operator) {
1027110271
function getValues(context3, operator, key, modifier) {
1027210272
var value = context3[key], result = [];
1027310273
if (isDefined(value) && value !== "") {
10274-
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
10274+
if (typeof value === "string" || typeof value === "number" || typeof value === "bigint" || typeof value === "boolean") {
1027510275
value = value.toString();
1027610276
if (modifier && modifier !== "*") {
1027710277
value = value.substring(0, parseInt(modifier, 10));
@@ -10452,6 +10452,108 @@ var endpoint = withDefaults(null, DEFAULTS);
1045210452
//
1045310453
var import_fast_content_type_parse = __toESM(require_fast_content_type_parse());
1045410454

10455+
//
10456+
var intRegex = /^-?\d+$/;
10457+
var noiseValue = /^-?\d+n+$/;
10458+
var originalStringify = JSON.stringify;
10459+
var originalParse = JSON.parse;
10460+
var customFormat = /^-?\d+n$/;
10461+
var bigIntsStringify = /([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;
10462+
var noiseStringify = /([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;
10463+
var JSONStringify = (value, replacer, space) => {
10464+
if ("rawJSON" in JSON) {
10465+
return originalStringify(
10466+
value,
10467+
(key, value2) => {
10468+
if (typeof value2 === "bigint")
10469+
return JSON.rawJSON(value2.toString());
10470+
if (typeof replacer === "function")
10471+
return replacer(key, value2);
10472+
if (Array.isArray(replacer) && replacer.includes(key))
10473+
return value2;
10474+
return value2;
10475+
},
10476+
space
10477+
);
10478+
}
10479+
if (!value)
10480+
return originalStringify(value, replacer, space);
10481+
const convertedToCustomJSON = originalStringify(
10482+
value,
10483+
(key, value2) => {
10484+
const isNoise = typeof value2 === "string" && Boolean(value2.match(noiseValue));
10485+
if (isNoise)
10486+
return value2.toString() + "n";
10487+
if (typeof value2 === "bigint")
10488+
return value2.toString() + "n";
10489+
if (typeof replacer === "function")
10490+
return replacer(key, value2);
10491+
if (Array.isArray(replacer) && replacer.includes(key))
10492+
return value2;
10493+
return value2;
10494+
},
10495+
space
10496+
);
10497+
const processedJSON = convertedToCustomJSON.replace(
10498+
bigIntsStringify,
10499+
"$1$2$3"
10500+
);
10501+
const denoisedJSON = processedJSON.replace(noiseStringify, "$1$2$3");
10502+
return denoisedJSON;
10503+
};
10504+
var isContextSourceSupported = () => JSON.parse("1", (_, __, context3) => !!context3 && context3.source === "1");
10505+
var convertMarkedBigIntsReviver = (key, value, context3, userReviver) => {
10506+
const isCustomFormatBigInt = typeof value === "string" && value.match(customFormat);
10507+
if (isCustomFormatBigInt)
10508+
return BigInt(value.slice(0, -1));
10509+
const isNoiseValue = typeof value === "string" && value.match(noiseValue);
10510+
if (isNoiseValue)
10511+
return value.slice(0, -1);
10512+
if (typeof userReviver !== "function")
10513+
return value;
10514+
return userReviver(key, value, context3);
10515+
};
10516+
var JSONParseV2 = (text, reviver) => {
10517+
return JSON.parse(text, (key, value, context3) => {
10518+
const isBigNumber = typeof value === "number" && (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER);
10519+
const isInt = context3 && intRegex.test(context3.source);
10520+
const isBigInt = isBigNumber && isInt;
10521+
if (isBigInt)
10522+
return BigInt(context3.source);
10523+
if (typeof reviver !== "function")
10524+
return value;
10525+
return reviver(key, value, context3);
10526+
});
10527+
};
10528+
var MAX_INT = Number.MAX_SAFE_INTEGER.toString();
10529+
var MAX_DIGITS = MAX_INT.length;
10530+
var stringsOrLargeNumbers = /"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g;
10531+
var noiseValueWithQuotes = /^"-?\d+n+"$/;
10532+
var JSONParse = (text, reviver) => {
10533+
if (!text)
10534+
return originalParse(text, reviver);
10535+
if (isContextSourceSupported())
10536+
return JSONParseV2(text, reviver);
10537+
const serializedData = text.replace(
10538+
stringsOrLargeNumbers,
10539+
(text2, digits, fractional, exponential) => {
10540+
const isString = text2[0] === '"';
10541+
const isNoise = isString && Boolean(text2.match(noiseValueWithQuotes));
10542+
if (isNoise)
10543+
return text2.substring(0, text2.length - 1) + 'n"';
10544+
const isFractionalOrExponential = fractional || exponential;
10545+
const isLessThanMaxSafeInt = digits && (digits.length < MAX_DIGITS || digits.length === MAX_DIGITS && digits <= MAX_INT);
10546+
if (isString || isFractionalOrExponential || isLessThanMaxSafeInt)
10547+
return text2;
10548+
return '"' + text2 + 'n"';
10549+
}
10550+
);
10551+
return originalParse(
10552+
serializedData,
10553+
(key, value, context3) => convertMarkedBigIntsReviver(key, value, context3, reviver)
10554+
);
10555+
};
10556+
1045510557
//
1045610558
var RequestError = class extends Error {
1045710559
name;
@@ -10492,7 +10594,7 @@ var RequestError = class extends Error {
1049210594
};
1049310595

1049410596
//
10495-
var VERSION2 = "10.0.7";
10597+
var VERSION2 = "10.0.8";
1049610598
var defaults_default = {
1049710599
headers: {
1049810600
"user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
@@ -10519,7 +10621,7 @@ async function fetchWrapper(requestOptions) {
1051910621
}
1052010622
const log = requestOptions.request?.log || console;
1052110623
const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
10522-
const body = isPlainObject2(requestOptions.body) || Array.isArray(requestOptions.body) ? JSON.stringify(requestOptions.body) : requestOptions.body;
10624+
const body = isPlainObject2(requestOptions.body) || Array.isArray(requestOptions.body) ? JSONStringify(requestOptions.body) : requestOptions.body;
1052310625
const requestHeaders = Object.fromEntries(
1052410626
Object.entries(requestOptions.headers).map(([name, value]) => [
1052510627
name,
@@ -10618,7 +10720,7 @@ async function getResponseData(response) {
1061810720
let text = "";
1061910721
try {
1062010722
text = await response.text();
10621-
return JSON.parse(text);
10723+
return JSONParse(text);
1062210724
} catch (err) {
1062310725
return text;
1062410726
}
@@ -29043,12 +29145,12 @@ function withDefaults4(oldDefaults, newDefaults) {
2904329145
}
2904429146
var endpoint2 = withDefaults4(null, DEFAULTS2);
2904529147
var import_fast_content_type_parse2 = __toESM2(require_fast_content_type_parse2());
29046-
var noiseValue = /^-?\d+n+$/;
29047-
var originalStringify = JSON.stringify;
29048-
var originalParse = JSON.parse;
29049-
var JSONStringify = (value, replacer, space) => {
29148+
var noiseValue2 = /^-?\d+n+$/;
29149+
var originalStringify2 = JSON.stringify;
29150+
var originalParse2 = JSON.parse;
29151+
var JSONStringify2 = (value, replacer, space) => {
2905029152
if ("rawJSON" in JSON) {
29051-
return originalStringify(
29153+
return originalStringify2(
2905229154
value,
2905329155
(key, value2) => {
2905429156
if (typeof value2 === "bigint")
@@ -29063,13 +29165,13 @@ var JSONStringify = (value, replacer, space) => {
2906329165
);
2906429166
}
2906529167
if (!value)
29066-
return originalStringify(value, replacer, space);
29168+
return originalStringify2(value, replacer, space);
2906729169
const bigInts = /([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;
2906829170
const noise = /([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;
29069-
const convertedToCustomJSON = originalStringify(
29171+
const convertedToCustomJSON = originalStringify2(
2907029172
value,
2907129173
(key, value2) => {
29072-
const isNoise = typeof value2 === "string" && Boolean(value2.match(noiseValue));
29174+
const isNoise = typeof value2 === "string" && Boolean(value2.match(noiseValue2));
2907329175
if (isNoise)
2907429176
return value2.toString() + "n";
2907529177
if (typeof value2 === "bigint")
@@ -29086,12 +29188,12 @@ var JSONStringify = (value, replacer, space) => {
2908629188
const denoisedJSON = processedJSON.replace(noise, "$1$2$3");
2908729189
return denoisedJSON;
2908829190
};
29089-
var isContextSourceSupported = () => JSON.parse("1", (_, __, context3) => !!context3 && context3.source === "1");
29090-
var JSONParseV2 = (text, reviver) => {
29091-
const intRegex = /^-?\d+$/;
29191+
var isContextSourceSupported2 = () => JSON.parse("1", (_, __, context3) => !!context3 && context3.source === "1");
29192+
var JSONParseV22 = (text, reviver) => {
29193+
const intRegex2 = /^-?\d+$/;
2909229194
return JSON.parse(text, (key, value, context3) => {
2909329195
const isBigNumber = typeof value === "number" && (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER);
29094-
const isInt = intRegex.test(context3.source);
29196+
const isInt = intRegex2.test(context3.source);
2909529197
const isBigInt = isBigNumber && isInt;
2909629198
if (isBigInt)
2909729199
return BigInt(context3.source);
@@ -29100,35 +29202,35 @@ var JSONParseV2 = (text, reviver) => {
2910029202
return reviver(key, value, context3);
2910129203
});
2910229204
};
29103-
var JSONParse = (text, reviver) => {
29205+
var JSONParse2 = (text, reviver) => {
2910429206
if (!text)
29105-
return originalParse(text, reviver);
29106-
if (isContextSourceSupported())
29107-
return JSONParseV2(text, reviver);
29108-
const MAX_INT = Number.MAX_SAFE_INTEGER.toString();
29109-
const MAX_DIGITS = MAX_INT.length;
29110-
const stringsOrLargeNumbers = /"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g;
29111-
const noiseValueWithQuotes = /^"-?\d+n+"$/;
29112-
const customFormat = /^-?\d+n$/;
29207+
return originalParse2(text, reviver);
29208+
if (isContextSourceSupported2())
29209+
return JSONParseV22(text, reviver);
29210+
const MAX_INT2 = Number.MAX_SAFE_INTEGER.toString();
29211+
const MAX_DIGITS2 = MAX_INT2.length;
29212+
const stringsOrLargeNumbers2 = /"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g;
29213+
const noiseValueWithQuotes2 = /^"-?\d+n+"$/;
29214+
const customFormat2 = /^-?\d+n$/;
2911329215
const serializedData = text.replace(
29114-
stringsOrLargeNumbers,
29216+
stringsOrLargeNumbers2,
2911529217
(text2, digits, fractional, exponential) => {
2911629218
const isString = text2[0] === '"';
29117-
const isNoise = isString && Boolean(text2.match(noiseValueWithQuotes));
29219+
const isNoise = isString && Boolean(text2.match(noiseValueWithQuotes2));
2911829220
if (isNoise)
2911929221
return text2.substring(0, text2.length - 1) + 'n"';
2912029222
const isFractionalOrExponential = fractional || exponential;
29121-
const isLessThanMaxSafeInt = digits && (digits.length < MAX_DIGITS || digits.length === MAX_DIGITS && digits <= MAX_INT);
29223+
const isLessThanMaxSafeInt = digits && (digits.length < MAX_DIGITS2 || digits.length === MAX_DIGITS2 && digits <= MAX_INT2);
2912229224
if (isString || isFractionalOrExponential || isLessThanMaxSafeInt)
2912329225
return text2;
2912429226
return '"' + text2 + 'n"';
2912529227
}
2912629228
);
29127-
return originalParse(serializedData, (key, value, context3) => {
29128-
const isCustomFormatBigInt = typeof value === "string" && Boolean(value.match(customFormat));
29229+
return originalParse2(serializedData, (key, value, context3) => {
29230+
const isCustomFormatBigInt = typeof value === "string" && Boolean(value.match(customFormat2));
2912929231
if (isCustomFormatBigInt)
2913029232
return BigInt(value.substring(0, value.length - 1));
29131-
const isNoiseValue = typeof value === "string" && Boolean(value.match(noiseValue));
29233+
const isNoiseValue = typeof value === "string" && Boolean(value.match(noiseValue2));
2913229234
if (isNoiseValue)
2913329235
return value.substring(0, value.length - 1);
2913429236
if (typeof reviver !== "function")
@@ -29200,7 +29302,7 @@ async function fetchWrapper2(requestOptions) {
2920029302
}
2920129303
const log = requestOptions.request?.log || console;
2920229304
const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
29203-
const body = isPlainObject22(requestOptions.body) || Array.isArray(requestOptions.body) ? JSONStringify(requestOptions.body) : requestOptions.body;
29305+
const body = isPlainObject22(requestOptions.body) || Array.isArray(requestOptions.body) ? JSONStringify2(requestOptions.body) : requestOptions.body;
2920429306
const requestHeaders = Object.fromEntries(
2920529307
Object.entries(requestOptions.headers).map(([name, value]) => [
2920629308
name,
@@ -29299,7 +29401,7 @@ async function getResponseData2(response) {
2929929401
let text = "";
2930029402
try {
2930129403
text = await response.text();
29302-
return JSONParse(text);
29404+
return JSONParse2(text);
2930329405
} catch (err) {
2930429406
return text;
2930529407
}

0 commit comments

Comments
 (0)