@prisma/fetch-engine 6.5.0-integration-fix-improve-global-omit-api-performance-2.1 → 6.5.0-integration-fix-improve-global-omit-api-performance-2.2
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/{chunk-B7GZJEJB.js → chunk-APKI2WQJ.js} +23 -23
- package/dist/{chunk-G7EM4XDM.js → chunk-HACCWU3B.js} +423 -1304
- package/dist/{chunk-FKKOTNO6.js → chunk-I3P4GT6A.js} +5 -5
- package/dist/{chunk-4EZ7ALS2.js → chunk-ORVVLJ4G.js} +778 -6
- package/dist/{chunk-Y6JXVPQ2.js → chunk-Z4FI34ZU.js} +22 -22
- package/dist/cleanupCache.js +3 -3
- package/dist/download.js +10 -10
- package/dist/downloadZip.js +3 -3
- package/dist/index.js +12 -12
- package/dist/utils.js +5 -5
- package/package.json +6 -6
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_APKI2WQJ_exports = {};
|
30
|
+
__export(chunk_APKI2WQJ_exports, {
|
31
31
|
download: () => download,
|
32
32
|
getBinaryName: () => getBinaryName,
|
33
33
|
getVersion: () => getVersion,
|
@@ -35,12 +35,12 @@ __export(chunk_B7GZJEJB_exports, {
|
|
35
35
|
plusX: () => plusX,
|
36
36
|
vercelPkgPathRegex: () => vercelPkgPathRegex
|
37
37
|
});
|
38
|
-
module.exports = __toCommonJS(
|
38
|
+
module.exports = __toCommonJS(chunk_APKI2WQJ_exports);
|
39
39
|
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
|
40
40
|
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
|
41
|
-
var
|
42
|
-
var
|
43
|
-
var
|
41
|
+
var import_chunk_I3P4GT6A = require("./chunk-I3P4GT6A.js");
|
42
|
+
var import_chunk_ORVVLJ4G = require("./chunk-ORVVLJ4G.js");
|
43
|
+
var import_chunk_HACCWU3B = require("./chunk-HACCWU3B.js");
|
44
44
|
var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
|
45
45
|
var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
|
46
46
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
@@ -1552,7 +1552,7 @@ var require_merge_stream = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1552
1552
|
var require_stream = (0, import_chunk_AH6QHEOA.__commonJS)({
|
1553
1553
|
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports, module2) {
|
1554
1554
|
"use strict";
|
1555
|
-
var isStream = (0,
|
1555
|
+
var isStream = (0, import_chunk_ORVVLJ4G.require_is_stream)();
|
1556
1556
|
var getStream = require_get_stream();
|
1557
1557
|
var mergeStream = require_merge_stream();
|
1558
1558
|
var handleInput = (spawned, input) => {
|
@@ -1936,7 +1936,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1936
1936
|
"package.json"(exports, module2) {
|
1937
1937
|
module2.exports = {
|
1938
1938
|
name: "@prisma/fetch-engine",
|
1939
|
-
version: "6.5.0-integration-fix-improve-global-omit-api-performance-2.
|
1939
|
+
version: "6.5.0-integration-fix-improve-global-omit-api-performance-2.2",
|
1940
1940
|
description: "This package is intended for Prisma's internal use",
|
1941
1941
|
main: "dist/index.js",
|
1942
1942
|
types: "dist/index.d.ts",
|
@@ -1951,7 +1951,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1951
1951
|
bugs: "https://github.com/prisma/prisma/issues",
|
1952
1952
|
enginesOverride: {},
|
1953
1953
|
devDependencies: {
|
1954
|
-
"@swc/core": "1.
|
1954
|
+
"@swc/core": "1.11.5",
|
1955
1955
|
"@swc/jest": "0.2.37",
|
1956
1956
|
"@types/jest": "29.5.14",
|
1957
1957
|
"@types/node": "18.19.76",
|
@@ -1959,7 +1959,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1959
1959
|
del: "6.1.1",
|
1960
1960
|
execa: "5.1.1",
|
1961
1961
|
"find-cache-dir": "5.0.0",
|
1962
|
-
"fs-extra": "11.
|
1962
|
+
"fs-extra": "11.3.0",
|
1963
1963
|
hasha: "5.2.2",
|
1964
1964
|
"http-proxy-agent": "7.0.2",
|
1965
1965
|
"https-proxy-agent": "7.0.6",
|
@@ -1979,7 +1979,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1979
1979
|
},
|
1980
1980
|
dependencies: {
|
1981
1981
|
"@prisma/debug": "workspace:*",
|
1982
|
-
"@prisma/engines-version": "6.
|
1982
|
+
"@prisma/engines-version": "6.5.0-35.c4e2705a07520fd27af6feba131ff83c38cd0c5c",
|
1983
1983
|
"@prisma/get-platform": "workspace:*"
|
1984
1984
|
},
|
1985
1985
|
scripts: {
|
@@ -1997,7 +1997,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1997
1997
|
}
|
1998
1998
|
});
|
1999
1999
|
var import_execa = (0, import_chunk_AH6QHEOA.__toESM)(require_execa());
|
2000
|
-
var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0,
|
2000
|
+
var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_HACCWU3B.require_lib)());
|
2001
2001
|
async function pMap(iterable, mapper, {
|
2002
2002
|
concurrency = Number.POSITIVE_INFINITY,
|
2003
2003
|
stopOnError = true,
|
@@ -2127,7 +2127,7 @@ async function pFilter(iterable, filterer, options2) {
|
|
2127
2127
|
);
|
2128
2128
|
return values.filter((value) => Boolean(value[0])).map((value) => value[1]);
|
2129
2129
|
}
|
2130
|
-
var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0,
|
2130
|
+
var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_ORVVLJ4G.require_temp_dir)());
|
2131
2131
|
var { enginesOverride } = require_package();
|
2132
2132
|
var debug = (0, import_debug.default)("prisma:fetch-engine:download");
|
2133
2133
|
var exists = (0, import_util.promisify)(import_fs.default.exists);
|
@@ -2194,7 +2194,7 @@ async function download(options) {
|
|
2194
2194
|
return shouldDownload;
|
2195
2195
|
});
|
2196
2196
|
if (binariesToDownload.length > 0) {
|
2197
|
-
const cleanupPromise = (0,
|
2197
|
+
const cleanupPromise = (0, import_chunk_I3P4GT6A.cleanupCache)();
|
2198
2198
|
let finishBar;
|
2199
2199
|
let setProgress;
|
2200
2200
|
if (opts.showProgress) {
|
@@ -2203,7 +2203,7 @@ async function download(options) {
|
|
2203
2203
|
setProgress = collectiveBar.setProgress;
|
2204
2204
|
}
|
2205
2205
|
const promises = binariesToDownload.map((job) => {
|
2206
|
-
const downloadUrl = (0,
|
2206
|
+
const downloadUrl = (0, import_chunk_HACCWU3B.getDownloadUrl)({
|
2207
2207
|
channel: "all_commits",
|
2208
2208
|
version: opts.version,
|
2209
2209
|
binaryTarget: job.binaryTarget,
|
@@ -2285,7 +2285,7 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
|
|
2285
2285
|
});
|
2286
2286
|
if (cachedFile) {
|
2287
2287
|
if (job.skipCacheIntegrityCheck === true) {
|
2288
|
-
await (0,
|
2288
|
+
await (0, import_chunk_HACCWU3B.overwriteFile)(cachedFile, job.targetFilePath);
|
2289
2289
|
return false;
|
2290
2290
|
}
|
2291
2291
|
const sha256FilePath = cachedFile + ".sha256";
|
@@ -2296,12 +2296,12 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
|
|
2296
2296
|
if (!targetExists) {
|
2297
2297
|
debug(`copying ${cachedFile} to ${job.targetFilePath}`);
|
2298
2298
|
await import_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
|
2299
|
-
await (0,
|
2299
|
+
await (0, import_chunk_HACCWU3B.overwriteFile)(cachedFile, job.targetFilePath);
|
2300
2300
|
}
|
2301
2301
|
const targetSha256 = await (0, import_chunk_CWGQAQ3T.getHash)(job.targetFilePath);
|
2302
2302
|
if (sha256File !== targetSha256) {
|
2303
2303
|
debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`);
|
2304
|
-
await (0,
|
2304
|
+
await (0, import_chunk_HACCWU3B.overwriteFile)(cachedFile, job.targetFilePath);
|
2305
2305
|
}
|
2306
2306
|
return false;
|
2307
2307
|
} else {
|
@@ -2316,7 +2316,7 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
|
|
2316
2316
|
}
|
2317
2317
|
if (cachedFile) {
|
2318
2318
|
debug(`copying ${cachedFile} to ${job.targetFilePath}`);
|
2319
|
-
await (0,
|
2319
|
+
await (0, import_chunk_HACCWU3B.overwriteFile)(cachedFile, job.targetFilePath);
|
2320
2320
|
return false;
|
2321
2321
|
}
|
2322
2322
|
return true;
|
@@ -2363,7 +2363,7 @@ async function getCachedBinaryPath({
|
|
2363
2363
|
binaryTarget: binaryTarget2,
|
2364
2364
|
binaryName
|
2365
2365
|
}) {
|
2366
|
-
const cacheDir = await (0,
|
2366
|
+
const cacheDir = await (0, import_chunk_HACCWU3B.getCacheDir)(channel, version, binaryTarget2);
|
2367
2367
|
if (!cacheDir) {
|
2368
2368
|
return null;
|
2369
2369
|
}
|
@@ -2396,7 +2396,7 @@ async function downloadBinary(options2) {
|
|
2396
2396
|
if (progressCb) {
|
2397
2397
|
progressCb(0);
|
2398
2398
|
}
|
2399
|
-
const { sha256, zippedSha256 } = await (0,
|
2399
|
+
const { sha256, zippedSha256 } = await (0, import_chunk_ORVVLJ4G.downloadZip)(downloadUrl, targetFilePath, progressCb);
|
2400
2400
|
if (progressCb) {
|
2401
2401
|
progressCb(1);
|
2402
2402
|
}
|
@@ -2404,7 +2404,7 @@ async function downloadBinary(options2) {
|
|
2404
2404
|
await saveFileToCache(options2, version, sha256, zippedSha256);
|
2405
2405
|
}
|
2406
2406
|
async function saveFileToCache(job, version, sha256, zippedSha256) {
|
2407
|
-
const cacheDir = await (0,
|
2407
|
+
const cacheDir = await (0, import_chunk_HACCWU3B.getCacheDir)(channel, version, job.binaryTarget);
|
2408
2408
|
if (!cacheDir) {
|
2409
2409
|
return;
|
2410
2410
|
}
|
@@ -2412,7 +2412,7 @@ async function saveFileToCache(job, version, sha256, zippedSha256) {
|
|
2412
2412
|
const cachedSha256Path = import_path.default.join(cacheDir, job.binaryName + ".sha256");
|
2413
2413
|
const cachedSha256ZippedPath = import_path.default.join(cacheDir, job.binaryName + ".gz.sha256");
|
2414
2414
|
try {
|
2415
|
-
await (0,
|
2415
|
+
await (0, import_chunk_HACCWU3B.overwriteFile)(job.targetFilePath, cachedTargetPath);
|
2416
2416
|
if (sha256 != null) {
|
2417
2417
|
await import_fs.default.promises.writeFile(cachedSha256Path, sha256);
|
2418
2418
|
}
|