@prisma/fetch-engine 6.20.0-integration-feat-prisma-7-config.4 → 6.20.0-integration-engines-6-20-0-1-integration-oidc-truster-publishers-e28d8c7807dc95db08a9a866250934b3aac2c89b.1

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,21 +26,21 @@ 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_LONQL55G_exports = {};
30
+ __export(chunk_LONQL55G_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_LONQL55G_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"));
42
41
  var import_node_path = __toESM(require("node:path"));
43
42
  var import_debug = __toESM(require("@prisma/debug"));
43
+ var import_get_platform = require("@prisma/get-platform");
44
44
  var import_node_process = __toESM(require("node:process"));
45
45
  var import_node_path2 = __toESM(require("node:path"));
46
46
  var import_node_fs2 = __toESM(require("node:fs"));
@@ -1852,7 +1852,7 @@ var require_ensure = (0, import_chunk_QGM4M3NI.__commonJS)({
1852
1852
  }
1853
1853
  });
1854
1854
  var require_utils2 = (0, import_chunk_QGM4M3NI.__commonJS)({
1855
- "../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js"(exports, module2) {
1855
+ "../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
1856
1856
  "use strict";
1857
1857
  function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
1858
1858
  const EOF = finalEOL ? EOL : "";
@@ -1867,7 +1867,7 @@ var require_utils2 = (0, import_chunk_QGM4M3NI.__commonJS)({
1867
1867
  }
1868
1868
  });
1869
1869
  var require_jsonfile = (0, import_chunk_QGM4M3NI.__commonJS)({
1870
- "../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js"(exports, module2) {
1870
+ "../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js"(exports, module2) {
1871
1871
  "use strict";
1872
1872
  var _fs;
1873
1873
  try {
@@ -1929,12 +1929,13 @@ var require_jsonfile = (0, import_chunk_QGM4M3NI.__commonJS)({
1929
1929
  const str = stringify(obj, options);
1930
1930
  return fs4.writeFileSync(file, str, options);
1931
1931
  }
1932
- module2.exports = {
1932
+ var jsonfile = {
1933
1933
  readFile,
1934
1934
  readFileSync,
1935
1935
  writeFile,
1936
1936
  writeFileSync
1937
1937
  };
1938
+ module2.exports = jsonfile;
1938
1939
  }
1939
1940
  });
1940
1941
  var require_jsonfile2 = (0, import_chunk_QGM4M3NI.__commonJS)({
@@ -2317,7 +2318,13 @@ function getDownloadUrl({
2317
2318
  }) {
2318
2319
  const baseUrl = process.env.PRISMA_BINARIES_MIRROR || // TODO: remove this
2319
2320
  process.env.PRISMA_ENGINES_MIRROR || "https://binaries.prisma.sh";
2320
- const finalExtension = binaryTarget === "windows" ? `.exe${extension}` : extension;
2321
+ const finalExtension = (
2322
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
2323
+ binaryTarget === "windows" && "libquery-engine" !== binaryName ? `.exe${extension}` : extension
2324
+ );
2325
+ if (binaryName === "libquery-engine") {
2326
+ binaryName = (0, import_get_platform.getNodeAPIName)(binaryTarget, "url");
2327
+ }
2321
2328
  return `${baseUrl}/${channel}/${version}/${binaryTarget}/${binaryName}${finalExtension}`;
2322
2329
  }
2323
2330
  async function overwriteFile(sourcePath, targetPath) {
@@ -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_XNR2KDTK_exports = {};
30
- __export(chunk_XNR2KDTK_exports, {
29
+ var chunk_QFA3XBMW_exports = {};
30
+ __export(chunk_QFA3XBMW_exports, {
31
31
  allEngineEnvVarsSet: () => allEngineEnvVarsSet,
32
32
  bold: () => bold,
33
33
  deprecatedEnvVarMap: () => deprecatedEnvVarMap,
@@ -35,7 +35,7 @@ __export(chunk_XNR2KDTK_exports, {
35
35
  getBinaryEnvVarPath: () => getBinaryEnvVarPath,
36
36
  yellow: () => yellow
37
37
  });
38
- module.exports = __toCommonJS(chunk_XNR2KDTK_exports);
38
+ module.exports = __toCommonJS(chunk_QFA3XBMW_exports);
39
39
  var import_node_fs = __toESM(require("node:fs"));
40
40
  var import_node_path = __toESM(require("node:path"));
41
41
  var import_debug = __toESM(require("@prisma/debug"));
@@ -87,6 +87,14 @@ var bgCyan = init(46, 49);
87
87
  var bgWhite = init(47, 49);
88
88
  var debug = (0, import_debug.default)("prisma:fetch-engine:env");
89
89
  var engineEnvVarMap = {
90
+ [
91
+ "query-engine"
92
+ /* QueryEngineBinary */
93
+ ]: "PRISMA_QUERY_ENGINE_BINARY",
94
+ [
95
+ "libquery-engine"
96
+ /* QueryEngineLibrary */
97
+ ]: "PRISMA_QUERY_ENGINE_LIBRARY",
90
98
  [
91
99
  "schema-engine"
92
100
  /* SchemaEngineBinary */