@prisma/fetch-engine 6.1.0-dev.6 → 6.1.0-dev.7

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 __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 chunk_YOTJWAWU_exports = {};
30
- __export(chunk_YOTJWAWU_exports, {
29
+ var chunk_A2E6ZZVL_exports = {};
30
+ __export(chunk_A2E6ZZVL_exports, {
31
31
  download: () => download,
32
32
  getBinaryName: () => getBinaryName,
33
33
  getVersion: () => getVersion,
@@ -35,12 +35,12 @@ __export(chunk_YOTJWAWU_exports, {
35
35
  plusX: () => plusX,
36
36
  vercelPkgPathRegex: () => vercelPkgPathRegex
37
37
  });
38
- module.exports = __toCommonJS(chunk_YOTJWAWU_exports);
38
+ module.exports = __toCommonJS(chunk_A2E6ZZVL_exports);
39
39
  var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
40
40
  var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
41
- var import_chunk_FOVXMBDU = require("./chunk-FOVXMBDU.js");
42
- var import_chunk_PAN2XU4H = require("./chunk-PAN2XU4H.js");
43
- var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.js");
41
+ var import_chunk_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
42
+ var import_chunk_BBQM2DBF = require("./chunk-BBQM2DBF.js");
43
+ var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.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, import_chunk_PAN2XU4H.require_is_stream)();
1555
+ var isStream = (0, import_chunk_BBQM2DBF.require_is_stream)();
1556
1556
  var getStream = require_get_stream();
1557
1557
  var mergeStream = require_merge_stream();
1558
1558
  var handleInput = (spawned, input) => {
@@ -2053,7 +2053,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
2053
2053
  },
2054
2054
  dependencies: {
2055
2055
  "@prisma/debug": "workspace:*",
2056
- "@prisma/engines-version": "6.1.0-4.d6d59dde3ab34bef0a29a68cf223eeb013b631fc",
2056
+ "@prisma/engines-version": "6.1.0-5.c74f8976aaa3212c16a61537319f9024d0c21e85",
2057
2057
  "@prisma/get-platform": "workspace:*"
2058
2058
  },
2059
2059
  scripts: {
@@ -2071,9 +2071,9 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
2071
2071
  }
2072
2072
  });
2073
2073
  var import_execa = (0, import_chunk_AH6QHEOA.__toESM)(require_execa());
2074
- var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_VVUX3UR2.require_lib)());
2074
+ var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_G7EM4XDM.require_lib)());
2075
2075
  var import_p_filter = (0, import_chunk_AH6QHEOA.__toESM)(require_p_filter());
2076
- var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_PAN2XU4H.require_temp_dir)());
2076
+ var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_BBQM2DBF.require_temp_dir)());
2077
2077
  var { enginesOverride } = require_package();
2078
2078
  var debug = (0, import_debug.default)("prisma:fetch-engine:download");
2079
2079
  var exists = (0, import_util.promisify)(import_fs.default.exists);
@@ -2140,7 +2140,7 @@ async function download(options) {
2140
2140
  return shouldDownload;
2141
2141
  });
