@prisma/fetch-engine 6.3.0-dev.2 → 6.3.0-dev.21
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-BBQM2DBF.js → chunk-7NQURTUG.js} +146 -97
- package/dist/{chunk-OFSFRIEP.js → chunk-AGZFDFHU.js} +242 -17
- package/dist/{chunk-RMN7T7WG.js → chunk-LUTZ7RIZ.js} +11 -11
- package/dist/{chunk-WF2TYTSD.js → chunk-UK5R24XS.js} +10 -10
- package/dist/download.js +9 -9
- package/dist/downloadZip.js +3 -3
- package/dist/getProxyAgent.js +2 -2
- package/dist/index.js +13 -13
- package/package.json +6 -6
@@ -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_AGZFDFHU_exports = {};
|
30
|
+
__export(chunk_AGZFDFHU_exports, {
|
31
31
|
getProxyAgent: () => getProxyAgent
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
33
|
+
module.exports = __toCommonJS(chunk_AGZFDFHU_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"));
|
@@ -1083,8 +1083,230 @@ var require_dist2 = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1083
1083
|
}
|
1084
1084
|
}
|
1085
1085
|
});
|
1086
|
+
var require_helpers2 = (0, import_chunk_AH6QHEOA.__commonJS)({
|
1087
|
+
"../../node_modules/.pnpm/agent-base@7.1.3/node_modules/agent-base/dist/helpers.js"(exports) {
|
1088
|
+
"use strict";
|
1089
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
1090
|
+
if (k2 === void 0) k2 = k;
|
1091
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
1092
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
1093
|
+
desc = { enumerable: true, get: function() {
|
1094
|
+
return m[k];
|
1095
|
+
} };
|
1096
|
+
}
|
1097
|
+
Object.defineProperty(o, k2, desc);
|
1098
|
+
} : function(o, m, k, k2) {
|
1099
|
+
if (k2 === void 0) k2 = k;
|
1100
|
+
o[k2] = m[k];
|
1101
|
+
});
|
1102
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
1103
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
1104
|
+
} : function(o, v) {
|
1105
|
+
o["default"] = v;
|
1106
|
+
});
|
1107
|
+
var __importStar = exports && exports.__importStar || function(mod) {
|
1108
|
+
if (mod && mod.__esModule) return mod;
|
1109
|
+
var result = {};
|
1110
|
+
if (mod != null) {
|
1111
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
1112
|
+
}
|
1113
|
+
__setModuleDefault(result, mod);
|
1114
|
+
return result;
|
1115
|
+
};
|
1116
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
1117
|
+
exports.req = exports.json = exports.toBuffer = void 0;
|
1118
|
+
var http = __importStar((0, import_chunk_AH6QHEOA.__require)("http"));
|
1119
|
+
var https = __importStar((0, import_chunk_AH6QHEOA.__require)("https"));
|
1120
|
+
async function toBuffer(stream) {
|
1121
|
+
let length = 0;
|
1122
|
+
const chunks = [];
|
1123
|
+
for await (const chunk of stream) {
|
1124
|
+
length += chunk.length;
|
1125
|
+
chunks.push(chunk);
|
1126
|
+
}
|
1127
|
+
return Buffer.concat(chunks, length);
|
1128
|
+
}
|
1129
|
+
exports.toBuffer = toBuffer;
|
1130
|
+
async function json(stream) {
|
1131
|
+
const buf = await toBuffer(stream);
|
1132
|
+
const str = buf.toString("utf8");
|
1133
|
+
try {
|
1134
|
+
return JSON.parse(str);
|
1135
|
+
} catch (_err) {
|
1136
|
+
const err = _err;
|
1137
|
+
err.message += ` (input: ${str})`;
|
1138
|
+
throw err;
|
1139
|
+
}
|
1140
|
+
}
|
1141
|
+
exports.json = json;
|
1142
|
+
function req(url, opts = {}) {
|
1143
|
+
const href = typeof url === "string" ? url : url.href;
|
1144
|
+
const req2 = (href.startsWith("https:") ? https : http).request(url, opts);
|
1145
|
+
const promise = new Promise((resolve, reject) => {
|
1146
|
+
req2.once("response", resolve).once("error", reject).end();
|
1147
|
+
});
|
1148
|
+
req2.then = promise.then.bind(promise);
|
1149
|
+
return req2;
|
1150
|
+
}
|
1151
|
+
exports.req = req;
|
1152
|
+
}
|
1153
|
+
});
|
1154
|
+
var require_dist3 = (0, import_chunk_AH6QHEOA.__commonJS)({
|
1155
|
+
"../../node_modules/.pnpm/agent-base@7.1.3/node_modules/agent-base/dist/index.js"(exports) {
|
1156
|
+
"use strict";
|
1157
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
1158
|
+
if (k2 === void 0) k2 = k;
|
1159
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
1160
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
1161
|
+
desc = { enumerable: true, get: function() {
|
1162
|
+
return m[k];
|
1163
|
+
} };
|
1164
|
+
}
|
1165
|
+
Object.defineProperty(o, k2, desc);
|
1166
|
+
} : function(o, m, k, k2) {
|
1167
|
+
if (k2 === void 0) k2 = k;
|
1168
|
+
o[k2] = m[k];
|
1169
|
+
});
|
1170
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
1171
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
1172
|
+
} : function(o, v) {
|
1173
|
+
o["default"] = v;
|
1174
|
+
});
|
1175
|
+
var __importStar = exports && exports.__importStar || function(mod) {
|
1176
|
+
if (mod && mod.__esModule) return mod;
|
1177
|
+
var result = {};
|
1178
|
+
if (mod != null) {
|
1179
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
1180
|
+
}
|
1181
|
+
__setModuleDefault(result, mod);
|
1182
|
+
return result;
|
1183
|
+
};
|
1184
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
1185
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
1186
|
+
};
|
1187
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
1188
|
+
exports.Agent = void 0;
|
1189
|
+
var net = __importStar((0, import_chunk_AH6QHEOA.__require)("net"));
|
1190
|
+
var http = __importStar((0, import_chunk_AH6QHEOA.__require)("http"));
|
1191
|
+
var https_1 = (0, import_chunk_AH6QHEOA.__require)("https");
|
1192
|
+
__exportStar(require_helpers2(), exports);
|
1193
|
+
var INTERNAL = Symbol("AgentBaseInternalState");
|
1194
|
+
var Agent = class extends http.Agent {
|
1195
|
+
constructor(opts) {
|
1196
|
+
super(opts);
|
1197
|
+
this[INTERNAL] = {};
|
1198
|
+
}
|
1199
|
+
/**
|
1200
|
+
* Determine whether this is an `http` or `https` request.
|
1201
|
+
*/
|
1202
|
+
isSecureEndpoint(options) {
|
1203
|
+
if (options) {
|
1204
|
+
if (typeof options.secureEndpoint === "boolean") {
|
1205
|
+
return options.secureEndpoint;
|
1206
|
+
}
|
1207
|
+
if (typeof options.protocol === "string") {
|
1208
|
+
return options.protocol === "https:";
|
1209
|
+
}
|
1210
|
+
}
|
1211
|
+
const { stack } = new Error();
|
1212
|
+
if (typeof stack !== "string")
|
1213
|
+
return false;
|
1214
|
+
return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
|
1215
|
+
}
|
1216
|
+
// In order to support async signatures in `connect()` and Node's native
|
1217
|
+
// connection pooling in `http.Agent`, the array of sockets for each origin
|
1218
|
+
// has to be updated synchronously. This is so the length of the array is
|
1219
|
+
// accurate when `addRequest()` is next called. We achieve this by creating a
|
1220
|
+
// fake socket and adding it to `sockets[origin]` and incrementing
|
1221
|
+
// `totalSocketCount`.
|
1222
|
+
incrementSockets(name) {
|
1223
|
+
if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) {
|
1224
|
+
return null;
|
1225
|
+
}
|
1226
|
+
if (!this.sockets[name]) {
|
1227
|
+
this.sockets[name] = [];
|
1228
|
+
}
|
1229
|
+
const fakeSocket = new net.Socket({ writable: false });
|
1230
|
+
this.sockets[name].push(fakeSocket);
|
1231
|
+
this.totalSocketCount++;
|
1232
|
+
return fakeSocket;
|
1233
|
+
}
|
1234
|
+
decrementSockets(name, socket) {
|
1235
|
+
if (!this.sockets[name] || socket === null) {
|
1236
|
+
return;
|
1237
|
+
}
|
1238
|
+
const sockets = this.sockets[name];
|
1239
|
+
const index = sockets.indexOf(socket);
|
1240
|
+
if (index !== -1) {
|
1241
|
+
sockets.splice(index, 1);
|
1242
|
+
this.totalSocketCount--;
|
1243
|
+
if (sockets.length === 0) {
|
1244
|
+
delete this.sockets[name];
|
1245
|
+
}
|
1246
|
+
}
|
1247
|
+
}
|
1248
|
+
// In order to properly update the socket pool, we need to call `getName()` on
|
1249
|
+
// the core `https.Agent` if it is a secureEndpoint.
|
1250
|
+
getName(options) {
|
1251
|
+
const secureEndpoint = typeof options.secureEndpoint === "boolean" ? options.secureEndpoint : this.isSecureEndpoint(options);
|
1252
|
+
if (secureEndpoint) {
|
1253
|
+
return https_1.Agent.prototype.getName.call(this, options);
|
1254
|
+
}
|
1255
|
+
return super.getName(options);
|
1256
|
+
}
|
1257
|
+
createSocket(req, options, cb) {
|
1258
|
+
const connectOpts = {
|
1259
|
+
...options,
|
1260
|
+
secureEndpoint: this.isSecureEndpoint(options)
|
1261
|
+
};
|
1262
|
+
const name = this.getName(connectOpts);
|
1263
|
+
const fakeSocket = this.incrementSockets(name);
|
1264
|
+
Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => {
|
1265
|
+
this.decrementSockets(name, fakeSocket);
|
1266
|
+
if (socket instanceof http.Agent) {
|
1267
|
+
try {
|
1268
|
+
return socket.addRequest(req, connectOpts);
|
1269
|
+
} catch (err) {
|
1270
|
+
return cb(err);
|
1271
|
+
}
|
1272
|
+
}
|
1273
|
+
this[INTERNAL].currentSocket = socket;
|
1274
|
+
super.createSocket(req, options, cb);
|
1275
|
+
}, (err) => {
|
1276
|
+
this.decrementSockets(name, fakeSocket);
|
1277
|
+
cb(err);
|
1278
|
+
});
|
1279
|
+
}
|
1280
|
+
createConnection() {
|
1281
|
+
const socket = this[INTERNAL].currentSocket;
|
1282
|
+
this[INTERNAL].currentSocket = void 0;
|
1283
|
+
if (!socket) {
|
1284
|
+
throw new Error("No socket was returned in the `connect()` function");
|
1285
|
+
}
|
1286
|
+
return socket;
|
1287
|
+
}
|
1288
|
+
get defaultPort() {
|
1289
|
+
return this[INTERNAL].defaultPort ?? (this.protocol === "https:" ? 443 : 80);
|
1290
|
+
}
|
1291
|
+
set defaultPort(v) {
|
1292
|
+
if (this[INTERNAL]) {
|
1293
|
+
this[INTERNAL].defaultPort = v;
|
1294
|
+
}
|
1295
|
+
}
|
1296
|
+
get protocol() {
|
1297
|
+
return this[INTERNAL].protocol ?? (this.isSecureEndpoint() ? "https:" : "http:");
|
1298
|
+
}
|
1299
|
+
set protocol(v) {
|
1300
|
+
if (this[INTERNAL]) {
|
1301
|
+
this[INTERNAL].protocol = v;
|
1302
|
+
}
|
1303
|
+
}
|
1304
|
+
};
|
1305
|
+
exports.Agent = Agent;
|
1306
|
+
}
|
1307
|
+
});
|
1086
1308
|
var require_parse_proxy_response = (0, import_chunk_AH6QHEOA.__commonJS)({
|
1087
|
-
"../../node_modules/.pnpm/https-proxy-agent@7.0.
|
1309
|
+
"../../node_modules/.pnpm/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
|
1088
1310
|
"use strict";
|
1089
1311
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
1090
1312
|
return mod && mod.__esModule ? mod : { "default": mod };
|
@@ -1177,8 +1399,8 @@ var require_parse_proxy_response = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1177
1399
|
exports.parseProxyResponse = parseProxyResponse;
|
1178
1400
|
}
|
1179
1401
|
});
|
1180
|
-
var
|
1181
|
-
"../../node_modules/.pnpm/https-proxy-agent@7.0.
|
1402
|
+
var require_dist4 = (0, import_chunk_AH6QHEOA.__commonJS)({
|
1403
|
+
"../../node_modules/.pnpm/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/index.js"(exports) {
|
1182
1404
|
"use strict";
|
1183
1405
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
1184
1406
|
if (k2 === void 0) k2 = k;
|
@@ -1216,10 +1438,19 @@ var require_dist3 = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1216
1438
|
var tls = __importStar((0, import_chunk_AH6QHEOA.__require)("tls"));
|
1217
1439
|
var assert_1 = __importDefault((0, import_chunk_AH6QHEOA.__require)("assert"));
|
1218
1440
|
var debug_1 = __importDefault(require_src());
|
1219
|
-
var agent_base_1 =
|
1441
|
+
var agent_base_1 = require_dist3();
|
1220
1442
|
var url_1 = (0, import_chunk_AH6QHEOA.__require)("url");
|
1221
1443
|
var parse_proxy_response_1 = require_parse_proxy_response();
|
1222
1444
|
var debug2 = (0, debug_1.default)("https-proxy-agent");
|
1445
|
+
var setServernameFromNonIpHost = (options) => {
|
1446
|
+
if (options.servername === void 0 && options.host && !net.isIP(options.host)) {
|
1447
|
+
return {
|
1448
|
+
...options,
|
1449
|
+
servername: options.host
|
1450
|
+
};
|
1451
|
+
}
|
1452
|
+
return options;
|
1453
|
+
};
|
1223
1454
|
var HttpsProxyAgent2 = class extends agent_base_1.Agent {
|
1224
1455
|
constructor(proxy, opts) {
|
1225
1456
|
super(opts);
|
@@ -1249,11 +1480,7 @@ var require_dist3 = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1249
1480
|
let socket;
|
1250
1481
|
if (proxy.protocol === "https:") {
|
1251
1482
|
debug2("Creating `tls.Socket`: %o", this.connectOpts);
|
1252
|
-
|
1253
|
-
socket = tls.connect({
|
1254
|
-
...this.connectOpts,
|
1255
|
-
servername
|
1256
|
-
});
|
1483
|
+
socket = tls.connect(setServernameFromNonIpHost(this.connectOpts));
|
1257
1484
|
} else {
|
1258
1485
|
debug2("Creating `net.Socket`: %o", this.connectOpts);
|
1259
1486
|
socket = net.connect(this.connectOpts);
|
@@ -1284,11 +1511,9 @@ var require_dist3 = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1284
1511
|
req.once("socket", resume);
|
1285
1512
|
if (opts.secureEndpoint) {
|
1286
1513
|
debug2("Upgrading socket connection to TLS");
|
1287
|
-
const servername = opts.servername || opts.host;
|
1288
1514
|
return tls.connect({
|
1289
|
-
...omit(opts, "host", "path", "port"),
|
1290
|
-
socket
|
1291
|
-
servername
|
1515
|
+
...omit(setServernameFromNonIpHost(opts), "host", "path", "port"),
|
1516
|
+
socket
|
1292
1517
|
});
|
1293
1518
|
}
|
1294
1519
|
return socket;
|
@@ -1323,7 +1548,7 @@ var require_dist3 = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1323
1548
|
}
|
1324
1549
|
});
|
1325
1550
|
var import_http_proxy_agent = (0, import_chunk_AH6QHEOA.__toESM)(require_dist2());
|
1326
|
-
var import_https_proxy_agent = (0, import_chunk_AH6QHEOA.__toESM)(
|
1551
|
+
var import_https_proxy_agent = (0, import_chunk_AH6QHEOA.__toESM)(require_dist4());
|
1327
1552
|
var debug = (0, import_debug.default)("prisma:fetch-engine:getProxyAgent");
|
1328
1553
|
function formatHostname(hostname) {
|
1329
1554
|
return hostname.replace(/^\.*/, ".").toLowerCase();
|
@@ -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_LUTZ7RIZ_exports = {};
|
30
|
+
__export(chunk_LUTZ7RIZ_exports, {
|
31
31
|
download: () => download,
|
32
32
|
getBinaryName: () => getBinaryName,
|
33
33
|
getVersion: () => getVersion,
|
@@ -35,11 +35,11 @@ __export(chunk_RMN7T7WG_exports, {
|
|
35
35
|
plusX: () => plusX,
|
36
36
|
vercelPkgPathRegex: () => vercelPkgPathRegex
|
37
37
|
});
|
38
|
-
module.exports = __toCommonJS(
|
38
|
+
module.exports = __toCommonJS(chunk_LUTZ7RIZ_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_7NQURTUG = require("./chunk-7NQURTUG.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_7NQURTUG.require_is_stream)();
|
1556
1556
|
var getStream = require_get_stream();
|
1557
1557
|
var mergeStream = require_merge_stream();
|
1558
1558
|
var handleInput = (spawned, input) => {
|
@@ -2010,7 +2010,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2010
2010
|
"package.json"(exports, module2) {
|
2011
2011
|
module2.exports = {
|
2012
2012
|
name: "@prisma/fetch-engine",
|
2013
|
-
version: "6.3.0-dev.
|
2013
|
+
version: "6.3.0-dev.21",
|
2014
2014
|
description: "This package is intended for Prisma's internal use",
|
2015
2015
|
main: "dist/index.js",
|
2016
2016
|
types: "dist/index.d.ts",
|
@@ -2025,7 +2025,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2025
2025
|
bugs: "https://github.com/prisma/prisma/issues",
|
2026
2026
|
enginesOverride: {},
|
2027
2027
|
devDependencies: {
|
2028
|
-
"@swc/core": "1.10.
|
2028
|
+
"@swc/core": "1.10.9",
|
2029
2029
|
"@swc/jest": "0.2.37",
|
2030
2030
|
"@types/jest": "29.5.14",
|
2031
2031
|
"@types/node": "18.19.31",
|
@@ -2036,7 +2036,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2036
2036
|
"fs-extra": "11.1.1",
|
2037
2037
|
hasha: "5.2.2",
|
2038
2038
|
"http-proxy-agent": "7.0.2",
|
2039
|
-
"https-proxy-agent": "7.0.
|
2039
|
+
"https-proxy-agent": "7.0.6",
|
2040
2040
|
jest: "29.7.0",
|
2041
2041
|
kleur: "4.1.5",
|
2042
2042
|
"node-fetch": "3.3.2",
|
@@ -2053,7 +2053,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2053
2053
|
},
|
2054
2054
|
dependencies: {
|
2055
2055
|
"@prisma/debug": "workspace:*",
|
2056
|
-
"@prisma/engines-version": "6.
|
2056
|
+
"@prisma/engines-version": "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
|
2057
2057
|
"@prisma/get-platform": "workspace:*"
|
2058
2058
|
},
|
2059
2059
|
scripts: {
|
@@ -2073,7 +2073,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2073
2073
|
var import_execa = (0, import_chunk_AH6QHEOA.__toESM)(require_execa());
|
2074
2074
|
var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_G7EM4XDM.require_lib)());
|
2075
2075
|
var import_p_filter = (0, import_chunk_AH6QHEOA.__toESM)(require_p_filter());
|
2076
|
-
var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0,
|
2076
|
+
var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_7NQURTUG.require_temp_dir)());
|
2077
2077
|
var { enginesOverride } = require_package();
|
2078
2078
|
var debug = (0, import_debug.default)("prisma:fetch-engine:download");
|
2079
2079
|
var exists = (0, import_util.promisify)(import_fs.default.exists);
|
@@ -2334,7 +2334,7 @@ async function downloadBinary(options2) {
|
|
2334
2334
|
if (progressCb) {
|
2335
2335
|
progressCb(0);
|
2336
2336
|
}
|
2337
|
-
const { sha256, zippedSha256 } = await (0,
|
2337
|
+
const { sha256, zippedSha256 } = await (0, import_chunk_7NQURTUG.downloadZip)(downloadUrl, targetFilePath, progressCb);
|
2338
2338
|
if (progressCb) {
|
2339
2339
|
progressCb(1);
|
2340
2340
|
}
|
@@ -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_UK5R24XS_exports = {};
|
30
|
+
__export(chunk_UK5R24XS_exports, {
|
31
31
|
download: () => download,
|
32
32
|
getBinaryName: () => getBinaryName,
|
33
33
|
getVersion: () => getVersion,
|
@@ -35,11 +35,11 @@ __export(chunk_WF2TYTSD_exports, {
|
|
35
35
|
plusX: () => plusX,
|
36
36
|
vercelPkgPathRegex: () => vercelPkgPathRegex
|
37
37
|
});
|
38
|
-
module.exports = __toCommonJS(
|
38
|
+
module.exports = __toCommonJS(chunk_UK5R24XS_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_7NQURTUG = require("./chunk-7NQURTUG.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_7NQURTUG.require_is_stream)();
|
1556
1556
|
var getStream = require_get_stream();
|
1557
1557
|
var mergeStream = require_merge_stream();
|
1558
1558
|
var handleInput = (spawned, input) => {
|
@@ -2025,7 +2025,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2025
2025
|
bugs: "https://github.com/prisma/prisma/issues",
|
2026
2026
|
enginesOverride: {},
|
2027
2027
|
devDependencies: {
|
2028
|
-
"@swc/core": "1.10.
|
2028
|
+
"@swc/core": "1.10.9",
|
2029
2029
|
"@swc/jest": "0.2.37",
|
2030
2030
|
"@types/jest": "29.5.14",
|
2031
2031
|
"@types/node": "18.19.31",
|
@@ -2036,7 +2036,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2036
2036
|
"fs-extra": "11.1.1",
|
2037
2037
|
hasha: "5.2.2",
|
2038
2038
|
"http-proxy-agent": "7.0.2",
|
2039
|
-
"https-proxy-agent": "7.0.
|
2039
|
+
"https-proxy-agent": "7.0.6",
|
2040
2040
|
jest: "29.7.0",
|
2041
2041
|
kleur: "4.1.5",
|
2042
2042
|
"node-fetch": "3.3.2",
|
@@ -2053,7 +2053,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2053
2053
|
},
|
2054
2054
|
dependencies: {
|
2055
2055
|
"@prisma/debug": "workspace:*",
|
2056
|
-
"@prisma/engines-version": "6.
|
2056
|
+
"@prisma/engines-version": "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
|
2057
2057
|
"@prisma/get-platform": "workspace:*"
|
2058
2058
|
},
|
2059
2059
|
scripts: {
|
@@ -2073,7 +2073,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2073
2073
|
var import_execa = (0, import_chunk_AH6QHEOA.__toESM)(require_execa());
|
2074
2074
|
var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_G7EM4XDM.require_lib)());
|
2075
2075
|
var import_p_filter = (0, import_chunk_AH6QHEOA.__toESM)(require_p_filter());
|
2076
|
-
var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0,
|
2076
|
+
var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_7NQURTUG.require_temp_dir)());
|
2077
2077
|
var { enginesOverride } = require_package();
|
2078
2078
|
var debug = (0, import_debug.default)("prisma:fetch-engine:download");
|
2079
2079
|
var exists = (0, import_util.promisify)(import_fs.default.exists);
|
@@ -2334,7 +2334,7 @@ async function downloadBinary(options2) {
|
|
2334
2334
|
if (progressCb) {
|
2335
2335
|
progressCb(0);
|
2336
2336
|
}
|
2337
|
-
const { sha256, zippedSha256 } = await (0,
|
2337
|
+
const { sha256, zippedSha256 } = await (0, import_chunk_7NQURTUG.downloadZip)(downloadUrl, targetFilePath, progressCb);
|
2338
2338
|
if (progressCb) {
|
2339
2339
|
progressCb(1);
|
2340
2340
|
}
|
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_LUTZ7RIZ.download,
|
22
|
+
getBinaryName: () => import_chunk_LUTZ7RIZ.getBinaryName,
|
23
|
+
getVersion: () => import_chunk_LUTZ7RIZ.getVersion,
|
24
|
+
maybeCopyToTmp: () => import_chunk_LUTZ7RIZ.maybeCopyToTmp,
|
25
|
+
plusX: () => import_chunk_LUTZ7RIZ.plusX,
|
26
|
+
vercelPkgPathRegex: () => import_chunk_LUTZ7RIZ.vercelPkgPathRegex
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(download_exports);
|
29
|
-
var
|
29
|
+
var import_chunk_LUTZ7RIZ = require("./chunk-LUTZ7RIZ.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_7NQURTUG = require("./chunk-7NQURTUG.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_AGZFDFHU = require("./chunk-AGZFDFHU.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_7NQURTUG.downloadZip
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(downloadZip_exports);
|
24
|
-
var
|
24
|
+
var import_chunk_7NQURTUG = require("./chunk-7NQURTUG.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_AGZFDFHU = require("./chunk-AGZFDFHU.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_AGZFDFHU.getProxyAgent
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(getProxyAgent_exports);
|
24
|
-
var
|
24
|
+
var import_chunk_AGZFDFHU = require("./chunk-AGZFDFHU.js");
|
25
25
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
package/dist/index.js
CHANGED
@@ -16,34 +16,34 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
return to;
|
17
17
|
};
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
var
|
20
|
-
__export(
|
19
|
+
var index_exports = {};
|
20
|
+
__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_LUTZ7RIZ.download,
|
25
25
|
engineEnvVarMap: () => import_chunk_PXQVM7NP.engineEnvVarMap,
|
26
26
|
getBinaryEnvVarPath: () => import_chunk_PXQVM7NP.getBinaryEnvVarPath,
|
27
|
-
getBinaryName: () =>
|
27
|
+
getBinaryName: () => import_chunk_LUTZ7RIZ.getBinaryName,
|
28
28
|
getCacheDir: () => import_chunk_G7EM4XDM.getCacheDir,
|
29
|
-
getProxyAgent: () =>
|
30
|
-
getVersion: () =>
|
31
|
-
maybeCopyToTmp: () =>
|
29
|
+
getProxyAgent: () => import_chunk_AGZFDFHU.getProxyAgent,
|
30
|
+
getVersion: () => import_chunk_LUTZ7RIZ.getVersion,
|
31
|
+
maybeCopyToTmp: () => import_chunk_LUTZ7RIZ.maybeCopyToTmp,
|
32
32
|
overwriteFile: () => import_chunk_G7EM4XDM.overwriteFile,
|
33
|
-
plusX: () =>
|
34
|
-
vercelPkgPathRegex: () =>
|
33
|
+
plusX: () => import_chunk_LUTZ7RIZ.plusX,
|
34
|
+
vercelPkgPathRegex: () => import_chunk_LUTZ7RIZ.vercelPkgPathRegex
|
35
35
|
});
|
36
|
-
module.exports = __toCommonJS(
|
37
|
-
var
|
36
|
+
module.exports = __toCommonJS(index_exports);
|
37
|
+
var import_chunk_LUTZ7RIZ = require("./chunk-LUTZ7RIZ.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_7NQURTUG = require("./chunk-7NQURTUG.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_AGZFDFHU = require("./chunk-AGZFDFHU.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.3.0-dev.
|
3
|
+
"version": "6.3.0-dev.21",
|
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,7 +15,7 @@
|
|
15
15
|
"bugs": "https://github.com/prisma/prisma/issues",
|
16
16
|
"enginesOverride": {},
|
17
17
|
"devDependencies": {
|
18
|
-
"@swc/core": "1.10.
|
18
|
+
"@swc/core": "1.10.9",
|
19
19
|
"@swc/jest": "0.2.37",
|
20
20
|
"@types/jest": "29.5.14",
|
21
21
|
"@types/node": "18.19.31",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
"fs-extra": "11.1.1",
|
27
27
|
"hasha": "5.2.2",
|
28
28
|
"http-proxy-agent": "7.0.2",
|
29
|
-
"https-proxy-agent": "7.0.
|
29
|
+
"https-proxy-agent": "7.0.6",
|
30
30
|
"jest": "29.7.0",
|
31
31
|
"kleur": "4.1.5",
|
32
32
|
"node-fetch": "3.3.2",
|
@@ -42,9 +42,9 @@
|
|
42
42
|
"typescript": "5.4.5"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@prisma/engines-version": "6.
|
46
|
-
"@prisma/debug": "6.3.0-dev.
|
47
|
-
"@prisma/get-platform": "6.3.0-dev.
|
45
|
+
"@prisma/engines-version": "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
|
46
|
+
"@prisma/debug": "6.3.0-dev.21",
|
47
|
+
"@prisma/get-platform": "6.3.0-dev.21"
|
48
48
|
},
|
49
49
|
"files": [
|
50
50
|
"README.md",
|