@prisma/fetch-engine 6.20.0-integration-next.3 → 6.20.0-integration-merge-release-workflows.2
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.
- package/dist/BinaryType.d.ts +2 -0
- package/dist/BinaryType.js +2 -2
- package/dist/{chunk-4CBSYQEY.js → chunk-3VVCXIQ5.js} +5 -5
- package/dist/{chunk-UZIIO3VK.js → chunk-CY52DY2B.js} +820 -83
- package/dist/{chunk-VGMB4WXF.js → chunk-LONQL55G.js} +15 -8
- package/dist/{chunk-XNR2KDTK.js → chunk-QFA3XBMW.js} +11 -3
- package/dist/{chunk-BYDIRBHB.js → chunk-RXM4EBGR.js} +213 -687
- package/dist/{chunk-CNO6T77T.js → chunk-VAPNG6TS.js} +238 -69
- package/dist/{chunk-GQZPGRKF.js → chunk-VCBTN2LA.js} +43 -29
- package/dist/{chunk-UGYSLLOS.js → chunk-WU2TVCL4.js} +44 -30
- package/dist/{chunk-66KG5WKV.js → chunk-X37PZICB.js} +5 -3
- package/dist/cleanupCache.js +4 -3
- package/dist/download.d.ts +1 -1
- package/dist/download.js +14 -14
- package/dist/downloadZip.js +6 -5
- package/dist/env.d.ts +2 -0
- package/dist/env.js +6 -6
- package/dist/getProxyAgent.js +2 -2
- package/dist/index.js +22 -22
- package/dist/{multipart-parser-AOASR4DL.js → multipart-parser-ASKQAOL4.js} +6 -6
- package/dist/utils.js +6 -5
- package/package.json +5 -5
|
@@ -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
|
|
30
|
-
__export(
|
|
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(
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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 =
|
|
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
|
|
30
|
-
__export(
|
|
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(
|
|
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 */
|