@prisma/fetch-engine 6.20.0-integration-next.17 → 6.20.0-integration-next.19

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.
@@ -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 chunk_RT5C553X_exports = {};
30
- __export(chunk_RT5C553X_exports, {
29
+ var chunk_3PH35AEP_exports = {};
30
+ __export(chunk_3PH35AEP_exports, {
31
31
  download: () => download,
32
32
  getBinaryName: () => getBinaryName,
33
33
  getVersion: () => getVersion,
@@ -35,12 +35,12 @@ __export(chunk_RT5C553X_exports, {
35
35
  plusX: () => plusX,
36
36
  vercelPkgPathRegex: () => vercelPkgPathRegex
37
37
  });
38
- module.exports = __toCommonJS(chunk_RT5C553X_exports);
38
+ module.exports = __toCommonJS(chunk_3PH35AEP_exports);
39
39
  var import_chunk_MWVY55RY = require("./chunk-MWVY55RY.js");
40
40
  var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
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");
41
+ var import_chunk_TB7KGAWO = require("./chunk-TB7KGAWO.js");
42
+ var import_chunk_M7DAFQLF = require("./chunk-M7DAFQLF.js");
43
+ var import_chunk_7DQIGMPT = require("./chunk-7DQIGMPT.js");
44
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");
@@ -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.20.0-integration-next.17",
588
+ version: "6.20.0-integration-next.19",
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",
@@ -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.20.0-11.next-80ee0a44bf5668992b0c909c946a755b86b56c95",
625
+ "@prisma/engines-version": "6.20.0-16.next-0c19ccc313cf9911a90d99d2ac2eb0280c76c513",
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, import_chunk_VGMB4WXF.require_lib)());
2143
+ var import_fs_extra = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_7DQIGMPT.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, import_chunk_UZIIO3VK.require_temp_dir)());
2273
+ var import_temp_dir = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_M7DAFQLF.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);
@@ -2335,7 +2335,7 @@ async function download(options) {
2335
2335
  return shouldDownload;
2336
2336
  });
