@prisma/fetch-engine 6.5.0-integration-fix-e2e-prisma-config-2.9 → 6.5.0-integration-fix-client-read-replicas.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.
- package/dist/{chunk-7NQURTUG.js → chunk-4EZ7ALS2.js} +6 -6
- package/dist/{chunk-B24IR6A6.js → chunk-OESPDION.js} +150 -88
- package/dist/{chunk-GQ2B5OIS.js → chunk-Y6JXVPQ2.js} +149 -87
- package/dist/{chunk-AGZFDFHU.js → chunk-ZSBPBV34.js} +45 -31
- package/dist/download.js +9 -9
- package/dist/downloadZip.js +3 -3
- package/dist/getProxyAgent.js +2 -2
- package/dist/index.js +10 -10
- package/package.json +5 -5
@@ -26,17 +26,17 @@ 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_4EZ7ALS2_exports = {};
|
30
|
+
__export(chunk_4EZ7ALS2_exports, {
|
31
31
|
downloadZip: () => downloadZip,
|
32
32
|
require_is_stream: () => require_is_stream,
|
33
33
|
require_temp_dir: () => require_temp_dir
|
34
34
|
});
|
35
|
-
module.exports = __toCommonJS(
|
35
|
+
module.exports = __toCommonJS(chunk_4EZ7ALS2_exports);
|
36
36
|
var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
|
37
37
|
var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
|
38
38
|
var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
|
39
|
-
var
|
39
|
+
var import_chunk_ZSBPBV34 = require("./chunk-ZSBPBV34.js");
|
40
40
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
41
41
|
var import_debug = __toESM(require("@prisma/debug"));
|
42
42
|
var import_fs = __toESM(require("fs"));
|
@@ -8050,7 +8050,7 @@ async function fetchChecksum(url) {
|
|
8050
8050
|
try {
|
8051
8051
|
const checksumUrl = `${url}.sha256`;
|
8052
8052
|
const response = await fetch(checksumUrl, {
|
8053
|
-
agent: (0,
|
8053
|
+
agent: (0, import_chunk_ZSBPBV34.getProxyAgent)(url)
|
8054
8054
|
});
|
8055
8055
|
if (!response.ok) {
|
8056
8056
|
let errorMessage = `Failed to fetch sha256 checksum at ${checksumUrl} - ${response.status} ${response.statusText}`;
|
@@ -8096,7 +8096,7 @@ async function downloadZip(url, target, progressCb) {
|
|
8096
8096
|
async () => {
|
8097
8097
|
const response = await fetch(url, {
|
8098
8098
|
compress: false,
|
8099
|
-
agent: (0,
|
8099
|
+
agent: (0, import_chunk_ZSBPBV34.getProxyAgent)(url)
|
8100
8100
|
});
|
8101
8101
|
if (!response.ok) {
|
8102
8102
|
throw new Error(`Failed to fetch the engine file at ${url} - ${response.status} ${response.statusText}`);
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_OESPDION_exports = {};
|
30
|
+
__export(chunk_OESPDION_exports, {
|
31
31
|
download: () => download,
|
32
32
|
getBinaryName: () => getBinaryName,
|
33
33
|
getVersion: () => getVersion,
|
@@ -35,11 +35,11 @@ __export(chunk_B24IR6A6_exports, {
|
|
35
35
|
plusX: () => plusX,
|
36
36
|
vercelPkgPathRegex: () => vercelPkgPathRegex
|
37
37
|
});
|
38
|
-
module.exports = __toCommonJS(
|
38
|
+
module.exports = __toCommonJS(chunk_OESPDION_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_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
|
42
|
-
var
|
42
|
+
var import_chunk_4EZ7ALS2 = require("./chunk-4EZ7ALS2.js");
|
43
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");
|
@@ -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,
|
1555
|
+
var isStream = (0, import_chunk_4EZ7ALS2.require_is_stream)();
|
1556
1556
|
var getStream = require_get_stream();
|
1557
1557
|
var mergeStream = require_merge_stream();
|
1558
1558
|
var handleInput = (spawned, input) => {
|
@@ -1932,85 +1932,11 @@ var require_execa = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1932
1932
|
};
|
1933
1933
|
}
|
1934
1934
|
});
|
1935
|
-
var require_p_map = (0, import_chunk_AH6QHEOA.__commonJS)({
|
1936
|
-
"../../node_modules/.pnpm/p-map@2.1.0/node_modules/p-map/index.js"(exports, module2) {
|
1937
|
-
"use strict";
|
1938
|
-
var pMap = (iterable, mapper, options2) => new Promise((resolve, reject) => {
|
1939
|
-
options2 = Object.assign({
|
1940
|
-
concurrency: Infinity
|
1941
|
-
}, options2);
|
1942
|
-
if (typeof mapper !== "function") {
|
1943
|
-
throw new TypeError("Mapper function is required");
|
1944
|
-
}
|
1945
|
-
const { concurrency } = options2;
|
1946
|
-
if (!(typeof concurrency === "number" && concurrency >= 1)) {
|
1947
|
-
throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${concurrency}\` (${typeof concurrency})`);
|
1948
|
-
}
|
1949
|
-
const ret = [];
|
1950
|
-
const iterator = iterable[Symbol.iterator]();
|
1951
|
-
let isRejected = false;
|
1952
|
-
let isIterableDone = false;
|
1953
|
-
let resolvingCount = 0;
|
1954
|
-
let currentIndex = 0;
|
1955
|
-
const next = () => {
|
1956
|
-
if (isRejected) {
|
1957
|
-
return;
|
1958
|
-
}
|
1959
|
-
const nextItem = iterator.next();
|
1960
|
-
const i = currentIndex;
|
1961
|
-
currentIndex++;
|
1962
|
-
if (nextItem.done) {
|
1963
|
-
isIterableDone = true;
|
1964
|
-
if (resolvingCount === 0) {
|
1965
|
-
resolve(ret);
|
1966
|
-
}
|
1967
|
-
return;
|
1968
|
-
}
|
1969
|
-
resolvingCount++;
|
1970
|
-
Promise.resolve(nextItem.value).then((element) => mapper(element, i)).then(
|
1971
|
-
(value) => {
|
1972
|
-
ret[i] = value;
|
1973
|
-
resolvingCount--;
|
1974
|
-
next();
|
1975
|
-
},
|
1976
|
-
(error) => {
|
1977
|
-
isRejected = true;
|
1978
|
-
reject(error);
|
1979
|
-
}
|
1980
|
-
);
|
1981
|
-
};
|
1982
|
-
for (let i = 0; i < concurrency; i++) {
|
1983
|
-
next();
|
1984
|
-
if (isIterableDone) {
|
1985
|
-
break;
|
1986
|
-
}
|
1987
|
-
}
|
1988
|
-
});
|
1989
|
-
module2.exports = pMap;
|
1990
|
-
module2.exports.default = pMap;
|
1991
|
-
}
|
1992
|
-
});
|
1993
|
-
var require_p_filter = (0, import_chunk_AH6QHEOA.__commonJS)({
|
1994
|
-
"../../node_modules/.pnpm/p-filter@2.1.0/node_modules/p-filter/index.js"(exports, module2) {
|
1995
|
-
"use strict";
|
1996
|
-
var pMap = require_p_map();
|
1997
|
-
var pFilter2 = async (iterable, filterer, options2) => {
|
1998
|
-
const values = await pMap(
|
1999
|
-
iterable,
|
2000
|
-
(element, index) => Promise.all([filterer(element, index), element]),
|
2001
|
-
options2
|
2002
|
-
);
|
2003
|
-
return values.filter((value) => Boolean(value[0])).map((value) => value[1]);
|
2004
|
-
};
|
2005
|
-
module2.exports = pFilter2;
|
2006
|
-
module2.exports.default = pFilter2;
|
2007
|
-
}
|
2008
|
-
});
|
2009
1935
|
var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
2010
1936
|
"package.json"(exports, module2) {
|
2011
1937
|
module2.exports = {
|
2012
1938
|
name: "@prisma/fetch-engine",
|
2013
|
-
version: "6.5.0-integration-fix-
|
1939
|
+
version: "6.5.0-integration-fix-client-read-replicas.1",
|
2014
1940
|
description: "This package is intended for Prisma's internal use",
|
2015
1941
|
main: "dist/index.js",
|
2016
1942
|
types: "dist/index.d.ts",
|
@@ -2028,7 +1954,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2028
1954
|
"@swc/core": "1.10.11",
|
2029
1955
|
"@swc/jest": "0.2.37",
|
2030
1956
|
"@types/jest": "29.5.14",
|
2031
|
-
"@types/node": "18.19.
|
1957
|
+
"@types/node": "18.19.76",
|
2032
1958
|
"@types/progress": "2.0.7",
|
2033
1959
|
del: "6.1.1",
|
2034
1960
|
execa: "5.1.1",
|
@@ -2040,7 +1966,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2040
1966
|
jest: "29.7.0",
|
2041
1967
|
kleur: "4.1.5",
|
2042
1968
|
"node-fetch": "3.3.2",
|
2043
|
-
"p-filter": "
|
1969
|
+
"p-filter": "4.1.0",
|
2044
1970
|
"p-map": "4.0.0",
|
2045
1971
|
"p-retry": "4.6.2",
|
2046
1972
|
progress: "2.0.3",
|
@@ -2072,8 +1998,136 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2072
1998
|
});
|
2073
1999
|
var import_execa = (0, import_chunk_AH6QHEOA.__toESM)(require_execa());
|
2074
2000
|
var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_G7EM4XDM.require_lib)());
|
2075
|
-
|
2076
|
-
|
2001
|
+
async function pMap(iterable, mapper, {
|
2002
|
+
concurrency = Number.POSITIVE_INFINITY,
|
2003
|
+
stopOnError = true,
|
2004
|
+
signal
|
2005
|
+
} = {}) {
|
2006
|
+
return new Promise((resolve_, reject_) => {
|
2007
|
+
if (iterable[Symbol.iterator] === void 0 && iterable[Symbol.asyncIterator] === void 0) {
|
2008
|
+
throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof iterable})`);
|
2009
|
+
}
|
2010
|
+
if (typeof mapper !== "function") {
|
2011
|
+
throw new TypeError("Mapper function is required");
|
2012
|
+
}
|
2013
|
+
if (!(Number.isSafeInteger(concurrency) && concurrency >= 1 || concurrency === Number.POSITIVE_INFINITY)) {
|
2014
|
+
throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
|
2015
|
+
}
|
2016
|
+
const result = [];
|
2017
|
+
const errors = [];
|
2018
|
+
const skippedIndexesMap = /* @__PURE__ */ new Map();
|
2019
|
+
let isRejected = false;
|
2020
|
+
let isResolved = false;
|
2021
|
+
let isIterableDone = false;
|
2022
|
+
let resolvingCount = 0;
|
2023
|
+
let currentIndex = 0;
|
2024
|
+
const iterator = iterable[Symbol.iterator] === void 0 ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
|
2025
|
+
const signalListener = () => {
|
2026
|
+
reject(signal.reason);
|
2027
|
+
};
|
2028
|
+
const cleanup = () => {
|
2029
|
+
signal?.removeEventListener("abort", signalListener);
|
2030
|
+
};
|
2031
|
+
const resolve = (value) => {
|
2032
|
+
resolve_(value);
|
2033
|
+
cleanup();
|
2034
|
+
};
|
2035
|
+
const reject = (reason) => {
|
2036
|
+
isRejected = true;
|
2037
|
+
isResolved = true;
|
2038
|
+
reject_(reason);
|
2039
|
+
cleanup();
|
2040
|
+
};
|
2041
|
+
if (signal) {
|
2042
|
+
if (signal.aborted) {
|
2043
|
+
reject(signal.reason);
|
2044
|
+
}
|
2045
|
+
signal.addEventListener("abort", signalListener, { once: true });
|
2046
|
+
}
|
2047
|
+
const next = async () => {
|
2048
|
+
if (isResolved) {
|
2049
|
+
return;
|
2050
|
+
}
|
2051
|
+
const nextItem = await iterator.next();
|
2052
|
+
const index = currentIndex;
|
2053
|
+
currentIndex++;
|
2054
|
+
if (nextItem.done) {
|
2055
|
+
isIterableDone = true;
|
2056
|
+
if (resolvingCount === 0 && !isResolved) {
|
2057
|
+
if (!stopOnError && errors.length > 0) {
|
2058
|
+
reject(new AggregateError(errors));
|
2059
|
+
return;
|
2060
|
+
}
|
2061
|
+
isResolved = true;
|
2062
|
+
if (skippedIndexesMap.size === 0) {
|
2063
|
+
resolve(result);
|
2064
|
+
return;
|
2065
|
+
}
|
2066
|
+
const pureResult = [];
|
2067
|
+
for (const [index2, value] of result.entries()) {
|
2068
|
+
if (skippedIndexesMap.get(index2) === pMapSkip) {
|
2069
|
+
continue;
|
2070
|
+
}
|
2071
|
+
pureResult.push(value);
|
2072
|
+
}
|
2073
|
+
resolve(pureResult);
|
2074
|
+
}
|
2075
|
+
return;
|
2076
|
+
}
|
2077
|
+
resolvingCount++;
|
2078
|
+
(async () => {
|
2079
|
+
try {
|
2080
|
+
const element = await nextItem.value;
|
2081
|
+
if (isResolved) {
|
2082
|
+
return;
|
2083
|
+
}
|
2084
|
+
const value = await mapper(element, index);
|
2085
|
+
if (value === pMapSkip) {
|
2086
|
+
skippedIndexesMap.set(index, value);
|
2087
|
+
}
|
2088
|
+
result[index] = value;
|
2089
|
+
resolvingCount--;
|
2090
|
+
await next();
|
2091
|
+
} catch (error) {
|
2092
|
+
if (stopOnError) {
|
2093
|
+
reject(error);
|
2094
|
+
} else {
|
2095
|
+
errors.push(error);
|
2096
|
+
resolvingCount--;
|
2097
|
+
try {
|
2098
|
+
await next();
|
2099
|
+
} catch (error2) {
|
2100
|
+
reject(error2);
|
2101
|
+
}
|
2102
|
+
}
|
2103
|
+
}
|
2104
|
+
})();
|
2105
|
+
};
|
2106
|
+
(async () => {
|
2107
|
+
for (let index = 0; index < concurrency; index++) {
|
2108
|
+
try {
|
2109
|
+
await next();
|
2110
|
+
} catch (error) {
|
2111
|
+
reject(error);
|
2112
|
+
break;
|
2113
|
+
}
|
2114
|
+
if (isIterableDone || isRejected) {
|
2115
|
+
break;
|
2116
|
+
}
|
2117
|
+
}
|
2118
|
+
})();
|
2119
|
+
});
|
2120
|
+
}
|
2121
|
+
var pMapSkip = Symbol("skip");
|
2122
|
+
async function pFilter(iterable, filterer, options2) {
|
2123
|
+
const values = await pMap(
|
2124
|
+
iterable,
|
2125
|
+
(element, index) => Promise.all([filterer(element, index), element]),
|
2126
|
+
options2
|
2127
|
+
);
|
2128
|
+
return values.filter((value) => Boolean(value[0])).map((value) => value[1]);
|
2129
|
+
}
|
2130
|
+
var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_4EZ7ALS2.require_temp_dir)());
|
2077
2131
|
var { enginesOverride } = require_package();
|
2078
2132
|
var debug = (0, import_debug.default)("prisma:fetch-engine:download");
|
2079
2133
|
var exists = (0, import_util.promisify)(import_fs.default.exists);
|
@@ -2129,7 +2183,7 @@ async function download(options) {
|
|
2129
2183
|
if (opts.printVersion) {
|
2130
2184
|
console.log(`version: ${opts.version}`);
|
2131
2185
|
}
|
2132
|
-
const binariesToDownload = await (
|
2186
|
+
const binariesToDownload = await pFilter(binaryJobs, async (job) => {
|
2133
2187
|
const needsToBeDownloaded = await binaryNeedsToBeDownloaded(job, binaryTarget, opts.version);
|
2134
2188
|
const isSupported = import_get_platform.binaryTargets.includes(job.binaryTarget);
|
2135
2189
|
const shouldDownload = isSupported && !job.envVarPath && // this is for custom binaries
|
@@ -2255,9 +2309,17 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
|
|
2255
2309
|
}
|
2256
2310
|
} else if (process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING) {
|
2257
2311
|
debug(
|
2258
|
-
`
|
2312
|
+
`the checksum file ${sha256FilePath} is missing but this was ignored because the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is set`
|
2259
2313
|
);
|
2260
|
-
|
2314
|
+
if (targetExists) {
|
2315
|
+
return false;
|
2316
|
+
}
|
2317
|
+
if (cachedFile) {
|
2318
|
+
debug(`copying ${cachedFile} to ${job.targetFilePath}`);
|
2319
|
+
await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
|
2320
|
+
return false;
|
2321
|
+
}
|
2322
|
+
return true;
|
2261
2323
|
} else {
|
2262
2324
|
return true;
|
2263
2325
|
}
|
@@ -2334,7 +2396,7 @@ async function downloadBinary(options2) {
|
|
2334
2396
|
if (progressCb) {
|
2335
2397
|
progressCb(0);
|
2336
2398
|
}
|
2337
|
-
const { sha256, zippedSha256 } = await (0,
|
2399
|
+
const { sha256, zippedSha256 } = await (0, import_chunk_4EZ7ALS2.downloadZip)(downloadUrl, targetFilePath, progressCb);
|
2338
2400
|
if (progressCb) {
|
2339
2401
|
progressCb(1);
|
2340
2402
|
}
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_Y6JXVPQ2_exports = {};
|
30
|
+
__export(chunk_Y6JXVPQ2_exports, {
|
31
31
|
download: () => download,
|
32
32
|
getBinaryName: () => getBinaryName,
|
33
33
|
getVersion: () => getVersion,
|
@@ -35,11 +35,11 @@ __export(chunk_GQ2B5OIS_exports, {
|
|
35
35
|
plusX: () => plusX,
|
36
36
|
vercelPkgPathRegex: () => vercelPkgPathRegex
|
37
37
|
});
|
38
|
-
module.exports = __toCommonJS(
|
38
|
+
module.exports = __toCommonJS(chunk_Y6JXVPQ2_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_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
|
42
|
-
var
|
42
|
+
var import_chunk_4EZ7ALS2 = require("./chunk-4EZ7ALS2.js");
|
43
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");
|
@@ -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,
|
1555
|
+
var isStream = (0, import_chunk_4EZ7ALS2.require_is_stream)();
|
1556
1556
|
var getStream = require_get_stream();
|
1557
1557
|
var mergeStream = require_merge_stream();
|
1558
1558
|
var handleInput = (spawned, input) => {
|
@@ -1932,80 +1932,6 @@ var require_execa = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1932
1932
|
};
|
1933
1933
|
}
|
1934
1934
|
});
|
1935
|
-
var require_p_map = (0, import_chunk_AH6QHEOA.__commonJS)({
|
1936
|
-
"../../node_modules/.pnpm/p-map@2.1.0/node_modules/p-map/index.js"(exports, module2) {
|
1937
|
-
"use strict";
|
1938
|
-
var pMap = (iterable, mapper, options2) => new Promise((resolve, reject) => {
|
1939
|
-
options2 = Object.assign({
|
1940
|
-
concurrency: Infinity
|
1941
|
-
}, options2);
|
1942
|
-
if (typeof mapper !== "function") {
|
1943
|
-
throw new TypeError("Mapper function is required");
|
1944
|
-
}
|
1945
|
-
const { concurrency } = options2;
|
1946
|
-
if (!(typeof concurrency === "number" && concurrency >= 1)) {
|
1947
|
-
throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${concurrency}\` (${typeof concurrency})`);
|
1948
|
-
}
|
1949
|
-
const ret = [];
|
1950
|
-
const iterator = iterable[Symbol.iterator]();
|
1951
|
-
let isRejected = false;
|
1952
|
-
let isIterableDone = false;
|
1953
|
-
let resolvingCount = 0;
|
1954
|
-
let currentIndex = 0;
|
1955
|
-
const next = () => {
|
1956
|
-
if (isRejected) {
|
1957
|
-
return;
|
1958
|
-
}
|
1959
|
-
const nextItem = iterator.next();
|
1960
|
-
const i = currentIndex;
|
1961
|
-
currentIndex++;
|
1962
|
-
if (nextItem.done) {
|
1963
|
-
isIterableDone = true;
|
1964
|
-
if (resolvingCount === 0) {
|
1965
|
-
resolve(ret);
|
1966
|
-
}
|
1967
|
-
return;
|
1968
|
-
}
|
1969
|
-
resolvingCount++;
|
1970
|
-
Promise.resolve(nextItem.value).then((element) => mapper(element, i)).then(
|
1971
|
-
(value) => {
|
1972
|
-
ret[i] = value;
|
1973
|
-
resolvingCount--;
|
1974
|
-
next();
|
1975
|
-
},
|
1976
|
-
(error) => {
|
1977
|
-
isRejected = true;
|
1978
|
-
reject(error);
|
1979
|
-
}
|
1980
|
-
);
|
1981
|
-
};
|
1982
|
-
for (let i = 0; i < concurrency; i++) {
|
1983
|
-
next();
|
1984
|
-
if (isIterableDone) {
|
1985
|
-
break;
|
1986
|
-
}
|
1987
|
-
}
|
1988
|
-
});
|
1989
|
-
module2.exports = pMap;
|
1990
|
-
module2.exports.default = pMap;
|
1991
|
-
}
|
1992
|
-
});
|
1993
|
-
var require_p_filter = (0, import_chunk_AH6QHEOA.__commonJS)({
|
1994
|
-
"../../node_modules/.pnpm/p-filter@2.1.0/node_modules/p-filter/index.js"(exports, module2) {
|
1995
|
-
"use strict";
|
1996
|
-
var pMap = require_p_map();
|
1997
|
-
var pFilter2 = async (iterable, filterer, options2) => {
|
1998
|
-
const values = await pMap(
|
1999
|
-
iterable,
|
2000
|
-
(element, index) => Promise.all([filterer(element, index), element]),
|
2001
|
-
options2
|
2002
|
-
);
|
2003
|
-
return values.filter((value) => Boolean(value[0])).map((value) => value[1]);
|
2004
|
-
};
|
2005
|
-
module2.exports = pFilter2;
|
2006
|
-
module2.exports.default = pFilter2;
|
2007
|
-
}
|
2008
|
-
});
|
2009
1935
|
var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
2010
1936
|
"package.json"(exports, module2) {
|
2011
1937
|
module2.exports = {
|
@@ -2028,7 +1954,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2028
1954
|
"@swc/core": "1.10.11",
|
2029
1955
|
"@swc/jest": "0.2.37",
|
2030
1956
|
"@types/jest": "29.5.14",
|
2031
|
-
"@types/node": "18.19.
|
1957
|
+
"@types/node": "18.19.76",
|
2032
1958
|
"@types/progress": "2.0.7",
|
2033
1959
|
del: "6.1.1",
|
2034
1960
|
execa: "5.1.1",
|
@@ -2040,7 +1966,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2040
1966
|
jest: "29.7.0",
|
2041
1967
|
kleur: "4.1.5",
|
2042
1968
|
"node-fetch": "3.3.2",
|
2043
|
-
"p-filter": "
|
1969
|
+
"p-filter": "4.1.0",
|
2044
1970
|
"p-map": "4.0.0",
|
2045
1971
|
"p-retry": "4.6.2",
|
2046
1972
|
progress: "2.0.3",
|
@@ -2072,8 +1998,136 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2072
1998
|
});
|
2073
1999
|
var import_execa = (0, import_chunk_AH6QHEOA.__toESM)(require_execa());
|
2074
2000
|
var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_G7EM4XDM.require_lib)());
|
2075
|
-
|
2076
|
-
|
2001
|
+
async function pMap(iterable, mapper, {
|
2002
|
+
concurrency = Number.POSITIVE_INFINITY,
|
2003
|
+
stopOnError = true,
|
2004
|
+
signal
|
2005
|
+
} = {}) {
|
2006
|
+
return new Promise((resolve_, reject_) => {
|
2007
|
+
if (iterable[Symbol.iterator] === void 0 && iterable[Symbol.asyncIterator] === void 0) {
|
2008
|
+
throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof iterable})`);
|
2009
|
+
}
|
2010
|
+
if (typeof mapper !== "function") {
|
2011
|
+
throw new TypeError("Mapper function is required");
|
2012
|
+
}
|
2013
|
+
if (!(Number.isSafeInteger(concurrency) && concurrency >= 1 || concurrency === Number.POSITIVE_INFINITY)) {
|
2014
|
+
throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
|
2015
|
+
}
|
2016
|
+
const result = [];
|
2017
|
+
const errors = [];
|
2018
|
+
const skippedIndexesMap = /* @__PURE__ */ new Map();
|
2019
|
+
let isRejected = false;
|
2020
|
+
let isResolved = false;
|
2021
|
+
let isIterableDone = false;
|
2022
|
+
let resolvingCount = 0;
|
2023
|
+
let currentIndex = 0;
|
2024
|
+
const iterator = iterable[Symbol.iterator] === void 0 ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
|
2025
|
+
const signalListener = () => {
|
2026
|
+
reject(signal.reason);
|
2027
|
+
};
|
2028
|
+
const cleanup = () => {
|
2029
|
+
signal?.removeEventListener("abort", signalListener);
|
2030
|
+
};
|
2031
|
+
const resolve = (value) => {
|
2032
|
+
resolve_(value);
|
2033
|
+
cleanup();
|
2034
|
+
};
|
2035
|
+
const reject = (reason) => {
|
2036
|
+
isRejected = true;
|
2037
|
+
isResolved = true;
|
2038
|
+
reject_(reason);
|
2039
|
+
cleanup();
|
2040
|
+
};
|
2041
|
+
if (signal) {
|
2042
|
+
if (signal.aborted) {
|
2043
|
+
reject(signal.reason);
|
2044
|
+
}
|
2045
|
+
signal.addEventListener("abort", signalListener, { once: true });
|
2046
|
+
}
|
2047
|
+
const next = async () => {
|
2048
|
+
if (isResolved) {
|
2049
|
+
return;
|
2050
|
+
}
|
2051
|
+
const nextItem = await iterator.next();
|
2052
|
+
const index = currentIndex;
|
2053
|
+
currentIndex++;
|
2054
|
+
if (nextItem.done) {
|
2055
|
+
isIterableDone = true;
|
2056
|
+
if (resolvingCount === 0 && !isResolved) {
|
2057
|
+
if (!stopOnError && errors.length > 0) {
|
2058
|
+
reject(new AggregateError(errors));
|
2059
|
+
return;
|
2060
|
+
}
|
2061
|
+
isResolved = true;
|
2062
|
+
if (skippedIndexesMap.size === 0) {
|
2063
|
+
resolve(result);
|
2064
|
+
return;
|
2065
|
+
}
|
2066
|
+
const pureResult = [];
|
2067
|
+
for (const [index2, value] of result.entries()) {
|
2068
|
+
if (skippedIndexesMap.get(index2) === pMapSkip) {
|
2069
|
+
continue;
|
2070
|
+
}
|
2071
|
+
pureResult.push(value);
|
2072
|
+
}
|
2073
|
+
resolve(pureResult);
|
2074
|
+
}
|
2075
|
+
return;
|
2076
|
+
}
|
2077
|
+
resolvingCount++;
|
2078
|
+
(async () => {
|
2079
|
+
try {
|
2080
|
+
const element = await nextItem.value;
|
2081
|
+
if (isResolved) {
|
2082
|
+
return;
|
2083
|
+
}
|
2084
|
+
const value = await mapper(element, index);
|
2085
|
+
if (value === pMapSkip) {
|
2086
|
+
skippedIndexesMap.set(index, value);
|
2087
|
+
}
|
2088
|
+
result[index] = value;
|
2089
|
+
resolvingCount--;
|
2090
|
+
await next();
|
2091
|
+
} catch (error) {
|
2092
|
+
if (stopOnError) {
|
2093
|
+
reject(error);
|
2094
|
+
} else {
|
2095
|
+
errors.push(error);
|
2096
|
+
resolvingCount--;
|
2097
|
+
try {
|
2098
|
+
await next();
|
2099
|
+
} catch (error2) {
|
2100
|
+
reject(error2);
|
2101
|
+
}
|
2102
|
+
}
|
2103
|
+
}
|
2104
|
+
})();
|
2105
|
+
};
|
2106
|
+
(async () => {
|
2107
|
+
for (let index = 0; index < concurrency; index++) {
|
2108
|
+
try {
|
2109
|
+
await next();
|
2110
|
+
} catch (error) {
|
2111
|
+
reject(error);
|
2112
|
+
break;
|
2113
|
+
}
|
2114
|
+
if (isIterableDone || isRejected) {
|
2115
|
+
break;
|
2116
|
+
}
|
2117
|
+
}
|
2118
|
+
})();
|
2119
|
+
});
|
2120
|
+
}
|
2121
|
+
var pMapSkip = Symbol("skip");
|
2122
|
+
async function pFilter(iterable, filterer, options2) {
|
2123
|
+
const values = await pMap(
|
2124
|
+
iterable,
|
2125
|
+
(element, index) => Promise.all([filterer(element, index), element]),
|
2126
|
+
options2
|
2127
|
+
);
|
2128
|
+
return values.filter((value) => Boolean(value[0])).map((value) => value[1]);
|
2129
|
+
}
|
2130
|
+
var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_4EZ7ALS2.require_temp_dir)());
|
2077
2131
|
var { enginesOverride } = require_package();
|
2078
2132
|
var debug = (0, import_debug.default)("prisma:fetch-engine:download");
|
2079
2133
|
var exists = (0, import_util.promisify)(import_fs.default.exists);
|
@@ -2129,7 +2183,7 @@ async function download(options) {
|
|
2129
2183
|
if (opts.printVersion) {
|
2130
2184
|
console.log(`version: ${opts.version}`);
|
2131
2185
|
}
|
2132
|
-
const binariesToDownload = await (
|
2186
|
+
const binariesToDownload = await pFilter(binaryJobs, async (job) => {
|
2133
2187
|
const needsToBeDownloaded = await binaryNeedsToBeDownloaded(job, binaryTarget, opts.version);
|
2134
2188
|
const isSupported = import_get_platform.binaryTargets.includes(job.binaryTarget);
|
2135
2189
|
const shouldDownload = isSupported && !job.envVarPath && // this is for custom binaries
|
@@ -2255,9 +2309,17 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
|
|
2255
2309
|
}
|
2256
2310
|
} else if (process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING) {
|
2257
2311
|
debug(
|
2258
|
-
`
|
2312
|
+
`the checksum file ${sha256FilePath} is missing but this was ignored because the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is set`
|
2259
2313
|
);
|
2260
|
-
|
2314
|
+
if (targetExists) {
|
2315
|
+
return false;
|
2316
|
+
}
|
2317
|
+
if (cachedFile) {
|
2318
|
+
debug(`copying ${cachedFile} to ${job.targetFilePath}`);
|
2319
|
+
await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
|
2320
|
+
return false;
|
2321
|
+
}
|
2322
|
+
return true;
|
2261
2323
|
} else {
|
2262
2324
|
return true;
|
2263
2325
|
}
|
@@ -2334,7 +2396,7 @@ async function downloadBinary(options2) {
|
|
2334
2396
|
if (progressCb) {
|
2335
2397
|
progressCb(0);
|
2336
2398
|
}
|
2337
|
-
const { sha256, zippedSha256 } = await (0,
|
2399
|
+
const { sha256, zippedSha256 } = await (0, import_chunk_4EZ7ALS2.downloadZip)(downloadUrl, targetFilePath, progressCb);
|
2338
2400
|
if (progressCb) {
|
2339
2401
|
progressCb(1);
|
2340
2402
|
}
|
@@ -26,11 +26,11 @@ 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_ZSBPBV34_exports = {};
|
30
|
+
__export(chunk_ZSBPBV34_exports, {
|
31
31
|
getProxyAgent: () => getProxyAgent
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
33
|
+
module.exports = __toCommonJS(chunk_ZSBPBV34_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"));
|
@@ -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.
|
153
|
+
"../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js"(exports, module2) {
|
154
154
|
"use strict";
|
155
155
|
function setup(env) {
|
156
156
|
createDebug.debug = createDebug;
|
@@ -252,50 +252,64 @@ var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
252
252
|
createDebug.namespaces = namespaces;
|
253
253
|
createDebug.names = [];
|
254
254
|
createDebug.skips = [];
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
255
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
|
256
|
+
for (const ns of split) {
|
257
|
+
if (ns[0] === "-") {
|
258
|
+
createDebug.skips.push(ns.slice(1));
|
259
|
+
} else {
|
260
|
+
createDebug.names.push(ns);
|
261
261
|
}
|
262
|
-
|
263
|
-
|
264
|
-
|
262
|
+
}
|
263
|
+
}
|
264
|
+
function matchesTemplate(search, template) {
|
265
|
+
let searchIndex = 0;
|
266
|
+
let templateIndex = 0;
|
267
|
+
let starIndex = -1;
|
268
|
+
let matchIndex = 0;
|
269
|
+
while (searchIndex < search.length) {
|
270
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
271
|
+
if (template[templateIndex] === "*") {
|
272
|
+
starIndex = templateIndex;
|
273
|
+
matchIndex = searchIndex;
|
274
|
+
templateIndex++;
|
275
|
+
} else {
|
276
|
+
searchIndex++;
|
277
|
+
templateIndex++;
|
278
|
+
}
|
279
|
+
} else if (starIndex !== -1) {
|
280
|
+
templateIndex = starIndex + 1;
|
281
|
+
matchIndex++;
|
282
|
+
searchIndex = matchIndex;
|
265
283
|
} else {
|
266
|
-
|
284
|
+
return false;
|
267
285
|
}
|
268
286
|
}
|
287
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
288
|
+
templateIndex++;
|
289
|
+
}
|
290
|
+
return templateIndex === template.length;
|
269
291
|
}
|
270
292
|
function disable() {
|
271
293
|
const namespaces = [
|
272
|
-
...createDebug.names
|
273
|
-
...createDebug.skips.map(
|
294
|
+
...createDebug.names,
|
295
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
274
296
|
].join(",");
|
275
297
|
createDebug.enable("");
|
276
298
|
return namespaces;
|
277
299
|
}
|
278
300
|
function enabled(name) {
|
279
|
-
|
280
|
-
|
281
|
-
}
|
282
|
-
let i;
|
283
|
-
let len;
|
284
|
-
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
285
|
-
if (createDebug.skips[i].test(name)) {
|
301
|
+
for (const skip of createDebug.skips) {
|
302
|
+
if (matchesTemplate(name, skip)) {
|
286
303
|
return false;
|
287
304
|
}
|
288
305
|
}
|
289
|
-
for (
|
290
|
-
if (
|
306
|
+
for (const ns of createDebug.names) {
|
307
|
+
if (matchesTemplate(name, ns)) {
|
291
308
|
return true;
|
292
309
|
}
|
293
310
|
}
|
294
311
|
return false;
|
295
312
|
}
|
296
|
-
function toNamespace(regexp) {
|
297
|
-
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
298
|
-
}
|
299
313
|
function coerce(val) {
|
300
314
|
if (val instanceof Error) {
|
301
315
|
return val.stack || val.message;
|
@@ -312,7 +326,7 @@ var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
312
326
|
}
|
313
327
|
});
|
314
328
|
var require_browser = (0, import_chunk_AH6QHEOA.__commonJS)({
|
315
|
-
"../../node_modules/.pnpm/debug@4.
|
329
|
+
"../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js"(exports, module2) {
|
316
330
|
"use strict";
|
317
331
|
exports.formatArgs = formatArgs;
|
318
332
|
exports.save = save;
|
@@ -604,7 +618,7 @@ var require_supports_color = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
604
618
|
}
|
605
619
|
});
|
606
620
|
var require_node = (0, import_chunk_AH6QHEOA.__commonJS)({
|
607
|
-
"../../node_modules/.pnpm/debug@4.
|
621
|
+
"../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js"(exports, module2) {
|
608
622
|
"use strict";
|
609
623
|
var tty = (0, import_chunk_AH6QHEOA.__require)("tty");
|
610
624
|
var util = (0, import_chunk_AH6QHEOA.__require)("util");
|
@@ -777,7 +791,7 @@ var require_node = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
777
791
|
}
|
778
792
|
});
|
779
793
|
var require_src = (0, import_chunk_AH6QHEOA.__commonJS)({
|
780
|
-
"../../node_modules/.pnpm/debug@4.
|
794
|
+
"../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js"(exports, module2) {
|
781
795
|
"use strict";
|
782
796
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
783
797
|
module2.exports = require_browser();
|
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: () =>
|
22
|
-
getBinaryName: () =>
|
23
|
-
getVersion: () =>
|
24
|
-
maybeCopyToTmp: () =>
|
25
|
-
plusX: () =>
|
26
|
-
vercelPkgPathRegex: () =>
|
21
|
+
download: () => import_chunk_OESPDION.download,
|
22
|
+
getBinaryName: () => import_chunk_OESPDION.getBinaryName,
|
23
|
+
getVersion: () => import_chunk_OESPDION.getVersion,
|
24
|
+
maybeCopyToTmp: () => import_chunk_OESPDION.maybeCopyToTmp,
|
25
|
+
plusX: () => import_chunk_OESPDION.plusX,
|
26
|
+
vercelPkgPathRegex: () => import_chunk_OESPDION.vercelPkgPathRegex
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(download_exports);
|
29
|
-
var
|
29
|
+
var import_chunk_OESPDION = require("./chunk-OESPDION.js");
|
30
30
|
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
|
31
31
|
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
|
32
32
|
var import_chunk_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
|
33
|
-
var
|
33
|
+
var import_chunk_4EZ7ALS2 = require("./chunk-4EZ7ALS2.js");
|
34
34
|
var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
|
35
35
|
var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
|
36
36
|
var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
|
37
37
|
var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
|
38
38
|
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
|
39
39
|
var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
|
40
|
-
var
|
40
|
+
var import_chunk_ZSBPBV34 = require("./chunk-ZSBPBV34.js");
|
41
41
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
package/dist/downloadZip.js
CHANGED
@@ -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: () =>
|
21
|
+
downloadZip: () => import_chunk_4EZ7ALS2.downloadZip
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(downloadZip_exports);
|
24
|
-
var
|
24
|
+
var import_chunk_4EZ7ALS2 = require("./chunk-4EZ7ALS2.js");
|
25
25
|
var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
|
26
26
|
var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
|
27
27
|
var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
|
28
28
|
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
|
29
|
-
var
|
29
|
+
var import_chunk_ZSBPBV34 = require("./chunk-ZSBPBV34.js");
|
30
30
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
package/dist/getProxyAgent.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 getProxyAgent_exports = {};
|
20
20
|
__export(getProxyAgent_exports, {
|
21
|
-
getProxyAgent: () =>
|
21
|
+
getProxyAgent: () => import_chunk_ZSBPBV34.getProxyAgent
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(getProxyAgent_exports);
|
24
|
-
var
|
24
|
+
var import_chunk_ZSBPBV34 = require("./chunk-ZSBPBV34.js");
|
25
25
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
package/dist/index.js
CHANGED
@@ -21,29 +21,29 @@ __export(index_exports, {
|
|
21
21
|
BinaryType: () => import_chunk_X37PZICB.BinaryType,
|
22
22
|
allEngineEnvVarsSet: () => import_chunk_PXQVM7NP.allEngineEnvVarsSet,
|
23
23
|
deprecatedEnvVarMap: () => import_chunk_PXQVM7NP.deprecatedEnvVarMap,
|
24
|
-
download: () =>
|
24
|
+
download: () => import_chunk_OESPDION.download,
|
25
25
|
engineEnvVarMap: () => import_chunk_PXQVM7NP.engineEnvVarMap,
|
26
26
|
getBinaryEnvVarPath: () => import_chunk_PXQVM7NP.getBinaryEnvVarPath,
|
27
|
-
getBinaryName: () =>
|
27
|
+
getBinaryName: () => import_chunk_OESPDION.getBinaryName,
|
28
28
|
getCacheDir: () => import_chunk_G7EM4XDM.getCacheDir,
|
29
|
-
getProxyAgent: () =>
|
30
|
-
getVersion: () =>
|
31
|
-
maybeCopyToTmp: () =>
|
29
|
+
getProxyAgent: () => import_chunk_ZSBPBV34.getProxyAgent,
|
30
|
+
getVersion: () => import_chunk_OESPDION.getVersion,
|
31
|
+
maybeCopyToTmp: () => import_chunk_OESPDION.maybeCopyToTmp,
|
32
32
|
overwriteFile: () => import_chunk_G7EM4XDM.overwriteFile,
|
33
|
-
plusX: () =>
|
34
|
-
vercelPkgPathRegex: () =>
|
33
|
+
plusX: () => import_chunk_OESPDION.plusX,
|
34
|
+
vercelPkgPathRegex: () => import_chunk_OESPDION.vercelPkgPathRegex
|
35
35
|
});
|
36
36
|
module.exports = __toCommonJS(index_exports);
|
37
|
-
var
|
37
|
+
var import_chunk_OESPDION = require("./chunk-OESPDION.js");
|
38
38
|
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
|
39
39
|
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
|
40
40
|
var import_chunk_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
|
41
|
-
var
|
41
|
+
var import_chunk_4EZ7ALS2 = require("./chunk-4EZ7ALS2.js");
|
42
42
|
var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
|
43
43
|
var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
|
44
44
|
var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
|
45
45
|
var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
|
46
46
|
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
|
47
47
|
var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
|
48
|
-
var
|
48
|
+
var import_chunk_ZSBPBV34 = require("./chunk-ZSBPBV34.js");
|
49
49
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prisma/fetch-engine",
|
3
|
-
"version": "6.5.0-integration-fix-
|
3
|
+
"version": "6.5.0-integration-fix-client-read-replicas.1",
|
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",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"@swc/core": "1.10.11",
|
19
19
|
"@swc/jest": "0.2.37",
|
20
20
|
"@types/jest": "29.5.14",
|
21
|
-
"@types/node": "18.19.
|
21
|
+
"@types/node": "18.19.76",
|
22
22
|
"@types/progress": "2.0.7",
|
23
23
|
"del": "6.1.1",
|
24
24
|
"execa": "5.1.1",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"jest": "29.7.0",
|
31
31
|
"kleur": "4.1.5",
|
32
32
|
"node-fetch": "3.3.2",
|
33
|
-
"p-filter": "
|
33
|
+
"p-filter": "4.1.0",
|
34
34
|
"p-map": "4.0.0",
|
35
35
|
"p-retry": "4.6.2",
|
36
36
|
"progress": "2.0.3",
|
@@ -43,8 +43,8 @@
|
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
45
|
"@prisma/engines-version": "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d",
|
46
|
-
"@prisma/debug": "6.5.0-integration-fix-
|
47
|
-
"@prisma/get-platform": "6.5.0-integration-fix-
|
46
|
+
"@prisma/debug": "6.5.0-integration-fix-client-read-replicas.1",
|
47
|
+
"@prisma/get-platform": "6.5.0-integration-fix-client-read-replicas.1"
|
48
48
|
},
|
49
49
|
"files": [
|
50
50
|
"README.md",
|