2142
2142
  if (binariesToDownload.length > 0) {
2143
- const cleanupPromise = (0, import_chunk_FOVXMBDU.cleanupCache)();
2143
+ const cleanupPromise = (0, import_chunk_FKKOTNO6.cleanupCache)();
2144
2144
  let finishBar;
2145
2145
  let setProgress;
2146
2146
  if (opts.showProgress) {
@@ -2149,7 +2149,7 @@ async function download(options) {
2149
2149
  setProgress = collectiveBar.setProgress;
2150
2150
  }
2151
2151
  const promises = binariesToDownload.map((job) => {
2152
- const downloadUrl = (0, import_chunk_VVUX3UR2.getDownloadUrl)({
2152
+ const downloadUrl = (0, import_chunk_G7EM4XDM.getDownloadUrl)({
2153
2153
  channel: "all_commits",
2154
2154
  version: opts.version,
2155
2155
  binaryTarget: job.binaryTarget,
@@ -2231,7 +2231,7 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2231
2231
  });
2232
2232
  if (cachedFile) {
2233
2233
  if (job.skipCacheIntegrityCheck === true) {
2234
- await (0, import_chunk_VVUX3UR2.overwriteFile)(cachedFile, job.targetFilePath);
2234
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2235
2235
  return false;
2236
2236
  }
2237
2237
  const sha256FilePath = cachedFile + ".sha256";
@@ -2242,12 +2242,12 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2242
2242
  if (!targetExists) {
2243
2243
  debug(`copying ${cachedFile} to ${job.targetFilePath}`);
2244
2244
  await import_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
2245
- await (0, import_chunk_VVUX3UR2.overwriteFile)(cachedFile, job.targetFilePath);
2245
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2246
2246
  }
2247
2247
  const targetSha256 = await (0, import_chunk_CWGQAQ3T.getHash)(job.targetFilePath);
2248
2248
  if (sha256File !== targetSha256) {
2249
2249
  debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`);
2250
- await (0, import_chunk_VVUX3UR2.overwriteFile)(cachedFile, job.targetFilePath);
2250
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2251
2251
  }
2252
2252
  return false;
2253
2253
  } else {
@@ -2301,7 +2301,7 @@ async function getCachedBinaryPath({
2301
2301
  binaryTarget: binaryTarget2,
2302
2302
  binaryName
2303
2303
  }) {
2304
- const cacheDir = await (0, import_chunk_VVUX3UR2.getCacheDir)(channel, version, binaryTarget2);
2304
+ const cacheDir = await (0, import_chunk_G7EM4XDM.getCacheDir)(channel, version, binaryTarget2);
2305
2305
  if (!cacheDir) {
2306
2306
  return null;
2307
2307
  }
@@ -2334,7 +2334,7 @@ async function downloadBinary(options2) {
2334
2334
  if (progressCb) {
2335
2335
  progressCb(0);
2336
2336
  }
2337
- const { sha256, zippedSha256 } = await (0, import_chunk_PAN2XU4H.downloadZip)(downloadUrl, targetFilePath, progressCb);
2337
+ const { sha256, zippedSha256 } = await (0, import_chunk_BBQM2DBF.downloadZip)(downloadUrl, targetFilePath, progressCb);
2338
2338
  if (progressCb) {
2339
2339
  progressCb(1);
2340
2340
  }
@@ -2342,7 +2342,7 @@ async function downloadBinary(options2) {
2342
2342
  await saveFileToCache(options2, version, sha256, zippedSha256);
2343
2343
  }
2344
2344
  async function saveFileToCache(job, version, sha256, zippedSha256) {
2345
- const cacheDir = await (0, import_chunk_VVUX3UR2.getCacheDir)(channel, version, job.binaryTarget);
2345
+ const cacheDir = await (0, import_chunk_G7EM4XDM.getCacheDir)(channel, version, job.binaryTarget);
2346
2346
  if (!cacheDir) {
2347
2347
  return;
2348
2348
  }
@@ -2350,7 +2350,7 @@ async function saveFileToCache(job, version, sha256, zippedSha256) {
2350
2350
  const cachedSha256Path = import_path.default.join(cacheDir, job.binaryName + ".sha256");
2351
2351
  const cachedSha256ZippedPath = import_path.default.join(cacheDir, job.binaryName + ".gz.sha256");
2352
2352
  try {
2353
- await (0, import_chunk_VVUX3UR2.overwriteFile)(job.targetFilePath, cachedTargetPath);
2353
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(job.targetFilePath, cachedTargetPath);
2354
2354
  if (sha256 != null) {
2355
2355
  await import_fs.default.promises.writeFile(cachedSha256Path, sha256);
2356
2356
  }