@prisma/fetch-engine 6.17.0-dev.7 → 6.17.0-dev.9

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.
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var chmodPlusX_exports = {};
20
20
  __export(chmodPlusX_exports, {
21
- chmodPlusX: () => import_chunk_MX3HXAU2.chmodPlusX
21
+ chmodPlusX: () => import_chunk_7JLQJWOR.chmodPlusX
22
22
  });
23
23
  module.exports = __toCommonJS(chmodPlusX_exports);
24
- var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
24
+ var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
25
25
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
@@ -26,13 +26,13 @@ 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_CAMEZM54_exports = {};
30
- __export(chunk_CAMEZM54_exports, {
29
+ var chunk_2DPMENYP_exports = {};
30
+ __export(chunk_2DPMENYP_exports, {
31
31
  cleanupCache: () => cleanupCache
32
32
  });
33
- module.exports = __toCommonJS(chunk_CAMEZM54_exports);
33
+ module.exports = __toCommonJS(chunk_2DPMENYP_exports);
34
34
  var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
35
- var import_chunk_YJOPKU47 = require("./chunk-YJOPKU47.js");
35
+ var import_chunk_7KB2WQ67 = require("./chunk-7KB2WQ67.js");
36
36
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
37
37
  var import_node_fs = __toESM(require("node:fs"));
38
38
  var import_node_path = __toESM(require("node:path"));
@@ -41,7 +41,7 @@ var import_p_map = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_FSAAZH62.
41
41
  var debug = (0, import_debug.default)("cleanupCache");
42
42
  async function cleanupCache(n = 5) {
43
43
  try {
44
- const rootCacheDir = await (0, import_chunk_YJOPKU47.getRootCacheDir)();
44
+ const rootCacheDir = await (0, import_chunk_7KB2WQ67.getRootCacheDir)();
45
45
  if (!rootCacheDir) {
46
46
  debug("no rootCacheDir found");
47
47
  return;
@@ -26,19 +26,19 @@ 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_MX3HXAU2_exports = {};
30
- __export(chunk_MX3HXAU2_exports, {
29
+ var chunk_7JLQJWOR_exports = {};
30
+ __export(chunk_7JLQJWOR_exports, {
31
31
  chmodPlusX: () => chmodPlusX
32
32
  });
33
- module.exports = __toCommonJS(chunk_MX3HXAU2_exports);
34
- var import_fs = __toESM(require("fs"));
33
+ module.exports = __toCommonJS(chunk_7JLQJWOR_exports);
34
+ var import_node_fs = __toESM(require("node:fs"));
35
35
  function chmodPlusX(file) {
36
36
  if (process.platform === "win32") return;
37
- const s = import_fs.default.statSync(file);
37
+ const s = import_node_fs.default.statSync(file);
38
38
  const newMode = s.mode | 64 | 8 | 1;
39
39
  if (s.mode === newMode) {
40
40
  return;
41
41
  }
42
42
  const base8 = newMode.toString(8).slice(-3);
43
- import_fs.default.chmodSync(file, base8);
43
+ import_node_fs.default.chmodSync(file, base8);
44
44
  }
@@ -26,31 +26,31 @@ 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_YJOPKU47_exports = {};
30
- __export(chunk_YJOPKU47_exports, {
29
+ var chunk_7KB2WQ67_exports = {};
30
+ __export(chunk_7KB2WQ67_exports, {
31
31
  getCacheDir: () => getCacheDir,
32
32
  getDownloadUrl: () => getDownloadUrl,
33
33
  getRootCacheDir: () => getRootCacheDir,
34
34
  overwriteFile: () => overwriteFile,
35
35
  require_lib: () => require_lib
36
36
  });
37
- module.exports = __toCommonJS(chunk_YJOPKU47_exports);
37
+ module.exports = __toCommonJS(chunk_7KB2WQ67_exports);
38
38
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
39
+ var import_node_fs = __toESM(require("node:fs"));
40
+ var import_node_os = __toESM(require("node:os"));
41
+ var import_node_path = __toESM(require("node:path"));
39
42
  var import_debug = __toESM(require("@prisma/debug"));
40
43
  var import_get_platform = require("@prisma/get-platform");
41
44
  var import_node_process = __toESM(require("node:process"));
42
- var import_node_path = __toESM(require("node:path"));
43
- var import_node_fs = __toESM(require("node:fs"));
44
45
  var import_node_path2 = __toESM(require("node:path"));
46
+ var import_node_fs2 = __toESM(require("node:fs"));
45
47
  var import_node_path3 = __toESM(require("node:path"));
48
+ var import_node_path4 = __toESM(require("node:path"));
46
49
  var import_node_url = require("node:url");
47
50
  var import_node_process2 = __toESM(require("node:process"));
48
- var import_node_path4 = __toESM(require("node:path"));
49
- var import_node_fs2 = __toESM(require("node:fs"));
51
+ var import_node_path5 = __toESM(require("node:path"));
52
+ var import_node_fs3 = __toESM(require("node:fs"));
50
53
  var import_node_url2 = require("node:url");
51
- var import_fs = __toESM(require("fs"));
52
- var import_os = __toESM(require("os"));
53
- var import_path = __toESM(require("path"));
54
54
  var require_common_path_prefix = (0, import_chunk_QGM4M3NI.__commonJS)({
55
55
  "../../node_modules/.pnpm/common-path-prefix@3.0.0/node_modules/common-path-prefix/index.js"(exports, module2) {
56
56
  "use strict";
@@ -2169,10 +2169,10 @@ function locatePathSync(paths, {
2169
2169
  } = {}) {
2170
2170
  checkType(type);
2171
2171
  cwd2 = toPath(cwd2);
2172
- const statFunction = allowSymlinks ? import_node_fs2.default.statSync : import_node_fs2.default.lstatSync;
2172
+ const statFunction = allowSymlinks ? import_node_fs3.default.statSync : import_node_fs3.default.lstatSync;
2173
2173
  for (const path_ of paths) {
2174
2174
  try {
2175
- const stat = statFunction(import_node_path4.default.resolve(cwd2, path_), {
2175
+ const stat = statFunction(import_node_path5.default.resolve(cwd2, path_), {
2176
2176
  throwIfNoEntry: false
2177
2177
  });
2178
2178
  if (!stat) {
@@ -2188,8 +2188,8 @@ function locatePathSync(paths, {
2188
2188
  var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
2189
2189
  var findUpStop = Symbol("findUpStop");
2190
2190
  function findUpMultipleSync(name, options = {}) {
2191
- let directory = import_node_path3.default.resolve(toPath2(options.cwd) || "");
2192
- const { root } = import_node_path3.default.parse(directory);
2191
+ let directory = import_node_path4.default.resolve(toPath2(options.cwd) || "");
2192
+ const { root } = import_node_path4.default.parse(directory);
2193
2193
  const stopAt = options.stopAt || root;
2194
2194
  const limit = options.limit || Number.POSITIVE_INFINITY;
2195
2195
  const paths = [name].flat();
@@ -2210,12 +2210,12 @@ function findUpMultipleSync(name, options = {}) {
2210
2210
  break;
2211
2211
  }
2212
2212
  if (foundPath) {
2213
- matches.push(import_node_path3.default.resolve(directory, foundPath));
2213
+ matches.push(import_node_path4.default.resolve(directory, foundPath));
2214
2214
  }
2215
2215
  if (directory === stopAt || matches.length >= limit) {
2216
2216
  break;
2217
2217
  }
2218
- directory = import_node_path3.default.dirname(directory);
2218
+ directory = import_node_path4.default.dirname(directory);
2219
2219
  }
2220
2220
  return matches;
2221
2221
  }
@@ -2225,12 +2225,12 @@ function findUpSync(name, options = {}) {
2225
2225
  }
2226
2226
  function packageDirectorySync({ cwd: cwd2 } = {}) {
2227
2227
  const filePath = findUpSync("package.json", { cwd: cwd2 });
2228
- return filePath && import_node_path2.default.dirname(filePath);
2228
+ return filePath && import_node_path3.default.dirname(filePath);
2229
2229
  }
2230
2230
  var { env, cwd } = import_node_process.default;
2231
2231
  var isWritable = (path6) => {
2232
2232
  try {
2233
- import_node_fs.default.accessSync(path6, import_node_fs.default.constants.W_OK);
2233
+ import_node_fs2.default.accessSync(path6, import_node_fs2.default.constants.W_OK);
2234
2234
  return true;
2235
2235
  } catch {
2236
2236
  return false;
@@ -2238,27 +2238,27 @@ var isWritable = (path6) => {
2238
2238
  };
2239
2239
  function useDirectory(directory, options) {
2240
2240
  if (options.create) {
2241
- import_node_fs.default.mkdirSync(directory, { recursive: true });
2241
+ import_node_fs2.default.mkdirSync(directory, { recursive: true });
2242
2242
  }
2243
2243
  return directory;
2244
2244
  }
2245
2245
  function getNodeModuleDirectory(directory) {
2246
- const nodeModules = import_node_path.default.join(directory, "node_modules");
2247
- if (!isWritable(nodeModules) && (import_node_fs.default.existsSync(nodeModules) || !isWritable(import_node_path.default.join(directory)))) {
2246
+ const nodeModules = import_node_path2.default.join(directory, "node_modules");
2247
+ if (!isWritable(nodeModules) && (import_node_fs2.default.existsSync(nodeModules) || !isWritable(import_node_path2.default.join(directory)))) {
2248
2248
  return;
2249
2249
  }
2250
2250
  return nodeModules;
2251
2251
  }
2252
2252
  function findCacheDirectory(options = {}) {
2253
2253
  if (env.CACHE_DIR && !["true", "false", "1", "0"].includes(env.CACHE_DIR)) {
2254
- return useDirectory(import_node_path.default.join(env.CACHE_DIR, options.name), options);
2254
+ return useDirectory(import_node_path2.default.join(env.CACHE_DIR, options.name), options);
2255
2255
  }
2256
2256
  let { cwd: directory = cwd(), files } = options;
2257
2257
  if (files) {
2258
2258
  if (!Array.isArray(files)) {
2259
2259
  throw new TypeError(`Expected \`files\` option to be an array, got \`${typeof files}\`.`);
2260
2260
  }
2261
- directory = (0, import_common_path_prefix.default)(files.map((file) => import_node_path.default.resolve(directory, file)));
2261
+ directory = (0, import_common_path_prefix.default)(files.map((file) => import_node_path2.default.resolve(directory, file)));
2262
2262
  }
2263
2263
  directory = packageDirectorySync({ cwd: directory });
2264
2264
  if (!directory) {
@@ -2268,18 +2268,18 @@ function findCacheDirectory(options = {}) {
2268
2268
  if (!nodeModules) {
2269
2269
  return;
2270
2270
  }
2271
- return useDirectory(import_node_path.default.join(directory, "node_modules", ".cache", options.name), options);
2271
+ return useDirectory(import_node_path2.default.join(directory, "node_modules", ".cache", options.name), options);
2272
2272
  }
2273
2273
  var import_fs_extra = (0, import_chunk_QGM4M3NI.__toESM)(require_lib());
2274
2274
  var debug = (0, import_debug.default)("prisma:fetch-engine:cache-dir");
2275
2275
  async function getRootCacheDir() {
2276
- if (import_os.default.platform() === "win32") {
2276
+ if (import_node_os.default.platform() === "win32") {
2277
2277
  const cacheDir = findCacheDirectory({ name: "prisma", create: true });
2278
2278
  if (cacheDir) {
2279
2279
  return cacheDir;
2280
2280
  }
2281
2281
  if (process.env.APPDATA) {
2282
- return import_path.default.join(process.env.APPDATA, "Prisma");
2282
+ return import_node_path.default.join(process.env.APPDATA, "Prisma");
2283
2283
  }
2284
2284
  }
2285
2285
  if (process.env.AWS_LAMBDA_FUNCTION_VERSION) {
@@ -2290,16 +2290,16 @@ async function getRootCacheDir() {
2290
2290
  return null;
2291
2291
  }
2292
2292
  }
2293
- return import_path.default.join(import_os.default.homedir(), ".cache/prisma");
2293
+ return import_node_path.default.join(import_node_os.default.homedir(), ".cache/prisma");
2294
2294
  }
2295
2295
  async function getCacheDir(channel, version, binaryTarget) {
2296
2296
  const rootCacheDir = await getRootCacheDir();
2297
2297
  if (!rootCacheDir) {
2298
2298
  return null;
2299
2299
  }
2300
- const cacheDir = import_path.default.join(rootCacheDir, channel, version, binaryTarget);
2300
+ const cacheDir = import_node_path.default.join(rootCacheDir, channel, version, binaryTarget);
2301
2301
  try {
2302
- if (!import_fs.default.existsSync(cacheDir)) {
2302
+ if (!import_node_fs.default.existsSync(cacheDir)) {
2303
2303
  await (0, import_fs_extra.ensureDir)(cacheDir);
2304
2304
  }
2305
2305
  } catch (e) {
@@ -2328,18 +2328,18 @@ function getDownloadUrl({
2328
2328
  return `${baseUrl}/${channel}/${version}/${binaryTarget}/${binaryName}${finalExtension}`;
2329
2329
  }
2330
2330
  async function overwriteFile(sourcePath, targetPath) {
2331
- if (import_os.default.platform() === "darwin") {
2331
+ if (import_node_os.default.platform() === "darwin") {
2332
2332
  await removeFileIfExists(targetPath);
2333
- await import_fs.default.promises.copyFile(sourcePath, targetPath);
2333
+ await import_node_fs.default.promises.copyFile(sourcePath, targetPath);
2334
2334
  } else {
2335
2335
  const tempPath = `${targetPath}.tmp${process.pid}`;
2336
- await import_fs.default.promises.copyFile(sourcePath, tempPath);
2337
- await import_fs.default.promises.rename(tempPath, targetPath);
2336
+ await import_node_fs.default.promises.copyFile(sourcePath, tempPath);
2337
+ await import_node_fs.default.promises.rename(tempPath, targetPath);
2338
2338
  }
2339
2339
  }
2340
2340
  async function removeFileIfExists(filePath) {
2341
2341
  try {
2342
- await import_fs.default.promises.unlink(filePath);
2342
+ await import_node_fs.default.promises.unlink(filePath);
2343
2343
  } catch (e) {
2344
2344
  if (e.code !== "ENOENT") {
2345
2345
  throw e;
@@ -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_KTFNIWWE_exports = {};
30
- __export(chunk_KTFNIWWE_exports, {
29
+ var chunk_E77NZVBZ_exports = {};
30
+ __export(chunk_E77NZVBZ_exports, {
31
31
  download: () => download,
32
32
  getBinaryName: () => getBinaryName,
33
33
  getVersion: () => getVersion,
@@ -35,14 +35,14 @@ __export(chunk_KTFNIWWE_exports, {
35
35
  plusX: () => plusX,
36
36
  vercelPkgPathRegex: () => vercelPkgPathRegex
37
37
  });
38
- module.exports = __toCommonJS(chunk_KTFNIWWE_exports);
38
+ module.exports = __toCommonJS(chunk_E77NZVBZ_exports);
39
39
  var import_chunk_MWVY55RY = require("./chunk-MWVY55RY.js");
40
- var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
41
- var import_chunk_CAMEZM54 = require("./chunk-CAMEZM54.js");
42
- var import_chunk_DDRXYGEB = require("./chunk-DDRXYGEB.js");
43
- var import_chunk_YJOPKU47 = require("./chunk-YJOPKU47.js");
44
- var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
45
- var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
40
+ var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
41
+ var import_chunk_2DPMENYP = require("./chunk-2DPMENYP.js");
42
+ var import_chunk_TT7KVFVK = require("./chunk-TT7KVFVK.js");
43
+ var import_chunk_7KB2WQ67 = require("./chunk-7KB2WQ67.js");
44
+ var import_chunk_QFA3XBMW = require("./chunk-QFA3XBMW.js");
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"));
48
48
  var import_node_path = __toESM(require("node:path"));
@@ -600,9 +600,6 @@ var require_package = (0, import_chunk_QGM4M3NI.__commonJS)({
600
600
  bugs: "https://github.com/prisma/prisma/issues",
601
601
  enginesOverride: {},
602
602
  devDependencies: {
603
- "@swc/core": "1.11.5",
604
- "@swc/jest": "0.2.37",
605
- "@types/jest": "29.5.14",
606
603
  "@types/node": "18.19.76",
607
604
  "@types/progress": "2.0.7",
608
605
  del: "6.1.1",
@@ -612,7 +609,6 @@ var require_package = (0, import_chunk_QGM4M3NI.__commonJS)({
612
609
  hasha: "5.2.2",
613
610
  "http-proxy-agent": "7.0.2",
614
611
  "https-proxy-agent": "7.0.6",
615
- jest: "29.7.0",
616
612
  kleur: "4.1.5",
617
613
  "node-fetch": "3.3.2",
618
614
  "p-filter": "4.1.0",
@@ -626,13 +622,13 @@ var require_package = (0, import_chunk_QGM4M3NI.__commonJS)({
626
622
  },
627
623
  dependencies: {
628
624
  "@prisma/debug": "workspace:*",
629
- "@prisma/engines-version": "6.16.0-7.1c57fdcd7e44b29b9313256c76699e91c3ac3c43",
625
+ "@prisma/engines-version": "6.17.0-5.98639f99e8e422e5d430a921ef59ab529156fd21",
630
626
  "@prisma/get-platform": "workspace:*"
631
627
  },
632
628
  scripts: {
633
629
  dev: "DEV=true tsx helpers/build.ts",
634
630
  build: "tsx helpers/build.ts",
635
- test: "jest",
631
+ test: "vitest run",
636
632
  prepublishOnly: "pnpm run build"
637
633
  },
638
634
  files: [
@@ -2144,7 +2140,7 @@ function create$(options) {
2144
2140
  return $2;
2145
2141
  }
2146
2142
  var $ = create$();
2147
- var import_fs_extra = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_YJOPKU47.require_lib)());
2143
+ var import_fs_extra = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_7KB2WQ67.require_lib)());
2148
2144
  async function pMap(iterable, mapper, {
2149
2145
  concurrency = Number.POSITIVE_INFINITY,
2150
2146
  stopOnError = true,
@@ -2274,7 +2270,7 @@ async function pFilter(iterable, filterer, options) {
2274
2270
  );
2275
2271
  return values.filter((value) => Boolean(value[0])).map((value) => value[1]);
2276
2272
  }
2277
- var import_temp_dir = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_DDRXYGEB.require_temp_dir)());
2273
+ var import_temp_dir = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_TT7KVFVK.require_temp_dir)());
2278
2274
  var { enginesOverride } = require_package();
2279
2275
  var debug = (0, import_debug.default)("prisma:fetch-engine:download");
2280
2276
  var exists = (0, import_node_util.promisify)(import_node_fs.default.exists);
@@ -2289,13 +2285,13 @@ async function download(options) {
2289
2285
  options.skipCacheIntegrityCheck = true;
2290
2286
  }
2291
2287
  const { binaryTarget, ...os2 } = await (0, import_get_platform.getPlatformInfo)();
2292
- if (os2.targetDistro && ["nixos"].includes(os2.targetDistro) && !(0, import_chunk_PXQVM7NP.allEngineEnvVarsSet)(Object.keys(options.binaries))) {
2288
+ if (os2.targetDistro && ["nixos"].includes(os2.targetDistro) && !(0, import_chunk_QFA3XBMW.allEngineEnvVarsSet)(Object.keys(options.binaries))) {
2293
2289
  console.error(
2294
- `${(0, import_chunk_PXQVM7NP.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`
2290
+ `${(0, import_chunk_QFA3XBMW.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`
2295
2291
  );
2296
2292
  } else if (["freebsd11", "freebsd12", "freebsd13", "freebsd14", "freebsd15", "openbsd", "netbsd"].includes(binaryTarget)) {
2297
2293
  console.error(
2298
- `${(0, import_chunk_PXQVM7NP.yellow)(
2294
+ `${(0, import_chunk_QFA3XBMW.yellow)(
2299
2295
  "Warning"
2300
2296
  )} Precompiled engine files are not available for ${binaryTarget}. Read more about building your own engines at https://pris.ly/d/build-engines`
2301
2297
  );
@@ -2318,7 +2314,7 @@ async function download(options) {
2318
2314
  binaryTarget: binaryTarget2,
2319
2315
  fileName,
2320
2316
  targetFilePath,
2321
- envVarPath: (0, import_chunk_PXQVM7NP.getBinaryEnvVarPath)(binaryName)?.path,
2317
+ envVarPath: (0, import_chunk_QFA3XBMW.getBinaryEnvVarPath)(binaryName)?.path,
2322
2318
  skipCacheIntegrityCheck: !!opts.skipCacheIntegrityCheck
2323
2319
  };
2324
2320
  })
@@ -2341,7 +2337,7 @@ async function download(options) {
2341
2337
  return shouldDownload;
2342
2338
  });
2343
2339
  if (binariesToDownload.length > 0) {
2344
- const cleanupPromise = (0, import_chunk_CAMEZM54.cleanupCache)();
2340
+ const cleanupPromise = (0, import_chunk_2DPMENYP.cleanupCache)();
2345
2341
  let finishBar;
2346
2342
  let setProgress;
2347
2343
  if (opts.showProgress) {
@@ -2350,7 +2346,7 @@ async function download(options) {
2350
2346
  setProgress = collectiveBar.setProgress;
2351
2347
  }
2352
2348
  const promises = binariesToDownload.map((job) => {
2353
- const downloadUrl = (0, import_chunk_YJOPKU47.getDownloadUrl)({
2349
+ const downloadUrl = (0, import_chunk_7KB2WQ67.getDownloadUrl)({
2354
2350
  channel: "all_commits",
2355
2351
  version: opts.version,
2356
2352
  binaryTarget: job.binaryTarget,
@@ -2386,7 +2382,7 @@ async function download(options) {
2386
2382
  function getCollectiveBar(options) {
2387
2383
  const hasNodeAPI = "libquery-engine" in options.binaries;
2388
2384
  const bar = (0, import_chunk_MWVY55RY.getBar)(
2389
- `Downloading Prisma engines${hasNodeAPI ? " for Node-API" : ""} for ${options.binaryTargets?.map((p) => (0, import_chunk_PXQVM7NP.bold)(p)).join(" and ")}`
2385
+ `Downloading Prisma engines${hasNodeAPI ? " for Node-API" : ""} for ${options.binaryTargets?.map((p) => (0, import_chunk_QFA3XBMW.bold)(p)).join(" and ")}`
2390
2386
  );
2391
2387
  const progressMap = {};
2392
2388
  const numDownloads = Object.values(options.binaries).length * Object.values(options?.binaryTargets ?? []).length;
@@ -2431,23 +2427,23 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2431
2427
  });
2432
2428
  if (cachedFile) {
2433
2429
  if (job.skipCacheIntegrityCheck === true) {
2434
- await (0, import_chunk_YJOPKU47.overwriteFile)(cachedFile, job.targetFilePath);
2430
+ await (0, import_chunk_7KB2WQ67.overwriteFile)(cachedFile, job.targetFilePath);
2435
2431
  return false;
2436
2432
  }
2437
2433
  const sha256FilePath = cachedFile + ".sha256";
2438
2434
  if (await exists(sha256FilePath)) {
2439
2435
  const sha256File = await import_node_fs.default.promises.readFile(sha256FilePath, "utf-8");
2440
- const sha256Cache = await (0, import_chunk_CWGQAQ3T.getHash)(cachedFile);
2436
+ const sha256Cache = await (0, import_chunk_FKGWOTGU.getHash)(cachedFile);
2441
2437
  if (sha256File === sha256Cache) {
2442
2438
  if (!targetExists) {
2443
2439
  debug(`copying ${cachedFile} to ${job.targetFilePath}`);
2444
2440
  await import_node_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
2445
- await (0, import_chunk_YJOPKU47.overwriteFile)(cachedFile, job.targetFilePath);
2441
+ await (0, import_chunk_7KB2WQ67.overwriteFile)(cachedFile, job.targetFilePath);
2446
2442
  }
2447
- const targetSha256 = await (0, import_chunk_CWGQAQ3T.getHash)(job.targetFilePath);
2443
+ const targetSha256 = await (0, import_chunk_FKGWOTGU.getHash)(job.targetFilePath);
2448
2444
  if (sha256File !== targetSha256) {
2449
2445
  debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`);
2450
- await (0, import_chunk_YJOPKU47.overwriteFile)(cachedFile, job.targetFilePath);
2446
+ await (0, import_chunk_7KB2WQ67.overwriteFile)(cachedFile, job.targetFilePath);
2451
2447
  }
2452
2448
  return false;
2453
2449
  } else {
@@ -2462,7 +2458,7 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2462
2458
  }
2463
2459
  if (cachedFile) {
2464
2460
  debug(`copying ${cachedFile} to ${job.targetFilePath}`);
2465
- await (0, import_chunk_YJOPKU47.overwriteFile)(cachedFile, job.targetFilePath);
2461
+ await (0, import_chunk_7KB2WQ67.overwriteFile)(cachedFile, job.targetFilePath);
2466
2462
  return false;
2467
2463
  }
2468
2464
  return true;
@@ -2509,7 +2505,7 @@ async function getCachedBinaryPath({
2509
2505
  binaryTarget,
2510
2506
  binaryName
2511
2507
  }) {
2512
- const cacheDir = await (0, import_chunk_YJOPKU47.getCacheDir)(channel, version, binaryTarget);
2508
+ const cacheDir = await (0, import_chunk_7KB2WQ67.getCacheDir)(channel, version, binaryTarget);
2513
2509
  if (!cacheDir) {
2514
2510
  return null;
2515
2511
  }
@@ -2542,15 +2538,15 @@ async function downloadBinary(options) {
2542
2538
  if (progressCb) {
2543
2539
  progressCb(0);
2544
2540
  }
2545
- const { sha256, zippedSha256 } = await (0, import_chunk_DDRXYGEB.downloadZip)(downloadUrl, targetFilePath, progressCb);
2541
+ const { sha256, zippedSha256 } = await (0, import_chunk_TT7KVFVK.downloadZip)(downloadUrl, targetFilePath, progressCb);
2546
2542
  if (progressCb) {
2547
2543
  progressCb(1);
2548
2544
  }
2549
- (0, import_chunk_MX3HXAU2.chmodPlusX)(targetFilePath);
2545
+ (0, import_chunk_7JLQJWOR.chmodPlusX)(targetFilePath);
2550
2546
  await saveFileToCache(options, version, sha256, zippedSha256);
2551
2547
  }
2552
2548
  async function saveFileToCache(job, version, sha256, zippedSha256) {
2553
- const cacheDir = await (0, import_chunk_YJOPKU47.getCacheDir)(channel, version, job.binaryTarget);
2549
+ const cacheDir = await (0, import_chunk_7KB2WQ67.getCacheDir)(channel, version, job.binaryTarget);
2554
2550
  if (!cacheDir) {
2555
2551
  return;
2556
2552
  }
@@ -2558,7 +2554,7 @@ async function saveFileToCache(job, version, sha256, zippedSha256) {
2558
2554
  const cachedSha256Path = import_node_path.default.join(cacheDir, job.binaryName + ".sha256");
2559
2555
  const cachedSha256ZippedPath = import_node_path.default.join(cacheDir, job.binaryName + ".gz.sha256");
2560
2556
  try {
2561
- await (0, import_chunk_YJOPKU47.overwriteFile)(job.targetFilePath, cachedTargetPath);
2557
+ await (0, import_chunk_7KB2WQ67.overwriteFile)(job.targetFilePath, cachedTargetPath);
2562
2558
  if (sha256 != null) {
2563
2559
  await import_node_fs.default.promises.writeFile(cachedSha256Path, sha256);
2564
2560
  }
@@ -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_CWGQAQ3T_exports = {};
30
- __export(chunk_CWGQAQ3T_exports, {
29
+ var chunk_FKGWOTGU_exports = {};
30
+ __export(chunk_FKGWOTGU_exports, {
31
31
  getHash: () => getHash
32
32
  });
33
- module.exports = __toCommonJS(chunk_CWGQAQ3T_exports);
34
- var import_crypto = __toESM(require("crypto"));
35
- var import_fs = __toESM(require("fs"));
33
+ module.exports = __toCommonJS(chunk_FKGWOTGU_exports);
34
+ var import_node_crypto = __toESM(require("node:crypto"));
35
+ var import_node_fs = __toESM(require("node:fs"));
36
36
  function getHash(filePath) {
37
- const hash = import_crypto.default.createHash("sha256");
38
- const input = import_fs.default.createReadStream(filePath);
37
+ const hash = import_node_crypto.default.createHash("sha256");
38
+ const input = import_node_fs.default.createReadStream(filePath);
39
39
  return new Promise((resolve) => {
40
40
  input.on("readable", () => {
41
41
  const data = input.read();
@@ -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_PXQVM7NP_exports = {};
30
- __export(chunk_PXQVM7NP_exports, {
29
+ var chunk_QFA3XBMW_exports = {};
30
+ __export(chunk_QFA3XBMW_exports, {
31
31
  allEngineEnvVarsSet: () => allEngineEnvVarsSet,
32
32
  bold: () => bold,
33
33
  deprecatedEnvVarMap: () => deprecatedEnvVarMap,
@@ -35,10 +35,10 @@ __export(chunk_PXQVM7NP_exports, {
35
35
  getBinaryEnvVarPath: () => getBinaryEnvVarPath,
36
36
  yellow: () => yellow
37
37
  });
38
- module.exports = __toCommonJS(chunk_PXQVM7NP_exports);
38
+ module.exports = __toCommonJS(chunk_QFA3XBMW_exports);
39
+ var import_node_fs = __toESM(require("node:fs"));
40
+ var import_node_path = __toESM(require("node:path"));
39
41
  var import_debug = __toESM(require("@prisma/debug"));
40
- var import_fs = __toESM(require("fs"));
41
- var import_path = __toESM(require("path"));
42
42
  var FORCE_COLOR;
43
43
  var NODE_DISABLE_COLORS;
44
44
  var NO_COLOR;
@@ -109,8 +109,8 @@ var deprecatedEnvVarMap = {
109
109
  function getBinaryEnvVarPath(binaryName) {
110
110
  const envVar = getEnvVarToUse(binaryName);
111
111
  if (process.env[envVar]) {
112
- const envVarPath = import_path.default.resolve(process.cwd(), process.env[envVar]);
113
- if (!import_fs.default.existsSync(envVarPath)) {
112
+ const envVarPath = import_node_path.default.resolve(process.cwd(), process.env[envVar]);
113
+ if (!import_node_fs.default.existsSync(envVarPath)) {
114
114
  throw new Error(
115
115
  `Env var ${bold(envVar)} is provided but provided path ${underline(process.env[envVar])} can't be resolved.`
116
116
  );
@@ -26,15 +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_DDRXYGEB_exports = {};
30
- __export(chunk_DDRXYGEB_exports, {
29
+ var chunk_TT7KVFVK_exports = {};
30
+ __export(chunk_TT7KVFVK_exports, {
31
31
  downloadZip: () => downloadZip,
32
32
  require_temp_dir: () => require_temp_dir
33
33
  });
34
- module.exports = __toCommonJS(chunk_DDRXYGEB_exports);
34
+ module.exports = __toCommonJS(chunk_TT7KVFVK_exports);
35
35
  var import_chunk_RXM4EBGR = require("./chunk-RXM4EBGR.js");
36
36
  var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
37
- var import_chunk_YJOPKU47 = require("./chunk-YJOPKU47.js");
37
+ var import_chunk_7KB2WQ67 = require("./chunk-7KB2WQ67.js");
38
38
  var import_chunk_VAPNG6TS = require("./chunk-VAPNG6TS.js");
39
39
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
40
40
  var import_node_fs = __toESM(require("node:fs"));
@@ -11517,7 +11517,7 @@ async function downloadZip(url, target, progressCb) {
11517
11517
  onFailedAttempt: (err) => debug("An error occurred while downloading the engine file", err)
11518
11518
  }
11519
11519
  );
11520
- await (0, import_chunk_YJOPKU47.overwriteFile)(partial, target);
11520
+ await (0, import_chunk_7KB2WQ67.overwriteFile)(partial, target);
11521
11521
  try {
11522
11522
  await rimraf(partial);
11523
11523
  await rimraf(tmpDir);
@@ -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_LUSGN3ZG_exports = {};
30
- __export(chunk_LUSGN3ZG_exports, {
29
+ var chunk_XJF5ZDOG_exports = {};
30
+ __export(chunk_XJF5ZDOG_exports, {
31
31
  download: () => download,
32
32
  getBinaryName: () => getBinaryName,
33
33
  getVersion: () => getVersion,
@@ -35,14 +35,14 @@ __export(chunk_LUSGN3ZG_exports, {
35
35
  plusX: () => plusX,
36
36
  vercelPkgPathRegex: () => vercelPkgPathRegex
37
37
  });
38
- module.exports = __toCommonJS(chunk_LUSGN3ZG_exports);
38
+ module.exports = __toCommonJS(chunk_XJF5ZDOG_exports);
39
39
  var import_chunk_MWVY55RY = require("./chunk-MWVY55RY.js");
40
- var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
41
- var import_chunk_CAMEZM54 = require("./chunk-CAMEZM54.js");
42
- var import_chunk_DDRXYGEB = require("./chunk-DDRXYGEB.js");
43
- var import_chunk_YJOPKU47 = require("./chunk-YJOPKU47.js");
44
- var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
45
- var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
40
+ var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
41
+ var import_chunk_2DPMENYP = require("./chunk-2DPMENYP.js");
42
+ var import_chunk_TT7KVFVK = require("./chunk-TT7KVFVK.js");
43
+ var import_chunk_7KB2WQ67 = require("./chunk-7KB2WQ67.js");
44
+ var import_chunk_QFA3XBMW = require("./chunk-QFA3XBMW.js");
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"));
48
48
  var import_node_path = __toESM(require("node:path"));
@@ -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.17.0-dev.7",
588
+ version: "6.17.0-dev.9",
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,9 +600,6 @@ var require_package = (0, import_chunk_QGM4M3NI.__commonJS)({
600
600
  bugs: "https://github.com/prisma/prisma/issues",
601
601
  enginesOverride: {},
602
602
  devDependencies: {
603
- "@swc/core": "1.11.5",
604
- "@swc/jest": "0.2.37",
605
- "@types/jest": "29.5.14",
606
603
  "@types/node": "18.19.76",
607
604
  "@types/progress": "2.0.7",
608
605
  del: "6.1.1",
@@ -612,7 +609,6 @@ var require_package = (0, import_chunk_QGM4M3NI.__commonJS)({
612
609
  hasha: "5.2.2",
613
610
  "http-proxy-agent": "7.0.2",
614
611
  "https-proxy-agent": "7.0.6",
615
- jest: "29.7.0",
616
612
  kleur: "4.1.5",
617
613
  "node-fetch": "3.3.2",
618
614
  "p-filter": "4.1.0",
@@ -626,13 +622,13 @@ var require_package = (0, import_chunk_QGM4M3NI.__commonJS)({
626
622
  },
627
623
  dependencies: {
628
624
  "@prisma/debug": "workspace:*",
629
- "@prisma/engines-version": "6.16.0-7.1c57fdcd7e44b29b9313256c76699e91c3ac3c43",
625
+ "@prisma/engines-version": "6.17.0-5.98639f99e8e422e5d430a921ef59ab529156fd21",
630
626
  "@prisma/get-platform": "workspace:*"
631
627
  },
632
628
  scripts: {
633
629
  dev: "DEV=true tsx helpers/build.ts",
634
630
  build: "tsx helpers/build.ts",
635
- test: "jest",
631
+ test: "vitest run",
636
632
  prepublishOnly: "pnpm run build"
637
633
  },
638
634
  files: [
@@ -2144,7 +2140,7 @@ function create$(options) {
2144
2140
  return $2;
2145
2141
  }
2146
2142
  var $ = create$();
2147
- var import_fs_extra = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_YJOPKU47.require_lib)());
2143
+ var import_fs_extra = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_7KB2WQ67.require_lib)());
2148
2144
  async function pMap(iterable, mapper, {
2149
2145
  concurrency = Number.POSITIVE_INFINITY,
2150
2146
  stopOnError = true,
@@ -2274,7 +2270,7 @@ async function pFilter(iterable, filterer, options) {
2274
2270
  );
2275
2271
  return values.filter((value) => Boolean(value[0])).map((value) => value[1]);
2276
2272
  }
2277
- var import_temp_dir = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_DDRXYGEB.require_temp_dir)());
2273
+ var import_temp_dir = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_TT7KVFVK.require_temp_dir)());
2278
2274
  var { enginesOverride } = require_package();
2279
2275
  var debug = (0, import_debug.default)("prisma:fetch-engine:download");
2280
2276
  var exists = (0, import_node_util.promisify)(import_node_fs.default.exists);
@@ -2289,13 +2285,13 @@ async function download(options) {
2289
2285
  options.skipCacheIntegrityCheck = true;
2290
2286
  }
2291
2287
  const { binaryTarget, ...os2 } = await (0, import_get_platform.getPlatformInfo)();
2292
- if (os2.targetDistro && ["nixos"].includes(os2.targetDistro) && !(0, import_chunk_PXQVM7NP.allEngineEnvVarsSet)(Object.keys(options.binaries))) {
2288
+ if (os2.targetDistro && ["nixos"].includes(os2.targetDistro) && !(0, import_chunk_QFA3XBMW.allEngineEnvVarsSet)(Object.keys(options.binaries))) {
2293
2289
  console.error(
2294
- `${(0, import_chunk_PXQVM7NP.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`
2290
+ `${(0, import_chunk_QFA3XBMW.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`
2295
2291
  );
2296
2292
  } else if (["freebsd11", "freebsd12", "freebsd13", "freebsd14", "freebsd15", "openbsd", "netbsd"].includes(binaryTarget)) {
2297
2293
  console.error(
2298
- `${(0, import_chunk_PXQVM7NP.yellow)(
2294
+ `${(0, import_chunk_QFA3XBMW.yellow)(
2299
2295
  "Warning"
2300
2296
  )} Precompiled engine files are not available for ${binaryTarget}. Read more about building your own engines at https://pris.ly/d/build-engines`
2301
2297
  );
@@ -2318,7 +2314,7 @@ async function download(options) {
2318
2314
  binaryTarget: binaryTarget2,
2319
2315
  fileName,
2320
2316
  targetFilePath,
2321
- envVarPath: (0, import_chunk_PXQVM7NP.getBinaryEnvVarPath)(binaryName)?.path,
2317
+ envVarPath: (0, import_chunk_QFA3XBMW.getBinaryEnvVarPath)(binaryName)?.path,
2322
2318
  skipCacheIntegrityCheck: !!opts.skipCacheIntegrityCheck
2323
2319
  };
2324
2320
  })
@@ -2341,7 +2337,7 @@ async function download(options) {
2341
2337
  return shouldDownload;
2342
2338
  });
2343
2339
  if (binariesToDownload.length > 0) {
2344
- const cleanupPromise = (0, import_chunk_CAMEZM54.cleanupCache)();
2340
+ const cleanupPromise = (0, import_chunk_2DPMENYP.cleanupCache)();
2345
2341
  let finishBar;
2346
2342
  let setProgress;
2347
2343
  if (opts.showProgress) {
@@ -2350,7 +2346,7 @@ async function download(options) {
2350
2346
  setProgress = collectiveBar.setProgress;
2351
2347
  }
2352
2348
  const promises = binariesToDownload.map((job) => {
2353
- const downloadUrl = (0, import_chunk_YJOPKU47.getDownloadUrl)({
2349
+ const downloadUrl = (0, import_chunk_7KB2WQ67.getDownloadUrl)({
2354
2350
  channel: "all_commits",
2355
2351
  version: opts.version,
2356
2352
  binaryTarget: job.binaryTarget,
@@ -2386,7 +2382,7 @@ async function download(options) {
2386
2382
  function getCollectiveBar(options) {
2387
2383
  const hasNodeAPI = "libquery-engine" in options.binaries;
2388
2384
  const bar = (0, import_chunk_MWVY55RY.getBar)(
2389
- `Downloading Prisma engines${hasNodeAPI ? " for Node-API" : ""} for ${options.binaryTargets?.map((p) => (0, import_chunk_PXQVM7NP.bold)(p)).join(" and ")}`
2385
+ `Downloading Prisma engines${hasNodeAPI ? " for Node-API" : ""} for ${options.binaryTargets?.map((p) => (0, import_chunk_QFA3XBMW.bold)(p)).join(" and ")}`
2390
2386
  );
2391
2387
  const progressMap = {};
2392
2388
  const numDownloads = Object.values(options.binaries).length * Object.values(options?.binaryTargets ?? []).length;
@@ -2431,23 +2427,23 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2431
2427
  });
2432
2428
  if (cachedFile) {
2433
2429
  if (job.skipCacheIntegrityCheck === true) {
2434
- await (0, import_chunk_YJOPKU47.overwriteFile)(cachedFile, job.targetFilePath);
2430
+ await (0, import_chunk_7KB2WQ67.overwriteFile)(cachedFile, job.targetFilePath);
2435
2431
  return false;
2436
2432
  }
2437
2433
  const sha256FilePath = cachedFile + ".sha256";
2438
2434
  if (await exists(sha256FilePath)) {
2439
2435
  const sha256File = await import_node_fs.default.promises.readFile(sha256FilePath, "utf-8");
2440
- const sha256Cache = await (0, import_chunk_CWGQAQ3T.getHash)(cachedFile);
2436
+ const sha256Cache = await (0, import_chunk_FKGWOTGU.getHash)(cachedFile);
2441
2437
  if (sha256File === sha256Cache) {
2442
2438
  if (!targetExists) {
2443
2439
  debug(`copying ${cachedFile} to ${job.targetFilePath}`);
2444
2440
  await import_node_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
2445
- await (0, import_chunk_YJOPKU47.overwriteFile)(cachedFile, job.targetFilePath);
2441
+ await (0, import_chunk_7KB2WQ67.overwriteFile)(cachedFile, job.targetFilePath);
2446
2442
  }
2447
- const targetSha256 = await (0, import_chunk_CWGQAQ3T.getHash)(job.targetFilePath);
2443
+ const targetSha256 = await (0, import_chunk_FKGWOTGU.getHash)(job.targetFilePath);
2448
2444
  if (sha256File !== targetSha256) {
2449
2445
  debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`);
2450
- await (0, import_chunk_YJOPKU47.overwriteFile)(cachedFile, job.targetFilePath);
2446
+ await (0, import_chunk_7KB2WQ67.overwriteFile)(cachedFile, job.targetFilePath);
2451
2447
  }
2452
2448
  return false;
2453
2449
  } else {
@@ -2462,7 +2458,7 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2462
2458
  }
2463
2459
  if (cachedFile) {
2464
2460
  debug(`copying ${cachedFile} to ${job.targetFilePath}`);
2465
- await (0, import_chunk_YJOPKU47.overwriteFile)(cachedFile, job.targetFilePath);
2461
+ await (0, import_chunk_7KB2WQ67.overwriteFile)(cachedFile, job.targetFilePath);
2466
2462
  return false;
2467
2463
  }
2468
2464
  return true;
@@ -2509,7 +2505,7 @@ async function getCachedBinaryPath({
2509
2505
  binaryTarget,
2510
2506
  binaryName
2511
2507
  }) {
2512
- const cacheDir = await (0, import_chunk_YJOPKU47.getCacheDir)(channel, version, binaryTarget);
2508
+ const cacheDir = await (0, import_chunk_7KB2WQ67.getCacheDir)(channel, version, binaryTarget);
2513
2509
  if (!cacheDir) {
2514
2510
  return null;
2515
2511
  }
@@ -2542,15 +2538,15 @@ async function downloadBinary(options) {
2542
2538
  if (progressCb) {
2543
2539
  progressCb(0);
2544
2540
  }
2545
- const { sha256, zippedSha256 } = await (0, import_chunk_DDRXYGEB.downloadZip)(downloadUrl, targetFilePath, progressCb);
2541
+ const { sha256, zippedSha256 } = await (0, import_chunk_TT7KVFVK.downloadZip)(downloadUrl, targetFilePath, progressCb);
2546
2542
  if (progressCb) {
2547
2543
  progressCb(1);
2548
2544
  }
2549
- (0, import_chunk_MX3HXAU2.chmodPlusX)(targetFilePath);
2545
+ (0, import_chunk_7JLQJWOR.chmodPlusX)(targetFilePath);
2550
2546
  await saveFileToCache(options, version, sha256, zippedSha256);
2551
2547
  }
2552
2548
  async function saveFileToCache(job, version, sha256, zippedSha256) {
2553
- const cacheDir = await (0, import_chunk_YJOPKU47.getCacheDir)(channel, version, job.binaryTarget);
2549
+ const cacheDir = await (0, import_chunk_7KB2WQ67.getCacheDir)(channel, version, job.binaryTarget);
2554
2550
  if (!cacheDir) {
2555
2551
  return;
2556
2552
  }
@@ -2558,7 +2554,7 @@ async function saveFileToCache(job, version, sha256, zippedSha256) {
2558
2554
  const cachedSha256Path = import_node_path.default.join(cacheDir, job.binaryName + ".sha256");
2559
2555
  const cachedSha256ZippedPath = import_node_path.default.join(cacheDir, job.binaryName + ".gz.sha256");
2560
2556
  try {
2561
- await (0, import_chunk_YJOPKU47.overwriteFile)(job.targetFilePath, cachedTargetPath);
2557
+ await (0, import_chunk_7KB2WQ67.overwriteFile)(job.targetFilePath, cachedTargetPath);
2562
2558
  if (sha256 != null) {
2563
2559
  await import_node_fs.default.promises.writeFile(cachedSha256Path, sha256);
2564
2560
  }
@@ -18,11 +18,11 @@ 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: () => import_chunk_CAMEZM54.cleanupCache
21
+ cleanupCache: () => import_chunk_2DPMENYP.cleanupCache
22
22
  });
23
23
  module.exports = __toCommonJS(cleanupCache_exports);
24
- var import_chunk_CAMEZM54 = require("./chunk-CAMEZM54.js");
24
+ var import_chunk_2DPMENYP = require("./chunk-2DPMENYP.js");
25
25
  var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
26
- var import_chunk_YJOPKU47 = require("./chunk-YJOPKU47.js");
26
+ var import_chunk_7KB2WQ67 = require("./chunk-7KB2WQ67.js");
27
27
  var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
28
28
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
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: () => import_chunk_LUSGN3ZG.download,
22
- getBinaryName: () => import_chunk_LUSGN3ZG.getBinaryName,
23
- getVersion: () => import_chunk_LUSGN3ZG.getVersion,
24
- maybeCopyToTmp: () => import_chunk_LUSGN3ZG.maybeCopyToTmp,
25
- plusX: () => import_chunk_LUSGN3ZG.plusX,
26
- vercelPkgPathRegex: () => import_chunk_LUSGN3ZG.vercelPkgPathRegex
21
+ download: () => import_chunk_XJF5ZDOG.download,
22
+ getBinaryName: () => import_chunk_XJF5ZDOG.getBinaryName,
23
+ getVersion: () => import_chunk_XJF5ZDOG.getVersion,
24
+ maybeCopyToTmp: () => import_chunk_XJF5ZDOG.maybeCopyToTmp,
25
+ plusX: () => import_chunk_XJF5ZDOG.plusX,
26
+ vercelPkgPathRegex: () => import_chunk_XJF5ZDOG.vercelPkgPathRegex
27
27
  });
28
28
  module.exports = __toCommonJS(download_exports);
29
- var import_chunk_LUSGN3ZG = require("./chunk-LUSGN3ZG.js");
29
+ var import_chunk_XJF5ZDOG = require("./chunk-XJF5ZDOG.js");
30
30
  var import_chunk_MWVY55RY = require("./chunk-MWVY55RY.js");
31
- var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
32
- var import_chunk_CAMEZM54 = require("./chunk-CAMEZM54.js");
33
- var import_chunk_DDRXYGEB = require("./chunk-DDRXYGEB.js");
31
+ var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
32
+ var import_chunk_2DPMENYP = require("./chunk-2DPMENYP.js");
33
+ var import_chunk_TT7KVFVK = require("./chunk-TT7KVFVK.js");
34
34
  var import_chunk_RXM4EBGR = require("./chunk-RXM4EBGR.js");
35
35
  var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
36
- var import_chunk_YJOPKU47 = require("./chunk-YJOPKU47.js");
37
- var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
36
+ var import_chunk_7KB2WQ67 = require("./chunk-7KB2WQ67.js");
37
+ var import_chunk_QFA3XBMW = require("./chunk-QFA3XBMW.js");
38
38
  var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
39
- var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
39
+ var import_chunk_FKGWOTGU = require("./chunk-FKGWOTGU.js");
40
40
  var import_chunk_VAPNG6TS = require("./chunk-VAPNG6TS.js");
41
41
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
@@ -18,13 +18,13 @@ 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: () => import_chunk_DDRXYGEB.downloadZip
21
+ downloadZip: () => import_chunk_TT7KVFVK.downloadZip
22
22
  });
23
23
  module.exports = __toCommonJS(downloadZip_exports);
24
- var import_chunk_DDRXYGEB = require("./chunk-DDRXYGEB.js");
24
+ var import_chunk_TT7KVFVK = require("./chunk-TT7KVFVK.js");
25
25
  var import_chunk_RXM4EBGR = require("./chunk-RXM4EBGR.js");
26
26
  var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
27
- var import_chunk_YJOPKU47 = require("./chunk-YJOPKU47.js");
27
+ var import_chunk_7KB2WQ67 = require("./chunk-7KB2WQ67.js");
28
28
  var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
29
29
  var import_chunk_VAPNG6TS = require("./chunk-VAPNG6TS.js");
30
30
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
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: () => import_chunk_PXQVM7NP.allEngineEnvVarsSet,
22
- deprecatedEnvVarMap: () => import_chunk_PXQVM7NP.deprecatedEnvVarMap,
23
- engineEnvVarMap: () => import_chunk_PXQVM7NP.engineEnvVarMap,
24
- getBinaryEnvVarPath: () => import_chunk_PXQVM7NP.getBinaryEnvVarPath
21
+ allEngineEnvVarsSet: () => import_chunk_QFA3XBMW.allEngineEnvVarsSet,
22
+ deprecatedEnvVarMap: () => import_chunk_QFA3XBMW.deprecatedEnvVarMap,
23
+ engineEnvVarMap: () => import_chunk_QFA3XBMW.engineEnvVarMap,
24
+ getBinaryEnvVarPath: () => import_chunk_QFA3XBMW.getBinaryEnvVarPath
25
25
  });
26
26
  module.exports = __toCommonJS(env_exports);
27
- var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
27
+ var import_chunk_QFA3XBMW = require("./chunk-QFA3XBMW.js");
28
28
  var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
29
29
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
package/dist/getHash.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 getHash_exports = {};
20
20
  __export(getHash_exports, {
21
- getHash: () => import_chunk_CWGQAQ3T.getHash
21
+ getHash: () => import_chunk_FKGWOTGU.getHash
22
22
  });
23
23
  module.exports = __toCommonJS(getHash_exports);
24
- var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
24
+ var import_chunk_FKGWOTGU = require("./chunk-FKGWOTGU.js");
25
25
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
package/dist/index.js CHANGED
@@ -19,31 +19,31 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  var index_exports = {};
20
20
  __export(index_exports, {
21
21
  BinaryType: () => import_chunk_X37PZICB.BinaryType,
22
- allEngineEnvVarsSet: () => import_chunk_PXQVM7NP.allEngineEnvVarsSet,
23
- deprecatedEnvVarMap: () => import_chunk_PXQVM7NP.deprecatedEnvVarMap,
24
- download: () => import_chunk_LUSGN3ZG.download,
25
- engineEnvVarMap: () => import_chunk_PXQVM7NP.engineEnvVarMap,
26
- getBinaryEnvVarPath: () => import_chunk_PXQVM7NP.getBinaryEnvVarPath,
27
- getBinaryName: () => import_chunk_LUSGN3ZG.getBinaryName,
28
- getCacheDir: () => import_chunk_YJOPKU47.getCacheDir,
22
+ allEngineEnvVarsSet: () => import_chunk_QFA3XBMW.allEngineEnvVarsSet,
23
+ deprecatedEnvVarMap: () => import_chunk_QFA3XBMW.deprecatedEnvVarMap,
24
+ download: () => import_chunk_XJF5ZDOG.download,
25
+ engineEnvVarMap: () => import_chunk_QFA3XBMW.engineEnvVarMap,
26
+ getBinaryEnvVarPath: () => import_chunk_QFA3XBMW.getBinaryEnvVarPath,
27
+ getBinaryName: () => import_chunk_XJF5ZDOG.getBinaryName,
28
+ getCacheDir: () => import_chunk_7KB2WQ67.getCacheDir,
29
29
  getProxyAgent: () => import_chunk_VAPNG6TS.getProxyAgent,
30
- getVersion: () => import_chunk_LUSGN3ZG.getVersion,
31
- maybeCopyToTmp: () => import_chunk_LUSGN3ZG.maybeCopyToTmp,
32
- overwriteFile: () => import_chunk_YJOPKU47.overwriteFile,
33
- plusX: () => import_chunk_LUSGN3ZG.plusX,
34
- vercelPkgPathRegex: () => import_chunk_LUSGN3ZG.vercelPkgPathRegex
30
+ getVersion: () => import_chunk_XJF5ZDOG.getVersion,
31
+ maybeCopyToTmp: () => import_chunk_XJF5ZDOG.maybeCopyToTmp,
32
+ overwriteFile: () => import_chunk_7KB2WQ67.overwriteFile,
33
+ plusX: () => import_chunk_XJF5ZDOG.plusX,
34
+ vercelPkgPathRegex: () => import_chunk_XJF5ZDOG.vercelPkgPathRegex
35
35
  });
36
36
  module.exports = __toCommonJS(index_exports);
37
- var import_chunk_LUSGN3ZG = require("./chunk-LUSGN3ZG.js");
37
+ var import_chunk_XJF5ZDOG = require("./chunk-XJF5ZDOG.js");
38
38
  var import_chunk_MWVY55RY = require("./chunk-MWVY55RY.js");
39
- var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
40
- var import_chunk_CAMEZM54 = require("./chunk-CAMEZM54.js");
41
- var import_chunk_DDRXYGEB = require("./chunk-DDRXYGEB.js");
39
+ var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
40
+ var import_chunk_2DPMENYP = require("./chunk-2DPMENYP.js");
41
+ var import_chunk_TT7KVFVK = require("./chunk-TT7KVFVK.js");
42
42
  var import_chunk_RXM4EBGR = require("./chunk-RXM4EBGR.js");
43
43
  var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
44
- var import_chunk_YJOPKU47 = require("./chunk-YJOPKU47.js");
45
- var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
44
+ var import_chunk_7KB2WQ67 = require("./chunk-7KB2WQ67.js");
45
+ var import_chunk_QFA3XBMW = require("./chunk-QFA3XBMW.js");
46
46
  var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
47
- var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
47
+ var import_chunk_FKGWOTGU = require("./chunk-FKGWOTGU.js");
48
48
  var import_chunk_VAPNG6TS = require("./chunk-VAPNG6TS.js");
49
49
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
package/dist/utils.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 utils_exports = {};
20
20
  __export(utils_exports, {
21
- getCacheDir: () => import_chunk_YJOPKU47.getCacheDir,
22
- getDownloadUrl: () => import_chunk_YJOPKU47.getDownloadUrl,
23
- getRootCacheDir: () => import_chunk_YJOPKU47.getRootCacheDir,
24
- overwriteFile: () => import_chunk_YJOPKU47.overwriteFile
21
+ getCacheDir: () => import_chunk_7KB2WQ67.getCacheDir,
22
+ getDownloadUrl: () => import_chunk_7KB2WQ67.getDownloadUrl,
23
+ getRootCacheDir: () => import_chunk_7KB2WQ67.getRootCacheDir,
24
+ overwriteFile: () => import_chunk_7KB2WQ67.overwriteFile
25
25
  });
26
26
  module.exports = __toCommonJS(utils_exports);
27
- var import_chunk_YJOPKU47 = require("./chunk-YJOPKU47.js");
27
+ var import_chunk_7KB2WQ67 = require("./chunk-7KB2WQ67.js");
28
28
  var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
29
29
  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.17.0-dev.7",
3
+ "version": "6.17.0-dev.9",
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,9 +15,6 @@
15
15
  "bugs": "https://github.com/prisma/prisma/issues",
16
16
  "enginesOverride": {},
17
17
  "devDependencies": {
18
- "@swc/core": "1.11.5",
19
- "@swc/jest": "0.2.37",
20
- "@types/jest": "29.5.14",
21
18
  "@types/node": "18.19.76",
22
19
  "@types/progress": "2.0.7",
23
20
  "del": "6.1.1",
@@ -27,7 +24,6 @@
27
24
  "hasha": "5.2.2",
28
25
  "http-proxy-agent": "7.0.2",
29
26
  "https-proxy-agent": "7.0.6",
30
- "jest": "29.7.0",
31
27
  "kleur": "4.1.5",
32
28
  "node-fetch": "3.3.2",
33
29
  "p-filter": "4.1.0",
@@ -40,9 +36,9 @@
40
36
  "typescript": "5.4.5"
41
37
  },
42
38
  "dependencies": {
43
- "@prisma/engines-version": "6.16.0-7.1c57fdcd7e44b29b9313256c76699e91c3ac3c43",
44
- "@prisma/debug": "6.17.0-dev.7",
45
- "@prisma/get-platform": "6.17.0-dev.7"
39
+ "@prisma/engines-version": "6.17.0-5.98639f99e8e422e5d430a921ef59ab529156fd21",
40
+ "@prisma/debug": "6.17.0-dev.9",
41
+ "@prisma/get-platform": "6.17.0-dev.9"
46
42
  },
47
43
  "files": [
48
44
  "README.md",
@@ -52,6 +48,6 @@
52
48
  "scripts": {
53
49
  "dev": "DEV=true tsx helpers/build.ts",
54
50
  "build": "tsx helpers/build.ts",
55
- "test": "jest"
51
+ "test": "vitest run"
56
52
  }
57
53
  }