@prisma/fetch-engine 6.19.0 → 6.20.0-integration-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BinaryType.d.ts +0 -2
- package/dist/BinaryType.js +2 -2
- package/dist/{chunk-3VVCXIQ5.js → chunk-4CBSYQEY.js} +5 -5
- package/dist/{chunk-X37PZICB.js → chunk-66KG5WKV.js} +3 -5
- package/dist/{chunk-RXM4EBGR.js → chunk-BYDIRBHB.js} +687 -213
- package/dist/{chunk-VAPNG6TS.js → chunk-CNO6T77T.js} +69 -238
- package/dist/{chunk-VCBTN2LA.js → chunk-GQZPGRKF.js} +29 -43
- package/dist/{chunk-CY52DY2B.js → chunk-UZIIO3VK.js} +83 -820
- package/dist/{chunk-LONQL55G.js → chunk-VGMB4WXF.js} +8 -15
- package/dist/{chunk-QFA3XBMW.js → chunk-XNR2KDTK.js} +3 -11
- package/dist/{chunk-GRUBMFLQ.js → chunk-YMRBJ7QH.js} +30 -44
- package/dist/cleanupCache.js +3 -4
- package/dist/download.d.ts +1 -1
- package/dist/download.js +14 -14
- package/dist/downloadZip.js +5 -6
- package/dist/env.d.ts +0 -2
- package/dist/env.js +6 -6
- package/dist/getProxyAgent.js +2 -2
- package/dist/index.js +22 -22
- package/dist/{multipart-parser-ASKQAOL4.js → multipart-parser-AOASR4DL.js} +6 -6
- package/dist/utils.js +5 -6
- package/package.json +5 -5
|
@@ -26,21 +26,21 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_VGMB4WXF_exports = {};
|
|
30
|
+
__export(chunk_VGMB4WXF_exports, {
|
|
31
31
|
getCacheDir: () => getCacheDir,
|
|
32
32
|
getDownloadUrl: () => getDownloadUrl,
|
|
33
33
|
getRootCacheDir: () => getRootCacheDir,
|
|
34
34
|
overwriteFile: () => overwriteFile,
|
|
35
|
+
require_graceful_fs: () => require_graceful_fs,
|
|
35
36
|
require_lib: () => require_lib
|
|
36
37
|
});
|
|
37
|
-
module.exports = __toCommonJS(
|
|
38
|
+
module.exports = __toCommonJS(chunk_VGMB4WXF_exports);
|
|
38
39
|
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
|
39
40
|
var import_node_fs = __toESM(require("node:fs"));
|
|
40
41
|
var import_node_os = __toESM(require("node:os"));
|
|
41
42
|
var import_node_path = __toESM(require("node:path"));
|
|
42
43
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
43
|
-
var import_get_platform = require("@prisma/get-platform");
|
|
44
44
|
var import_node_process = __toESM(require("node:process"));
|
|
45
45
|
var import_node_path2 = __toESM(require("node:path"));
|
|
46
46
|
var import_node_fs2 = __toESM(require("node:fs"));
|
|
@@ -1852,7 +1852,7 @@ var require_ensure = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
1852
1852
|
}
|
|
1853
1853
|
});
|
|
1854
1854
|
var require_utils2 = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
1855
|
-
"../../node_modules/.pnpm/jsonfile@6.
|
|
1855
|
+
"../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
|
1856
1856
|
"use strict";
|
|
1857
1857
|
function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
|
|
1858
1858
|
const EOF = finalEOL ? EOL : "";
|
|
@@ -1867,7 +1867,7 @@ var require_utils2 = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
1867
1867
|
}
|
|
1868
1868
|
});
|
|
1869
1869
|
var require_jsonfile = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
1870
|
-
"../../node_modules/.pnpm/jsonfile@6.
|
|
1870
|
+
"../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js"(exports, module2) {
|
|
1871
1871
|
"use strict";
|
|
1872
1872
|
var _fs;
|
|
1873
1873
|
try {
|
|
@@ -1929,13 +1929,12 @@ var require_jsonfile = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
1929
1929
|
const str = stringify(obj, options);
|
|
1930
1930
|
return fs4.writeFileSync(file, str, options);
|
|
1931
1931
|
}
|
|
1932
|
-
|
|
1932
|
+
module2.exports = {
|
|
1933
1933
|
readFile,
|
|
1934
1934
|
readFileSync,
|
|
1935
1935
|
writeFile,
|
|
1936
1936
|
writeFileSync
|
|
1937
1937
|
};
|
|
1938
|
-
module2.exports = jsonfile;
|
|
1939
1938
|
}
|
|
1940
1939
|
});
|
|
1941
1940
|
var require_jsonfile2 = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
@@ -2318,13 +2317,7 @@ function getDownloadUrl({
|
|
|
2318
2317
|
}) {
|
|
2319
2318
|
const baseUrl = process.env.PRISMA_BINARIES_MIRROR || // TODO: remove this
|
|
2320
2319
|
process.env.PRISMA_ENGINES_MIRROR || "https://binaries.prisma.sh";
|
|
2321
|
-
const finalExtension =
|
|
2322
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
|
|
2323
|
-
binaryTarget === "windows" && "libquery-engine" !== binaryName ? `.exe${extension}` : extension
|
|
2324
|
-
);
|
|
2325
|
-
if (binaryName === "libquery-engine") {
|
|
2326
|
-
binaryName = (0, import_get_platform.getNodeAPIName)(binaryTarget, "url");
|
|
2327
|
-
}
|
|
2320
|
+
const finalExtension = binaryTarget === "windows" ? `.exe${extension}` : extension;
|
|
2328
2321
|
return `${baseUrl}/${channel}/${version}/${binaryTarget}/${binaryName}${finalExtension}`;
|
|
2329
2322
|
}
|
|
2330
2323
|
async function overwriteFile(sourcePath, targetPath) {
|
|
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_XNR2KDTK_exports = {};
|
|
30
|
+
__export(chunk_XNR2KDTK_exports, {
|
|
31
31
|
allEngineEnvVarsSet: () => allEngineEnvVarsSet,
|
|
32
32
|
bold: () => bold,
|
|
33
33
|
deprecatedEnvVarMap: () => deprecatedEnvVarMap,
|
|
@@ -35,7 +35,7 @@ __export(chunk_QFA3XBMW_exports, {
|
|
|
35
35
|
getBinaryEnvVarPath: () => getBinaryEnvVarPath,
|
|
36
36
|
yellow: () => yellow
|
|
37
37
|
});
|
|
38
|
-
module.exports = __toCommonJS(
|
|
38
|
+
module.exports = __toCommonJS(chunk_XNR2KDTK_exports);
|
|
39
39
|
var import_node_fs = __toESM(require("node:fs"));
|
|
40
40
|
var import_node_path = __toESM(require("node:path"));
|
|
41
41
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
@@ -87,14 +87,6 @@ var bgCyan = init(46, 49);
|
|
|
87
87
|
var bgWhite = init(47, 49);
|
|
88
88
|
var debug = (0, import_debug.default)("prisma:fetch-engine:env");
|
|
89
89
|
var engineEnvVarMap = {
|
|
90
|
-
[
|
|
91
|
-
"query-engine"
|
|
92
|
-
/* QueryEngineBinary */
|
|
93
|
-
]: "PRISMA_QUERY_ENGINE_BINARY",
|
|
94
|
-
[
|
|
95
|
-
"libquery-engine"
|
|
96
|
-
/* QueryEngineLibrary */
|
|
97
|
-
]: "PRISMA_QUERY_ENGINE_LIBRARY",
|
|
98
90
|
[
|
|
99
91
|
"schema-engine"
|
|
100
92
|
/* SchemaEngineBinary */
|
|
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_YMRBJ7QH_exports = {};
|
|
30
|
+
__export(chunk_YMRBJ7QH_exports, {
|
|
31
31
|
download: () => download,
|
|
32
32
|
getBinaryName: () => getBinaryName,
|
|
33
33
|
getVersion: () => getVersion,
|
|
@@ -35,13 +35,13 @@ __export(chunk_GRUBMFLQ_exports, {
|
|
|
35
35
|
plusX: () => plusX,
|
|
36
36
|
vercelPkgPathRegex: () => vercelPkgPathRegex
|
|
37
37
|
});
|
|
38
|
-
module.exports = __toCommonJS(
|
|
38
|
+
module.exports = __toCommonJS(chunk_YMRBJ7QH_exports);
|
|
39
39
|
var import_chunk_MWVY55RY = require("./chunk-MWVY55RY.js");
|
|
40
40
|
var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
41
|
+
var import_chunk_4CBSYQEY = require("./chunk-4CBSYQEY.js");
|
|
42
|
+
var import_chunk_UZIIO3VK = require("./chunk-UZIIO3VK.js");
|
|
43
|
+
var import_chunk_VGMB4WXF = require("./chunk-VGMB4WXF.js");
|
|
44
|
+
var import_chunk_XNR2KDTK = require("./chunk-XNR2KDTK.js");
|
|
45
45
|
var import_chunk_FKGWOTGU = require("./chunk-FKGWOTGU.js");
|
|
46
46
|
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
|
47
47
|
var import_node_fs = __toESM(require("node:fs"));
|
|
@@ -585,7 +585,7 @@ var require_package = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
585
585
|
"package.json"(exports, module2) {
|
|
586
586
|
module2.exports = {
|
|
587
587
|
name: "@prisma/fetch-engine",
|
|
588
|
-
version: "6.
|
|
588
|
+
version: "6.20.0-integration-next.1",
|
|
589
589
|
description: "This package is intended for Prisma's internal use",
|
|
590
590
|
main: "dist/index.js",
|
|
591
591
|
types: "dist/index.d.ts",
|
|
@@ -600,7 +600,7 @@ var require_package = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
600
600
|
bugs: "https://github.com/prisma/prisma/issues",
|
|
601
601
|
enginesOverride: {},
|
|
602
602
|
devDependencies: {
|
|
603
|
-
"@types/node": "
|
|
603
|
+
"@types/node": "~20.19.24",
|
|
604
604
|
"@types/progress": "2.0.7",
|
|
605
605
|
del: "6.1.1",
|
|
606
606
|
execa: "8.0.1",
|
|
@@ -622,7 +622,7 @@ var require_package = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
622
622
|
},
|
|
623
623
|
dependencies: {
|
|
624
624
|
"@prisma/debug": "workspace:*",
|
|
625
|
-
"@prisma/engines-version": "6.19.0-
|
|
625
|
+
"@prisma/engines-version": "6.19.0-33.next-fca7ed8aa5fe6347594ad793adb59b37f021379a",
|
|
626
626
|
"@prisma/get-platform": "workspace:*"
|
|
627
627
|
},
|
|
628
628
|
scripts: {
|
|
@@ -2140,7 +2140,7 @@ function create$(options) {
|
|
|
2140
2140
|
return $2;
|
|
2141
2141
|
}
|
|
2142
2142
|
var $ = create$();
|
|
2143
|
-
var import_fs_extra = (0, import_chunk_QGM4M3NI.__toESM)((0,
|
|
2143
|
+
var import_fs_extra = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_VGMB4WXF.require_lib)());
|
|
2144
2144
|
async function pMap(iterable, mapper, {
|
|
2145
2145
|
concurrency = Number.POSITIVE_INFINITY,
|
|
2146
2146
|
stopOnError = true,
|
|
@@ -2270,7 +2270,7 @@ async function pFilter(iterable, filterer, options) {
|
|
|
2270
2270
|
);
|
|
2271
2271
|
return values.filter((value) => Boolean(value[0])).map((value) => value[1]);
|
|
2272
2272
|
}
|
|
2273
|
-
var import_temp_dir = (0, import_chunk_QGM4M3NI.__toESM)((0,
|
|
2273
|
+
var import_temp_dir = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_UZIIO3VK.require_temp_dir)());
|
|
2274
2274
|
var { enginesOverride } = require_package();
|
|
2275
2275
|
var debug = (0, import_debug.default)("prisma:fetch-engine:download");
|
|
2276
2276
|
var exists = (0, import_node_util.promisify)(import_node_fs.default.exists);
|
|
@@ -2285,18 +2285,16 @@ async function download(options) {
|
|
|
2285
2285
|
options.skipCacheIntegrityCheck = true;
|
|
2286
2286
|
}
|
|
2287
2287
|
const { binaryTarget, ...os2 } = await (0, import_get_platform.getPlatformInfo)();
|
|
2288
|
-
if (os2.targetDistro && ["nixos"].includes(os2.targetDistro) && !(0,
|
|
2288
|
+
if (os2.targetDistro && ["nixos"].includes(os2.targetDistro) && !(0, import_chunk_XNR2KDTK.allEngineEnvVarsSet)(Object.keys(options.binaries))) {
|
|
2289
2289
|
console.error(
|
|
2290
|
-
`${(0,
|
|
2290
|
+
`${(0, import_chunk_XNR2KDTK.yellow)("Warning")} Precompiled engine files are not available for ${os2.targetDistro}, please provide the paths via environment variables, see https://pris.ly/d/custom-engines`
|
|
2291
2291
|
);
|
|
2292
2292
|
} else if (["freebsd11", "freebsd12", "freebsd13", "freebsd14", "freebsd15", "openbsd", "netbsd"].includes(binaryTarget)) {
|
|
2293
2293
|
console.error(
|
|
2294
|
-
`${(0,
|
|
2294
|
+
`${(0, import_chunk_XNR2KDTK.yellow)(
|
|
2295
2295
|
"Warning"
|
|
2296
2296
|
)} Precompiled engine files are not available for ${binaryTarget}. Read more about building your own engines at https://pris.ly/d/build-engines`
|
|
2297
2297
|
);
|
|
2298
|
-
} else if ("libquery-engine" in options.binaries) {
|
|
2299
|
-
(0, import_get_platform.assertNodeAPISupported)();
|
|
2300
2298
|
}
|
|
2301
2299
|
const opts = {
|
|
2302
2300
|
...options,
|
|
@@ -2314,7 +2312,7 @@ async function download(options) {
|
|
|
2314
2312
|
binaryTarget: binaryTarget2,
|
|
2315
2313
|
fileName,
|
|
2316
2314
|
targetFilePath,
|
|
2317
|
-
envVarPath: (0,
|
|
2315
|
+
envVarPath: (0, import_chunk_XNR2KDTK.getBinaryEnvVarPath)(binaryName)?.path,
|
|
2318
2316
|
skipCacheIntegrityCheck: !!opts.skipCacheIntegrityCheck
|
|
2319
2317
|
};
|
|
2320
2318
|
})
|
|
@@ -2337,7 +2335,7 @@ async function download(options) {
|
|
|
2337
2335
|
return shouldDownload;
|
|
2338
2336
|
});
|
|
2339
2337
|
if (binariesToDownload.length > 0) {
|
|
2340
|
-
const cleanupPromise = (0,
|
|
2338
|
+
const cleanupPromise = (0, import_chunk_4CBSYQEY.cleanupCache)();
|
|
2341
2339
|
let finishBar;
|
|
2342
2340
|
let setProgress;
|
|
2343
2341
|
if (opts.showProgress) {
|
|
@@ -2346,7 +2344,7 @@ async function download(options) {
|
|
|
2346
2344
|
setProgress = collectiveBar.setProgress;
|
|
2347
2345
|
}
|
|
2348
2346
|
const promises = binariesToDownload.map((job) => {
|
|
2349
|
-
const downloadUrl = (0,
|
|
2347
|
+
const downloadUrl = (0, import_chunk_VGMB4WXF.getDownloadUrl)({
|
|
2350
2348
|
channel: "all_commits",
|
|
2351
2349
|
version: opts.version,
|
|
2352
2350
|
binaryTarget: job.binaryTarget,
|
|
@@ -2380,10 +2378,7 @@ async function download(options) {
|
|
|
2380
2378
|
return binaryPaths;
|
|
2381
2379
|
}
|
|
2382
2380
|
function getCollectiveBar(options) {
|
|
2383
|
-
const
|
|
2384
|
-
const bar = (0, import_chunk_MWVY55RY.getBar)(
|
|
2385
|
-
`Downloading Prisma engines${hasNodeAPI ? " for Node-API" : ""} for ${options.binaryTargets?.map((p) => (0, import_chunk_QFA3XBMW.bold)(p)).join(" and ")}`
|
|
2386
|
-
);
|
|
2381
|
+
const bar = (0, import_chunk_MWVY55RY.getBar)(`Downloading Prisma engines for ${options.binaryTargets?.map((p) => (0, import_chunk_XNR2KDTK.bold)(p)).join(" and ")}`);
|
|
2387
2382
|
const progressMap = {};
|
|
2388
2383
|
const numDownloads = Object.values(options.binaries).length * Object.values(options?.binaryTargets ?? []).length;
|
|
2389
2384
|
const setProgress = (sourcePath) => (progress) => {
|
|
@@ -2427,7 +2422,7 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
|
|
|
2427
2422
|
});
|
|
2428
2423
|
if (cachedFile) {
|
|
2429
2424
|
if (job.skipCacheIntegrityCheck === true) {
|
|
2430
|
-
await (0,
|
|
2425
|
+
await (0, import_chunk_VGMB4WXF.overwriteFile)(cachedFile, job.targetFilePath);
|
|
2431
2426
|
return false;
|
|
2432
2427
|
}
|
|
2433
2428
|
const sha256FilePath = cachedFile + ".sha256";
|
|
@@ -2438,12 +2433,12 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
|
|
|
2438
2433
|
if (!targetExists) {
|
|
2439
2434
|
debug(`copying ${cachedFile} to ${job.targetFilePath}`);
|
|
2440
2435
|
await import_node_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
|
|
2441
|
-
await (0,
|
|
2436
|
+
await (0, import_chunk_VGMB4WXF.overwriteFile)(cachedFile, job.targetFilePath);
|
|
2442
2437
|
}
|
|
2443
2438
|
const targetSha256 = await (0, import_chunk_FKGWOTGU.getHash)(job.targetFilePath);
|
|
2444
2439
|
if (sha256File !== targetSha256) {
|
|
2445
2440
|
debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`);
|
|
2446
|
-
await (0,
|
|
2441
|
+
await (0, import_chunk_VGMB4WXF.overwriteFile)(cachedFile, job.targetFilePath);
|
|
2447
2442
|
}
|
|
2448
2443
|
return false;
|
|
2449
2444
|
} else {
|
|
@@ -2458,7 +2453,7 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
|
|
|
2458
2453
|
}
|
|
2459
2454
|
if (cachedFile) {
|
|
2460
2455
|
debug(`copying ${cachedFile} to ${job.targetFilePath}`);
|
|
2461
|
-
await (0,
|
|
2456
|
+
await (0, import_chunk_VGMB4WXF.overwriteFile)(cachedFile, job.targetFilePath);
|
|
2462
2457
|
return false;
|
|
2463
2458
|
}
|
|
2464
2459
|
return true;
|
|
@@ -2479,24 +2474,15 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
|
|
|
2479
2474
|
}
|
|
2480
2475
|
return false;
|
|
2481
2476
|
}
|
|
2482
|
-
async function getVersion(enginePath,
|
|
2477
|
+
async function getVersion(enginePath, _binaryName) {
|
|
2483
2478
|
try {
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
const commitHash = (0, import_chunk_QGM4M3NI.__require)(enginePath).version().commit;
|
|
2487
|
-
return `${"libquery-engine"} ${commitHash}`;
|
|
2488
|
-
} else {
|
|
2489
|
-
const result = await execa(enginePath, ["--version"]);
|
|
2490
|
-
return result.stdout;
|
|
2491
|
-
}
|
|
2479
|
+
const result = await execa(enginePath, ["--version"]);
|
|
2480
|
+
return result.stdout;
|
|
2492
2481
|
} catch {
|
|
2493
2482
|
}
|
|
2494
2483
|
return void 0;
|
|
2495
2484
|
}
|
|
2496
2485
|
function getBinaryName(binaryName, binaryTarget) {
|
|
2497
|
-
if (binaryName === "libquery-engine") {
|
|
2498
|
-
return `${(0, import_get_platform.getNodeAPIName)(binaryTarget, "fs")}`;
|
|
2499
|
-
}
|
|
2500
2486
|
const extension = binaryTarget === "windows" ? ".exe" : "";
|
|
2501
2487
|
return `${binaryName}-${binaryTarget}${extension}`;
|
|
2502
2488
|
}
|
|
@@ -2505,7 +2491,7 @@ async function getCachedBinaryPath({
|
|
|
2505
2491
|
binaryTarget,
|
|
2506
2492
|
binaryName
|
|
2507
2493
|
}) {
|
|
2508
|
-
const cacheDir = await (0,
|
|
2494
|
+
const cacheDir = await (0, import_chunk_VGMB4WXF.getCacheDir)(channel, version, binaryTarget);
|
|
2509
2495
|
if (!cacheDir) {
|
|
2510
2496
|
return null;
|
|
2511
2497
|
}
|
|
@@ -2538,7 +2524,7 @@ async function downloadBinary(options) {
|
|
|
2538
2524
|
if (progressCb) {
|
|
2539
2525
|
progressCb(0);
|
|
2540
2526
|
}
|
|
2541
|
-
const { sha256, zippedSha256 } = await (0,
|
|
2527
|
+
const { sha256, zippedSha256 } = await (0, import_chunk_UZIIO3VK.downloadZip)(downloadUrl, targetFilePath, progressCb);
|
|
2542
2528
|
if (progressCb) {
|
|
2543
2529
|
progressCb(1);
|
|
2544
2530
|
}
|
|
@@ -2546,7 +2532,7 @@ async function downloadBinary(options) {
|
|
|
2546
2532
|
await saveFileToCache(options, version, sha256, zippedSha256);
|
|
2547
2533
|
}
|
|
2548
2534
|
async function saveFileToCache(job, version, sha256, zippedSha256) {
|
|
2549
|
-
const cacheDir = await (0,
|
|
2535
|
+
const cacheDir = await (0, import_chunk_VGMB4WXF.getCacheDir)(channel, version, job.binaryTarget);
|
|
2550
2536
|
if (!cacheDir) {
|
|
2551
2537
|
return;
|
|
2552
2538
|
}
|
|
@@ -2554,7 +2540,7 @@ async function saveFileToCache(job, version, sha256, zippedSha256) {
|
|
|
2554
2540
|
const cachedSha256Path = import_node_path.default.join(cacheDir, job.binaryName + ".sha256");
|
|
2555
2541
|
const cachedSha256ZippedPath = import_node_path.default.join(cacheDir, job.binaryName + ".gz.sha256");
|
|
2556
2542
|
try {
|
|
2557
|
-
await (0,
|
|
2543
|
+
await (0, import_chunk_VGMB4WXF.overwriteFile)(job.targetFilePath, cachedTargetPath);
|
|
2558
2544
|
if (sha256 != null) {
|
|
2559
2545
|
await import_node_fs.default.promises.writeFile(cachedSha256Path, sha256);
|
|
2560
2546
|
}
|
package/dist/cleanupCache.js
CHANGED
|
@@ -18,11 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var cleanupCache_exports = {};
|
|
20
20
|
__export(cleanupCache_exports, {
|
|
21
|
-
cleanupCache: () =>
|
|
21
|
+
cleanupCache: () => import_chunk_4CBSYQEY.cleanupCache
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(cleanupCache_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_4CBSYQEY = require("./chunk-4CBSYQEY.js");
|
|
25
25
|
var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
|
|
26
|
-
var
|
|
27
|
-
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
|
|
26
|
+
var import_chunk_VGMB4WXF = require("./chunk-VGMB4WXF.js");
|
|
28
27
|
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
package/dist/download.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface DownloadOptions {
|
|
|
21
21
|
skipCacheIntegrityCheck?: boolean;
|
|
22
22
|
}
|
|
23
23
|
export declare function download(options: DownloadOptions): Promise<BinaryPaths>;
|
|
24
|
-
export declare function getVersion(enginePath: string,
|
|
24
|
+
export declare function getVersion(enginePath: string, _binaryName: string): Promise<string | undefined>;
|
|
25
25
|
export declare function getBinaryName(binaryName: BinaryType, binaryTarget: BinaryTarget): string;
|
|
26
26
|
export declare function maybeCopyToTmp(file: string): Promise<string>;
|
|
27
27
|
export declare function plusX(file: any): void;
|
package/dist/download.js
CHANGED
|
@@ -18,24 +18,24 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var download_exports = {};
|
|
20
20
|
__export(download_exports, {
|
|
21
|
-
download: () =>
|
|
22
|
-
getBinaryName: () =>
|
|
23
|
-
getVersion: () =>
|
|
24
|
-
maybeCopyToTmp: () =>
|
|
25
|
-
plusX: () =>
|
|
26
|
-
vercelPkgPathRegex: () =>
|
|
21
|
+
download: () => import_chunk_YMRBJ7QH.download,
|
|
22
|
+
getBinaryName: () => import_chunk_YMRBJ7QH.getBinaryName,
|
|
23
|
+
getVersion: () => import_chunk_YMRBJ7QH.getVersion,
|
|
24
|
+
maybeCopyToTmp: () => import_chunk_YMRBJ7QH.maybeCopyToTmp,
|
|
25
|
+
plusX: () => import_chunk_YMRBJ7QH.plusX,
|
|
26
|
+
vercelPkgPathRegex: () => import_chunk_YMRBJ7QH.vercelPkgPathRegex
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(download_exports);
|
|
29
|
-
var
|
|
29
|
+
var import_chunk_YMRBJ7QH = require("./chunk-YMRBJ7QH.js");
|
|
30
30
|
var import_chunk_MWVY55RY = require("./chunk-MWVY55RY.js");
|
|
31
31
|
var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
32
|
+
var import_chunk_4CBSYQEY = require("./chunk-4CBSYQEY.js");
|
|
33
|
+
var import_chunk_UZIIO3VK = require("./chunk-UZIIO3VK.js");
|
|
34
|
+
var import_chunk_BYDIRBHB = require("./chunk-BYDIRBHB.js");
|
|
35
35
|
var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
36
|
+
var import_chunk_VGMB4WXF = require("./chunk-VGMB4WXF.js");
|
|
37
|
+
var import_chunk_XNR2KDTK = require("./chunk-XNR2KDTK.js");
|
|
38
|
+
var import_chunk_66KG5WKV = require("./chunk-66KG5WKV.js");
|
|
39
39
|
var import_chunk_FKGWOTGU = require("./chunk-FKGWOTGU.js");
|
|
40
|
-
var
|
|
40
|
+
var import_chunk_CNO6T77T = require("./chunk-CNO6T77T.js");
|
|
41
41
|
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
package/dist/downloadZip.js
CHANGED
|
@@ -18,13 +18,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var downloadZip_exports = {};
|
|
20
20
|
__export(downloadZip_exports, {
|
|
21
|
-
downloadZip: () =>
|
|
21
|
+
downloadZip: () => import_chunk_UZIIO3VK.downloadZip
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(downloadZip_exports);
|
|
24
|
-
var
|
|
25
|
-
var
|
|
24
|
+
var import_chunk_UZIIO3VK = require("./chunk-UZIIO3VK.js");
|
|
25
|
+
var import_chunk_BYDIRBHB = require("./chunk-BYDIRBHB.js");
|
|
26
26
|
var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var import_chunk_VAPNG6TS = require("./chunk-VAPNG6TS.js");
|
|
27
|
+
var import_chunk_VGMB4WXF = require("./chunk-VGMB4WXF.js");
|
|
28
|
+
var import_chunk_CNO6T77T = require("./chunk-CNO6T77T.js");
|
|
30
29
|
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
package/dist/env.d.ts
CHANGED
package/dist/env.js
CHANGED
|
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var env_exports = {};
|
|
20
20
|
__export(env_exports, {
|
|
21
|
-
allEngineEnvVarsSet: () =>
|
|
22
|
-
deprecatedEnvVarMap: () =>
|
|
23
|
-
engineEnvVarMap: () =>
|
|
24
|
-
getBinaryEnvVarPath: () =>
|
|
21
|
+
allEngineEnvVarsSet: () => import_chunk_XNR2KDTK.allEngineEnvVarsSet,
|
|
22
|
+
deprecatedEnvVarMap: () => import_chunk_XNR2KDTK.deprecatedEnvVarMap,
|
|
23
|
+
engineEnvVarMap: () => import_chunk_XNR2KDTK.engineEnvVarMap,
|
|
24
|
+
getBinaryEnvVarPath: () => import_chunk_XNR2KDTK.getBinaryEnvVarPath
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(env_exports);
|
|
27
|
-
var
|
|
28
|
-
var
|
|
27
|
+
var import_chunk_XNR2KDTK = require("./chunk-XNR2KDTK.js");
|
|
28
|
+
var import_chunk_66KG5WKV = require("./chunk-66KG5WKV.js");
|
|
29
29
|
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
package/dist/getProxyAgent.js
CHANGED
|
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var getProxyAgent_exports = {};
|
|
20
20
|
__export(getProxyAgent_exports, {
|
|
21
|
-
getProxyAgent: () =>
|
|
21
|
+
getProxyAgent: () => import_chunk_CNO6T77T.getProxyAgent
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(getProxyAgent_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_CNO6T77T = require("./chunk-CNO6T77T.js");
|
|
25
25
|
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
package/dist/index.js
CHANGED
|
@@ -18,32 +18,32 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var index_exports = {};
|
|
20
20
|
__export(index_exports, {
|
|
21
|
-
BinaryType: () =>
|
|
22
|
-
allEngineEnvVarsSet: () =>
|
|
23
|
-
deprecatedEnvVarMap: () =>
|
|
24
|
-
download: () =>
|
|
25
|
-
engineEnvVarMap: () =>
|
|
26
|
-
getBinaryEnvVarPath: () =>
|
|
27
|
-
getBinaryName: () =>
|
|
28
|
-
getCacheDir: () =>
|
|
29
|
-
getProxyAgent: () =>
|
|
30
|
-
getVersion: () =>
|
|
31
|
-
maybeCopyToTmp: () =>
|
|
32
|
-
overwriteFile: () =>
|
|
33
|
-
plusX: () =>
|
|
34
|
-
vercelPkgPathRegex: () =>
|
|
21
|
+
BinaryType: () => import_chunk_66KG5WKV.BinaryType,
|
|
22
|
+
allEngineEnvVarsSet: () => import_chunk_XNR2KDTK.allEngineEnvVarsSet,
|
|
23
|
+
deprecatedEnvVarMap: () => import_chunk_XNR2KDTK.deprecatedEnvVarMap,
|
|
24
|
+
download: () => import_chunk_YMRBJ7QH.download,
|
|
25
|
+
engineEnvVarMap: () => import_chunk_XNR2KDTK.engineEnvVarMap,
|
|
26
|
+
getBinaryEnvVarPath: () => import_chunk_XNR2KDTK.getBinaryEnvVarPath,
|
|
27
|
+
getBinaryName: () => import_chunk_YMRBJ7QH.getBinaryName,
|
|
28
|
+
getCacheDir: () => import_chunk_VGMB4WXF.getCacheDir,
|
|
29
|
+
getProxyAgent: () => import_chunk_CNO6T77T.getProxyAgent,
|
|
30
|
+
getVersion: () => import_chunk_YMRBJ7QH.getVersion,
|
|
31
|
+
maybeCopyToTmp: () => import_chunk_YMRBJ7QH.maybeCopyToTmp,
|
|
32
|
+
overwriteFile: () => import_chunk_VGMB4WXF.overwriteFile,
|
|
33
|
+
plusX: () => import_chunk_YMRBJ7QH.plusX,
|
|
34
|
+
vercelPkgPathRegex: () => import_chunk_YMRBJ7QH.vercelPkgPathRegex
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(index_exports);
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_YMRBJ7QH = require("./chunk-YMRBJ7QH.js");
|
|
38
38
|
var import_chunk_MWVY55RY = require("./chunk-MWVY55RY.js");
|
|
39
39
|
var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
40
|
+
var import_chunk_4CBSYQEY = require("./chunk-4CBSYQEY.js");
|
|
41
|
+
var import_chunk_UZIIO3VK = require("./chunk-UZIIO3VK.js");
|
|
42
|
+
var import_chunk_BYDIRBHB = require("./chunk-BYDIRBHB.js");
|
|
43
43
|
var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
44
|
+
var import_chunk_VGMB4WXF = require("./chunk-VGMB4WXF.js");
|
|
45
|
+
var import_chunk_XNR2KDTK = require("./chunk-XNR2KDTK.js");
|
|
46
|
+
var import_chunk_66KG5WKV = require("./chunk-66KG5WKV.js");
|
|
47
47
|
var import_chunk_FKGWOTGU = require("./chunk-FKGWOTGU.js");
|
|
48
|
-
var
|
|
48
|
+
var import_chunk_CNO6T77T = require("./chunk-CNO6T77T.js");
|
|
49
49
|
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
|
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var multipart_parser_AOASR4DL_exports = {};
|
|
20
|
+
__export(multipart_parser_AOASR4DL_exports, {
|
|
21
21
|
toFormData: () => toFormData
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(multipart_parser_AOASR4DL_exports);
|
|
24
|
+
var import_chunk_BYDIRBHB = require("./chunk-BYDIRBHB.js");
|
|
25
25
|
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
|
26
26
|
var s = 0;
|
|
27
27
|
var S = {
|
|
@@ -314,7 +314,7 @@ async function toFormData(Body, ct) {
|
|
|
314
314
|
let contentType;
|
|
315
315
|
let filename;
|
|
316
316
|
const entryChunks = [];
|
|
317
|
-
const formData = new
|
|
317
|
+
const formData = new import_chunk_BYDIRBHB.FormData();
|
|
318
318
|
const onPartData = (ui8a) => {
|
|
319
319
|
entryValue += decoder.decode(ui8a, { stream: true });
|
|
320
320
|
};
|
|
@@ -322,7 +322,7 @@ async function toFormData(Body, ct) {
|
|
|
322
322
|
entryChunks.push(ui8a);
|
|
323
323
|
};
|
|
324
324
|
const appendFileToFormData = () => {
|
|
325
|
-
const file = new
|
|
325
|
+
const file = new import_chunk_BYDIRBHB.file_default(entryChunks, filename, { type: contentType });
|
|
326
326
|
formData.append(entryName, file);
|
|
327
327
|
};
|
|
328
328
|
const appendEntryToFormData = () => {
|
package/dist/utils.js
CHANGED
|
@@ -18,12 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var utils_exports = {};
|
|
20
20
|
__export(utils_exports, {
|
|
21
|
-
getCacheDir: () =>
|
|
22
|
-
getDownloadUrl: () =>
|
|
23
|
-
getRootCacheDir: () =>
|
|
24
|
-
overwriteFile: () =>
|
|
21
|
+
getCacheDir: () => import_chunk_VGMB4WXF.getCacheDir,
|
|
22
|
+
getDownloadUrl: () => import_chunk_VGMB4WXF.getDownloadUrl,
|
|
23
|
+
getRootCacheDir: () => import_chunk_VGMB4WXF.getRootCacheDir,
|
|
24
|
+
overwriteFile: () => import_chunk_VGMB4WXF.overwriteFile
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(utils_exports);
|
|
27
|
-
var
|
|
28
|
-
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
|
|
27
|
+
var import_chunk_VGMB4WXF = require("./chunk-VGMB4WXF.js");
|
|
29
28
|
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/fetch-engine",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.20.0-integration-next.1",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"bugs": "https://github.com/prisma/prisma/issues",
|
|
16
16
|
"enginesOverride": {},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@types/node": "
|
|
18
|
+
"@types/node": "~20.19.24",
|
|
19
19
|
"@types/progress": "2.0.7",
|
|
20
20
|
"del": "6.1.1",
|
|
21
21
|
"execa": "8.0.1",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"typescript": "5.4.5"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@prisma/engines-version": "6.19.0-
|
|
40
|
-
"@prisma/debug": "6.
|
|
41
|
-
"@prisma/get-platform": "6.
|
|
39
|
+
"@prisma/engines-version": "6.19.0-33.next-fca7ed8aa5fe6347594ad793adb59b37f021379a",
|
|
40
|
+
"@prisma/debug": "6.20.0-integration-next.1",
|
|
41
|
+
"@prisma/get-platform": "6.20.0-integration-next.1"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"README.md",
|