Aktueller Stand

This commit is contained in:
2026-01-23 01:33:35 +01:00
parent 082dc5e110
commit 2766dd12c5
10109 changed files with 1578841 additions and 77685 deletions

View File

@@ -1,5 +1,3 @@
export declare enum BinaryType {
QueryEngineBinary = "query-engine",
QueryEngineLibrary = "libquery-engine",
SchemaEngineBinary = "schema-engine"
}

View File

@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var BinaryType_exports = {};
__export(BinaryType_exports, {
BinaryType: () => import_chunk_X37PZICB.BinaryType
BinaryType: () => import_chunk_66KG5WKV.BinaryType
});
module.exports = __toCommonJS(BinaryType_exports);
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
var import_chunk_66KG5WKV = require("./chunk-66KG5WKV.js");
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");

View File

@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var chmodPlusX_exports = {};
__export(chmodPlusX_exports, {
chmodPlusX: () => import_chunk_MX3HXAU2.chmodPlusX
chmodPlusX: () => import_chunk_7JLQJWOR.chmodPlusX
});
module.exports = __toCommonJS(chmodPlusX_exports);
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");

File diff suppressed because it is too large Load Diff

View File

@@ -16,34 +16,38 @@ var __copyProps = (to, from, except, desc) => {
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var chunk_AH6QHEOA_exports = {};
__export(chunk_AH6QHEOA_exports, {
var chunk_2ESYSVXG_exports = {};
__export(chunk_2ESYSVXG_exports, {
__commonJS: () => __commonJS,
__privateAdd: () => __privateAdd,
__privateGet: () => __privateGet,
__privateSet: () => __privateSet,
__esm: () => __esm,
__export: () => __export2,
__require: () => __require,
__toCommonJS: () => __toCommonJS2,
__toESM: () => __toESM
});
module.exports = __toCommonJS(chunk_AH6QHEOA_exports);
module.exports = __toCommonJS(chunk_2ESYSVXG_exports);
var __create = Object.create;
var __defProp2 = Object.defineProperty;
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
var __getOwnPropNames2 = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
var __typeError = (msg) => {
throw TypeError(msg);
};
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
}) : x)(function(x) {
if (typeof require !== "undefined") return require.apply(this, arguments);
throw Error('Dynamic require of "' + x + '" is not supported');
});
var __esm = (fn, res) => function __init() {
return fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])(fn = 0)), res;
};
var __commonJS = (cb, mod) => function __require2() {
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
var __export2 = (target, all) => {
for (var name in all)
__defProp2(target, name, { get: all[name], enumerable: true });
};
var __copyProps2 = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames2(from))
@@ -60,7 +64,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);

View File

@@ -26,36 +26,33 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var chunk_QSTZGX47_exports = {};
__export(chunk_QSTZGX47_exports, {
var chunk_4GGGRRIN_exports = {};
__export(chunk_4GGGRRIN_exports, {
cleanupCache: () => cleanupCache
});
module.exports = __toCommonJS(chunk_QSTZGX47_exports);
var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js");
var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
module.exports = __toCommonJS(chunk_4GGGRRIN_exports);
var import_chunk_7AOUSONO = require("./chunk-7AOUSONO.js");
var import_chunk_4MDZEOKU = require("./chunk-4MDZEOKU.js");
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
var import_node_fs = __toESM(require("node:fs"));
var import_node_path = __toESM(require("node:path"));
var import_debug = __toESM(require("@prisma/debug"));
var import_fs = __toESM(require("fs"));
var import_path = __toESM(require("path"));
var import_util = require("util");
var import_p_map = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_p_map)());
var import_rimraf = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_rimraf)());
var import_p_map = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_7AOUSONO.require_p_map)());
var debug = (0, import_debug.default)("cleanupCache");
var del = (0, import_util.promisify)(import_rimraf.default);
async function cleanupCache(n = 5) {
try {
const rootCacheDir = await (0, import_chunk_FQ2BOR66.getRootCacheDir)();
const rootCacheDir = await (0, import_chunk_4MDZEOKU.getRootCacheDir)();
if (!rootCacheDir) {
debug("no rootCacheDir found");
return;
}
const channel = "master";
const cacheDir = import_path.default.join(rootCacheDir, channel);
const dirs = await import_fs.default.promises.readdir(cacheDir);
const cacheDir = import_node_path.default.join(rootCacheDir, channel);
const dirs = await import_node_fs.default.promises.readdir(cacheDir);
const dirsWithMeta = await Promise.all(
dirs.map(async (dirName) => {
const dir = import_path.default.join(cacheDir, dirName);
const statResult = await import_fs.default.promises.stat(dir);
const dir = import_node_path.default.join(cacheDir, dirName);
const statResult = await import_node_fs.default.promises.stat(dir);
return {
dir,
created: statResult.birthtime
@@ -64,7 +61,7 @@ async function cleanupCache(n = 5) {
);
dirsWithMeta.sort((a, b) => a.created < b.created ? 1 : -1);
const dirsToRemove = dirsWithMeta.slice(n);
await (0, import_p_map.default)(dirsToRemove, (dir) => del(dir.dir), { concurrency: 20 });
await (0, import_p_map.default)(dirsToRemove, (dir) => import_node_fs.default.promises.rm(dir.dir, { force: true, recursive: true }), { concurrency: 20 });
} catch (e) {
}
}

View File

@@ -16,13 +16,13 @@ var __copyProps = (to, from, except, desc) => {
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var chunk_4LX3XBNY_exports = {};
__export(chunk_4LX3XBNY_exports, {
var chunk_5564WBCW_exports = {};
__export(chunk_5564WBCW_exports, {
getBar: () => getBar
});
module.exports = __toCommonJS(chunk_4LX3XBNY_exports);
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
var require_node_progress = (0, import_chunk_AH6QHEOA.__commonJS)({
module.exports = __toCommonJS(chunk_5564WBCW_exports);
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
var require_node_progress = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/progress@2.0.3/node_modules/progress/lib/node-progress.js"(exports, module2) {
"use strict";
exports = module2.exports = ProgressBar;
@@ -132,13 +132,13 @@ var require_node_progress = (0, import_chunk_AH6QHEOA.__commonJS)({
};
}
});
var require_progress = (0, import_chunk_AH6QHEOA.__commonJS)({
var require_progress = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/progress@2.0.3/node_modules/progress/index.js"(exports, module2) {
"use strict";
module2.exports = require_node_progress();
}
});
var import_progress = (0, import_chunk_AH6QHEOA.__toESM)(require_progress());
var import_progress = (0, import_chunk_2ESYSVXG.__toESM)(require_progress());
function getBar(text) {
return new import_progress.default(`> ${text} [:bar] :percent`, {
stream: process.stdout,

View File

@@ -16,14 +16,12 @@ var __copyProps = (to, from, except, desc) => {
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var chunk_X37PZICB_exports = {};
__export(chunk_X37PZICB_exports, {
var chunk_66KG5WKV_exports = {};
__export(chunk_66KG5WKV_exports, {
BinaryType: () => BinaryType
});
module.exports = __toCommonJS(chunk_X37PZICB_exports);
module.exports = __toCommonJS(chunk_66KG5WKV_exports);
var BinaryType = /* @__PURE__ */ ((BinaryType2) => {
BinaryType2["QueryEngineBinary"] = "query-engine";
BinaryType2["QueryEngineLibrary"] = "libquery-engine";
BinaryType2["SchemaEngineBinary"] = "schema-engine";
return BinaryType2;
})(BinaryType || {});

View File

@@ -0,0 +1,190 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var chunk_7AOUSONO_exports = {};
__export(chunk_7AOUSONO_exports, {
require_p_map: () => require_p_map
});
module.exports = __toCommonJS(chunk_7AOUSONO_exports);
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
var require_indent_string = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/indent-string@4.0.0/node_modules/indent-string/index.js"(exports, module2) {
"use strict";
module2.exports = (string, count = 1, options) => {
options = {
indent: " ",
includeEmptyLines: false,
...options
};
if (typeof string !== "string") {
throw new TypeError(
`Expected \`input\` to be a \`string\`, got \`${typeof string}\``
);
}
if (typeof count !== "number") {
throw new TypeError(
`Expected \`count\` to be a \`number\`, got \`${typeof count}\``
);
}
if (typeof options.indent !== "string") {
throw new TypeError(
`Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\``
);
}
if (count === 0) {
return string;
}
const regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
return string.replace(regex, options.indent.repeat(count));
};
}
});
var require_clean_stack = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(exports, module2) {
"use strict";
var os = (0, import_chunk_2ESYSVXG.__require)("os");
var extractPathRegex = /\s+at.*(?:\(|\s)(.*)\)?/;
var pathRegex = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/;
var homeDir = typeof os.homedir === "undefined" ? "" : os.homedir();
module2.exports = (stack, options) => {
options = Object.assign({ pretty: false }, options);
return stack.replace(/\\/g, "/").split("\n").filter((line) => {
const pathMatches = line.match(extractPathRegex);
if (pathMatches === null || !pathMatches[1]) {
return true;
}
const match = pathMatches[1];
if (match.includes(".app/Contents/Resources/electron.asar") || match.includes(".app/Contents/Resources/default_app.asar")) {
return false;
}
return !pathRegex.test(match);
}).filter((line) => line.trim() !== "").map((line) => {
if (options.pretty) {
return line.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, "~")));
}
return line;
}).join("\n");
};
}
});
var require_aggregate_error = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js"(exports, module2) {
"use strict";
var indentString = require_indent_string();
var cleanStack = require_clean_stack();
var cleanInternalStack = (stack) => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, "");
var AggregateError = class extends Error {
constructor(errors) {
if (!Array.isArray(errors)) {
throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
}
errors = [...errors].map((error) => {
if (error instanceof Error) {
return error;
}
if (error !== null && typeof error === "object") {
return Object.assign(new Error(error.message), error);
}
return new Error(error);
});
let message = errors.map((error) => {
return typeof error.stack === "string" ? cleanInternalStack(cleanStack(error.stack)) : String(error);
}).join("\n");
message = "\n" + indentString(message, 4);
super(message);
this.name = "AggregateError";
Object.defineProperty(this, "_errors", { value: errors });
}
*[Symbol.iterator]() {
for (const error of this._errors) {
yield error;
}
}
};
module2.exports = AggregateError;
}
});
var require_p_map = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js"(exports, module2) {
"use strict";
var AggregateError = require_aggregate_error();
module2.exports = async (iterable, mapper, {
concurrency = Infinity,
stopOnError = true
} = {}) => {
return new Promise((resolve, reject) => {
if (typeof mapper !== "function") {
throw new TypeError("Mapper function is required");
}
if (!((Number.isSafeInteger(concurrency) || concurrency === Infinity) && concurrency >= 1)) {
throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
}
const result = [];
const errors = [];
const iterator = iterable[Symbol.iterator]();
let isRejected = false;
let isIterableDone = false;
let resolvingCount = 0;
let currentIndex = 0;
const next = () => {
if (isRejected) {
return;
}
const nextItem = iterator.next();
const index = currentIndex;
currentIndex++;
if (nextItem.done) {
isIterableDone = true;
if (resolvingCount === 0) {
if (!stopOnError && errors.length !== 0) {
reject(new AggregateError(errors));
} else {
resolve(result);
}
}
return;
}
resolvingCount++;
(async () => {
try {
const element = await nextItem.value;
result[index] = await mapper(element, index);
resolvingCount--;
next();
} catch (error) {
if (stopOnError) {
isRejected = true;
reject(error);
} else {
errors.push(error);
resolvingCount--;
next();
}
}
})();
};
for (let i = 0; i < concurrency; i++) {
next();
if (isIterableDone) {
break;
}
}
});
};
}
});

