Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 27 additions & 23 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/helpers/assign-pr-reviewers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
notifyUser
} from "../main-g3pj8478.js";
} from "../main-c0rzzm9y.js";
import"../main-20bkpkj4.js";
import"../main-dkdfy8cx.js";
import {
Expand Down
4 changes: 2 additions & 2 deletions dist/helpers/manage-merge-queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import {
enableAutoMerge,
manageMergeQueue,
removePrFromQueue
} from "../main-z7328n7j.js";
} from "../main-29q5c7jr.js";
import"../main-tpsq2rcz.js";
import"../main-mdmhazxs.js";
import"../main-tabt2mhg.js";
import"../main-4kbya0ya.js";
import"../main-027js48w.js";
import"../main-x7kxctck.js";
import"../main-g3pj8478.js";
import"../main-c0rzzm9y.js";
import"../main-20bkpkj4.js";
import"../main-dkdfy8cx.js";
import"../main-9c2herm2.js";
Expand Down
4 changes: 2 additions & 2 deletions dist/helpers/prepare-queued-pr-for-merge.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import {
prepareQueuedPrForMerge,
updatePrWithDefaultBranch
} from "../main-z7328n7j.js";
} from "../main-29q5c7jr.js";
import"../main-tpsq2rcz.js";
import"../main-mdmhazxs.js";
import"../main-tabt2mhg.js";
import"../main-4kbya0ya.js";
import"../main-027js48w.js";
import"../main-x7kxctck.js";
import"../main-g3pj8478.js";
import"../main-c0rzzm9y.js";
import"../main-20bkpkj4.js";
import"../main-dkdfy8cx.js";
import"../main-9c2herm2.js";
Expand Down
2 changes: 1 addition & 1 deletion dist/main-z7328n7j.js → dist/main-29q5c7jr.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
} from "./main-x7kxctck.js";
import {
notifyUser
} from "./main-g3pj8478.js";
} from "./main-c0rzzm9y.js";
import {
getEmailOnUserProfile
} from "./main-20bkpkj4.js";
Expand Down
File renamed without changes.
130 changes: 98 additions & 32 deletions dist/main-g3pj8478.js → dist/main-c0rzzm9y.js
Original file line number Diff line number Diff line change
Expand Up @@ -11927,7 +11927,13 @@ function redactConfig(config, redactKeys) {
class AxiosError extends Error {
static from(error2, code, config, request, response, customProps) {
const axiosError = new AxiosError(error2.message, code || error2.code, config, request, response);
axiosError.cause = error2;
Object.defineProperty(axiosError, "cause", {
__proto__: null,
value: error2,
writable: true,
enumerable: false,
configurable: true
});
axiosError.name = error2.name;
if (error2.status != null && axiosError.status == null) {
axiosError.status = error2.status;
Expand Down Expand Up @@ -12051,7 +12057,13 @@ function toFormData(obj, formData, options) {
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
}
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
if (useBlob && typeof _Blob === "function") {
return new _Blob([value]);
}
if (typeof Buffer !== "undefined") {
return Buffer.from(value);
}
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.", AxiosError_default.ERR_NOT_SUPPORT);
}
return value;
}
Expand Down Expand Up @@ -12153,9 +12165,7 @@ prototype.append = function append(name, value) {
this._pairs.push([name, value]);
};
prototype.toString = function toString2(encoder) {
const _encode = encoder ? function(value) {
return encoder.call(this, value, encode);
} : encode;
const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
return this._pairs.map(function each(pair) {
return _encode(pair[0]) + "=" + _encode(pair[1]);
}, "").join("&");
Expand All @@ -12170,6 +12180,7 @@ function buildURL(url, params, options) {
if (!params) {
return url;
}
url = url || "";
const _options = utils_default.isFunction(options) ? {
serialize: options
} : options;
Expand Down Expand Up @@ -12641,7 +12652,7 @@ import { resolve as resolvePath } from "path";
import zlib from "zlib";

// node_modules/axios/lib/env/data.js
var VERSION = "1.18.0";
var VERSION = "1.18.1";

// node_modules/axios/lib/helpers/parseProtocol.js
function parseProtocol(url2) {
Expand All @@ -12667,13 +12678,13 @@ function fromDataURI(uri, asBlob, options) {
const params = match[2];
const encoding = match[3] ? "base64" : "utf8";
const body = match[4];
let mime;
let mime = "";
if (type) {
mime = params ? type + params : type;
} else if (params) {
mime = "text/plain" + params;
}
const buffer = Buffer.from(decodeURIComponent(body), encoding);
const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
if (asBlob) {
if (!_Blob) {
throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
Expand Down Expand Up @@ -13401,6 +13412,33 @@ var kAxiosCurrentReq = Symbol("axios.http.currentReq");
var kAxiosInstalledTunnel = Symbol("axios.http.installedTunnel");
var tunnelingAgentCache = new Map;
var tunnelingAgentCacheUser = new WeakMap;
var NODE_NATIVE_ENV_PROXY_SUPPORT = {
22: 21,
24: 5
};
function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
if (!nodeVersion) {
return false;
}
const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
if (!Number.isInteger(major) || !Number.isInteger(minor)) {
return false;
}
if (major > 24) {
return true;
}
return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
}
function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
if (!isNodeNativeEnvProxySupported(nodeVersion)) {
return false;
}
const agentOptions = agent && agent.options;
return Boolean(agentOptions && utils_default.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null);
}
function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
}
function getTunnelingAgent(agentOptions, userHttpsAgent) {
const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, new Map).get(userHttpsAgent) : tunnelingAgentCache;
Expand Down Expand Up @@ -13472,9 +13510,10 @@ function isSameOriginRedirect(redirectOptions, requestDetails) {
return false;
}
}
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent) {
let proxy = configProxy;
if (!proxy && proxy !== false) {
const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
const proxyUrl = getProxyForUrl(location);
if (proxyUrl) {
if (!shouldBypassProxy(location)) {
Expand Down Expand Up @@ -13563,7 +13602,7 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent)
}
}
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent, configHttpAgent);
};
}
var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
Expand Down Expand Up @@ -13636,10 +13675,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
if (httpVersion === undefined)
httpVersion = 1;
let http2Options = own2("http2Options");
const responseType = own2("responseType");
const responseEncoding = own2("responseEncoding");
const httpAgent = own2("httpAgent");
const httpsAgent = own2("httpsAgent");
const configProxy = own2("proxy");
const responseType = own2("responseType");
const responseEncoding = own2("responseEncoding");
const socketPath = own2("socketPath");
const method = own2("method").toUpperCase();
const maxRedirects = own2("maxRedirects");
const maxBodyLength = own2("maxBodyLength");
Expand Down Expand Up @@ -13726,7 +13767,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
}
});
const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : undefined);
const urlBase = socketPath ? "http://localhost" : platform_default.hasBrowserEnv ? platform_default.origin : undefined;
const parsed = new URL(fullPath, urlBase);
const protocol = parsed.protocol || supportedProtocols[0];
if (protocol === "data:") {
if (maxContentLength > -1) {
Expand Down Expand Up @@ -13846,11 +13888,10 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
try {
path = buildURL(parsed.pathname + parsed.search, own2("params"), own2("paramsSerializer")).replace(/^\?/, "");
} catch (err) {
const customErr = new Error(err.message);
customErr.config = config;
customErr.url = own2("url");
customErr.exists = true;
return reject(customErr);
return reject(AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config, null, null, {
url: own2("url"),
exists: true
}));
}
headers.set("Accept-Encoding", utils_default.hasOwnProp(transitional, "advertiseZstdAcceptEncoding") && transitional.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING, false);
const options = Object.assign(Object.create(null), {
Expand All @@ -13866,7 +13907,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
http2Options
});
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
const socketPath = own2("socketPath");
if (socketPath) {
if (typeof socketPath !== "string") {
return reject(new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config));
Expand All @@ -13884,7 +13924,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
} else {
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
options.port = parsed.port;
setProxy(options, own2("proxy"), protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path, false, httpsAgent);
setProxy(options, configProxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path, false, httpsAgent, httpAgent);
}
let transport;
let isNativeTransport = false;
Expand Down Expand Up @@ -14087,7 +14127,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
});
const boundSockets = new Set;
req.on("socket", function handleRequestSocket(socket) {
socket.setKeepAlive(true, 1000 * 60);
if (typeof socket.setKeepAlive === "function") {
socket.setKeepAlive(true, 1000 * 60);
}
if (!socket[kAxiosSocketListener]) {
socket.on("error", function handleSocketError(err) {
const current = socket[kAxiosCurrentReq];
Expand Down Expand Up @@ -14208,7 +14250,11 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? {
const cookie = cookies[i].replace(/^\s+/, "");
const eq = cookie.indexOf("=");
if (eq !== -1 && cookie.slice(0, eq) === name) {
return decodeURIComponent(cookie.slice(eq + 1));
try {
return decodeURIComponent(cookie.slice(eq + 1));
} catch (e) {
return cookie.slice(eq + 1);
}
}
}
return null;
Expand All @@ -14227,6 +14273,7 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? {
// node_modules/axios/lib/core/mergeConfig.js
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
function mergeConfig(config1, config2) {
config1 = config1 || {};
config2 = config2 || {};
const config = Object.create(null);
Object.defineProperty(config, "hasOwnProperty", {
Expand Down Expand Up @@ -14347,7 +14394,7 @@ function setFormDataHeaders2(headers, formHeaders, policy) {
headers.set(formHeaders);
return;
}
Object.entries(formHeaders).forEach(([key, val]) => {
Object.entries(formHeaders || {}).forEach(([key, val]) => {
if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
headers.set(key, val);
}
Expand All @@ -14371,7 +14418,11 @@ function resolveConfig(config) {
if (auth) {
const username = utils_default.getSafeProp(auth, "username") || "";
const password = utils_default.getSafeProp(auth, "password") || "";
headers.set("Authorization", "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : "")));
try {
headers.set("Authorization", "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : "")));
} catch (e) {
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
}
}
if (utils_default.isFormData(data)) {
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
Expand Down Expand Up @@ -14517,6 +14568,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
const protocol = parseProtocol(_config.url);
if (protocol && !platform_default.protocols.includes(protocol)) {
reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
done();
return;
}
request.send(requestData || null);
Expand Down Expand Up @@ -14554,7 +14606,7 @@ var composeSignals = (signals, timeout) => {
});
signals = null;
};
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
signals.forEach((signal2) => signal2.addEventListener("abort", onabort, { once: true }));
const { signal } = controller;
signal.unsubscribe = () => utils_default.asap(unsubscribe);
return signal;
Expand Down Expand Up @@ -14935,7 +14987,15 @@ var factory = (env) => {
const canceledError = composedSignal.reason;
canceledError.config = config;
request && (canceledError.request = request);
err !== canceledError && (canceledError.cause = err);
if (err !== canceledError) {
Object.defineProperty(canceledError, "cause", {
__proto__: null,
value: err,
writable: true,
enumerable: false,
configurable: true
});
}
throw canceledError;
}
if (pendingBodyError) {
Expand All @@ -14947,9 +15007,15 @@ var factory = (env) => {
throw err;
}
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
throw Object.assign(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request, err && err.response), {
cause: err.cause || err
const networkError = new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request, err && err.response);
Object.defineProperty(networkError, "cause", {
__proto__: null,
value: err.cause || err,
writable: true,
enumerable: false,
configurable: true
});
throw networkError;
}
throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
}
Expand Down Expand Up @@ -15015,7 +15081,7 @@ function getAdapter(adapters, config) {
let s = length ? reasons.length > 1 ? `since :
` + reasons.map(renderReason).join(`
`) : " " + renderReason(reasons[0]) : "as no adapter specified";
throw new AxiosError_default(`There is no suitable adapter to dispatch the request ` + s, "ERR_NOT_SUPPORT");
throw new AxiosError_default(`There is no suitable adapter to dispatch the request ` + s, AxiosError_default.ERR_NOT_SUPPORT);
}
return adapter2;
}
Expand Down Expand Up @@ -15098,7 +15164,7 @@ validators.spelling = function spelling(correctSpelling) {
};
};
function assertOptions(options, schema, allowUnknown) {
if (typeof options !== "object") {
if (typeof options !== "object" || options === null) {
throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
}
const keys = Object.keys(options);
Expand Down Expand Up @@ -15543,4 +15609,4 @@ var notifyUser = async ({ login, pull_number, slack_webhook_url }) => {

export { notifyUser };

//# debugId=0901ED2CD23569AD64756E2164756E21
//# debugId=7AFC0A58409F0FFE64756E2164756E21
Loading