Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| af35edadc0 | |||
| a24b46a462 | |||
| 21cfef2b49 | |||
| 1ff1dea6a9 | |||
| 0d564482f0 | |||
| 8cedd97af1 | |||
| 415f6a523d | |||
| c14f92a8f9 | |||
| d30def842e | |||
| a5be4722a6 |
Vendored
+351
-99
@@ -5260,6 +5260,13 @@ var require_body = __commonJS({
|
||||
var { isUint8Array, isArrayBuffer } = require("util/types");
|
||||
var { File: UndiciFile } = require_file();
|
||||
var { parseMIMEType, serializeAMimeType } = require_dataURL();
|
||||
var random;
|
||||
try {
|
||||
const crypto = require("node:crypto");
|
||||
random = (max) => crypto.randomInt(0, max);
|
||||
} catch {
|
||||
random = (max) => Math.floor(Math.random(max));
|
||||
}
|
||||
var ReadableStream2 = globalThis.ReadableStream;
|
||||
var File = NativeFile ?? UndiciFile;
|
||||
var textEncoder = new TextEncoder();
|
||||
@@ -5302,7 +5309,7 @@ var require_body = __commonJS({
|
||||
} else if (ArrayBuffer.isView(object)) {
|
||||
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength));
|
||||
} else if (util.isFormDataLike(object)) {
|
||||
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, "0")}`;
|
||||
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, "0")}`;
|
||||
const prefix = `--${boundary}\r
|
||||
Content-Disposition: form-data`;
|
||||
const escape = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
|
||||
@@ -8858,6 +8865,14 @@ var require_pool = __commonJS({
|
||||
this[kOptions] = { ...util.deepClone(options), connect, allowH2 };
|
||||
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0;
|
||||
this[kFactory] = factory;
|
||||
this.on("connectionError", (origin2, targets, error) => {
|
||||
for (const target of targets) {
|
||||
const idx = this[kClients].indexOf(target);
|
||||
if (idx !== -1) {
|
||||
this[kClients].splice(idx, 1);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
[kGetDispatcher]() {
|
||||
let dispatcher = this[kClients].find((dispatcher2) => !dispatcher2[kNeedDrain]);
|
||||
@@ -11528,6 +11543,7 @@ var require_headers = __commonJS({
|
||||
isValidHeaderName,
|
||||
isValidHeaderValue
|
||||
} = require_util2();
|
||||
var util = require("util");
|
||||
var { webidl } = require_webidl();
|
||||
var assert = require("assert");
|
||||
var kHeadersMap = Symbol("headers map");
|
||||
@@ -11879,6 +11895,9 @@ var require_headers = __commonJS({
|
||||
[Symbol.toStringTag]: {
|
||||
value: "Headers",
|
||||
configurable: true
|
||||
},
|
||||
[util.inspect.custom]: {
|
||||
enumerable: false
|
||||
}
|
||||
});
|
||||
webidl.converters.HeadersInit = function(V) {
|
||||
@@ -15468,8 +15487,6 @@ var require_constants4 = __commonJS({
|
||||
var require_util6 = __commonJS({
|
||||
"node_modules/@actions/http-client/node_modules/undici/lib/cookies/util.js"(exports2, module2) {
|
||||
"use strict";
|
||||
var assert = require("assert");
|
||||
var { kHeadersList } = require_symbols();
|
||||
function isCTLExcludingHtab(value) {
|
||||
if (value.length === 0) {
|
||||
return false;
|
||||
@@ -15600,25 +15617,13 @@ var require_util6 = __commonJS({
|
||||
}
|
||||
return out.join("; ");
|
||||
}
|
||||
var kHeadersListNode;
|
||||
function getHeadersList(headers) {
|
||||
if (headers[kHeadersList]) {
|
||||
return headers[kHeadersList];
|
||||
}
|
||||
if (!kHeadersListNode) {
|
||||
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
|
||||
(symbol) => symbol.description === "headers list"
|
||||
);
|
||||
assert(kHeadersListNode, "Headers cannot be parsed");
|
||||
}
|
||||
const headersList = headers[kHeadersListNode];
|
||||
assert(headersList);
|
||||
return headersList;
|
||||
}
|
||||
module2.exports = {
|
||||
isCTLExcludingHtab,
|
||||
stringify,
|
||||
getHeadersList
|
||||
validateCookieName,
|
||||
validateCookiePath,
|
||||
validateCookieValue,
|
||||
toIMFDate,
|
||||
stringify
|
||||
};
|
||||
}
|
||||
});
|
||||
@@ -15768,7 +15773,7 @@ var require_cookies = __commonJS({
|
||||
"node_modules/@actions/http-client/node_modules/undici/lib/cookies/index.js"(exports2, module2) {
|
||||
"use strict";
|
||||
var { parseSetCookie } = require_parse();
|
||||
var { stringify, getHeadersList } = require_util6();
|
||||
var { stringify } = require_util6();
|
||||
var { webidl } = require_webidl();
|
||||
var { Headers } = require_headers();
|
||||
function getCookies(headers) {
|
||||
@@ -15800,11 +15805,11 @@ var require_cookies = __commonJS({
|
||||
function getSetCookies(headers) {
|
||||
webidl.argumentLengthCheck(arguments, 1, { header: "getSetCookies" });
|
||||
webidl.brandCheck(headers, Headers, { strict: false });
|
||||
const cookies = getHeadersList(headers).cookies;
|
||||
const cookies = headers.getSetCookie();
|
||||
if (!cookies) {
|
||||
return [];
|
||||
}
|
||||
return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair));
|
||||
return cookies.map((pair) => parseSetCookie(pair));
|
||||
}
|
||||
function setCookie(headers, cookie) {
|
||||
webidl.argumentLengthCheck(arguments, 2, { header: "setCookie" });
|
||||
@@ -25550,7 +25555,7 @@ var require_body2 = __commonJS({
|
||||
const crypto = require("node:crypto");
|
||||
random = (max) => crypto.randomInt(0, max);
|
||||
} catch {
|
||||
random = (max) => Math.floor(Math.random(max));
|
||||
random = (max) => Math.floor(Math.random() * max);
|
||||
}
|
||||
var textEncoder = new TextEncoder();
|
||||
function noop() {
|
||||
@@ -27754,7 +27759,7 @@ var require_client2 = __commonJS({
|
||||
allowH2,
|
||||
socketPath,
|
||||
timeout: connectTimeout,
|
||||
...autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
|
||||
...typeof autoSelectFamily === "boolean" ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
|
||||
...connect2
|
||||
});
|
||||
}
|
||||
@@ -28390,7 +28395,7 @@ var require_pool2 = __commonJS({
|
||||
allowH2,
|
||||
socketPath,
|
||||
timeout: connectTimeout,
|
||||
...autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
|
||||
...typeof autoSelectFamily === "boolean" ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
|
||||
...connect
|
||||
});
|
||||
}
|
||||
@@ -28399,6 +28404,14 @@ var require_pool2 = __commonJS({
|
||||
this[kOptions] = { ...util.deepClone(options), connect, allowH2 };
|
||||
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0;
|
||||
this[kFactory] = factory;
|
||||
this.on("connectionError", (origin2, targets, error) => {
|
||||
for (const target of targets) {
|
||||
const idx = this[kClients].indexOf(target);
|
||||
if (idx !== -1) {
|
||||
this[kClients].splice(idx, 1);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
[kGetDispatcher]() {
|
||||
for (const client of this[kClients]) {
|
||||
@@ -28815,7 +28828,6 @@ var require_env_http_proxy_agent = __commonJS({
|
||||
"http:": 80,
|
||||
"https:": 443
|
||||
};
|
||||
var experimentalWarned = false;
|
||||
var EnvHttpProxyAgent = class extends DispatcherBase {
|
||||
#noProxyValue = null;
|
||||
#noProxyEntries = null;
|
||||
@@ -28823,12 +28835,6 @@ var require_env_http_proxy_agent = __commonJS({
|
||||
constructor(opts = {}) {
|
||||
super();
|
||||
this.#opts = opts;
|
||||
if (!experimentalWarned) {
|
||||
experimentalWarned = true;
|
||||
process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.", {
|
||||
code: "UNDICI-EHPA"
|
||||
});
|
||||
}
|
||||
const { httpProxy, httpsProxy, noProxy, ...agentOpts } = opts;
|
||||
this[kNoProxyAgent] = new Agent(agentOpts);
|
||||
const HTTP_PROXY = httpProxy ?? process.env.http_proxy ?? process.env.HTTP_PROXY;
|
||||
@@ -28953,8 +28959,8 @@ var require_retry_handler = __commonJS({
|
||||
wrapRequestBody
|
||||
} = require_util8();
|
||||
function calculateRetryAfterHeader(retryAfter) {
|
||||
const current = Date.now();
|
||||
return new Date(retryAfter).getTime() - current;
|
||||
const retryTime = new Date(retryAfter).getTime();
|
||||
return isNaN(retryTime) ? 0 : retryTime - Date.now();
|
||||
}
|
||||
var RetryHandler = class _RetryHandler {
|
||||
constructor(opts, { dispatch, handler }) {
|
||||
@@ -29048,7 +29054,7 @@ var require_retry_handler = __commonJS({
|
||||
let retryAfterHeader = headers?.["retry-after"];
|
||||
if (retryAfterHeader) {
|
||||
retryAfterHeader = Number(retryAfterHeader);
|
||||
retryAfterHeader = Number.isNaN(retryAfterHeader) ? calculateRetryAfterHeader(retryAfterHeader) : retryAfterHeader * 1e3;
|
||||
retryAfterHeader = Number.isNaN(retryAfterHeader) ? calculateRetryAfterHeader(headers["retry-after"]) : retryAfterHeader * 1e3;
|
||||
}
|
||||
const retryTimeout = retryAfterHeader > 0 ? Math.min(retryAfterHeader, maxTimeout) : Math.min(minTimeout * timeoutFactor ** (counter - 1), maxTimeout);
|
||||
setTimeout(() => cb(null), retryTimeout);
|
||||
@@ -30465,7 +30471,12 @@ var require_mock_symbols2 = __commonJS({
|
||||
kNetConnect: Symbol("net connect"),
|
||||
kGetNetConnect: Symbol("get net connect"),
|
||||
kConnected: Symbol("connected"),
|
||||
kIgnoreTrailingSlash: Symbol("ignore trailing slash")
|
||||
kIgnoreTrailingSlash: Symbol("ignore trailing slash"),
|
||||
kMockAgentMockCallHistoryInstance: Symbol("mock agent mock call history name"),
|
||||
kMockAgentRegisterCallHistory: Symbol("mock agent register mock call history"),
|
||||
kMockAgentAddCallHistoryLog: Symbol("mock agent add call history log"),
|
||||
kMockAgentIsCallHistoryEnabled: Symbol("mock agent is call history enabled"),
|
||||
kMockCallHistoryAddLog: Symbol("mock call history add log")
|
||||
};
|
||||
}
|
||||
});
|
||||
@@ -30489,6 +30500,7 @@ var require_mock_utils2 = __commonJS({
|
||||
isPromise
|
||||
}
|
||||
} = require("node:util");
|
||||
var { InvalidArgumentError } = require_errors2();
|
||||
function matchValue(match, value) {
|
||||
if (typeof match === "string") {
|
||||
return match === value;
|
||||
@@ -30579,8 +30591,10 @@ var require_mock_utils2 = __commonJS({
|
||||
return data;
|
||||
} else if (typeof data === "object") {
|
||||
return JSON.stringify(data);
|
||||
} else {
|
||||
} else if (data) {
|
||||
return data.toString();
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
function getMockDispatch(mockDispatches, key) {
|
||||
@@ -30752,9 +30766,12 @@ var require_mock_utils2 = __commonJS({
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function buildMockOptions(opts) {
|
||||
function buildAndValidateMockOptions(opts) {
|
||||
if (opts) {
|
||||
const { agent, ...mockOptions } = opts;
|
||||
if ("enableCallHistory" in mockOptions && typeof mockOptions.enableCallHistory !== "boolean") {
|
||||
throw new InvalidArgumentError("options.enableCallHistory must to be a boolean");
|
||||
}
|
||||
return mockOptions;
|
||||
}
|
||||
}
|
||||
@@ -30771,7 +30788,7 @@ var require_mock_utils2 = __commonJS({
|
||||
mockDispatch,
|
||||
buildMockDispatch,
|
||||
checkNetConnect,
|
||||
buildMockOptions,
|
||||
buildAndValidateMockOptions,
|
||||
getHeaderByName,
|
||||
buildHeadersFromArray
|
||||
};
|
||||
@@ -31000,6 +31017,206 @@ var require_mock_client2 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/undici/lib/mock/mock-call-history.js
|
||||
var require_mock_call_history = __commonJS({
|
||||
"node_modules/undici/lib/mock/mock-call-history.js"(exports2, module2) {
|
||||
"use strict";
|
||||
var { kMockCallHistoryAddLog } = require_mock_symbols2();
|
||||
var { InvalidArgumentError } = require_errors2();
|
||||
function handleFilterCallsWithOptions(criteria, options, handler, store) {
|
||||
switch (options.operator) {
|
||||
case "OR":
|
||||
store.push(...handler(criteria));
|
||||
return store;
|
||||
case "AND":
|
||||
return handler.call({ logs: store }, criteria);
|
||||
default:
|
||||
throw new InvalidArgumentError("options.operator must to be a case insensitive string equal to 'OR' or 'AND'");
|
||||
}
|
||||
}
|
||||
function buildAndValidateFilterCallsOptions(options = {}) {
|
||||
const finalOptions = {};
|
||||
if ("operator" in options) {
|
||||
if (typeof options.operator !== "string" || options.operator.toUpperCase() !== "OR" && options.operator.toUpperCase() !== "AND") {
|
||||
throw new InvalidArgumentError("options.operator must to be a case insensitive string equal to 'OR' or 'AND'");
|
||||
}
|
||||
return {
|
||||
...finalOptions,
|
||||
operator: options.operator.toUpperCase()
|
||||
};
|
||||
}
|
||||
return finalOptions;
|
||||
}
|
||||
function makeFilterCalls(parameterName) {
|
||||
return (parameterValue) => {
|
||||
if (typeof parameterValue === "string" || parameterValue == null) {
|
||||
return this.logs.filter((log) => {
|
||||
return log[parameterName] === parameterValue;
|
||||
});
|
||||
}
|
||||
if (parameterValue instanceof RegExp) {
|
||||
return this.logs.filter((log) => {
|
||||
return parameterValue.test(log[parameterName]);
|
||||
});
|
||||
}
|
||||
throw new InvalidArgumentError(`${parameterName} parameter should be one of string, regexp, undefined or null`);
|
||||
};
|
||||
}
|
||||
function computeUrlWithMaybeSearchParameters(requestInit) {
|
||||
try {
|
||||
const url = new URL(requestInit.path, requestInit.origin);
|
||||
if (url.search.length !== 0) {
|
||||
return url;
|
||||
}
|
||||
url.search = new URLSearchParams(requestInit.query).toString();
|
||||
return url;
|
||||
} catch (error) {
|
||||
throw new InvalidArgumentError("An error occurred when computing MockCallHistoryLog.url", { cause: error });
|
||||
}
|
||||
}
|
||||
var MockCallHistoryLog = class {
|
||||
constructor(requestInit = {}) {
|
||||
this.body = requestInit.body;
|
||||
this.headers = requestInit.headers;
|
||||
this.method = requestInit.method;
|
||||
const url = computeUrlWithMaybeSearchParameters(requestInit);
|
||||
this.fullUrl = url.toString();
|
||||
this.origin = url.origin;
|
||||
this.path = url.pathname;
|
||||
this.searchParams = Object.fromEntries(url.searchParams);
|
||||
this.protocol = url.protocol;
|
||||
this.host = url.host;
|
||||
this.port = url.port;
|
||||
this.hash = url.hash;
|
||||
}
|
||||
toMap() {
|
||||
return /* @__PURE__ */ new Map(
|
||||
[
|
||||
["protocol", this.protocol],
|
||||
["host", this.host],
|
||||
["port", this.port],
|
||||
["origin", this.origin],
|
||||
["path", this.path],
|
||||
["hash", this.hash],
|
||||
["searchParams", this.searchParams],
|
||||
["fullUrl", this.fullUrl],
|
||||
["method", this.method],
|
||||
["body", this.body],
|
||||
["headers", this.headers]
|
||||
]
|
||||
);
|
||||
}
|
||||
toString() {
|
||||
const options = { betweenKeyValueSeparator: "->", betweenPairSeparator: "|" };
|
||||
let result = "";
|
||||
this.toMap().forEach((value, key) => {
|
||||
if (typeof value === "string" || value === void 0 || value === null) {
|
||||
result = `${result}${key}${options.betweenKeyValueSeparator}${value}${options.betweenPairSeparator}`;
|
||||
}
|
||||
if (typeof value === "object" && value !== null || Array.isArray(value)) {
|
||||
result = `${result}${key}${options.betweenKeyValueSeparator}${JSON.stringify(value)}${options.betweenPairSeparator}`;
|
||||
}
|
||||
});
|
||||
return result.slice(0, -1);
|
||||
}
|
||||
};
|
||||
var MockCallHistory = class {
|
||||
logs = [];
|
||||
calls() {
|
||||
return this.logs;
|
||||
}
|
||||
firstCall() {
|
||||
return this.logs.at(0);
|
||||
}
|
||||
lastCall() {
|
||||
return this.logs.at(-1);
|
||||
}
|
||||
nthCall(number) {
|
||||
if (typeof number !== "number") {
|
||||
throw new InvalidArgumentError("nthCall must be called with a number");
|
||||
}
|
||||
if (!Number.isInteger(number)) {
|
||||
throw new InvalidArgumentError("nthCall must be called with an integer");
|
||||
}
|
||||
if (Math.sign(number) !== 1) {
|
||||
throw new InvalidArgumentError("nthCall must be called with a positive value. use firstCall or lastCall instead");
|
||||
}
|
||||
return this.logs.at(number - 1);
|
||||
}
|
||||
filterCalls(criteria, options) {
|
||||
if (this.logs.length === 0) {
|
||||
return this.logs;
|
||||
}
|
||||
if (typeof criteria === "function") {
|
||||
return this.logs.filter(criteria);
|
||||
}
|
||||
if (criteria instanceof RegExp) {
|
||||
return this.logs.filter((log) => {
|
||||
return criteria.test(log.toString());
|
||||
});
|
||||
}
|
||||
if (typeof criteria === "object" && criteria !== null) {
|
||||
if (Object.keys(criteria).length === 0) {
|
||||
return this.logs;
|
||||
}
|
||||
const finalOptions = { operator: "OR", ...buildAndValidateFilterCallsOptions(options) };
|
||||
let maybeDuplicatedLogsFiltered = [];
|
||||
if ("protocol" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.protocol, finalOptions, this.filterCallsByProtocol, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("host" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.host, finalOptions, this.filterCallsByHost, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("port" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.port, finalOptions, this.filterCallsByPort, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("origin" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.origin, finalOptions, this.filterCallsByOrigin, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("path" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.path, finalOptions, this.filterCallsByPath, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("hash" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.hash, finalOptions, this.filterCallsByHash, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("fullUrl" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.fullUrl, finalOptions, this.filterCallsByFullUrl, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("method" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.method, finalOptions, this.filterCallsByMethod, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
const uniqLogsFiltered = [...new Set(maybeDuplicatedLogsFiltered)];
|
||||
return uniqLogsFiltered;
|
||||
}
|
||||
throw new InvalidArgumentError("criteria parameter should be one of function, regexp, or object");
|
||||
}
|
||||
filterCallsByProtocol = makeFilterCalls.call(this, "protocol");
|
||||
filterCallsByHost = makeFilterCalls.call(this, "host");
|
||||
filterCallsByPort = makeFilterCalls.call(this, "port");
|
||||
filterCallsByOrigin = makeFilterCalls.call(this, "origin");
|
||||
filterCallsByPath = makeFilterCalls.call(this, "path");
|
||||
filterCallsByHash = makeFilterCalls.call(this, "hash");
|
||||
filterCallsByFullUrl = makeFilterCalls.call(this, "fullUrl");
|
||||
filterCallsByMethod = makeFilterCalls.call(this, "method");
|
||||
clear() {
|
||||
this.logs = [];
|
||||
}
|
||||
[kMockCallHistoryAddLog](requestInit) {
|
||||
const log = new MockCallHistoryLog(requestInit);
|
||||
this.logs.push(log);
|
||||
return log;
|
||||
}
|
||||
*[Symbol.iterator]() {
|
||||
for (const log of this.calls()) {
|
||||
yield log;
|
||||
}
|
||||
}
|
||||
};
|
||||
module2.exports.MockCallHistory = MockCallHistory;
|
||||
module2.exports.MockCallHistoryLog = MockCallHistoryLog;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/undici/lib/mock/mock-pool.js
|
||||
var require_mock_pool2 = __commonJS({
|
||||
"node_modules/undici/lib/mock/mock-pool.js"(exports2, module2) {
|
||||
@@ -31114,26 +31331,37 @@ var require_mock_agent2 = __commonJS({
|
||||
kNetConnect,
|
||||
kGetNetConnect,
|
||||
kOptions,
|
||||
kFactory
|
||||
kFactory,
|
||||
kMockAgentRegisterCallHistory,
|
||||
kMockAgentIsCallHistoryEnabled,
|
||||
kMockAgentAddCallHistoryLog,
|
||||
kMockAgentMockCallHistoryInstance,
|
||||
kMockCallHistoryAddLog
|
||||
} = require_mock_symbols2();
|
||||
var MockClient = require_mock_client2();
|
||||
var MockPool = require_mock_pool2();
|
||||
var { matchValue, buildMockOptions } = require_mock_utils2();
|
||||
var { matchValue, buildAndValidateMockOptions } = require_mock_utils2();
|
||||
var { InvalidArgumentError, UndiciError } = require_errors2();
|
||||
var Dispatcher = require_dispatcher2();
|
||||
var PendingInterceptorsFormatter = require_pending_interceptors_formatter2();
|
||||
var { MockCallHistory } = require_mock_call_history();
|
||||
var MockAgent = class extends Dispatcher {
|
||||
constructor(opts) {
|
||||
super(opts);
|
||||
const mockOptions = buildAndValidateMockOptions(opts);
|
||||
this[kNetConnect] = true;
|
||||
this[kIsMockActive] = true;
|
||||
this[kMockAgentIsCallHistoryEnabled] = mockOptions?.enableCallHistory ?? false;
|
||||
if (opts?.agent && typeof opts.agent.dispatch !== "function") {
|
||||
throw new InvalidArgumentError("Argument opts.agent must implement Agent");
|
||||
}
|
||||
const agent = opts?.agent ? opts.agent : new Agent(opts);
|
||||
this[kAgent] = agent;
|
||||
this[kClients] = agent[kClients];
|
||||
this[kOptions] = buildMockOptions(opts);
|
||||
this[kOptions] = mockOptions;
|
||||
if (this[kMockAgentIsCallHistoryEnabled]) {
|
||||
this[kMockAgentRegisterCallHistory]();
|
||||
}
|
||||
}
|
||||
get(origin) {
|
||||
let dispatcher = this[kMockAgentGet](origin);
|
||||
@@ -31145,9 +31373,11 @@ var require_mock_agent2 = __commonJS({
|
||||
}
|
||||
dispatch(opts, handler) {
|
||||
this.get(opts.origin);
|
||||
this[kMockAgentAddCallHistoryLog](opts);
|
||||
return this[kAgent].dispatch(opts, handler);
|
||||
}
|
||||
async close() {
|
||||
this.clearCallHistory();
|
||||
await this[kAgent].close();
|
||||
this[kClients].clear();
|
||||
}
|
||||
@@ -31173,11 +31403,38 @@ var require_mock_agent2 = __commonJS({
|
||||
disableNetConnect() {
|
||||
this[kNetConnect] = false;
|
||||
}
|
||||
enableCallHistory() {
|
||||
this[kMockAgentIsCallHistoryEnabled] = true;
|
||||
return this;
|
||||
}
|
||||
disableCallHistory() {
|
||||
this[kMockAgentIsCallHistoryEnabled] = false;
|
||||
return this;
|
||||
}
|
||||
getCallHistory() {
|
||||
return this[kMockAgentMockCallHistoryInstance];
|
||||
}
|
||||
clearCallHistory() {
|
||||
if (this[kMockAgentMockCallHistoryInstance] !== void 0) {
|
||||
this[kMockAgentMockCallHistoryInstance].clear();
|
||||
}
|
||||
}
|
||||
// This is required to bypass issues caused by using global symbols - see:
|
||||
// https://github.com/nodejs/undici/issues/1447
|
||||
get isMockActive() {
|
||||
return this[kIsMockActive];
|
||||
}
|
||||
[kMockAgentRegisterCallHistory]() {
|
||||
if (this[kMockAgentMockCallHistoryInstance] === void 0) {
|
||||
this[kMockAgentMockCallHistoryInstance] = new MockCallHistory();
|
||||
}
|
||||
}
|
||||
[kMockAgentAddCallHistoryLog](opts) {
|
||||
if (this[kMockAgentIsCallHistoryEnabled]) {
|
||||
this[kMockAgentRegisterCallHistory]();
|
||||
this[kMockAgentMockCallHistoryInstance][kMockCallHistoryAddLog](opts);
|
||||
}
|
||||
}
|
||||
[kMockAgentSet](origin, dispatcher) {
|
||||
this[kClients].set(origin, dispatcher);
|
||||
}
|
||||
@@ -32043,10 +32300,13 @@ var require_cache2 = __commonJS({
|
||||
if (typeof key !== "string" || typeof val !== "string") {
|
||||
throw new Error("opts.headers is not a valid header map");
|
||||
}
|
||||
headers[key] = val;
|
||||
headers[key.toLowerCase()] = val;
|
||||
}
|
||||
} else if (typeof opts.headers === "object") {
|
||||
headers = opts.headers;
|
||||
headers = {};
|
||||
for (const key of Object.keys(opts.headers)) {
|
||||
headers[key.toLowerCase()] = opts.headers[key];
|
||||
}
|
||||
} else {
|
||||
throw new Error("opts.headers is not an object");
|
||||
}
|
||||
@@ -32201,17 +32461,13 @@ var require_cache2 = __commonJS({
|
||||
return headers;
|
||||
}
|
||||
const output = (
|
||||
/** @type {Record<string, string | string[]>} */
|
||||
/** @type {Record<string, string | string[] | null>} */
|
||||
{}
|
||||
);
|
||||
const varyingHeaders = typeof varyHeader === "string" ? varyHeader.split(",") : varyHeader;
|
||||
for (const header of varyingHeaders) {
|
||||
const trimmedHeader = header.trim().toLowerCase();
|
||||
if (headers[trimmedHeader]) {
|
||||
output[trimmedHeader] = headers[trimmedHeader];
|
||||
} else {
|
||||
return void 0;
|
||||
}
|
||||
output[trimmedHeader] = headers[trimmedHeader] ?? null;
|
||||
}
|
||||
return output;
|
||||
}
|
||||
@@ -32793,7 +33049,12 @@ var require_memory_cache_store = __commonJS({
|
||||
assertCacheKey(key);
|
||||
const topLevelKey = `${key.origin}:${key.path}`;
|
||||
const now = Date.now();
|
||||
const entry = this.#entries.get(topLevelKey)?.find((entry2) => entry2.deleteAt > now && entry2.method === key.method && (entry2.vary == null || Object.keys(entry2.vary).every((headerName) => entry2.vary[headerName] === key.headers?.[headerName])));
|
||||
const entry = this.#entries.get(topLevelKey)?.find((entry2) => entry2.deleteAt > now && entry2.method === key.method && (entry2.vary == null || Object.keys(entry2.vary).every((headerName) => {
|
||||
if (entry2.vary[headerName] === null) {
|
||||
return key.headers[headerName] === void 0;
|
||||
}
|
||||
return entry2.vary[headerName] === key.headers[headerName];
|
||||
})));
|
||||
return entry == null ? void 0 : {
|
||||
statusMessage: entry.statusMessage,
|
||||
statusCode: entry.statusCode,
|
||||
@@ -33379,7 +33640,7 @@ var require_sqlite_cache_store = __commonJS({
|
||||
assertCacheKey(key);
|
||||
const value = this.#findValue(key);
|
||||
return value ? {
|
||||
body: value.body ? Buffer.from(value.body.buffer) : void 0,
|
||||
body: value.body ? Buffer.from(value.body.buffer, value.body.byteOffset, value.body.byteLength) : void 0,
|
||||
statusCode: value.statusCode,
|
||||
statusMessage: value.statusMessage,
|
||||
headers: value.headers ? JSON.parse(value.headers) : void 0,
|
||||
@@ -33524,9 +33785,6 @@ var require_sqlite_cache_store = __commonJS({
|
||||
}
|
||||
let matches = true;
|
||||
if (value.vary) {
|
||||
if (!headers) {
|
||||
return void 0;
|
||||
}
|
||||
const vary = JSON.parse(value.vary);
|
||||
for (const header in vary) {
|
||||
if (!headerValueEquals(headers[header], vary[header])) {
|
||||
@@ -33543,16 +33801,17 @@ var require_sqlite_cache_store = __commonJS({
|
||||
}
|
||||
};
|
||||
function headerValueEquals(lhs, rhs) {
|
||||
if (lhs == null && rhs == null) {
|
||||
return true;
|
||||
}
|
||||
if (lhs == null && rhs != null || lhs != null && rhs == null) {
|
||||
return false;
|
||||
}
|
||||
if (Array.isArray(lhs) && Array.isArray(rhs)) {
|
||||
if (lhs.length !== rhs.length) {
|
||||
return false;
|
||||
}
|
||||
for (let i = 0; i < lhs.length; i++) {
|
||||
if (rhs.includes(lhs[i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return lhs.every((x, i) => x === rhs[i]);
|
||||
}
|
||||
return lhs === rhs;
|
||||
}
|
||||
@@ -34518,6 +34777,12 @@ var require_request4 = __commonJS({
|
||||
signal.removeEventListener("abort", abort);
|
||||
});
|
||||
var dependentControllerMap = /* @__PURE__ */ new WeakMap();
|
||||
var abortSignalHasEventHandlerLeakWarning;
|
||||
try {
|
||||
abortSignalHasEventHandlerLeakWarning = getMaxListeners(new AbortController().signal) > 0;
|
||||
} catch {
|
||||
abortSignalHasEventHandlerLeakWarning = false;
|
||||
}
|
||||
function buildAbort(acRef) {
|
||||
return abort;
|
||||
function abort() {
|
||||
@@ -34745,11 +35010,8 @@ var require_request4 = __commonJS({
|
||||
this[kAbortController] = ac;
|
||||
const acRef = new WeakRef(ac);
|
||||
const abort = buildAbort(acRef);
|
||||
try {
|
||||
if (typeof getMaxListeners === "function" && getMaxListeners(signal) === defaultMaxListeners) {
|
||||
setMaxListeners(1500, signal);
|
||||
}
|
||||
} catch {
|
||||
if (abortSignalHasEventHandlerLeakWarning && getMaxListeners(signal) === defaultMaxListeners) {
|
||||
setMaxListeners(1500, signal);
|
||||
}
|
||||
util.addAbortListener(signal, abort);
|
||||
requestFinalizer.register(ac, { signal, abort }, abort);
|
||||
@@ -40035,6 +40297,7 @@ var require_undici2 = __commonJS({
|
||||
var api = require_api2();
|
||||
var buildConnector = require_connect2();
|
||||
var MockClient = require_mock_client2();
|
||||
var { MockCallHistory, MockCallHistoryLog } = require_mock_call_history();
|
||||
var MockAgent = require_mock_agent2();
|
||||
var MockPool = require_mock_pool2();
|
||||
var mockErrors = require_mock_errors2();
|
||||
@@ -40157,6 +40420,8 @@ var require_undici2 = __commonJS({
|
||||
module2.exports.connect = makeDispatcher(api.connect);
|
||||
module2.exports.upgrade = makeDispatcher(api.upgrade);
|
||||
module2.exports.MockClient = MockClient;
|
||||
module2.exports.MockCallHistory = MockCallHistory;
|
||||
module2.exports.MockCallHistoryLog = MockCallHistoryLog;
|
||||
module2.exports.MockPool = MockPool;
|
||||
module2.exports.MockAgent = MockAgent;
|
||||
module2.exports.mockErrors = mockErrors;
|
||||
@@ -40203,13 +40468,10 @@ function lowercaseKeys(object) {
|
||||
}, {});
|
||||
}
|
||||
function isPlainObject(value) {
|
||||
if (typeof value !== "object" || value === null)
|
||||
return false;
|
||||
if (Object.prototype.toString.call(value) !== "[object Object]")
|
||||
return false;
|
||||
if (typeof value !== "object" || value === null) return false;
|
||||
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
||||
const proto = Object.getPrototypeOf(value);
|
||||
if (proto === null)
|
||||
return true;
|
||||
if (proto === null) return true;
|
||||
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
||||
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
||||
}
|
||||
@@ -40217,10 +40479,8 @@ function mergeDeep(defaults, options) {
|
||||
const result = Object.assign({}, defaults);
|
||||
Object.keys(options).forEach((key) => {
|
||||
if (isPlainObject(options[key])) {
|
||||
if (!(key in defaults))
|
||||
Object.assign(result, { [key]: options[key] });
|
||||
else
|
||||
result[key] = mergeDeep(defaults[key], options[key]);
|
||||
if (!(key in defaults)) Object.assign(result, { [key]: options[key] });
|
||||
else result[key] = mergeDeep(defaults[key], options[key]);
|
||||
} else {
|
||||
Object.assign(result, { [key]: options[key] });
|
||||
}
|
||||
@@ -40269,9 +40529,9 @@ function addQueryParameters(url, parameters) {
|
||||
return `${name}=${encodeURIComponent(parameters[name])}`;
|
||||
}).join("&");
|
||||
}
|
||||
var urlVariableRegex = /\{[^}]+\}/g;
|
||||
var urlVariableRegex = /\{[^{}}]+\}/g;
|
||||
function removeNonChars(variableName) {
|
||||
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
|
||||
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
|
||||
}
|
||||
function extractUrlVariableNames(url) {
|
||||
const matches = url.match(urlVariableRegex);
|
||||
@@ -40451,7 +40711,7 @@ function parse(options) {
|
||||
}
|
||||
if (url.endsWith("/graphql")) {
|
||||
if (options.mediaType.previews?.length) {
|
||||
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
|
||||
const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || [];
|
||||
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
|
||||
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
|
||||
return `application/vnd.github.${preview}-preview${format}`;
|
||||
@@ -40529,7 +40789,7 @@ var RequestError = class extends Error {
|
||||
if (options.request.headers.authorization) {
|
||||
requestCopy.headers = Object.assign({}, options.request.headers, {
|
||||
authorization: options.request.headers.authorization.replace(
|
||||
/ .*$/,
|
||||
/(?<! ) .*$/,
|
||||
" [REDACTED]"
|
||||
)
|
||||
});
|
||||
@@ -40617,7 +40877,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}` : ""}`
|
||||
@@ -40744,8 +41004,7 @@ async function oauthRequest(request2, route, parameters) {
|
||||
return response;
|
||||
}
|
||||
async function exchangeWebFlowCode(options) {
|
||||
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */
|
||||
request;
|
||||
const request2 = options.request || request;
|
||||
const response = await oauthRequest(
|
||||
request2,
|
||||
"POST /login/oauth/access_token",
|
||||
@@ -40782,8 +41041,7 @@ function toTimestamp(apiTimeInMs, expirationInSeconds) {
|
||||
return new Date(apiTimeInMs + expirationInSeconds * 1e3).toISOString();
|
||||
}
|
||||
async function createDeviceCode(options) {
|
||||
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */
|
||||
request;
|
||||
const request2 = options.request || request;
|
||||
const parameters = {
|
||||
client_id: options.clientId
|
||||
};
|
||||
@@ -40793,8 +41051,7 @@ async function createDeviceCode(options) {
|
||||
return oauthRequest(request2, "POST /login/device/code", parameters);
|
||||
}
|
||||
async function exchangeDeviceCode(options) {
|
||||
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */
|
||||
request;
|
||||
const request2 = options.request || request;
|
||||
const response = await oauthRequest(
|
||||
request2,
|
||||
"POST /login/oauth/access_token",
|
||||
@@ -40832,8 +41089,7 @@ function toTimestamp2(apiTimeInMs, expirationInSeconds) {
|
||||
return new Date(apiTimeInMs + expirationInSeconds * 1e3).toISOString();
|
||||
}
|
||||
async function checkToken(options) {
|
||||
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */
|
||||
request;
|
||||
const request2 = options.request || request;
|
||||
const response = await request2("POST /applications/{client_id}/token", {
|
||||
headers: {
|
||||
authorization: `basic ${btoa(
|
||||
@@ -40858,8 +41114,7 @@ async function checkToken(options) {
|
||||
return { ...response, authentication };
|
||||
}
|
||||
async function refreshToken(options) {
|
||||
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */
|
||||
request;
|
||||
const request2 = options.request || request;
|
||||
const response = await oauthRequest(
|
||||
request2,
|
||||
"POST /login/oauth/access_token",
|
||||
@@ -40889,8 +41144,7 @@ function toTimestamp3(apiTimeInMs, expirationInSeconds) {
|
||||
return new Date(apiTimeInMs + expirationInSeconds * 1e3).toISOString();
|
||||
}
|
||||
async function resetToken(options) {
|
||||
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */
|
||||
request;
|
||||
const request2 = options.request || request;
|
||||
const auth5 = btoa(`${options.clientId}:${options.clientSecret}`);
|
||||
const response = await request2(
|
||||
"PATCH /applications/{client_id}/token",
|
||||
@@ -40917,8 +41171,7 @@ async function resetToken(options) {
|
||||
return { ...response, authentication };
|
||||
}
|
||||
async function deleteToken(options) {
|
||||
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */
|
||||
request;
|
||||
const request2 = options.request || request;
|
||||
const auth5 = btoa(`${options.clientId}:${options.clientSecret}`);
|
||||
return request2(
|
||||
"DELETE /applications/{client_id}/token",
|
||||
@@ -40932,8 +41185,7 @@ async function deleteToken(options) {
|
||||
);
|
||||
}
|
||||
async function deleteAuthorization(options) {
|
||||
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */
|
||||
request;
|
||||
const request2 = options.request || request;
|
||||
const auth5 = btoa(`${options.clientId}:${options.clientSecret}`);
|
||||
return request2(
|
||||
"DELETE /applications/{client_id}/grant",
|
||||
@@ -41967,7 +42219,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
|
||||
return sendRequestWithRetries(state, request2, options, createdAt, retries);
|
||||
}
|
||||
}
|
||||
var VERSION6 = "7.1.4";
|
||||
var VERSION6 = "7.1.5";
|
||||
function createAppAuth(options) {
|
||||
if (!options.appId) {
|
||||
throw new Error("[@octokit/auth-app] appId option is required");
|
||||
|
||||
Vendored
+342
-82
@@ -5255,6 +5255,13 @@ var require_body = __commonJS({
|
||||
var { isUint8Array, isArrayBuffer } = require("util/types");
|
||||
var { File: UndiciFile } = require_file();
|
||||
var { parseMIMEType, serializeAMimeType } = require_dataURL();
|
||||
var random;
|
||||
try {
|
||||
const crypto = require("node:crypto");
|
||||
random = (max) => crypto.randomInt(0, max);
|
||||
} catch {
|
||||
random = (max) => Math.floor(Math.random(max));
|
||||
}
|
||||
var ReadableStream2 = globalThis.ReadableStream;
|
||||
var File = NativeFile ?? UndiciFile;
|
||||
var textEncoder = new TextEncoder();
|
||||
@@ -5297,7 +5304,7 @@ var require_body = __commonJS({
|
||||
} else if (ArrayBuffer.isView(object)) {
|
||||
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength));
|
||||
} else if (util.isFormDataLike(object)) {
|
||||
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, "0")}`;
|
||||
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, "0")}`;
|
||||
const prefix = `--${boundary}\r
|
||||
Content-Disposition: form-data`;
|
||||
const escape = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
|
||||
@@ -8853,6 +8860,14 @@ var require_pool = __commonJS({
|
||||
this[kOptions] = { ...util.deepClone(options), connect, allowH2 };
|
||||
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0;
|
||||
this[kFactory] = factory;
|
||||
this.on("connectionError", (origin2, targets, error) => {
|
||||
for (const target of targets) {
|
||||
const idx = this[kClients].indexOf(target);
|
||||
if (idx !== -1) {
|
||||
this[kClients].splice(idx, 1);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
[kGetDispatcher]() {
|
||||
let dispatcher = this[kClients].find((dispatcher2) => !dispatcher2[kNeedDrain]);
|
||||
@@ -11523,6 +11538,7 @@ var require_headers = __commonJS({
|
||||
isValidHeaderName,
|
||||
isValidHeaderValue
|
||||
} = require_util2();
|
||||
var util = require("util");
|
||||
var { webidl } = require_webidl();
|
||||
var assert = require("assert");
|
||||
var kHeadersMap = Symbol("headers map");
|
||||
@@ -11874,6 +11890,9 @@ var require_headers = __commonJS({
|
||||
[Symbol.toStringTag]: {
|
||||
value: "Headers",
|
||||
configurable: true
|
||||
},
|
||||
[util.inspect.custom]: {
|
||||
enumerable: false
|
||||
}
|
||||
});
|
||||
webidl.converters.HeadersInit = function(V) {
|
||||
@@ -15463,8 +15482,6 @@ var require_constants4 = __commonJS({
|
||||
var require_util6 = __commonJS({
|
||||
"node_modules/@actions/http-client/node_modules/undici/lib/cookies/util.js"(exports2, module2) {
|
||||
"use strict";
|
||||
var assert = require("assert");
|
||||
var { kHeadersList } = require_symbols();
|
||||
function isCTLExcludingHtab(value) {
|
||||
if (value.length === 0) {
|
||||
return false;
|
||||
@@ -15595,25 +15612,13 @@ var require_util6 = __commonJS({
|
||||
}
|
||||
return out.join("; ");
|
||||
}
|
||||
var kHeadersListNode;
|
||||
function getHeadersList(headers) {
|
||||
if (headers[kHeadersList]) {
|
||||
return headers[kHeadersList];
|
||||
}
|
||||
if (!kHeadersListNode) {
|
||||
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
|
||||
(symbol) => symbol.description === "headers list"
|
||||
);
|
||||
assert(kHeadersListNode, "Headers cannot be parsed");
|
||||
}
|
||||
const headersList = headers[kHeadersListNode];
|
||||
assert(headersList);
|
||||
return headersList;
|
||||
}
|
||||
module2.exports = {
|
||||
isCTLExcludingHtab,
|
||||
stringify,
|
||||
getHeadersList
|
||||
validateCookieName,
|
||||
validateCookiePath,
|
||||
validateCookieValue,
|
||||
toIMFDate,
|
||||
stringify
|
||||
};
|
||||
}
|
||||
});
|
||||
@@ -15763,7 +15768,7 @@ var require_cookies = __commonJS({
|
||||
"node_modules/@actions/http-client/node_modules/undici/lib/cookies/index.js"(exports2, module2) {
|
||||
"use strict";
|
||||
var { parseSetCookie } = require_parse();
|
||||
var { stringify, getHeadersList } = require_util6();
|
||||
var { stringify } = require_util6();
|
||||
var { webidl } = require_webidl();
|
||||
var { Headers } = require_headers();
|
||||
function getCookies(headers) {
|
||||
@@ -15795,11 +15800,11 @@ var require_cookies = __commonJS({
|
||||
function getSetCookies(headers) {
|
||||
webidl.argumentLengthCheck(arguments, 1, { header: "getSetCookies" });
|
||||
webidl.brandCheck(headers, Headers, { strict: false });
|
||||
const cookies = getHeadersList(headers).cookies;
|
||||
const cookies = headers.getSetCookie();
|
||||
if (!cookies) {
|
||||
return [];
|
||||
}
|
||||
return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair));
|
||||
return cookies.map((pair) => parseSetCookie(pair));
|
||||
}
|
||||
function setCookie(headers, cookie) {
|
||||
webidl.argumentLengthCheck(arguments, 2, { header: "setCookie" });
|
||||
@@ -25317,7 +25322,7 @@ var require_body2 = __commonJS({
|
||||
const crypto = require("node:crypto");
|
||||
random = (max) => crypto.randomInt(0, max);
|
||||
} catch {
|
||||
random = (max) => Math.floor(Math.random(max));
|
||||
random = (max) => Math.floor(Math.random() * max);
|
||||
}
|
||||
var textEncoder = new TextEncoder();
|
||||
function noop() {
|
||||
@@ -27521,7 +27526,7 @@ var require_client2 = __commonJS({
|
||||
allowH2,
|
||||
socketPath,
|
||||
timeout: connectTimeout,
|
||||
...autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
|
||||
...typeof autoSelectFamily === "boolean" ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
|
||||
...connect2
|
||||
});
|
||||
}
|
||||
@@ -28157,7 +28162,7 @@ var require_pool2 = __commonJS({
|
||||
allowH2,
|
||||
socketPath,
|
||||
timeout: connectTimeout,
|
||||
...autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
|
||||
...typeof autoSelectFamily === "boolean" ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
|
||||
...connect
|
||||
});
|
||||
}
|
||||
@@ -28166,6 +28171,14 @@ var require_pool2 = __commonJS({
|
||||
this[kOptions] = { ...util.deepClone(options), connect, allowH2 };
|
||||
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0;
|
||||
this[kFactory] = factory;
|
||||
this.on("connectionError", (origin2, targets, error) => {
|
||||
for (const target of targets) {
|
||||
const idx = this[kClients].indexOf(target);
|
||||
if (idx !== -1) {
|
||||
this[kClients].splice(idx, 1);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
[kGetDispatcher]() {
|
||||
for (const client of this[kClients]) {
|
||||
@@ -28582,7 +28595,6 @@ var require_env_http_proxy_agent = __commonJS({
|
||||
"http:": 80,
|
||||
"https:": 443
|
||||
};
|
||||
var experimentalWarned = false;
|
||||
var EnvHttpProxyAgent = class extends DispatcherBase {
|
||||
#noProxyValue = null;
|
||||
#noProxyEntries = null;
|
||||
@@ -28590,12 +28602,6 @@ var require_env_http_proxy_agent = __commonJS({
|
||||
constructor(opts = {}) {
|
||||
super();
|
||||
this.#opts = opts;
|
||||
if (!experimentalWarned) {
|
||||
experimentalWarned = true;
|
||||
process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.", {
|
||||
code: "UNDICI-EHPA"
|
||||
});
|
||||
}
|
||||
const { httpProxy, httpsProxy, noProxy, ...agentOpts } = opts;
|
||||
this[kNoProxyAgent] = new Agent(agentOpts);
|
||||
const HTTP_PROXY = httpProxy ?? process.env.http_proxy ?? process.env.HTTP_PROXY;
|
||||
@@ -28720,8 +28726,8 @@ var require_retry_handler = __commonJS({
|
||||
wrapRequestBody
|
||||
} = require_util8();
|
||||
function calculateRetryAfterHeader(retryAfter) {
|
||||
const current = Date.now();
|
||||
return new Date(retryAfter).getTime() - current;
|
||||
const retryTime = new Date(retryAfter).getTime();
|
||||
return isNaN(retryTime) ? 0 : retryTime - Date.now();
|
||||
}
|
||||
var RetryHandler = class _RetryHandler {
|
||||
constructor(opts, { dispatch, handler }) {
|
||||
@@ -28815,7 +28821,7 @@ var require_retry_handler = __commonJS({
|
||||
let retryAfterHeader = headers?.["retry-after"];
|
||||
if (retryAfterHeader) {
|
||||
retryAfterHeader = Number(retryAfterHeader);
|
||||
retryAfterHeader = Number.isNaN(retryAfterHeader) ? calculateRetryAfterHeader(retryAfterHeader) : retryAfterHeader * 1e3;
|
||||
retryAfterHeader = Number.isNaN(retryAfterHeader) ? calculateRetryAfterHeader(headers["retry-after"]) : retryAfterHeader * 1e3;
|
||||
}
|
||||
const retryTimeout = retryAfterHeader > 0 ? Math.min(retryAfterHeader, maxTimeout) : Math.min(minTimeout * timeoutFactor ** (counter - 1), maxTimeout);
|
||||
setTimeout(() => cb(null), retryTimeout);
|
||||
@@ -30232,7 +30238,12 @@ var require_mock_symbols2 = __commonJS({
|
||||
kNetConnect: Symbol("net connect"),
|
||||
kGetNetConnect: Symbol("get net connect"),
|
||||
kConnected: Symbol("connected"),
|
||||
kIgnoreTrailingSlash: Symbol("ignore trailing slash")
|
||||
kIgnoreTrailingSlash: Symbol("ignore trailing slash"),
|
||||
kMockAgentMockCallHistoryInstance: Symbol("mock agent mock call history name"),
|
||||
kMockAgentRegisterCallHistory: Symbol("mock agent register mock call history"),
|
||||
kMockAgentAddCallHistoryLog: Symbol("mock agent add call history log"),
|
||||
kMockAgentIsCallHistoryEnabled: Symbol("mock agent is call history enabled"),
|
||||
kMockCallHistoryAddLog: Symbol("mock call history add log")
|
||||
};
|
||||
}
|
||||
});
|
||||
@@ -30256,6 +30267,7 @@ var require_mock_utils2 = __commonJS({
|
||||
isPromise
|
||||
}
|
||||
} = require("node:util");
|
||||
var { InvalidArgumentError } = require_errors2();
|
||||
function matchValue(match, value) {
|
||||
if (typeof match === "string") {
|
||||
return match === value;
|
||||
@@ -30346,8 +30358,10 @@ var require_mock_utils2 = __commonJS({
|
||||
return data;
|
||||
} else if (typeof data === "object") {
|
||||
return JSON.stringify(data);
|
||||
} else {
|
||||
} else if (data) {
|
||||
return data.toString();
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
function getMockDispatch(mockDispatches, key) {
|
||||
@@ -30519,9 +30533,12 @@ var require_mock_utils2 = __commonJS({
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function buildMockOptions(opts) {
|
||||
function buildAndValidateMockOptions(opts) {
|
||||
if (opts) {
|
||||
const { agent, ...mockOptions } = opts;
|
||||
if ("enableCallHistory" in mockOptions && typeof mockOptions.enableCallHistory !== "boolean") {
|
||||
throw new InvalidArgumentError("options.enableCallHistory must to be a boolean");
|
||||
}
|
||||
return mockOptions;
|
||||
}
|
||||
}
|
||||
@@ -30538,7 +30555,7 @@ var require_mock_utils2 = __commonJS({
|
||||
mockDispatch,
|
||||
buildMockDispatch,
|
||||
checkNetConnect,
|
||||
buildMockOptions,
|
||||
buildAndValidateMockOptions,
|
||||
getHeaderByName,
|
||||
buildHeadersFromArray
|
||||
};
|
||||
@@ -30767,6 +30784,206 @@ var require_mock_client2 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/undici/lib/mock/mock-call-history.js
|
||||
var require_mock_call_history = __commonJS({
|
||||
"node_modules/undici/lib/mock/mock-call-history.js"(exports2, module2) {
|
||||
"use strict";
|
||||
var { kMockCallHistoryAddLog } = require_mock_symbols2();
|
||||
var { InvalidArgumentError } = require_errors2();
|
||||
function handleFilterCallsWithOptions(criteria, options, handler, store) {
|
||||
switch (options.operator) {
|
||||
case "OR":
|
||||
store.push(...handler(criteria));
|
||||
return store;
|
||||
case "AND":
|
||||
return handler.call({ logs: store }, criteria);
|
||||
default:
|
||||
throw new InvalidArgumentError("options.operator must to be a case insensitive string equal to 'OR' or 'AND'");
|
||||
}
|
||||
}
|
||||
function buildAndValidateFilterCallsOptions(options = {}) {
|
||||
const finalOptions = {};
|
||||
if ("operator" in options) {
|
||||
if (typeof options.operator !== "string" || options.operator.toUpperCase() !== "OR" && options.operator.toUpperCase() !== "AND") {
|
||||
throw new InvalidArgumentError("options.operator must to be a case insensitive string equal to 'OR' or 'AND'");
|
||||
}
|
||||
return {
|
||||
...finalOptions,
|
||||
operator: options.operator.toUpperCase()
|
||||
};
|
||||
}
|
||||
return finalOptions;
|
||||
}
|
||||
function makeFilterCalls(parameterName) {
|
||||
return (parameterValue) => {
|
||||
if (typeof parameterValue === "string" || parameterValue == null) {
|
||||
return this.logs.filter((log) => {
|
||||
return log[parameterName] === parameterValue;
|
||||
});
|
||||
}
|
||||
if (parameterValue instanceof RegExp) {
|
||||
return this.logs.filter((log) => {
|
||||
return parameterValue.test(log[parameterName]);
|
||||
});
|
||||
}
|
||||
throw new InvalidArgumentError(`${parameterName} parameter should be one of string, regexp, undefined or null`);
|
||||
};
|
||||
}
|
||||
function computeUrlWithMaybeSearchParameters(requestInit) {
|
||||
try {
|
||||
const url = new URL(requestInit.path, requestInit.origin);
|
||||
if (url.search.length !== 0) {
|
||||
return url;
|
||||
}
|
||||
url.search = new URLSearchParams(requestInit.query).toString();
|
||||
return url;
|
||||
} catch (error) {
|
||||
throw new InvalidArgumentError("An error occurred when computing MockCallHistoryLog.url", { cause: error });
|
||||
}
|
||||
}
|
||||
var MockCallHistoryLog = class {
|
||||
constructor(requestInit = {}) {
|
||||
this.body = requestInit.body;
|
||||
this.headers = requestInit.headers;
|
||||
this.method = requestInit.method;
|
||||
const url = computeUrlWithMaybeSearchParameters(requestInit);
|
||||
this.fullUrl = url.toString();
|
||||
this.origin = url.origin;
|
||||
this.path = url.pathname;
|
||||
this.searchParams = Object.fromEntries(url.searchParams);
|
||||
this.protocol = url.protocol;
|
||||
this.host = url.host;
|
||||
this.port = url.port;
|
||||
this.hash = url.hash;
|
||||
}
|
||||
toMap() {
|
||||
return /* @__PURE__ */ new Map(
|
||||
[
|
||||
["protocol", this.protocol],
|
||||
["host", this.host],
|
||||
["port", this.port],
|
||||
["origin", this.origin],
|
||||
["path", this.path],
|
||||
["hash", this.hash],
|
||||
["searchParams", this.searchParams],
|
||||
["fullUrl", this.fullUrl],
|
||||
["method", this.method],
|
||||
["body", this.body],
|
||||
["headers", this.headers]
|
||||
]
|
||||
);
|
||||
}
|
||||
toString() {
|
||||
const options = { betweenKeyValueSeparator: "->", betweenPairSeparator: "|" };
|
||||
let result = "";
|
||||
this.toMap().forEach((value, key) => {
|
||||
if (typeof value === "string" || value === void 0 || value === null) {
|
||||
result = `${result}${key}${options.betweenKeyValueSeparator}${value}${options.betweenPairSeparator}`;
|
||||
}
|
||||
if (typeof value === "object" && value !== null || Array.isArray(value)) {
|
||||
result = `${result}${key}${options.betweenKeyValueSeparator}${JSON.stringify(value)}${options.betweenPairSeparator}`;
|
||||
}
|
||||
});
|
||||
return result.slice(0, -1);
|
||||
}
|
||||
};
|
||||
var MockCallHistory = class {
|
||||
logs = [];
|
||||
calls() {
|
||||
return this.logs;
|
||||
}
|
||||
firstCall() {
|
||||
return this.logs.at(0);
|
||||
}
|
||||
lastCall() {
|
||||
return this.logs.at(-1);
|
||||
}
|
||||
nthCall(number) {
|
||||
if (typeof number !== "number") {
|
||||
throw new InvalidArgumentError("nthCall must be called with a number");
|
||||
}
|
||||
if (!Number.isInteger(number)) {
|
||||
throw new InvalidArgumentError("nthCall must be called with an integer");
|
||||
}
|
||||
if (Math.sign(number) !== 1) {
|
||||
throw new InvalidArgumentError("nthCall must be called with a positive value. use firstCall or lastCall instead");
|
||||
}
|
||||
return this.logs.at(number - 1);
|
||||
}
|
||||
filterCalls(criteria, options) {
|
||||
if (this.logs.length === 0) {
|
||||
return this.logs;
|
||||
}
|
||||
if (typeof criteria === "function") {
|
||||
return this.logs.filter(criteria);
|
||||
}
|
||||
if (criteria instanceof RegExp) {
|
||||
return this.logs.filter((log) => {
|
||||
return criteria.test(log.toString());
|
||||
});
|
||||
}
|
||||
if (typeof criteria === "object" && criteria !== null) {
|
||||
if (Object.keys(criteria).length === 0) {
|
||||
return this.logs;
|
||||
}
|
||||
const finalOptions = { operator: "OR", ...buildAndValidateFilterCallsOptions(options) };
|
||||
let maybeDuplicatedLogsFiltered = [];
|
||||
if ("protocol" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.protocol, finalOptions, this.filterCallsByProtocol, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("host" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.host, finalOptions, this.filterCallsByHost, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("port" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.port, finalOptions, this.filterCallsByPort, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("origin" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.origin, finalOptions, this.filterCallsByOrigin, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("path" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.path, finalOptions, this.filterCallsByPath, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("hash" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.hash, finalOptions, this.filterCallsByHash, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("fullUrl" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.fullUrl, finalOptions, this.filterCallsByFullUrl, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
if ("method" in criteria) {
|
||||
maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.method, finalOptions, this.filterCallsByMethod, maybeDuplicatedLogsFiltered);
|
||||
}
|
||||
const uniqLogsFiltered = [...new Set(maybeDuplicatedLogsFiltered)];
|
||||
return uniqLogsFiltered;
|
||||
}
|
||||
throw new InvalidArgumentError("criteria parameter should be one of function, regexp, or object");
|
||||
}
|
||||
filterCallsByProtocol = makeFilterCalls.call(this, "protocol");
|
||||
filterCallsByHost = makeFilterCalls.call(this, "host");
|
||||
filterCallsByPort = makeFilterCalls.call(this, "port");
|
||||
filterCallsByOrigin = makeFilterCalls.call(this, "origin");
|
||||
filterCallsByPath = makeFilterCalls.call(this, "path");
|
||||
filterCallsByHash = makeFilterCalls.call(this, "hash");
|
||||
filterCallsByFullUrl = makeFilterCalls.call(this, "fullUrl");
|
||||
filterCallsByMethod = makeFilterCalls.call(this, "method");
|
||||
clear() {
|
||||
this.logs = [];
|
||||
}
|
||||
[kMockCallHistoryAddLog](requestInit) {
|
||||
const log = new MockCallHistoryLog(requestInit);
|
||||
this.logs.push(log);
|
||||
return log;
|
||||
}
|
||||
*[Symbol.iterator]() {
|
||||
for (const log of this.calls()) {
|
||||
yield log;
|
||||
}
|
||||
}
|
||||
};
|
||||
module2.exports.MockCallHistory = MockCallHistory;
|
||||
module2.exports.MockCallHistoryLog = MockCallHistoryLog;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/undici/lib/mock/mock-pool.js
|
||||
var require_mock_pool2 = __commonJS({
|
||||
"node_modules/undici/lib/mock/mock-pool.js"(exports2, module2) {
|
||||
@@ -30881,26 +31098,37 @@ var require_mock_agent2 = __commonJS({
|
||||
kNetConnect,
|
||||
kGetNetConnect,
|
||||
kOptions,
|
||||
kFactory
|
||||
kFactory,
|
||||
kMockAgentRegisterCallHistory,
|
||||
kMockAgentIsCallHistoryEnabled,
|
||||
kMockAgentAddCallHistoryLog,
|
||||
kMockAgentMockCallHistoryInstance,
|
||||
kMockCallHistoryAddLog
|
||||
} = require_mock_symbols2();
|
||||
var MockClient = require_mock_client2();
|
||||
var MockPool = require_mock_pool2();
|
||||
var { matchValue, buildMockOptions } = require_mock_utils2();
|
||||
var { matchValue, buildAndValidateMockOptions } = require_mock_utils2();
|
||||
var { InvalidArgumentError, UndiciError } = require_errors2();
|
||||
var Dispatcher = require_dispatcher2();
|
||||
var PendingInterceptorsFormatter = require_pending_interceptors_formatter2();
|
||||
var { MockCallHistory } = require_mock_call_history();
|
||||
var MockAgent = class extends Dispatcher {
|
||||
constructor(opts) {
|
||||
super(opts);
|
||||
const mockOptions = buildAndValidateMockOptions(opts);
|
||||
this[kNetConnect] = true;
|
||||
this[kIsMockActive] = true;
|
||||
this[kMockAgentIsCallHistoryEnabled] = mockOptions?.enableCallHistory ?? false;
|
||||
if (opts?.agent && typeof opts.agent.dispatch !== "function") {
|
||||
throw new InvalidArgumentError("Argument opts.agent must implement Agent");
|
||||
}
|
||||
const agent = opts?.agent ? opts.agent : new Agent(opts);
|
||||
this[kAgent] = agent;
|
||||
this[kClients] = agent[kClients];
|
||||
this[kOptions] = buildMockOptions(opts);
|
||||
this[kOptions] = mockOptions;
|
||||
if (this[kMockAgentIsCallHistoryEnabled]) {
|
||||
this[kMockAgentRegisterCallHistory]();
|
||||
}
|
||||
}
|
||||
get(origin) {
|
||||
let dispatcher = this[kMockAgentGet](origin);
|
||||
@@ -30912,9 +31140,11 @@ var require_mock_agent2 = __commonJS({
|
||||
}
|
||||
dispatch(opts, handler) {
|
||||
this.get(opts.origin);
|
||||
this[kMockAgentAddCallHistoryLog](opts);
|
||||
return this[kAgent].dispatch(opts, handler);
|
||||
}
|
||||
async close() {
|
||||
this.clearCallHistory();
|
||||
await this[kAgent].close();
|
||||
this[kClients].clear();
|
||||
}
|
||||
@@ -30940,11 +31170,38 @@ var require_mock_agent2 = __commonJS({
|
||||
disableNetConnect() {
|
||||
this[kNetConnect] = false;
|
||||
}
|
||||
enableCallHistory() {
|
||||
this[kMockAgentIsCallHistoryEnabled] = true;
|
||||
return this;
|
||||
}
|
||||
disableCallHistory() {
|
||||
this[kMockAgentIsCallHistoryEnabled] = false;
|
||||
return this;
|
||||
}
|
||||
getCallHistory() {
|
||||
return this[kMockAgentMockCallHistoryInstance];
|
||||
}
|
||||
clearCallHistory() {
|
||||
if (this[kMockAgentMockCallHistoryInstance] !== void 0) {
|
||||
this[kMockAgentMockCallHistoryInstance].clear();
|
||||
}
|
||||
}
|
||||
// This is required to bypass issues caused by using global symbols - see:
|
||||
// https://github.com/nodejs/undici/issues/1447
|
||||
get isMockActive() {
|
||||
return this[kIsMockActive];
|
||||
}
|
||||
[kMockAgentRegisterCallHistory]() {
|
||||
if (this[kMockAgentMockCallHistoryInstance] === void 0) {
|
||||
this[kMockAgentMockCallHistoryInstance] = new MockCallHistory();
|
||||
}
|
||||
}
|
||||
[kMockAgentAddCallHistoryLog](opts) {
|
||||
if (this[kMockAgentIsCallHistoryEnabled]) {
|
||||
this[kMockAgentRegisterCallHistory]();
|
||||
this[kMockAgentMockCallHistoryInstance][kMockCallHistoryAddLog](opts);
|
||||
}
|
||||
}
|
||||
[kMockAgentSet](origin, dispatcher) {
|
||||
this[kClients].set(origin, dispatcher);
|
||||
}
|
||||
@@ -31810,10 +32067,13 @@ var require_cache2 = __commonJS({
|
||||
if (typeof key !== "string" || typeof val !== "string") {
|
||||
throw new Error("opts.headers is not a valid header map");
|
||||
}
|
||||
headers[key] = val;
|
||||
headers[key.toLowerCase()] = val;
|
||||
}
|
||||
} else if (typeof opts.headers === "object") {
|
||||
headers = opts.headers;
|
||||
headers = {};
|
||||
for (const key of Object.keys(opts.headers)) {
|
||||
headers[key.toLowerCase()] = opts.headers[key];
|
||||
}
|
||||
} else {
|
||||
throw new Error("opts.headers is not an object");
|
||||
}
|
||||
@@ -31968,17 +32228,13 @@ var require_cache2 = __commonJS({
|
||||
return headers;
|
||||
}
|
||||
const output = (
|
||||
/** @type {Record<string, string | string[]>} */
|
||||
/** @type {Record<string, string | string[] | null>} */
|
||||
{}
|
||||
);
|
||||
const varyingHeaders = typeof varyHeader === "string" ? varyHeader.split(",") : varyHeader;
|
||||
for (const header of varyingHeaders) {
|
||||
const trimmedHeader = header.trim().toLowerCase();
|
||||
if (headers[trimmedHeader]) {
|
||||
output[trimmedHeader] = headers[trimmedHeader];
|
||||
} else {
|
||||
return void 0;
|
||||
}
|
||||
output[trimmedHeader] = headers[trimmedHeader] ?? null;
|
||||
}
|
||||
return output;
|
||||
}
|
||||
@@ -32560,7 +32816,12 @@ var require_memory_cache_store = __commonJS({
|
||||
assertCacheKey(key);
|
||||
const topLevelKey = `${key.origin}:${key.path}`;
|
||||
const now = Date.now();
|
||||
const entry = this.#entries.get(topLevelKey)?.find((entry2) => entry2.deleteAt > now && entry2.method === key.method && (entry2.vary == null || Object.keys(entry2.vary).every((headerName) => entry2.vary[headerName] === key.headers?.[headerName])));
|
||||
const entry = this.#entries.get(topLevelKey)?.find((entry2) => entry2.deleteAt > now && entry2.method === key.method && (entry2.vary == null || Object.keys(entry2.vary).every((headerName) => {
|
||||
if (entry2.vary[headerName] === null) {
|
||||
return key.headers[headerName] === void 0;
|
||||
}
|
||||
return entry2.vary[headerName] === key.headers[headerName];
|
||||
})));
|
||||
return entry == null ? void 0 : {
|
||||
statusMessage: entry.statusMessage,
|
||||
statusCode: entry.statusCode,
|
||||
@@ -33146,7 +33407,7 @@ var require_sqlite_cache_store = __commonJS({
|
||||
assertCacheKey(key);
|
||||
const value = this.#findValue(key);
|
||||
return value ? {
|
||||
body: value.body ? Buffer.from(value.body.buffer) : void 0,
|
||||
body: value.body ? Buffer.from(value.body.buffer, value.body.byteOffset, value.body.byteLength) : void 0,
|
||||
statusCode: value.statusCode,
|
||||
statusMessage: value.statusMessage,
|
||||
headers: value.headers ? JSON.parse(value.headers) : void 0,
|
||||
@@ -33291,9 +33552,6 @@ var require_sqlite_cache_store = __commonJS({
|
||||
}
|
||||
let matches = true;
|
||||
if (value.vary) {
|
||||
if (!headers) {
|
||||
return void 0;
|
||||
}
|
||||
const vary = JSON.parse(value.vary);
|
||||
for (const header in vary) {
|
||||
if (!headerValueEquals(headers[header], vary[header])) {
|
||||
@@ -33310,16 +33568,17 @@ var require_sqlite_cache_store = __commonJS({
|
||||
}
|
||||
};
|
||||
function headerValueEquals(lhs, rhs) {
|
||||
if (lhs == null && rhs == null) {
|
||||
return true;
|
||||
}
|
||||
if (lhs == null && rhs != null || lhs != null && rhs == null) {
|
||||
return false;
|
||||
}
|
||||
if (Array.isArray(lhs) && Array.isArray(rhs)) {
|
||||
if (lhs.length !== rhs.length) {
|
||||
return false;
|
||||
}
|
||||
for (let i = 0; i < lhs.length; i++) {
|
||||
if (rhs.includes(lhs[i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return lhs.every((x, i) => x === rhs[i]);
|
||||
}
|
||||
return lhs === rhs;
|
||||
}
|
||||
@@ -34285,6 +34544,12 @@ var require_request4 = __commonJS({
|
||||
signal.removeEventListener("abort", abort);
|
||||
});
|
||||
var dependentControllerMap = /* @__PURE__ */ new WeakMap();
|
||||
var abortSignalHasEventHandlerLeakWarning;
|
||||
try {
|
||||
abortSignalHasEventHandlerLeakWarning = getMaxListeners(new AbortController().signal) > 0;
|
||||
} catch {
|
||||
abortSignalHasEventHandlerLeakWarning = false;
|
||||
}
|
||||
function buildAbort(acRef) {
|
||||
return abort;
|
||||
function abort() {
|
||||
@@ -34512,11 +34777,8 @@ var require_request4 = __commonJS({
|
||||
this[kAbortController] = ac;
|
||||
const acRef = new WeakRef(ac);
|
||||
const abort = buildAbort(acRef);
|
||||
try {
|
||||
if (typeof getMaxListeners === "function" && getMaxListeners(signal) === defaultMaxListeners) {
|
||||
setMaxListeners(1500, signal);
|
||||
}
|
||||
} catch {
|
||||
if (abortSignalHasEventHandlerLeakWarning && getMaxListeners(signal) === defaultMaxListeners) {
|
||||
setMaxListeners(1500, signal);
|
||||
}
|
||||
util.addAbortListener(signal, abort);
|
||||
requestFinalizer.register(ac, { signal, abort }, abort);
|
||||
@@ -39802,6 +40064,7 @@ var require_undici2 = __commonJS({
|
||||
var api = require_api2();
|
||||
var buildConnector = require_connect2();
|
||||
var MockClient = require_mock_client2();
|
||||
var { MockCallHistory, MockCallHistoryLog } = require_mock_call_history();
|
||||
var MockAgent = require_mock_agent2();
|
||||
var MockPool = require_mock_pool2();
|
||||
var mockErrors = require_mock_errors2();
|
||||
@@ -39924,6 +40187,8 @@ var require_undici2 = __commonJS({
|
||||
module2.exports.connect = makeDispatcher(api.connect);
|
||||
module2.exports.upgrade = makeDispatcher(api.upgrade);
|
||||
module2.exports.MockClient = MockClient;
|
||||
module2.exports.MockCallHistory = MockCallHistory;
|
||||
module2.exports.MockCallHistoryLog = MockCallHistoryLog;
|
||||
module2.exports.MockPool = MockPool;
|
||||
module2.exports.MockAgent = MockAgent;
|
||||
module2.exports.mockErrors = mockErrors;
|
||||
@@ -40011,13 +40276,10 @@ function lowercaseKeys(object) {
|
||||
}, {});
|
||||
}
|
||||
function isPlainObject(value) {
|
||||
if (typeof value !== "object" || value === null)
|
||||
return false;
|
||||
if (Object.prototype.toString.call(value) !== "[object Object]")
|
||||
return false;
|
||||
if (typeof value !== "object" || value === null) return false;
|
||||
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
||||
const proto = Object.getPrototypeOf(value);
|
||||
if (proto === null)
|
||||
return true;
|
||||
if (proto === null) return true;
|
||||
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
||||
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
||||
}
|
||||
@@ -40025,10 +40287,8 @@ function mergeDeep(defaults, options) {
|
||||
const result = Object.assign({}, defaults);
|
||||
Object.keys(options).forEach((key) => {
|
||||
if (isPlainObject(options[key])) {
|
||||
if (!(key in defaults))
|
||||
Object.assign(result, { [key]: options[key] });
|
||||
else
|
||||
result[key] = mergeDeep(defaults[key], options[key]);
|
||||
if (!(key in defaults)) Object.assign(result, { [key]: options[key] });
|
||||
else result[key] = mergeDeep(defaults[key], options[key]);
|
||||
} else {
|
||||
Object.assign(result, { [key]: options[key] });
|
||||
}
|
||||
@@ -40077,9 +40337,9 @@ function addQueryParameters(url, parameters) {
|
||||
return `${name}=${encodeURIComponent(parameters[name])}`;
|
||||
}).join("&");
|
||||
}
|
||||
var urlVariableRegex = /\{[^}]+\}/g;
|
||||
var urlVariableRegex = /\{[^{}}]+\}/g;
|
||||
function removeNonChars(variableName) {
|
||||
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
|
||||
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
|
||||
}
|
||||
function extractUrlVariableNames(url) {
|
||||
const matches = url.match(urlVariableRegex);
|
||||
@@ -40259,7 +40519,7 @@ function parse(options) {
|
||||
}
|
||||
if (url.endsWith("/graphql")) {
|
||||
if (options.mediaType.previews?.length) {
|
||||
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
|
||||
const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || [];
|
||||
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
|
||||
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
|
||||
return `application/vnd.github.${preview}-preview${format}`;
|
||||
@@ -40337,7 +40597,7 @@ var RequestError = class extends Error {
|
||||
if (options.request.headers.authorization) {
|
||||
requestCopy.headers = Object.assign({}, options.request.headers, {
|
||||
authorization: options.request.headers.authorization.replace(
|
||||
/ .*$/,
|
||||
/(?<! ) .*$/,
|
||||
" [REDACTED]"
|
||||
)
|
||||
});
|
||||
@@ -40425,7 +40685,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}` : ""}`
|
||||
|
||||
Generated
+194
-164
@@ -1,26 +1,26 @@
|
||||
{
|
||||
"name": "create-github-app-token",
|
||||
"version": "1.11.2",
|
||||
"version": "1.11.6",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "create-github-app-token",
|
||||
"version": "1.11.2",
|
||||
"version": "1.11.6",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.11.1",
|
||||
"@octokit/auth-app": "^7.1.4",
|
||||
"@octokit/request": "^9.2.0",
|
||||
"@octokit/auth-app": "^7.1.5",
|
||||
"@octokit/request": "^9.2.2",
|
||||
"p-retry": "^6.2.1",
|
||||
"undici": "^7.3.0"
|
||||
"undici": "^7.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sinonjs/fake-timers": "^14.0.0",
|
||||
"ava": "^6.2.0",
|
||||
"c8": "^10.1.3",
|
||||
"dotenv": "^16.4.7",
|
||||
"esbuild": "^0.24.2",
|
||||
"esbuild": "^0.25.0",
|
||||
"execa": "^9.5.2",
|
||||
"open-cli": "^8.0.0",
|
||||
"yaml": "^2.7.0"
|
||||
@@ -53,9 +53,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/http-client/node_modules/undici": {
|
||||
"version": "5.28.4",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz",
|
||||
"integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==",
|
||||
"version": "5.29.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.29.0.tgz",
|
||||
"integrity": "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@fastify/busboy": "^2.0.0"
|
||||
},
|
||||
@@ -78,13 +79,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/aix-ppc64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.2.tgz",
|
||||
"integrity": "sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.0.tgz",
|
||||
"integrity": "sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"aix"
|
||||
@@ -94,13 +96,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/android-arm": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.24.2.tgz",
|
||||
"integrity": "sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.0.tgz",
|
||||
"integrity": "sha512-PTyWCYYiU0+1eJKmw21lWtC+d08JDZPQ5g+kFyxP0V+es6VPPSUhM6zk8iImp2jbV6GwjX4pap0JFbUQN65X1g==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"android"
|
||||
@@ -110,13 +113,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/android-arm64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.24.2.tgz",
|
||||
"integrity": "sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.0.tgz",
|
||||
"integrity": "sha512-grvv8WncGjDSyUBjN9yHXNt+cq0snxXbDxy5pJtzMKGmmpPxeAmAhWxXI+01lU5rwZomDgD3kJwulEnhTRUd6g==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"android"
|
||||
@@ -126,13 +130,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/android-x64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.24.2.tgz",
|
||||
"integrity": "sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.0.tgz",
|
||||
"integrity": "sha512-m/ix7SfKG5buCnxasr52+LI78SQ+wgdENi9CqyCXwjVR2X4Jkz+BpC3le3AoBPYTC9NHklwngVXvbJ9/Akhrfg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"android"
|
||||
@@ -142,13 +147,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/darwin-arm64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.24.2.tgz",
|
||||
"integrity": "sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.0.tgz",
|
||||
"integrity": "sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
@@ -158,13 +164,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/darwin-x64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.24.2.tgz",
|
||||
"integrity": "sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.0.tgz",
|
||||
"integrity": "sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
@@ -174,13 +181,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/freebsd-arm64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.2.tgz",
|
||||
"integrity": "sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.0.tgz",
|
||||
"integrity": "sha512-VN4ocxy6dxefN1MepBx/iD1dH5K8qNtNe227I0mnTRjry8tj5MRk4zprLEdG8WPyAPb93/e4pSgi1SoHdgOa4w==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"freebsd"
|
||||
@@ -190,13 +198,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/freebsd-x64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.24.2.tgz",
|
||||
"integrity": "sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.0.tgz",
|
||||
"integrity": "sha512-mrSgt7lCh07FY+hDD1TxiTyIHyttn6vnjesnPoVDNmDfOmggTLXRv8Id5fNZey1gl/V2dyVK1VXXqVsQIiAk+A==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"freebsd"
|
||||
@@ -206,13 +215,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-arm": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.24.2.tgz",
|
||||
"integrity": "sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.0.tgz",
|
||||
"integrity": "sha512-vkB3IYj2IDo3g9xX7HqhPYxVkNQe8qTK55fraQyTzTX/fxaDtXiEnavv9geOsonh2Fd2RMB+i5cbhu2zMNWJwg==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -222,13 +232,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-arm64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.24.2.tgz",
|
||||
"integrity": "sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.0.tgz",
|
||||
"integrity": "sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -238,13 +249,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-ia32": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.24.2.tgz",
|
||||
"integrity": "sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.0.tgz",
|
||||
"integrity": "sha512-43ET5bHbphBegyeqLb7I1eYn2P/JYGNmzzdidq/w0T8E2SsYL1U6un2NFROFRg1JZLTzdCoRomg8Rvf9M6W6Gg==",
|
||||
"cpu": [
|
||||
"ia32"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -254,13 +266,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-loong64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.24.2.tgz",
|
||||
"integrity": "sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.0.tgz",
|
||||
"integrity": "sha512-fC95c/xyNFueMhClxJmeRIj2yrSMdDfmqJnyOY4ZqsALkDrrKJfIg5NTMSzVBr5YW1jf+l7/cndBfP3MSDpoHw==",
|
||||
"cpu": [
|
||||
"loong64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -270,13 +283,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-mips64el": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.24.2.tgz",
|
||||
"integrity": "sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.0.tgz",
|
||||
"integrity": "sha512-nkAMFju7KDW73T1DdH7glcyIptm95a7Le8irTQNO/qtkoyypZAnjchQgooFUDQhNAy4iu08N79W4T4pMBwhPwQ==",
|
||||
"cpu": [
|
||||
"mips64el"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -286,13 +300,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-ppc64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.24.2.tgz",
|
||||
"integrity": "sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.0.tgz",
|
||||
"integrity": "sha512-NhyOejdhRGS8Iwv+KKR2zTq2PpysF9XqY+Zk77vQHqNbo/PwZCzB5/h7VGuREZm1fixhs4Q/qWRSi5zmAiO4Fw==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -302,13 +317,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-riscv64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.24.2.tgz",
|
||||
"integrity": "sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.0.tgz",
|
||||
"integrity": "sha512-5S/rbP5OY+GHLC5qXp1y/Mx//e92L1YDqkiBbO9TQOvuFXM+iDqUNG5XopAnXoRH3FjIUDkeGcY1cgNvnXp/kA==",
|
||||
"cpu": [
|
||||
"riscv64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -318,13 +334,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-s390x": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.24.2.tgz",
|
||||
"integrity": "sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.0.tgz",
|
||||
"integrity": "sha512-XM2BFsEBz0Fw37V0zU4CXfcfuACMrppsMFKdYY2WuTS3yi8O1nFOhil/xhKTmE1nPmVyvQJjJivgDT+xh8pXJA==",
|
||||
"cpu": [
|
||||
"s390x"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -334,13 +351,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-x64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.24.2.tgz",
|
||||
"integrity": "sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.0.tgz",
|
||||
"integrity": "sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -350,13 +368,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/netbsd-arm64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.24.2.tgz",
|
||||
"integrity": "sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.0.tgz",
|
||||
"integrity": "sha512-RuG4PSMPFfrkH6UwCAqBzauBWTygTvb1nxWasEJooGSJ/NwRw7b2HOwyRTQIU97Hq37l3npXoZGYMy3b3xYvPw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"netbsd"
|
||||
@@ -366,13 +385,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/netbsd-x64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.24.2.tgz",
|
||||
"integrity": "sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.0.tgz",
|
||||
"integrity": "sha512-jl+qisSB5jk01N5f7sPCsBENCOlPiS/xptD5yxOx2oqQfyourJwIKLRA2yqWdifj3owQZCL2sn6o08dBzZGQzA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"netbsd"
|
||||
@@ -382,13 +402,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/openbsd-arm64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.2.tgz",
|
||||
"integrity": "sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.0.tgz",
|
||||
"integrity": "sha512-21sUNbq2r84YE+SJDfaQRvdgznTD8Xc0oc3p3iW/a1EVWeNj/SdUCbm5U0itZPQYRuRTW20fPMWMpcrciH2EJw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"openbsd"
|
||||
@@ -398,13 +419,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/openbsd-x64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.24.2.tgz",
|
||||
"integrity": "sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.0.tgz",
|
||||
"integrity": "sha512-2gwwriSMPcCFRlPlKx3zLQhfN/2WjJ2NSlg5TKLQOJdV0mSxIcYNTMhk3H3ulL/cak+Xj0lY1Ym9ysDV1igceg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"openbsd"
|
||||
@@ -414,13 +436,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/sunos-x64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.24.2.tgz",
|
||||
"integrity": "sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.0.tgz",
|
||||
"integrity": "sha512-bxI7ThgLzPrPz484/S9jLlvUAHYMzy6I0XiU1ZMeAEOBcS0VePBFxh1JjTQt3Xiat5b6Oh4x7UC7IwKQKIJRIg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"sunos"
|
||||
@@ -430,13 +453,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/win32-arm64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.24.2.tgz",
|
||||
"integrity": "sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.0.tgz",
|
||||
"integrity": "sha512-ZUAc2YK6JW89xTbXvftxdnYy3m4iHIkDtK3CLce8wg8M2L+YZhIvO1DKpxrd0Yr59AeNNkTiic9YLf6FTtXWMw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
@@ -446,13 +470,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/win32-ia32": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.24.2.tgz",
|
||||
"integrity": "sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.0.tgz",
|
||||
"integrity": "sha512-eSNxISBu8XweVEWG31/JzjkIGbGIJN/TrRoiSVZwZ6pkC6VX4Im/WV2cz559/TXLcYbcrDN8JtKgd9DJVIo8GA==",
|
||||
"cpu": [
|
||||
"ia32"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
@@ -462,13 +487,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/win32-x64": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.2.tgz",
|
||||
"integrity": "sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.0.tgz",
|
||||
"integrity": "sha512-ZENoHJBxA20C2zFzh6AI4fT6RraMzjYw4xKWemRTRmRVtN9c5DcH9r/f2ihEkMjOW5eGgrwCslG/+Y/3bL+DHQ==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
@@ -645,16 +671,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/auth-app": {
|
||||
"version": "7.1.4",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-7.1.4.tgz",
|
||||
"integrity": "sha512-5F+3l/maq9JfWQ4bV28jT2G/K8eu9OJ317yzXPTGe4Kw+lKDhFaS4dQ3Ltmb6xImKxfCQdqDqMXODhc9YLipLw==",
|
||||
"version": "7.1.5",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-7.1.5.tgz",
|
||||
"integrity": "sha512-boklS4E6LpbA3nRx+SU2fRKRGZJdOGoSZne/i3Y0B5rfHOcGwFgcXrwDLdtbv4igfDSnAkZaoNBv1GYjPDKRNw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/auth-oauth-app": "^8.1.2",
|
||||
"@octokit/auth-oauth-user": "^5.1.2",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/request-error": "^6.1.6",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"@octokit/auth-oauth-app": "^8.1.3",
|
||||
"@octokit/auth-oauth-user": "^5.1.3",
|
||||
"@octokit/request": "^9.2.1",
|
||||
"@octokit/request-error": "^6.1.7",
|
||||
"@octokit/types": "^13.8.0",
|
||||
"toad-cache": "^3.7.0",
|
||||
"universal-github-app-jwt": "^2.2.0",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
@@ -664,14 +690,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/auth-oauth-app": {
|
||||
"version": "8.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-8.1.2.tgz",
|
||||
"integrity": "sha512-3woNZgq5/S6RS+9ZTq+JdymxVr7E0s4EYxF20ugQvgX3pomdPUL5r/XdTY9wALoBM2eHVy4ettr5fKpatyTyHw==",
|
||||
"version": "8.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-8.1.3.tgz",
|
||||
"integrity": "sha512-4e6OjVe5rZ8yBe8w7byBjpKtSXFuro7gqeGAAZc7QYltOF8wB93rJl2FE0a4U1Mt88xxPv/mS+25/0DuLk0Ewg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/auth-oauth-device": "^7.1.2",
|
||||
"@octokit/auth-oauth-user": "^5.1.2",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/auth-oauth-device": "^7.1.3",
|
||||
"@octokit/auth-oauth-user": "^5.1.3",
|
||||
"@octokit/request": "^9.2.1",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
@@ -680,13 +706,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/auth-oauth-device": {
|
||||
"version": "7.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-7.1.2.tgz",
|
||||
"integrity": "sha512-gTOIzDeV36OhVfxCl69FmvJix7tJIiU6dlxuzLVAzle7fYfO8UDyddr9B+o4CFQVaMBLMGZ9ak2CWMYcGeZnPw==",
|
||||
"version": "7.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-7.1.3.tgz",
|
||||
"integrity": "sha512-BECO/N4B/Uikj0w3GCvjf/odMujtYTP3q82BJSjxC2J3rxTEiZIJ+z2xnRlDb0IE9dQSaTgRqUPVOieSbFcVzg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/oauth-methods": "^5.1.3",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/oauth-methods": "^5.1.4",
|
||||
"@octokit/request": "^9.2.1",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
@@ -695,14 +721,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/auth-oauth-user": {
|
||||
"version": "5.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-5.1.2.tgz",
|
||||
"integrity": "sha512-PgVDDPJgZYb3qSEXK4moksA23tfn68zwSAsQKZ1uH6IV9IaNEYx35OXXI80STQaLYnmEE86AgU0tC1YkM4WjsA==",
|
||||
"version": "5.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-5.1.3.tgz",
|
||||
"integrity": "sha512-zNPByPn9K7TC+OOHKGxU+MxrE9SZAN11UHYEFLsK2NRn3akJN2LHRl85q+Eypr3tuB2GrKx3rfj2phJdkYCvzw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/auth-oauth-device": "^7.1.2",
|
||||
"@octokit/oauth-methods": "^5.1.2",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/auth-oauth-device": "^7.1.3",
|
||||
"@octokit/oauth-methods": "^5.1.3",
|
||||
"@octokit/request": "^9.2.1",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
@@ -711,11 +737,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/endpoint": {
|
||||
"version": "10.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.1.tgz",
|
||||
"integrity": "sha512-JYjh5rMOwXMJyUpj028cu0Gbp7qe/ihxfJMLc8VZBMMqSwLgOxDI1911gV4Enl1QSavAQNJcwmwBF9M0VvLh6Q==",
|
||||
"version": "10.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.3.tgz",
|
||||
"integrity": "sha512-nBRBMpKPhQUxCsQQeW+rCJ/OPSMcj3g0nfHn01zGYZXuNDvvXudF/TYY6APj5THlurerpFN4a/dQAIAaM6BYhA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^13.0.0",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"universal-user-agent": "^7.0.2"
|
||||
},
|
||||
"engines": {
|
||||
@@ -732,14 +759,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/oauth-methods": {
|
||||
"version": "5.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-5.1.3.tgz",
|
||||
"integrity": "sha512-M+bDBi5H8FnH0xhCTg0m9hvcnppdDnxUqbZyOkxlLblKpLAR+eT2nbDPvJDp0eLrvJWA1I8OX0KHf/sBMQARRA==",
|
||||
"version": "5.1.4",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-5.1.4.tgz",
|
||||
"integrity": "sha512-Jc/ycnePClOvO1WL7tlC+TRxOFtyJBGuTDsL4dzXNiVZvzZdrPuNw7zHI3qJSUX2n6RLXE5L0SkFmYyNaVUFoQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/oauth-authorization-url": "^7.0.0",
|
||||
"@octokit/request": "^9.1.4",
|
||||
"@octokit/request-error": "^6.1.6",
|
||||
"@octokit/request": "^9.2.1",
|
||||
"@octokit/request-error": "^6.1.7",
|
||||
"@octokit/types": "^13.6.2"
|
||||
},
|
||||
"engines": {
|
||||
@@ -747,18 +774,19 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/openapi-types": {
|
||||
"version": "22.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||
"version": "23.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-23.0.1.tgz",
|
||||
"integrity": "sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@octokit/request": {
|
||||
"version": "9.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.2.0.tgz",
|
||||
"integrity": "sha512-kXLfcxhC4ozCnAXy2ff+cSxpcF0A1UqxjvYMqNuPIeOAzJbVWQ+dy5G2fTylofB/gTbObT8O6JORab+5XtA1Kw==",
|
||||
"version": "9.2.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.2.2.tgz",
|
||||
"integrity": "sha512-dZl0ZHx6gOQGcffgm1/Sf6JfEpmh34v3Af2Uci02vzUYz6qEN6zepoRtmybWXIGXFIK8K9ylE3b+duCWqhArtg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/endpoint": "^10.0.0",
|
||||
"@octokit/request-error": "^6.0.1",
|
||||
"@octokit/endpoint": "^10.1.3",
|
||||
"@octokit/request-error": "^6.1.7",
|
||||
"@octokit/types": "^13.6.2",
|
||||
"fast-content-type-parse": "^2.0.0",
|
||||
"universal-user-agent": "^7.0.2"
|
||||
@@ -768,9 +796,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/request-error": {
|
||||
"version": "6.1.6",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.6.tgz",
|
||||
"integrity": "sha512-pqnVKYo/at0NuOjinrgcQYpEbv4snvP3bKMRqHaD9kIsk9u1LCpb2smHZi8/qJfgeNqLo5hNW4Z7FezNdEo0xg==",
|
||||
"version": "6.1.7",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.7.tgz",
|
||||
"integrity": "sha512-69NIppAwaauwZv6aOzb+VVLwt+0havz9GT5YplkeJv7fG7a40qpLt/yZKyiDxAhgz0EtgNdNcb96Z0u+Zyuy2g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^13.6.2"
|
||||
@@ -780,11 +808,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/types": {
|
||||
"version": "13.6.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.6.2.tgz",
|
||||
"integrity": "sha512-WpbZfZUcZU77DrSW4wbsSgTPfKcp286q3ItaIgvSbBpZJlu6mnYXAkjZz6LVZPXkEvLIM8McanyZejKTYUHipA==",
|
||||
"version": "13.8.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.8.0.tgz",
|
||||
"integrity": "sha512-x7DjTIbEpEWXK99DMd01QfWy0hd5h4EN+Q7shkdKds3otGQP+oWE/y0A76i1OvH9fygo4ddvNf7ZvF0t78P98A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/openapi-types": "^22.2.0"
|
||||
"@octokit/openapi-types": "^23.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@pkgjs/parseargs": {
|
||||
@@ -1582,11 +1611,12 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/esbuild": {
|
||||
"version": "0.24.2",
|
||||
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.2.tgz",
|
||||
"integrity": "sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==",
|
||||
"version": "0.25.0",
|
||||
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.0.tgz",
|
||||
"integrity": "sha512-BXq5mqc8ltbaN34cDqWuYKyNhX8D/Z0J1xdtdQ8UcIIIyJyz+ZMKUt58tF3SrZ85jcfN/PZYhjR5uDQAYNVbuw==",
|
||||
"dev": true,
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"esbuild": "bin/esbuild"
|
||||
},
|
||||
@@ -1594,31 +1624,31 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@esbuild/aix-ppc64": "0.24.2",
|
||||
"@esbuild/android-arm": "0.24.2",
|
||||
"@esbuild/android-arm64": "0.24.2",
|
||||
"@esbuild/android-x64": "0.24.2",
|
||||
"@esbuild/darwin-arm64": "0.24.2",
|
||||
"@esbuild/darwin-x64": "0.24.2",
|
||||
"@esbuild/freebsd-arm64": "0.24.2",
|
||||
"@esbuild/freebsd-x64": "0.24.2",
|
||||
"@esbuild/linux-arm": "0.24.2",
|
||||
"@esbuild/linux-arm64": "0.24.2",
|
||||
"@esbuild/linux-ia32": "0.24.2",
|
||||
"@esbuild/linux-loong64": "0.24.2",
|
||||
"@esbuild/linux-mips64el": "0.24.2",
|
||||
"@esbuild/linux-ppc64": "0.24.2",
|
||||
"@esbuild/linux-riscv64": "0.24.2",
|
||||
"@esbuild/linux-s390x": "0.24.2",
|
||||
"@esbuild/linux-x64": "0.24.2",
|
||||
"@esbuild/netbsd-arm64": "0.24.2",
|
||||
"@esbuild/netbsd-x64": "0.24.2",
|
||||
"@esbuild/openbsd-arm64": "0.24.2",
|
||||
"@esbuild/openbsd-x64": "0.24.2",
|
||||
"@esbuild/sunos-x64": "0.24.2",
|
||||
"@esbuild/win32-arm64": "0.24.2",
|
||||
"@esbuild/win32-ia32": "0.24.2",
|
||||
"@esbuild/win32-x64": "0.24.2"
|
||||
"@esbuild/aix-ppc64": "0.25.0",
|
||||
"@esbuild/android-arm": "0.25.0",
|
||||
"@esbuild/android-arm64": "0.25.0",
|
||||
"@esbuild/android-x64": "0.25.0",
|
||||
"@esbuild/darwin-arm64": "0.25.0",
|
||||
"@esbuild/darwin-x64": "0.25.0",
|
||||
"@esbuild/freebsd-arm64": "0.25.0",
|
||||
"@esbuild/freebsd-x64": "0.25.0",
|
||||
"@esbuild/linux-arm": "0.25.0",
|
||||
"@esbuild/linux-arm64": "0.25.0",
|
||||
"@esbuild/linux-ia32": "0.25.0",
|
||||
"@esbuild/linux-loong64": "0.25.0",
|
||||
"@esbuild/linux-mips64el": "0.25.0",
|
||||
"@esbuild/linux-ppc64": "0.25.0",
|
||||
"@esbuild/linux-riscv64": "0.25.0",
|
||||
"@esbuild/linux-s390x": "0.25.0",
|
||||
"@esbuild/linux-x64": "0.25.0",
|
||||
"@esbuild/netbsd-arm64": "0.25.0",
|
||||
"@esbuild/netbsd-x64": "0.25.0",
|
||||
"@esbuild/openbsd-arm64": "0.25.0",
|
||||
"@esbuild/openbsd-x64": "0.25.0",
|
||||
"@esbuild/sunos-x64": "0.25.0",
|
||||
"@esbuild/win32-arm64": "0.25.0",
|
||||
"@esbuild/win32-ia32": "0.25.0",
|
||||
"@esbuild/win32-x64": "0.25.0"
|
||||
}
|
||||
},
|
||||
"node_modules/escalade": {
|
||||
@@ -3610,9 +3640,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/undici": {
|
||||
"version": "7.3.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.3.0.tgz",
|
||||
"integrity": "sha512-Qy96NND4Dou5jKoSJ2gm8ax8AJM/Ey9o9mz7KN1bb9GP+G0l20Zw8afxTnY2f4b7hmhn/z8aC2kfArVQlAhFBw==",
|
||||
"version": "7.5.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.5.0.tgz",
|
||||
"integrity": "sha512-NFQG741e8mJ0fLQk90xKxFdaSM7z4+IQpAgsFI36bCDY9Z2+aXXZjVy2uUksMouWfMI9+w5ejOq5zYYTBCQJDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
|
||||
+5
-5
@@ -2,7 +2,7 @@
|
||||
"name": "create-github-app-token",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "1.11.3",
|
||||
"version": "1.11.7",
|
||||
"description": "GitHub Action for creating a GitHub App Installation Access Token",
|
||||
"scripts": {
|
||||
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20.0.0 --packages=bundle",
|
||||
@@ -13,17 +13,17 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.11.1",
|
||||
"@octokit/auth-app": "^7.1.4",
|
||||
"@octokit/request": "^9.2.0",
|
||||
"@octokit/auth-app": "^7.1.5",
|
||||
"@octokit/request": "^9.2.2",
|
||||
"p-retry": "^6.2.1",
|
||||
"undici": "^7.3.0"
|
||||
"undici": "^7.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sinonjs/fake-timers": "^14.0.0",
|
||||
"ava": "^6.2.0",
|
||||
"c8": "^10.1.3",
|
||||
"dotenv": "^16.4.7",
|
||||
"esbuild": "^0.24.2",
|
||||
"esbuild": "^0.25.0",
|
||||
"execa": "^9.5.2",
|
||||
"open-cli": "^8.0.0",
|
||||
"yaml": "^2.7.0"
|
||||
|
||||
Reference in New Issue
Block a user