@prisma/fetch-engine 5.23.0-dev.5 → 5.23.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_SBKO4CXU_exports = {};
30
- __export(chunk_SBKO4CXU_exports, {
29
+ var chunk_FXZAJPTD_exports = {};
30
+ __export(chunk_FXZAJPTD_exports, {
31
31
  download: () => download,
32
32
  getBinaryName: () => getBinaryName,
33
33
  getVersion: () => getVersion,
@@ -35,12 +35,12 @@ __export(chunk_SBKO4CXU_exports, {
35
35
  plusX: () => plusX,
36
36
  vercelPkgPathRegex: () => vercelPkgPathRegex
37
37
  });
38
- module.exports = __toCommonJS(chunk_SBKO4CXU_exports);
38
+ module.exports = __toCommonJS(chunk_FXZAJPTD_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_QSTZGX47 = require("./chunk-QSTZGX47.js");
42
- var import_chunk_QLWYUM7O = require("./chunk-QLWYUM7O.js");
43
- var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
41
+ var import_chunk_74KKSUUB = require("./chunk-74KKSUUB.js");
42
+ var import_chunk_X6UMWIZX = require("./chunk-X6UMWIZX.js");
43
+ var import_chunk_BBSR4B7O = require("./chunk-BBSR4B7O.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_QLWYUM7O.require_is_stream)();
1555
+ var isStream = (0, import_chunk_X6UMWIZX.require_is_stream)();
1556
1556
  var getStream = require_get_stream();
1557
1557
  var mergeStream = require_merge_stream();
1558
1558
  var handleInput = (spawned, input) => {
@@ -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_FQ2BOR66.require_lib)());
2074
+ var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_BBSR4B7O.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_QLWYUM7O.require_temp_dir)());
2076
+ var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_X6UMWIZX.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_QSTZGX47.cleanupCache)();
2143
+ const cleanupPromise = (0, import_chunk_74KKSUUB.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_FQ2BOR66.getDownloadUrl)({
2152
+ const downloadUrl = (0, import_chunk_BBSR4B7O.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_FQ2BOR66.overwriteFile)(cachedFile, job.targetFilePath);
2234
+ await (0, import_chunk_BBSR4B7O.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_FQ2BOR66.overwriteFile)(cachedFile, job.targetFilePath);
2245
+ await (0, import_chunk_BBSR4B7O.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_FQ2BOR66.overwriteFile)(cachedFile, job.targetFilePath);
2250
+ await (0, import_chunk_BBSR4B7O.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_FQ2BOR66.getCacheDir)(channel, version, binaryTarget2);
2304
+ const cacheDir = await (0, import_chunk_BBSR4B7O.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_QLWYUM7O.downloadZip)(downloadUrl, targetFilePath, progressCb);
2337
+ const { sha256, zippedSha256 } = await (0, import_chunk_X6UMWIZX.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_FQ2BOR66.getCacheDir)(channel, version, job.binaryTarget);
2345
+ const cacheDir = await (0, import_chunk_BBSR4B7O.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_FQ2BOR66.overwriteFile)(job.targetFilePath, cachedTargetPath);
2353
+ await (0, import_chunk_BBSR4B7O.overwriteFile)(job.targetFilePath, cachedTargetPath);
2354
2354
  if (sha256 != null) {
2355
2355
  await import_fs.default.promises.writeFile(cachedSha256Path, sha256);
2356
2356
  }
@@ -26,16 +26,16 @@ 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_KDPLGCY6_exports = {};
30
- __export(chunk_KDPLGCY6_exports, {
29
+ var chunk_OFSFRIEP_exports = {};
30
+ __export(chunk_OFSFRIEP_exports, {
31
31
  getProxyAgent: () => getProxyAgent
32
32
  });
33
- module.exports = __toCommonJS(chunk_KDPLGCY6_exports);
33
+ module.exports = __toCommonJS(chunk_OFSFRIEP_exports);
34
34
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
35
35
  var import_debug = __toESM(require("@prisma/debug"));
36
36
  var import_url = __toESM(require("url"));
37
37
  var require_ms = (0, import_chunk_AH6QHEOA.__commonJS)({
38
- "../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"(exports, module2) {
38
+ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module2) {
39
39
  "use strict";
40
40
  var s = 1e3;
41
41
  var m = s * 60;
@@ -150,7 +150,7 @@ var require_ms = (0, import_chunk_AH6QHEOA.__commonJS)({
150
150
  }
151
151
  });
152
152
  var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({
153
- "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/common.js"(exports, module2) {
153
+ "../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js"(exports, module2) {
154
154
  "use strict";
155
155
  function setup(env) {
156
156
  createDebug.debug = createDebug;
@@ -312,7 +312,7 @@ var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({
312
312
  }
313
313
  });
314
314
  var require_browser = (0, import_chunk_AH6QHEOA.__commonJS)({
315
- "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/browser.js"(exports, module2) {
315
+ "../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js"(exports, module2) {
316
316
  "use strict";
317
317
  exports.formatArgs = formatArgs;
318
318
  exports.save = save;
@@ -604,7 +604,7 @@ var require_supports_color = (0, import_chunk_AH6QHEOA.__commonJS)({
604
604
  }
605
605
  });
606
606
  var require_node = (0, import_chunk_AH6QHEOA.__commonJS)({
607
- "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/node.js"(exports, module2) {
607
+ "../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js"(exports, module2) {
608
608
  "use strict";
609
609
  var tty = (0, import_chunk_AH6QHEOA.__require)("tty");
610
610
  var util = (0, import_chunk_AH6QHEOA.__require)("util");
@@ -777,7 +777,7 @@ var require_node = (0, import_chunk_AH6QHEOA.__commonJS)({
777
777
  }
778
778
  });
779
779
  var require_src = (0, import_chunk_AH6QHEOA.__commonJS)({
780
- "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/index.js"(exports, module2) {
780
+ "../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js"(exports, module2) {
781
781
  "use strict";
782
782
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
783
783
  module2.exports = require_browser();
@@ -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_D5F26MTW_exports = {};
30
- __export(chunk_D5F26MTW_exports, {
29
+ var chunk_T5THUIEL_exports = {};
30
+ __export(chunk_T5THUIEL_exports, {
31
31
  download: () => download,
32
32
  getBinaryName: () => getBinaryName,
33
33
  getVersion: () => getVersion,
@@ -35,11 +35,11 @@ __export(chunk_D5F26MTW_exports, {
35
35
  plusX: () => plusX,
36
36
  vercelPkgPathRegex: () => vercelPkgPathRegex
37
37
  });
38
- module.exports = __toCommonJS(chunk_D5F26MTW_exports);
38
+ module.exports = __toCommonJS(chunk_T5THUIEL_exports);
39
39
  var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
40
40
  var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
41
41
  var import_chunk_QSTZGX47 = require("./chunk-QSTZGX47.js");
42
- var import_chunk_QLWYUM7O = require("./chunk-QLWYUM7O.js");
42
+ var import_chunk_2O3VJOGU = require("./chunk-2O3VJOGU.js");
43
43
  var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
44
44
  var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
45
45
  var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.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_QLWYUM7O.require_is_stream)();
1555
+ var isStream = (0, import_chunk_2O3VJOGU.require_is_stream)();
1556
1556
  var getStream = require_get_stream();
1557
1557
  var mergeStream = require_merge_stream();
1558
1558
  var handleInput = (spawned, input) => {
@@ -2010,7 +2010,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
2010
2010
  "package.json"(exports, module2) {
2011
2011
  module2.exports = {
2012
2012
  name: "@prisma/fetch-engine",
2013
- version: "5.23.0-dev.5",
2013
+ version: "5.23.0-dev.7",
2014
2014
  description: "This package is intended for Prisma's internal use",
2015
2015
  main: "dist/index.js",
2016
2016
  types: "dist/index.d.ts",
@@ -2073,7 +2073,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
2073
2073
  var import_execa = (0, import_chunk_AH6QHEOA.__toESM)(require_execa());
2074
2074
  var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_FQ2BOR66.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_QLWYUM7O.require_temp_dir)());
2076
+ var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_2O3VJOGU.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);
@@ -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_QLWYUM7O.downloadZip)(downloadUrl, targetFilePath, progressCb);
2337
+ const { sha256, zippedSha256 } = await (0, import_chunk_2O3VJOGU.downloadZip)(downloadUrl, targetFilePath, progressCb);
2338
2338
  if (progressCb) {
2339
2339
  progressCb(1);
2340
2340
  }