2337
2337
  if (binariesToDownload.length > 0) {
2338
- const cleanupPromise = (0, import_chunk_4CBSYQEY.cleanupCache)();
2338
+ const cleanupPromise = (0, import_chunk_TB7KGAWO.cleanupCache)();
2339
2339
  let finishBar;
2340
2340
  let setProgress;
2341
2341
  if (opts.showProgress) {
@@ -2344,7 +2344,7 @@ async function download(options) {
2344
2344
  setProgress = collectiveBar.setProgress;
2345
2345
  }
2346
2346
  const promises = binariesToDownload.map((job) => {
2347
- const downloadUrl = (0, import_chunk_VGMB4WXF.getDownloadUrl)({
2347
+ const downloadUrl = (0, import_chunk_7DQIGMPT.getDownloadUrl)({
2348
2348
  channel: "all_commits",
2349
2349
  version: opts.version,
2350
2350
  binaryTarget: job.binaryTarget,
@@ -2422,7 +2422,7 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2422
2422
  });
2423
2423
  if (cachedFile) {
2424
2424
  if (job.skipCacheIntegrityCheck === true) {
2425
- await (0, import_chunk_VGMB4WXF.overwriteFile)(cachedFile, job.targetFilePath);
2425
+ await (0, import_chunk_7DQIGMPT.overwriteFile)(cachedFile, job.targetFilePath);
2426
2426
  return false;
2427
2427
  }
2428
2428
  const sha256FilePath = cachedFile + ".sha256";
@@ -2433,12 +2433,12 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2433
2433
  if (!targetExists) {
2434
2434
  debug(`copying ${cachedFile} to ${job.targetFilePath}`);
2435
2435
  await import_node_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
2436
- await (0, import_chunk_VGMB4WXF.overwriteFile)(cachedFile, job.targetFilePath);
2436
+ await (0, import_chunk_7DQIGMPT.overwriteFile)(cachedFile, job.targetFilePath);
2437
2437
  }
2438
2438
  const targetSha256 = await (0, import_chunk_FKGWOTGU.getHash)(job.targetFilePath);
2439
2439
  if (sha256File !== targetSha256) {
2440
2440
  debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`);
2441
- await (0, import_chunk_VGMB4WXF.overwriteFile)(cachedFile, job.targetFilePath);
2441
+ await (0, import_chunk_7DQIGMPT.overwriteFile)(cachedFile, job.targetFilePath);
2442
2442
  }
2443
2443
  return false;
2444
2444
  } else {
@@ -2453,7 +2453,7 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2453
2453
  }
2454
2454
  if (cachedFile) {
2455
2455
  debug(`copying ${cachedFile} to ${job.targetFilePath}`);
2456
- await (0, import_chunk_VGMB4WXF.overwriteFile)(cachedFile, job.targetFilePath);
2456
+ await (0, import_chunk_7DQIGMPT.overwriteFile)(cachedFile, job.targetFilePath);
2457
2457
  return false;
2458
2458
  }
2459
2459
  return true;
@@ -2491,7 +2491,7 @@ async function getCachedBinaryPath({
2491
2491
  binaryTarget,
2492
2492
  binaryName
2493
2493
  }) {
2494
- const cacheDir = await (0, import_chunk_VGMB4WXF.getCacheDir)(channel, version, binaryTarget);
2494
+ const cacheDir = await (0, import_chunk_7DQIGMPT.getCacheDir)(channel, version, binaryTarget);
2495
2495
  if (!cacheDir) {
2496
2496
  return null;
2497
2497
  }
@@ -2524,7 +2524,7 @@ async function downloadBinary(options) {
2524
2524
  if (progressCb) {
2525
2525
  progressCb(0);
2526
2526
  }
2527
- const { sha256, zippedSha256 } = await (0, import_chunk_UZIIO3VK.downloadZip)(downloadUrl, targetFilePath, progressCb);
2527
+ const { sha256, zippedSha256 } = await (0, import_chunk_M7DAFQLF.downloadZip)(downloadUrl, targetFilePath, progressCb);
2528
2528
  if (progressCb) {
2529
2529
  progressCb(1);
2530
2530
  }
@@ -2532,7 +2532,7 @@ async function downloadBinary(options) {
2532
2532
  await saveFileToCache(options, version, sha256, zippedSha256);
2533
2533
  }
2534
2534
  async function saveFileToCache(job, version, sha256, zippedSha256) {
2535
- const cacheDir = await (0, import_chunk_VGMB4WXF.getCacheDir)(channel, version, job.binaryTarget);
2535
+ const cacheDir = await (0, import_chunk_7DQIGMPT.getCacheDir)(channel, version, job.binaryTarget);
2536
2536
  if (!cacheDir) {
2537
2537
  return;
2538
2538
  }
@@ -2540,7 +2540,7 @@ async function saveFileToCache(job, version, sha256, zippedSha256) {
2540
2540
  const cachedSha256Path = import_node_path.default.join(cacheDir, job.binaryName + ".sha256");
2541
2541
  const cachedSha256ZippedPath = import_node_path.default.join(cacheDir, job.binaryName + ".gz.sha256");
2542
2542
  try {
2543
- await (0, import_chunk_VGMB4WXF.overwriteFile)(job.targetFilePath, cachedTargetPath);
2543
+ await (0, import_chunk_7DQIGMPT.overwriteFile)(job.targetFilePath, cachedTargetPath);
2544
2544
  if (sha256 != null) {
2545
2545
  await import_node_fs.default.promises.writeFile(cachedSha256Path, sha256);
2546
2546
  }
@@ -26,16 +26,15 @@ 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 chunk_VGMB4WXF_exports = {};
30
- __export(chunk_VGMB4WXF_exports, {
29
+ var chunk_7DQIGMPT_exports = {};
30
+ __export(chunk_7DQIGMPT_exports, {
31
31
  getCacheDir: () => getCacheDir,
32
32
  getDownloadUrl: () => getDownloadUrl,
33
33
  getRootCacheDir: () => getRootCacheDir,
34
34
  overwriteFile: () => overwriteFile,
35
- require_graceful_fs: () => require_graceful_fs,
36
35
  require_lib: () => require_lib
37
36
  });
38
- module.exports = __toCommonJS(chunk_VGMB4WXF_exports);
37
+ module.exports = __toCommonJS(chunk_7DQIGMPT_exports);
39
38
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
40
39
  var import_node_fs = __toESM(require("node:fs"));
41
40
  var import_node_os = __toESM(require("node:os"));
@@ -1852,7 +1851,7 @@ var require_ensure = (0, import_chunk_QGM4M3NI.__commonJS)({
1852
1851
  }
1853
1852
  });
1854
1853
  var require_utils2 = (0, import_chunk_QGM4M3NI.__commonJS)({
1855
- "../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js"(exports, module2) {
1854
+ "../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
1856
1855
  "use strict";
1857
1856
  function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
1858
1857
  const EOF = finalEOL ? EOL : "";
@@ -1867,7 +1866,7 @@ var require_utils2 = (0, import_chunk_QGM4M3NI.__commonJS)({
1867
1866
  }
1868
1867
  });
1869
1868
  var require_jsonfile = (0, import_chunk_QGM4M3NI.__commonJS)({
1870
- "../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js"(exports, module2) {
1869
+ "../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js"(exports, module2) {
1871
1870
  "use strict";
1872
1871
  var _fs;
1873
1872
  try {
@@ -1929,12 +1928,13 @@ var require_jsonfile = (0, import_chunk_QGM4M3NI.__commonJS)({
1929
1928
  const str = stringify(obj, options);
1930
1929
  return fs4.writeFileSync(file, str, options);
1931
1930
  }
1932
- module2.exports = {
1931
+ var jsonfile = {
1933
1932
  readFile,
1934
1933
  readFileSync,
1935
1934
  writeFile,
1936
1935
  writeFileSync
1937
1936
  };
1937
+ module2.exports = jsonfile;
1938
1938
  }
1939
1939
  });
1940
1940
  var require_jsonfile2 = (0, import_chunk_QGM4M3NI.__commonJS)({