View File

@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var chunk_MX3HXAU2_exports = {};
__export(chunk_MX3HXAU2_exports, {
var chunk_7JLQJWOR_exports = {};
__export(chunk_7JLQJWOR_exports, {
chmodPlusX: () => chmodPlusX
});
module.exports = __toCommonJS(chunk_MX3HXAU2_exports);
var import_fs = __toESM(require("fs"));
module.exports = __toCommonJS(chunk_7JLQJWOR_exports);
var import_node_fs = __toESM(require("node:fs"));
function chmodPlusX(file) {
if (process.platform === "win32") return;
const s = import_fs.default.statSync(file);
const s = import_node_fs.default.statSync(file);
const newMode = s.mode | 64 | 8 | 1;
if (s.mode === newMode) {
return;
}
const base8 = newMode.toString(8).slice(-3);
import_fs.default.chmodSync(file, base8);
import_node_fs.default.chmodSync(file, base8);
}

File diff suppressed because it is too large Load Diff

View File

@@ -26,16 +26,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var chunk_KDPLGCY6_exports = {};
__export(chunk_KDPLGCY6_exports, {
var chunk_CTLNI6CP_exports = {};
__export(chunk_CTLNI6CP_exports, {
getProxyAgent: () => getProxyAgent
});
module.exports = __toCommonJS(chunk_KDPLGCY6_exports);
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
module.exports = __toCommonJS(chunk_CTLNI6CP_exports);
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
var import_node_process = __toESM(require("node:process"));
var import_node_os = __toESM(require("node:os"));
var import_node_tty = __toESM(require("node:tty"));
var import_debug = __toESM(require("@prisma/debug"));
var import_url = __toESM(require("url"));
var require_ms = (0, import_chunk_AH6QHEOA.__commonJS)({
"../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"(exports, module2) {
var require_ms = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module2) {
"use strict";
var s = 1e3;
var m = s * 60;
@@ -149,10 +151,10 @@ var require_ms = (0, import_chunk_AH6QHEOA.__commonJS)({
}
}
});
var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({
"../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/common.js"(exports, module2) {
var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/common.js"(exports, module2) {
"use strict";
function setup(env) {
function setup(env2) {
createDebug.debug = createDebug;
createDebug.default = createDebug;
createDebug.coerce = coerce;
@@ -161,8 +163,8 @@ var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({
createDebug.enabled = enabled;
createDebug.humanize = require_ms();
createDebug.destroy = destroy;
Object.keys(env).forEach((key) => {
createDebug[key] = env[key];
Object.keys(env2).forEach((key) => {
createDebug[key] = env2[key];
});
createDebug.names = [];
createDebug.skips = [];
@@ -252,50 +254,64 @@ var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({
createDebug.namespaces = namespaces;
createDebug.names = [];
createDebug.skips = [];
let i;
const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
const len = split.length;
for (i = 0; i < len; i++) {
if (!split[i]) {
continue;
}
namespaces = split[i].replace(/\*/g, ".*?");
if (namespaces[0] === "-") {
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
for (const ns of split) {
if (ns[0] === "-") {
createDebug.skips.push(ns.slice(1));
} else {
createDebug.names.push(new RegExp("^" + namespaces + "$"));
createDebug.names.push(ns);
}
}
}
function matchesTemplate(search, template) {
let searchIndex = 0;
let templateIndex = 0;
let starIndex = -1;
let matchIndex = 0;
while (searchIndex < search.length) {
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
if (template[templateIndex] === "*") {
starIndex = templateIndex;
matchIndex = searchIndex;
templateIndex++;
} else {
searchIndex++;
templateIndex++;
}
} else if (starIndex !== -1) {
templateIndex = starIndex + 1;
matchIndex++;
searchIndex = matchIndex;
} else {
return false;
}
}
while (templateIndex < template.length && template[templateIndex] === "*") {
templateIndex++;
}
return templateIndex === template.length;
}
function disable() {
const namespaces = [
...createDebug.names.map(toNamespace),
...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
...createDebug.names,
...createDebug.skips.map((namespace) => "-" + namespace)
].join(",");
createDebug.enable("");
return namespaces;
}
function enabled(name) {
if (name[name.length - 1] === "*") {
return true;
}
let i;
let len;
for (i = 0, len = createDebug.skips.length; i < len; i++) {
if (createDebug.skips[i].test(name)) {
for (const skip of createDebug.skips) {
if (matchesTemplate(name, skip)) {
return false;
}
}
for (i = 0, len = createDebug.names.length; i < len; i++) {
if (createDebug.names[i].test(name)) {
for (const ns of createDebug.names) {
if (matchesTemplate(name, ns)) {
return true;
}
}
return false;
}
function toNamespace(regexp) {
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
}
function coerce(val) {
if (val instanceof Error) {
return val.stack || val.message;
@@ -311,8 +327,8 @@ var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({
module2.exports = setup;
}
});
var require_browser = (0, import_chunk_AH6QHEOA.__commonJS)({
"../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/browser.js"(exports, module2) {
var require_browser = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/browser.js"(exports, module2) {
"use strict";
exports.formatArgs = formatArgs;
exports.save = save;
@@ -480,134 +496,156 @@ var require_browser = (0, import_chunk_AH6QHEOA.__commonJS)({
};
}
});
var require_has_flag = (0, import_chunk_AH6QHEOA.__commonJS)({
"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) {
"use strict";
module2.exports = (flag, argv = process.argv) => {
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
const position = argv.indexOf(prefix + flag);
const terminatorPosition = argv.indexOf("--");
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
};
}
var supports_color_exports = {};
(0, import_chunk_2ESYSVXG.__export)(supports_color_exports, {
createSupportsColor: () => createSupportsColor,
default: () => supports_color_default
});
var require_supports_color = (0, import_chunk_AH6QHEOA.__commonJS)({
"../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module2) {
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
const position = argv.indexOf(prefix + flag);
const terminatorPosition = argv.indexOf("--");
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
}
function envForceColor() {
if (!("FORCE_COLOR" in env)) {
return;
}
if (env.FORCE_COLOR === "true") {
return 1;
}
if (env.FORCE_COLOR === "false") {
return 0;
}
if (env.FORCE_COLOR.length === 0) {
return 1;
}
const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
if (![0, 1, 2, 3].includes(level)) {
return;
}
return level;
}
function translateLevel(level) {
if (level === 0) {
return false;
}
return {
level,
hasBasic: true,
has256: level >= 2,
has16m: level >= 3
};
}
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
const noFlagForceColor = envForceColor();
if (noFlagForceColor !== void 0) {
flagForceColor = noFlagForceColor;
}
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
if (forceColor === 0) {
return 0;
}
if (sniffFlags) {
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
return 3;
}
if (hasFlag("color=256")) {
return 2;
}
}
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
return 1;
}
if (haveStream && !streamIsTTY && forceColor === void 0) {
return 0;
}
const min = forceColor || 0;
if (env.TERM === "dumb") {
return min;
}
if (import_node_process.default.platform === "win32") {
const osRelease = import_node_os.default.release().split(".");
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
return Number(osRelease[2]) >= 14931 ? 3 : 2;
}
return 1;
}
if ("CI" in env) {
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
return 3;
}
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
return 1;
}
return min;
}
if ("TEAMCITY_VERSION" in env) {
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
}
if (env.COLORTERM === "truecolor") {
return 3;
}
if (env.TERM === "xterm-kitty") {
return 3;
}
if (env.TERM === "xterm-ghostty") {
return 3;
}
if (env.TERM === "wezterm") {
return 3;
}
if ("TERM_PROGRAM" in env) {
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
switch (env.TERM_PROGRAM) {
case "iTerm.app": {
return version >= 3 ? 3 : 2;
}
case "Apple_Terminal": {
return 2;
}
}
}
if (/-256(color)?$/i.test(env.TERM)) {
return 2;
}
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
return 1;
}
if ("COLORTERM" in env) {
return 1;
}
return min;
}
function createSupportsColor(stream, options = {}) {
const level = _supportsColor(stream, {
streamIsTTY: stream && stream.isTTY,
...options
});
return translateLevel(level);
}
var env, flagForceColor, supportsColor, supports_color_default;
var init_supports_color = (0, import_chunk_2ESYSVXG.__esm)({
"../../node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js"() {
"use strict";
var os = (0, import_chunk_AH6QHEOA.__require)("os");
var tty = (0, import_chunk_AH6QHEOA.__require)("tty");
var hasFlag = require_has_flag();
var { env } = process;
var flagForceColor;
({ env } = import_node_process.default);
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
flagForceColor = 0;
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
flagForceColor = 1;
}
function envForceColor() {
if ("FORCE_COLOR" in env) {
if (env.FORCE_COLOR === "true") {
return 1;
}
if (env.FORCE_COLOR === "false") {
return 0;
}
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
}
}
function translateLevel(level) {
if (level === 0) {
return false;
}
return {
level,
hasBasic: true,
has256: level >= 2,
has16m: level >= 3
};
}
function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
const noFlagForceColor = envForceColor();
if (noFlagForceColor !== void 0) {
flagForceColor = noFlagForceColor;
}
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
if (forceColor === 0) {
return 0;
}
if (sniffFlags) {
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
return 3;
}
if (hasFlag("color=256")) {
return 2;
}
}
if (haveStream && !streamIsTTY && forceColor === void 0) {
return 0;
}
const min = forceColor || 0;
if (env.TERM === "dumb") {
return min;
}
if (process.platform === "win32") {
const osRelease = os.release().split(".");
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
return Number(osRelease[2]) >= 14931 ? 3 : 2;
}
return 1;
}
if ("CI" in env) {
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
return 1;
}
return min;
}
if ("TEAMCITY_VERSION" in env) {
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
}
if (env.COLORTERM === "truecolor") {
return 3;
}
if ("TERM_PROGRAM" in env) {
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
switch (env.TERM_PROGRAM) {
case "iTerm.app":
return version >= 3 ? 3 : 2;
case "Apple_Terminal":
return 2;
}
}
if (/-256(color)?$/i.test(env.TERM)) {
return 2;
}
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
return 1;
}
if ("COLORTERM" in env) {
return 1;
}
return min;
}
function getSupportLevel(stream, options = {}) {
const level = supportsColor(stream, {
streamIsTTY: stream && stream.isTTY,
...options
});
return translateLevel(level);
}
module2.exports = {
supportsColor: getSupportLevel,
stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
supportsColor = {
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
};
supports_color_default = supportsColor;
}
});
var require_node = (0, import_chunk_AH6QHEOA.__commonJS)({
"../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/node.js"(exports, module2) {
var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/node.js"(exports, module2) {
"use strict";
var tty = (0, import_chunk_AH6QHEOA.__require)("tty");
var util = (0, import_chunk_AH6QHEOA.__require)("util");
var tty2 = (0, import_chunk_2ESYSVXG.__require)("tty");
var util = (0, import_chunk_2ESYSVXG.__require)("util");
exports.init = init;
exports.log = log;
exports.formatArgs = formatArgs;
@@ -621,8 +659,8 @@ var require_node = (0, import_chunk_AH6QHEOA.__commonJS)({
);
exports.colors = [6, 2, 3, 4, 5, 1];
try {
const supportsColor = require_supports_color();
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
const supportsColor2 = (init_supports_color(), (0, import_chunk_2ESYSVXG.__toCommonJS)(supports_color_exports));
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
exports.colors = [
20,
21,
@@ -724,7 +762,7 @@ var require_node = (0, import_chunk_AH6QHEOA.__commonJS)({
return obj;
}, {});
function useColors() {
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
}
function formatArgs(args) {
const { namespace: name, useColors: useColors2 } = this;
@@ -776,8 +814,8 @@ var require_node = (0, import_chunk_AH6QHEOA.__commonJS)({
};
}
});
var require_src = (0, import_chunk_AH6QHEOA.__commonJS)({
"../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/index.js"(exports, module2) {
var require_src = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/index.js"(exports, module2) {
"use strict";
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
module2.exports = require_browser();
@@ -786,7 +824,7 @@ var require_src = (0, import_chunk_AH6QHEOA.__commonJS)({
}
}
});
var require_helpers = (0, import_chunk_AH6QHEOA.__commonJS)({
var require_helpers = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/agent-base@7.1.0/node_modules/agent-base/dist/helpers.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -818,8 +856,8 @@ var require_helpers = (0, import_chunk_AH6QHEOA.__commonJS)({
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.req = exports.json = exports.toBuffer = void 0;
var http = __importStar((0, import_chunk_AH6QHEOA.__require)("http"));
var https = __importStar((0, import_chunk_AH6QHEOA.__require)("https"));
var http = __importStar((0, import_chunk_2ESYSVXG.__require)("http"));
var https = __importStar((0, import_chunk_2ESYSVXG.__require)("https"));
async function toBuffer(stream) {
let length = 0;
const chunks = [];
@@ -854,7 +892,7 @@ var require_helpers = (0, import_chunk_AH6QHEOA.__commonJS)({
exports.req = req;
}
});
var require_dist = (0, import_chunk_AH6QHEOA.__commonJS)({
var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/agent-base@7.1.0/node_modules/agent-base/dist/index.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -889,7 +927,7 @@ var require_dist = (0, import_chunk_AH6QHEOA.__commonJS)({
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Agent = void 0;
var http = __importStar((0, import_chunk_AH6QHEOA.__require)("http"));
var http = __importStar((0, import_chunk_2ESYSVXG.__require)("http"));
__exportStar(require_helpers(), exports);
var INTERNAL = Symbol("AgentBaseInternalState");
var Agent = class extends http.Agent {
@@ -955,7 +993,7 @@ var require_dist = (0, import_chunk_AH6QHEOA.__commonJS)({
exports.Agent = Agent;
}
});
var require_dist2 = (0, import_chunk_AH6QHEOA.__commonJS)({
var require_dist2 = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/http-proxy-agent@7.0.2/node_modules/http-proxy-agent/dist/index.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -990,12 +1028,12 @@ var require_dist2 = (0, import_chunk_AH6QHEOA.__commonJS)({
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpProxyAgent = void 0;
var net = __importStar((0, import_chunk_AH6QHEOA.__require)("net"));
var tls = __importStar((0, import_chunk_AH6QHEOA.__require)("tls"));
var net = __importStar((0, import_chunk_2ESYSVXG.__require)("net"));
var tls = __importStar((0, import_chunk_2ESYSVXG.__require)("tls"));
var debug_1 = __importDefault(require_src());
var events_1 = (0, import_chunk_AH6QHEOA.__require)("events");
var events_1 = (0, import_chunk_2ESYSVXG.__require)("events");
var agent_base_1 = require_dist();
var url_1 = (0, import_chunk_AH6QHEOA.__require)("url");
var url_1 = (0, import_chunk_2ESYSVXG.__require)("url");
var debug2 = (0, debug_1.default)("http-proxy-agent");
var HttpProxyAgent2 = class extends agent_base_1.Agent {
constructor(proxy, opts) {
@@ -1083,8 +1121,230 @@ var require_dist2 = (0, import_chunk_AH6QHEOA.__commonJS)({
}
}
});
var require_parse_proxy_response = (0, import_chunk_AH6QHEOA.__commonJS)({
"../../node_modules/.pnpm/https-proxy-agent@7.0.5/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
var require_helpers2 = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/agent-base@7.1.3/node_modules/agent-base/dist/helpers.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() {
return m[k];
} };
}
Object.defineProperty(o, k2, desc);
} : function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
o[k2] = m[k];
});
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
} : function(o, v) {
o["default"] = v;
});
var __importStar = exports && exports.__importStar || function(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) {
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
}
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.req = exports.json = exports.toBuffer = void 0;
var http = __importStar((0, import_chunk_2ESYSVXG.__require)("http"));
var https = __importStar((0, import_chunk_2ESYSVXG.__require)("https"));
async function toBuffer(stream) {
let length = 0;
const chunks = [];
for await (const chunk of stream) {
length += chunk.length;
chunks.push(chunk);
}
return Buffer.concat(chunks, length);
}
exports.toBuffer = toBuffer;
async function json(stream) {
const buf = await toBuffer(stream);
const str = buf.toString("utf8");
try {
return JSON.parse(str);
} catch (_err) {
const err = _err;
err.message += ` (input: ${str})`;
throw err;
}
}
exports.json = json;
function req(url, opts = {}) {
const href = typeof url === "string" ? url : url.href;
const req2 = (href.startsWith("https:") ? https : http).request(url, opts);
const promise = new Promise((resolve, reject) => {
req2.once("response", resolve).once("error", reject).end();
});
req2.then = promise.then.bind(promise);
return req2;
}
exports.req = req;
}
});
var require_dist3 = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/agent-base@7.1.3/node_modules/agent-base/dist/index.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() {
return m[k];
} };
}
Object.defineProperty(o, k2, desc);
} : function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
o[k2] = m[k];
});
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
} : function(o, v) {
o["default"] = v;
});
var __importStar = exports && exports.__importStar || function(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) {
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
}
__setModuleDefault(result, mod);
return result;
};
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Agent = void 0;
var net = __importStar((0, import_chunk_2ESYSVXG.__require)("net"));
var http = __importStar((0, import_chunk_2ESYSVXG.__require)("http"));
var https_1 = (0, import_chunk_2ESYSVXG.__require)("https");
__exportStar(require_helpers2(), exports);
var INTERNAL = Symbol("AgentBaseInternalState");
var Agent = class extends http.Agent {
constructor(opts) {
super(opts);
this[INTERNAL] = {};
}
/**
* Determine whether this is an `http` or `https` request.
*/
isSecureEndpoint(options) {
if (options) {
if (typeof options.secureEndpoint === "boolean") {
return options.secureEndpoint;
}
if (typeof options.protocol === "string") {
return options.protocol === "https:";
}
}
const { stack } = new Error();
if (typeof stack !== "string")
return false;
return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
}
// In order to support async signatures in `connect()` and Node's native
// connection pooling in `http.Agent`, the array of sockets for each origin
// has to be updated synchronously. This is so the length of the array is
// accurate when `addRequest()` is next called. We achieve this by creating a
// fake socket and adding it to `sockets[origin]` and incrementing
// `totalSocketCount`.
incrementSockets(name) {
if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) {
return null;
}
if (!this.sockets[name]) {
this.sockets[name] = [];
}
const fakeSocket = new net.Socket({ writable: false });
this.sockets[name].push(fakeSocket);
this.totalSocketCount++;
return fakeSocket;
}
decrementSockets(name, socket) {
if (!this.sockets[name] || socket === null) {
return;
}
const sockets = this.sockets[name];
const index = sockets.indexOf(socket);
if (index !== -1) {
sockets.splice(index, 1);
this.totalSocketCount--;
if (sockets.length === 0) {
delete this.sockets[name];
}
}
}
// In order to properly update the socket pool, we need to call `getName()` on
// the core `https.Agent` if it is a secureEndpoint.
getName(options) {
const secureEndpoint = typeof options.secureEndpoint === "boolean" ? options.secureEndpoint : this.isSecureEndpoint(options);
if (secureEndpoint) {
return https_1.Agent.prototype.getName.call(this, options);
}
return super.getName(options);
}
createSocket(req, options, cb) {
const connectOpts = {
...options,
secureEndpoint: this.isSecureEndpoint(options)
};
const name = this.getName(connectOpts);
const fakeSocket = this.incrementSockets(name);
Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => {
this.decrementSockets(name, fakeSocket);
if (socket instanceof http.Agent) {
try {
return socket.addRequest(req, connectOpts);
} catch (err) {
return cb(err);
}
}
this[INTERNAL].currentSocket = socket;
super.createSocket(req, options, cb);
}, (err) => {
this.decrementSockets(name, fakeSocket);
cb(err);
});
}
createConnection() {
const socket = this[INTERNAL].currentSocket;
this[INTERNAL].currentSocket = void 0;
if (!socket) {
throw new Error("No socket was returned in the `connect()` function");
}
return socket;
}
get defaultPort() {
return this[INTERNAL].defaultPort ?? (this.protocol === "https:" ? 443 : 80);
}
set defaultPort(v) {
if (this[INTERNAL]) {
this[INTERNAL].defaultPort = v;
}
}
get protocol() {
return this[INTERNAL].protocol ?? (this.isSecureEndpoint() ? "https:" : "http:");
}
set protocol(v) {
if (this[INTERNAL]) {
this[INTERNAL].protocol = v;
}
}
};
exports.Agent = Agent;
}
});
var require_parse_proxy_response = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/https-proxy-agent@7.0.6_supports-color@10.2.2/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
"use strict";
var __importDefault = exports && exports.__importDefault || function(mod) {
return mod && mod.__esModule ? mod : { "default": mod };
@@ -1177,8 +1437,8 @@ var require_parse_proxy_response = (0, import_chunk_AH6QHEOA.__commonJS)({
exports.parseProxyResponse = parseProxyResponse;
}
});
var require_dist3 = (0, import_chunk_AH6QHEOA.__commonJS)({
"../../node_modules/.pnpm/https-proxy-agent@7.0.5/node_modules/https-proxy-agent/dist/index.js"(exports) {
var require_dist4 = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/https-proxy-agent@7.0.6_supports-color@10.2.2/node_modules/https-proxy-agent/dist/index.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
@@ -1212,14 +1472,23 @@ var require_dist3 = (0, import_chunk_AH6QHEOA.__commonJS)({
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpsProxyAgent = void 0;
var net = __importStar((0, import_chunk_AH6QHEOA.__require)("net"));
var tls = __importStar((0, import_chunk_AH6QHEOA.__require)("tls"));
var assert_1 = __importDefault((0, import_chunk_AH6QHEOA.__require)("assert"));
var net = __importStar((0, import_chunk_2ESYSVXG.__require)("net"));
var tls = __importStar((0, import_chunk_2ESYSVXG.__require)("tls"));
var assert_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("assert"));
var debug_1 = __importDefault(require_src());
var agent_base_1 = require_dist();
var url_1 = (0, import_chunk_AH6QHEOA.__require)("url");
var agent_base_1 = require_dist3();
var url_1 = (0, import_chunk_2ESYSVXG.__require)("url");
var parse_proxy_response_1 = require_parse_proxy_response();
var debug2 = (0, debug_1.default)("https-proxy-agent");
var setServernameFromNonIpHost = (options) => {
if (options.servername === void 0 && options.host && !net.isIP(options.host)) {
return {
...options,
servername: options.host
};
}
return options;
};
var HttpsProxyAgent2 = class extends agent_base_1.Agent {
constructor(proxy, opts) {
super(opts);
@@ -1249,11 +1518,7 @@ var require_dist3 = (0, import_chunk_AH6QHEOA.__commonJS)({
let socket;
if (proxy.protocol === "https:") {
debug2("Creating `tls.Socket`: %o", this.connectOpts);
const servername = this.connectOpts.servername || this.connectOpts.host;
socket = tls.connect({
...this.connectOpts,
servername
});
socket = tls.connect(setServernameFromNonIpHost(this.connectOpts));
} else {
debug2("Creating `net.Socket`: %o", this.connectOpts);
socket = net.connect(this.connectOpts);
@@ -1284,11 +1549,9 @@ var require_dist3 = (0, import_chunk_AH6QHEOA.__commonJS)({
req.once("socket", resume);
if (opts.secureEndpoint) {
debug2("Upgrading socket connection to TLS");
const servername = opts.servername || opts.host;
return tls.connect({
...omit(opts, "host", "path", "port"),
socket,
servername
...omit(setServernameFromNonIpHost(opts), "host", "path", "port"),
socket
});
}
return socket;
@@ -1322,8 +1585,8 @@ var require_dist3 = (0, import_chunk_AH6QHEOA.__commonJS)({
}
}
});
var import_http_proxy_agent = (0, import_chunk_AH6QHEOA.__toESM)(require_dist2());
var import_https_proxy_agent = (0, import_chunk_AH6QHEOA.__toESM)(require_dist3());
var import_http_proxy_agent = (0, import_chunk_2ESYSVXG.__toESM)(require_dist2());
var import_https_proxy_agent = (0, import_chunk_2ESYSVXG.__toESM)(require_dist4());
var debug = (0, import_debug.default)("prisma:fetch-engine:getProxyAgent");
function formatHostname(hostname) {
return hostname.replace(/^\.*/, ".").toLowerCase();
@@ -1372,7 +1635,7 @@ function getProxyFromURI(uri) {
}
function getProxyAgent(url) {
try {
const uri = import_url.default.parse(url);
const uri = new URL(url);
const proxy = getProxyFromURI(uri);
if (!proxy) {
return void 0;

View File

@@ -26,16 +26,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var chunk_CWGQAQ3T_exports = {};
__export(chunk_CWGQAQ3T_exports, {
var chunk_FKGWOTGU_exports = {};
__export(chunk_FKGWOTGU_exports, {
getHash: () => getHash
});
module.exports = __toCommonJS(chunk_CWGQAQ3T_exports);
var import_crypto = __toESM(require("crypto"));
var import_fs = __toESM(require("fs"));
module.exports = __toCommonJS(chunk_FKGWOTGU_exports);
var import_node_crypto = __toESM(require("node:crypto"));
var import_node_fs = __toESM(require("node:fs"));
function getHash(filePath) {
const hash = import_crypto.default.createHash("sha256");
const input = import_fs.default.createReadStream(filePath);
const hash = import_node_crypto.default.createHash("sha256");
const input = import_node_fs.default.createReadStream(filePath);
return new Promise((resolve) => {
input.on("readable", () => {
const data = input.read();

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -16,17 +16,17 @@ var __copyProps = (to, from, except, desc) => {
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var chunk_VTJS2JJN_exports = {};
__export(chunk_VTJS2JJN_exports, {
var chunk_VLGS4WJI_exports = {};
__export(chunk_VLGS4WJI_exports, {
FormData: () => FormData,
fetch_blob_default: () => fetch_blob_default,
file_default: () => file_default,
formDataToBlob: () => formDataToBlob
});
module.exports = __toCommonJS(chunk_VTJS2JJN_exports);
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
var import_fs = require("fs");
var require_ponyfill_es2018 = (0, import_chunk_AH6QHEOA.__commonJS)({
module.exports = __toCommonJS(chunk_VLGS4WJI_exports);
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
var import_node_fs = require("node:fs");
var require_ponyfill_es2018 = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/web-streams-polyfill@3.2.1/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js"(exports, module2) {
"use strict";
(function(global2, factory) {
@@ -574,7 +574,7 @@ var require_ponyfill_es2018 = (0, import_chunk_AH6QHEOA.__commonJS)({
}
try {
return x2._asyncIteratorImpl instanceof ReadableStreamAsyncIteratorImpl;
} catch (_a4) {
} catch (_a) {
return false;
}
}
@@ -1467,7 +1467,7 @@ var require_ponyfill_es2018 = (0, import_chunk_AH6QHEOA.__commonJS)({
}
try {
return typeof value.aborted === "boolean";
} catch (_a4) {
} catch (_a) {
return false;
}
}
@@ -1608,12 +1608,12 @@ var require_ponyfill_es2018 = (0, import_chunk_AH6QHEOA.__commonJS)({
return true;
}
function WritableStreamAbort(stream, reason) {
var _a4;
var _a;
if (stream._state === "closed" || stream._state === "errored") {
return promiseResolvedWith(void 0);
}
stream._writableStreamController._abortReason = reason;
(_a4 = stream._writableStreamController._abortController) === null || _a4 === void 0 ? void 0 : _a4.abort();
(_a = stream._writableStreamController._abortController) === null || _a === void 0 ? void 0 : _a.abort();
const state = stream._state;
if (state === "closed" || state === "errored") {
return promiseResolvedWith(void 0);
@@ -2343,7 +2343,7 @@ var require_ponyfill_es2018 = (0, import_chunk_AH6QHEOA.__commonJS)({
try {
new ctor();
return true;
} catch (_a4) {
} catch (_a) {
return false;
}
}
@@ -3399,7 +3399,7 @@ var require_ponyfill_es2018 = (0, import_chunk_AH6QHEOA.__commonJS)({
value: "size",
configurable: true
});
} catch (_a4) {
} catch (_a) {
}
class ByteLengthQueuingStrategy {
constructor(options) {
@@ -3456,7 +3456,7 @@ var require_ponyfill_es2018 = (0, import_chunk_AH6QHEOA.__commonJS)({
value: "size",
configurable: true
});
} catch (_a4) {
} catch (_a) {
}
class CountQueuingStrategy {
constructor(options) {
@@ -3835,18 +3835,18 @@ var require_ponyfill_es2018 = (0, import_chunk_AH6QHEOA.__commonJS)({
});
}
});
var require_streams = (0, import_chunk_AH6QHEOA.__commonJS)({
var require_streams = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/fetch-blob@3.2.0/node_modules/fetch-blob/streams.cjs"() {
"use strict";
var POOL_SIZE2 = 65536;
if (!globalThis.ReadableStream) {
try {
const process = (0, import_chunk_AH6QHEOA.__require)("process");
const process = (0, import_chunk_2ESYSVXG.__require)("node:process");
const { emitWarning } = process;
try {
process.emitWarning = () => {
};
Object.assign(globalThis, (0, import_chunk_AH6QHEOA.__require)("stream/web"));
Object.assign(globalThis, (0, import_chunk_2ESYSVXG.__require)("node:stream/web"));
process.emitWarning = emitWarning;
} catch (error) {
process.emitWarning = emitWarning;
@@ -3857,9 +3857,9 @@ var require_streams = (0, import_chunk_AH6QHEOA.__commonJS)({
}
}
try {
const { Blob: Blob2 } = (0, import_chunk_AH6QHEOA.__require)("buffer");
if (Blob2 && !Blob2.prototype.stream) {
Blob2.prototype.stream = function name(params) {
const { Blob: Blob3 } = (0, import_chunk_2ESYSVXG.__require)("buffer");
if (Blob3 && !Blob3.prototype.stream) {
Blob3.prototype.stream = function name(params) {
let position = 0;
const blob = this;
return new ReadableStream({
@@ -3880,12 +3880,12 @@ var require_streams = (0, import_chunk_AH6QHEOA.__commonJS)({
}
}
});
var require_node_domexception = (0, import_chunk_AH6QHEOA.__commonJS)({
var require_node_domexception = (0, import_chunk_2ESYSVXG.__commonJS)({
"../../node_modules/.pnpm/node-domexception@1.0.0/node_modules/node-domexception/index.js"(exports, module2) {
"use strict";
if (!globalThis.DOMException) {
try {
const { MessageChannel } = (0, import_chunk_AH6QHEOA.__require)("worker_threads"), port = new MessageChannel().port1, ab = new ArrayBuffer();
const { MessageChannel } = (0, import_chunk_2ESYSVXG.__require)("worker_threads"), port = new MessageChannel().port1, ab = new ArrayBuffer();
port.postMessage(ab, [ab, ab]);
} catch (err) {
err.constructor.name === "DOMException" && (globalThis.DOMException = err.constructor);
@@ -3894,7 +3894,7 @@ var require_node_domexception = (0, import_chunk_AH6QHEOA.__commonJS)({
module2.exports = globalThis.DOMException;
}
});
var import_streams = (0, import_chunk_AH6QHEOA.__toESM)(require_streams(), 1);
var import_streams = (0, import_chunk_2ESYSVXG.__toESM)(require_streams(), 1);
var POOL_SIZE = 65536;
async function* toIterator(parts, clone = true) {
for (const part of parts) {
@@ -3930,8 +3930,12 @@ async function* toIterator(parts, clone = true) {
}
}
}
var _parts, _type, _size, _endings, _a;
var _Blob = (_a = class {
var _Blob = class Blob {
/** @type {Array.<(Blob|Uint8Array)>} */
#parts = [];
#type = "";
#size = 0;
#endings = "transparent";
/**
* The Blob() constructor returns a new Blob object. The content
* of the blob consists of the concatenation of the values given
@@ -3941,10 +3945,6 @@ var _Blob = (_a = class {
* @param {{ type?: string, endings?: string }} [options]
*/
constructor(blobParts = [], options = {}) {
(0, import_chunk_AH6QHEOA.__privateAdd)(this, _parts, []);
(0, import_chunk_AH6QHEOA.__privateAdd)(this, _type, "");
(0, import_chunk_AH6QHEOA.__privateAdd)(this, _size, 0);
(0, import_chunk_AH6QHEOA.__privateAdd)(this, _endings, "transparent");
if (typeof blobParts !== "object" || blobParts === null) {
throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");
}
@@ -3962,30 +3962,30 @@ var _Blob = (_a = class {
part = new Uint8Array(element.buffer.slice(element.byteOffset, element.byteOffset + element.byteLength));
} else if (element instanceof ArrayBuffer) {
part = new Uint8Array(element.slice(0));
} else if (element instanceof _a) {
} else if (element instanceof Blob) {
part = element;
} else {
part = encoder.encode(`${element}`);
}
(0, import_chunk_AH6QHEOA.__privateSet)(this, _size, (0, import_chunk_AH6QHEOA.__privateGet)(this, _size) + (ArrayBuffer.isView(part) ? part.byteLength : part.size));
(0, import_chunk_AH6QHEOA.__privateGet)(this, _parts).push(part);
this.#size += ArrayBuffer.isView(part) ? part.byteLength : part.size;
this.#parts.push(part);
}
(0, import_chunk_AH6QHEOA.__privateSet)(this, _endings, `${options.endings === void 0 ? "transparent" : options.endings}`);
this.#endings = `${options.endings === void 0 ? "transparent" : options.endings}`;
const type = options.type === void 0 ? "" : String(options.type);
(0, import_chunk_AH6QHEOA.__privateSet)(this, _type, /^[\x20-\x7E]*$/.test(type) ? type : "");
this.#type = /^[\x20-\x7E]*$/.test(type) ? type : "";
}
/**
* The Blob interface's size property returns the
* size of the Blob in bytes.
*/
get size() {
return (0, import_chunk_AH6QHEOA.__privateGet)(this, _size);
return this.#size;
}
/**
* The type property of a Blob object returns the MIME type of the file.
*/
get type() {
return (0, import_chunk_AH6QHEOA.__privateGet)(this, _type);
return this.#type;
}
/**
* The text() method in the Blob interface returns a Promise
@@ -3997,7 +3997,7 @@ var _Blob = (_a = class {
async text() {
const decoder = new TextDecoder();
let str = "";
for await (const part of toIterator((0, import_chunk_AH6QHEOA.__privateGet)(this, _parts), false)) {
for await (const part of toIterator(this.#parts, false)) {
str += decoder.decode(part, { stream: true });
}
str += decoder.decode();
@@ -4013,14 +4013,14 @@ var _Blob = (_a = class {
async arrayBuffer() {
const data = new Uint8Array(this.size);
let offset = 0;
for await (const chunk of toIterator((0, import_chunk_AH6QHEOA.__privateGet)(this, _parts), false)) {
for await (const chunk of toIterator(this.#parts, false)) {
data.set(chunk, offset);
offset += chunk.length;
}
return data.buffer;
}
stream() {
const it = toIterator((0, import_chunk_AH6QHEOA.__privateGet)(this, _parts), true);
const it = toIterator(this.#parts, true);
return new globalThis.ReadableStream({
// @ts-ignore
type: "bytes",
@@ -4047,7 +4047,7 @@ var _Blob = (_a = class {
let relativeStart = start < 0 ? Math.max(size + start, 0) : Math.min(start, size);
let relativeEnd = end < 0 ? Math.max(size + end, 0) : Math.min(end, size);
const span = Math.max(relativeEnd - relativeStart, 0);
const parts = (0, import_chunk_AH6QHEOA.__privateGet)(this, _parts);
const parts = this.#parts;
const blobParts = [];
let added = 0;
for (const part of parts) {
@@ -4072,9 +4072,9 @@ var _Blob = (_a = class {
relativeStart = 0;
}
}
const blob = new _a([], { type: String(type).toLowerCase() });
(0, import_chunk_AH6QHEOA.__privateSet)(blob, _size, span);
(0, import_chunk_AH6QHEOA.__privateSet)(blob, _parts, blobParts);
const blob = new Blob([], { type: String(type).toLowerCase() });
blob.#size = span;
blob.#parts = blobParts;
return blob;
}
get [Symbol.toStringTag]() {
@@ -4083,16 +4083,17 @@ var _Blob = (_a = class {
static [Symbol.hasInstance](object) {
return object && typeof object === "object" && typeof object.constructor === "function" && (typeof object.stream === "function" || typeof object.arrayBuffer === "function") && /^(Blob|File)$/.test(object[Symbol.toStringTag]);
}
}, _parts = /* @__PURE__ */ new WeakMap(), _type = /* @__PURE__ */ new WeakMap(), _size = /* @__PURE__ */ new WeakMap(), _endings = /* @__PURE__ */ new WeakMap(), _a);
};
Object.defineProperties(_Blob.prototype, {
size: { enumerable: true },
type: { enumerable: true },
slice: { enumerable: true }
});
var Blob = _Blob;
var fetch_blob_default = Blob;
var _lastModified, _name, _a2;
var _File = (_a2 = class extends fetch_blob_default {
var Blob2 = _Blob;
var fetch_blob_default = Blob2;
var _File = class File extends fetch_blob_default {
#lastModified = 0;
#name = "";
/**
* @param {*[]} fileBits
* @param {string} fileName
@@ -4104,20 +4105,18 @@ var _File = (_a2 = class extends fetch_blob_default {
throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);
}
super(fileBits, options);
(0, import_chunk_AH6QHEOA.__privateAdd)(this, _lastModified, 0);
(0, import_chunk_AH6QHEOA.__privateAdd)(this, _name, "");
if (options === null) options = {};
const lastModified = options.lastModified === void 0 ? Date.now() : Number(options.lastModified);
if (!Number.isNaN(lastModified)) {
(0, import_chunk_AH6QHEOA.__privateSet)(this, _lastModified, lastModified);
this.#lastModified = lastModified;
}
(0, import_chunk_AH6QHEOA.__privateSet)(this, _name, String(fileName));
this.#name = String(fileName);
}
get name() {
return (0, import_chunk_AH6QHEOA.__privateGet)(this, _name);
return this.#name;
}
get lastModified() {
return (0, import_chunk_AH6QHEOA.__privateGet)(this, _lastModified);
return this.#lastModified;
}
get [Symbol.toStringTag]() {
return "File";
@@ -4125,9 +4124,9 @@ var _File = (_a2 = class extends fetch_blob_default {
static [Symbol.hasInstance](object) {
return !!object && object instanceof fetch_blob_default && /^(File)$/.test(object[Symbol.toStringTag]);
}
}, _lastModified = /* @__PURE__ */ new WeakMap(), _name = /* @__PURE__ */ new WeakMap(), _a2);
var File = _File;
var file_default = File;
};
var File2 = _File;
var file_default = File2;
var { toStringTag: t, iterator: i, hasInstance: h } = Symbol;
var r = Math.random;
var m = "append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(",");
@@ -4138,10 +4137,9 @@ var x = (n, a, e2) => {
throw new TypeError(`Failed to execute '${n}' on 'FormData': ${e2} arguments required, but only ${a.length} present.`);
}
};
var _d, _a3;
var FormData = (_a3 = class {
var FormData = class FormData2 {
#d = [];
constructor(...a) {
(0, import_chunk_AH6QHEOA.__privateAdd)(this, _d, []);
if (a.length) throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`);
}
get [t]() {
@@ -4155,30 +4153,30 @@ var FormData = (_a3 = class {
}
append(...a) {
x("append", arguments, 2);
(0, import_chunk_AH6QHEOA.__privateGet)(this, _d).push(f(...a));
this.#d.push(f(...a));
}
delete(a) {
x("delete", arguments, 1);
a += "";
(0, import_chunk_AH6QHEOA.__privateSet)(this, _d, (0, import_chunk_AH6QHEOA.__privateGet)(this, _d).filter(([b]) => b !== a));
this.#d = this.#d.filter(([b]) => b !== a);
}
get(a) {
x("get", arguments, 1);
a += "";
for (var b = (0, import_chunk_AH6QHEOA.__privateGet)(this, _d), l = b.length, c = 0; c < l; c++) if (b[c][0] === a) return b[c][1];
for (var b = this.#d, l = b.length, c = 0; c < l; c++) if (b[c][0] === a) return b[c][1];
return null;
}
getAll(a, b) {
x("getAll", arguments, 1);
b = [];
a += "";
(0, import_chunk_AH6QHEOA.__privateGet)(this, _d).forEach((c) => c[0] === a && b.push(c[1]));
this.#d.forEach((c) => c[0] === a && b.push(c[1]));
return b;
}
has(a) {
x("has", arguments, 1);
a += "";
return (0, import_chunk_AH6QHEOA.__privateGet)(this, _d).some((b) => b[0] === a);
return this.#d.some((b) => b[0] === a);
}
forEach(a, b) {
x("forEach", arguments, 1);
@@ -4188,14 +4186,14 @@ var FormData = (_a3 = class {
x("set", arguments, 2);
var b = [], c = true;
a = f(...a);
(0, import_chunk_AH6QHEOA.__privateGet)(this, _d).forEach((d) => {
this.#d.forEach((d) => {
d[0] === a[0] ? c && (c = !b.push(a)) : b.push(d);
});
c && b.push(a);
(0, import_chunk_AH6QHEOA.__privateSet)(this, _d, b);
this.#d = b;
}
*entries() {
yield* (0, import_chunk_AH6QHEOA.__privateGet)(this, _d);
yield* this.#d;
}
*keys() {
for (var [a] of this) yield a;
@@ -4203,7 +4201,7 @@ var FormData = (_a3 = class {
*values() {
for (var [, a] of this) yield a;
}
}, _d = /* @__PURE__ */ new WeakMap(), _a3);
};
function formDataToBlob(F, B = fetch_blob_default) {
var b = `${r()}${r()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), c = [], p = `--${b}\r
Content-Disposition: form-data; name="`;
@@ -4217,8 +4215,8 @@ Content-Type: ${v.type || "application/octet-stream"}\r
c.push(`--${b}--`);
return new B(c, { type: "multipart/form-data; boundary=" + b });
}
var import_node_domexception = (0, import_chunk_AH6QHEOA.__toESM)(require_node_domexception(), 1);
var { stat } = import_fs.promises;
var import_node_domexception = (0, import_chunk_2ESYSVXG.__toESM)(require_node_domexception(), 1);
var { stat } = import_node_fs.promises;
/*! Bundled license information:
node-domexception/index.js:

File diff suppressed because it is too large Load Diff

View File

@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var chunk_PXQVM7NP_exports = {};
__export(chunk_PXQVM7NP_exports, {
var chunk_XNR2KDTK_exports = {};
__export(chunk_XNR2KDTK_exports, {
allEngineEnvVarsSet: () => allEngineEnvVarsSet,
bold: () => bold,
deprecatedEnvVarMap: () => deprecatedEnvVarMap,
@@ -35,10 +35,10 @@ __export(chunk_PXQVM7NP_exports, {
getBinaryEnvVarPath: () => getBinaryEnvVarPath,
yellow: () => yellow
});
module.exports = __toCommonJS(chunk_PXQVM7NP_exports);
module.exports = __toCommonJS(chunk_XNR2KDTK_exports);
var import_node_fs = __toESM(require("node:fs"));
var import_node_path = __toESM(require("node:path"));
var import_debug = __toESM(require("@prisma/debug"));
var import_fs = __toESM(require("fs"));
var import_path = __toESM(require("path"));
var FORCE_COLOR;
var NODE_DISABLE_COLORS;
var NO_COLOR;
@@ -87,14 +87,6 @@ var bgCyan = init(46, 49);
var bgWhite = init(47, 49);
var debug = (0, import_debug.default)("prisma:fetch-engine:env");
var engineEnvVarMap = {
[
"query-engine"
/* QueryEngineBinary */
]: "PRISMA_QUERY_ENGINE_BINARY",
[
"libquery-engine"
/* QueryEngineLibrary */
]: "PRISMA_QUERY_ENGINE_LIBRARY",
[
"schema-engine"
/* SchemaEngineBinary */
@@ -109,8 +101,8 @@ var deprecatedEnvVarMap = {
function getBinaryEnvVarPath(binaryName) {
const envVar = getEnvVarToUse(binaryName);
if (process.env[envVar]) {
const envVarPath = import_path.default.resolve(process.cwd(), process.env[envVar]);
if (!import_fs.default.existsSync(envVarPath)) {
const envVarPath = import_node_path.default.resolve(process.cwd(), process.env[envVar]);
if (!import_node_fs.default.existsSync(envVarPath)) {
throw new Error(
`Env var ${bold(envVar)} is provided but provided path ${underline(process.env[envVar])} can't be resolved.`
);

View File

@@ -18,11 +18,10 @@ var __copyProps = (to, from, except, desc) => {
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var cleanupCache_exports = {};
__export(cleanupCache_exports, {
cleanupCache: () => import_chunk_QSTZGX47.cleanupCache
cleanupCache: () => import_chunk_4GGGRRIN.cleanupCache
});
module.exports = __toCommonJS(cleanupCache_exports);
var import_chunk_QSTZGX47 = require("./chunk-QSTZGX47.js");
var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js");
var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
var import_chunk_4GGGRRIN = require("./chunk-4GGGRRIN.js");
var import_chunk_7AOUSONO = require("./chunk-7AOUSONO.js");
var import_chunk_4MDZEOKU = require("./chunk-4MDZEOKU.js");
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");

View File

@@ -21,7 +21,7 @@ export interface DownloadOptions {
skipCacheIntegrityCheck?: boolean;
}
export declare function download(options: DownloadOptions): Promise<BinaryPaths>;
export declare function getVersion(enginePath: string, binaryName: string): Promise<string | undefined>;
export declare function getVersion(enginePath: string, _binaryName: string): Promise<string | undefined>;
export declare function getBinaryName(binaryName: BinaryType, binaryTarget: BinaryTarget): string;
export declare function maybeCopyToTmp(file: string): Promise<string>;
export declare function plusX(file: any): void;

View File

@@ -18,24 +18,24 @@ var __copyProps = (to, from, except, desc) => {
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var download_exports = {};
__export(download_exports, {
download: () => import_chunk_2BCLJS3M.download,
getBinaryName: () => import_chunk_2BCLJS3M.getBinaryName,
getVersion: () => import_chunk_2BCLJS3M.getVersion,
maybeCopyToTmp: () => import_chunk_2BCLJS3M.maybeCopyToTmp,
plusX: () => import_chunk_2BCLJS3M.plusX,
vercelPkgPathRegex: () => import_chunk_2BCLJS3M.vercelPkgPathRegex
download: () => import_chunk_WOXKHJGC.download,
getBinaryName: () => import_chunk_WOXKHJGC.getBinaryName,
getVersion: () => import_chunk_WOXKHJGC.getVersion,
maybeCopyToTmp: () => import_chunk_WOXKHJGC.maybeCopyToTmp,
plusX: () => import_chunk_WOXKHJGC.plusX,
vercelPkgPathRegex: () => import_chunk_WOXKHJGC.vercelPkgPathRegex
});
module.exports = __toCommonJS(download_exports);
var import_chunk_2BCLJS3M = require("./chunk-2BCLJS3M.js");
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
var import_chunk_QSTZGX47 = require("./chunk-QSTZGX47.js");
var import_chunk_QLWYUM7O = require("./chunk-QLWYUM7O.js");
var import_chunk_VTJS2JJN = require("./chunk-VTJS2JJN.js");
var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js");
var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
var import_chunk_KDPLGCY6 = require("./chunk-KDPLGCY6.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
var import_chunk_WOXKHJGC = require("./chunk-WOXKHJGC.js");
var import_chunk_5564WBCW = require("./chunk-5564WBCW.js");
var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
var import_chunk_4GGGRRIN = require("./chunk-4GGGRRIN.js");
var import_chunk_FNYZ6ABB = require("./chunk-FNYZ6ABB.js");
var import_chunk_VLGS4WJI = require("./chunk-VLGS4WJI.js");
var import_chunk_7AOUSONO = require("./chunk-7AOUSONO.js");
var import_chunk_4MDZEOKU = require("./chunk-4MDZEOKU.js");
var import_chunk_XNR2KDTK = require("./chunk-XNR2KDTK.js");
var import_chunk_66KG5WKV = require("./chunk-66KG5WKV.js");
var import_chunk_FKGWOTGU = require("./chunk-FKGWOTGU.js");
var import_chunk_CTLNI6CP = require("./chunk-CTLNI6CP.js");
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");

View File

@@ -18,13 +18,12 @@ var __copyProps = (to, from, except, desc) => {
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var downloadZip_exports = {};
__export(downloadZip_exports, {
downloadZip: () => import_chunk_QLWYUM7O.downloadZip
downloadZip: () => import_chunk_FNYZ6ABB.downloadZip
});
module.exports = __toCommonJS(downloadZip_exports);
var import_chunk_QLWYUM7O = require("./chunk-QLWYUM7O.js");
var import_chunk_VTJS2JJN = require("./chunk-VTJS2JJN.js");
var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js");
var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
var import_chunk_KDPLGCY6 = require("./chunk-KDPLGCY6.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
var import_chunk_FNYZ6ABB = require("./chunk-FNYZ6ABB.js");
var import_chunk_VLGS4WJI = require("./chunk-VLGS4WJI.js");
var import_chunk_7AOUSONO = require("./chunk-7AOUSONO.js");
var import_chunk_4MDZEOKU = require("./chunk-4MDZEOKU.js");
var import_chunk_CTLNI6CP = require("./chunk-CTLNI6CP.js");
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");

View File

@@ -1,7 +1,5 @@
import { BinaryType } from './BinaryType';
export declare const engineEnvVarMap: {
"query-engine": string;
"libquery-engine": string;
"schema-engine": string;
};
export declare const deprecatedEnvVarMap: Partial<typeof engineEnvVarMap>;

View File

@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var env_exports = {};
__export(env_exports, {
allEngineEnvVarsSet: () => import_chunk_PXQVM7NP.allEngineEnvVarsSet,
deprecatedEnvVarMap: () => import_chunk_PXQVM7NP.deprecatedEnvVarMap,
engineEnvVarMap: () => import_chunk_PXQVM7NP.engineEnvVarMap,
getBinaryEnvVarPath: () => import_chunk_PXQVM7NP.getBinaryEnvVarPath
allEngineEnvVarsSet: () => import_chunk_XNR2KDTK.allEngineEnvVarsSet,
deprecatedEnvVarMap: () => import_chunk_XNR2KDTK.deprecatedEnvVarMap,
engineEnvVarMap: () => import_chunk_XNR2KDTK.engineEnvVarMap,
getBinaryEnvVarPath: () => import_chunk_XNR2KDTK.getBinaryEnvVarPath
});
module.exports = __toCommonJS(env_exports);
var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
var import_chunk_XNR2KDTK = require("./chunk-XNR2KDTK.js");
var import_chunk_66KG5WKV = require("./chunk-66KG5WKV.js");
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");

View File

@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var getHash_exports = {};
__export(getHash_exports, {
getHash: () => import_chunk_CWGQAQ3T.getHash
getHash: () => import_chunk_FKGWOTGU.getHash
});
module.exports = __toCommonJS(getHash_exports);
var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
var import_chunk_FKGWOTGU = require("./chunk-FKGWOTGU.js");
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");

View File

@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var getProxyAgent_exports = {};
__export(getProxyAgent_exports, {
getProxyAgent: () => import_chunk_KDPLGCY6.getProxyAgent
getProxyAgent: () => import_chunk_CTLNI6CP.getProxyAgent
});
module.exports = __toCommonJS(getProxyAgent_exports);
var import_chunk_KDPLGCY6 = require("./chunk-KDPLGCY6.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
var import_chunk_CTLNI6CP = require("./chunk-CTLNI6CP.js");
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");

View File

@@ -16,34 +16,34 @@ var __copyProps = (to, from, except, desc) => {
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var dist_exports = {};
__export(dist_exports, {
BinaryType: () => import_chunk_X37PZICB.BinaryType,
allEngineEnvVarsSet: () => import_chunk_PXQVM7NP.allEngineEnvVarsSet,
deprecatedEnvVarMap: () => import_chunk_PXQVM7NP.deprecatedEnvVarMap,
download: () => import_chunk_2BCLJS3M.download,
engineEnvVarMap: () => import_chunk_PXQVM7NP.engineEnvVarMap,
getBinaryEnvVarPath: () => import_chunk_PXQVM7NP.getBinaryEnvVarPath,
getBinaryName: () => import_chunk_2BCLJS3M.getBinaryName,
getCacheDir: () => import_chunk_FQ2BOR66.getCacheDir,
getProxyAgent: () => import_chunk_KDPLGCY6.getProxyAgent,
getVersion: () => import_chunk_2BCLJS3M.getVersion,
maybeCopyToTmp: () => import_chunk_2BCLJS3M.maybeCopyToTmp,
overwriteFile: () => import_chunk_FQ2BOR66.overwriteFile,
plusX: () => import_chunk_2BCLJS3M.plusX,
vercelPkgPathRegex: () => import_chunk_2BCLJS3M.vercelPkgPathRegex
var index_exports = {};
__export(index_exports, {
BinaryType: () => import_chunk_66KG5WKV.BinaryType,
allEngineEnvVarsSet: () => import_chunk_XNR2KDTK.allEngineEnvVarsSet,
deprecatedEnvVarMap: () => import_chunk_XNR2KDTK.deprecatedEnvVarMap,
download: () => import_chunk_WOXKHJGC.download,
engineEnvVarMap: () => import_chunk_XNR2KDTK.engineEnvVarMap,
getBinaryEnvVarPath: () => import_chunk_XNR2KDTK.getBinaryEnvVarPath,
getBinaryName: () => import_chunk_WOXKHJGC.getBinaryName,
getCacheDir: () => import_chunk_4MDZEOKU.getCacheDir,
getProxyAgent: () => import_chunk_CTLNI6CP.getProxyAgent,
getVersion: () => import_chunk_WOXKHJGC.getVersion,
maybeCopyToTmp: () => import_chunk_WOXKHJGC.maybeCopyToTmp,
overwriteFile: () => import_chunk_4MDZEOKU.overwriteFile,
plusX: () => import_chunk_WOXKHJGC.plusX,
vercelPkgPathRegex: () => import_chunk_WOXKHJGC.vercelPkgPathRegex
});
module.exports = __toCommonJS(dist_exports);
var import_chunk_2BCLJS3M = require("./chunk-2BCLJS3M.js");
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
var import_chunk_QSTZGX47 = require("./chunk-QSTZGX47.js");
var import_chunk_QLWYUM7O = require("./chunk-QLWYUM7O.js");
var import_chunk_VTJS2JJN = require("./chunk-VTJS2JJN.js");
var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js");
var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
var import_chunk_KDPLGCY6 = require("./chunk-KDPLGCY6.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
module.exports = __toCommonJS(index_exports);
var import_chunk_WOXKHJGC = require("./chunk-WOXKHJGC.js");
var import_chunk_5564WBCW = require("./chunk-5564WBCW.js");
var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
var import_chunk_4GGGRRIN = require("./chunk-4GGGRRIN.js");
var import_chunk_FNYZ6ABB = require("./chunk-FNYZ6ABB.js");
var import_chunk_VLGS4WJI = require("./chunk-VLGS4WJI.js");
var import_chunk_7AOUSONO = require("./chunk-7AOUSONO.js");
var import_chunk_4MDZEOKU = require("./chunk-4MDZEOKU.js");
var import_chunk_XNR2KDTK = require("./chunk-XNR2KDTK.js");
var import_chunk_66KG5WKV = require("./chunk-66KG5WKV.js");
var import_chunk_FKGWOTGU = require("./chunk-FKGWOTGU.js");
var import_chunk_CTLNI6CP = require("./chunk-CTLNI6CP.js");
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");

View File

@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var log_exports = {};
__export(log_exports, {
getBar: () => import_chunk_4LX3XBNY.getBar
getBar: () => import_chunk_5564WBCW.getBar
});
module.exports = __toCommonJS(log_exports);
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
var import_chunk_5564WBCW = require("./chunk-5564WBCW.js");
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");

View File

@@ -16,13 +16,13 @@ var __copyProps = (to, from, except, desc) => {
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var multipart_parser_47FFAP42_exports = {};
__export(multipart_parser_47FFAP42_exports, {
var multipart_parser_3E7JBBYS_exports = {};
__export(multipart_parser_3E7JBBYS_exports, {
toFormData: () => toFormData
});
module.exports = __toCommonJS(multipart_parser_47FFAP42_exports);
var import_chunk_VTJS2JJN = require("./chunk-VTJS2JJN.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
module.exports = __toCommonJS(multipart_parser_3E7JBBYS_exports);
var import_chunk_VLGS4WJI = require("./chunk-VLGS4WJI.js");
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
var s = 0;
var S = {
START_BOUNDARY: s++,
@@ -149,6 +149,7 @@ var MultipartParser = class {
state = S.HEADER_FIELD;
mark("onHeaderField");
index = 0;
// falls through
case S.HEADER_FIELD:
if (c === CR) {
clear("onHeaderField");
@@ -178,6 +179,7 @@ var MultipartParser = class {
}
mark("onHeaderValue");
state = S.HEADER_VALUE;
// falls through
case S.HEADER_VALUE:
if (c === CR) {
dataCallback("onHeaderValue", true);
@@ -201,6 +203,7 @@ var MultipartParser = class {
case S.PART_DATA_START:
state = S.PART_DATA;
mark("onPartData");
// falls through
case S.PART_DATA:
previousIndex = index;
if (index === 0) {
@@ -311,7 +314,7 @@ async function toFormData(Body, ct) {
let contentType;
let filename;
const entryChunks = [];
const formData = new import_chunk_VTJS2JJN.FormData();
const formData = new import_chunk_VLGS4WJI.FormData();
const onPartData = (ui8a) => {
entryValue += decoder.decode(ui8a, { stream: true });
};
@@ -319,7 +322,7 @@ async function toFormData(Body, ct) {
entryChunks.push(ui8a);
};
const appendFileToFormData = () => {
const file = new import_chunk_VTJS2JJN.file_default(entryChunks, filename, { type: contentType });
const file = new import_chunk_VLGS4WJI.file_default(entryChunks, filename, { type: contentType });
formData.append(entryName, file);
};
const appendEntryToFormData = () => {

View File

@@ -18,12 +18,11 @@ var __copyProps = (to, from, except, desc) => {
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var utils_exports = {};
__export(utils_exports, {
getCacheDir: () => import_chunk_FQ2BOR66.getCacheDir,
getDownloadUrl: () => import_chunk_FQ2BOR66.getDownloadUrl,
getRootCacheDir: () => import_chunk_FQ2BOR66.getRootCacheDir,
overwriteFile: () => import_chunk_FQ2BOR66.overwriteFile
getCacheDir: () => import_chunk_4MDZEOKU.getCacheDir,
getDownloadUrl: () => import_chunk_4MDZEOKU.getDownloadUrl,
getRootCacheDir: () => import_chunk_4MDZEOKU.getRootCacheDir,
overwriteFile: () => import_chunk_4MDZEOKU.overwriteFile
});
module.exports = __toCommonJS(utils_exports);
var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
var import_chunk_4MDZEOKU = require("./chunk-4MDZEOKU.js");
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");