@prisma/fetch-engine 6.1.0-dev.3 → 6.1.0-dev.31

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,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_PAN2XU4H_exports = {};
30
- __export(chunk_PAN2XU4H_exports, {
29
+ var chunk_BBQM2DBF_exports = {};
30
+ __export(chunk_BBQM2DBF_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(chunk_PAN2XU4H_exports);
35
+ module.exports = __toCommonJS(chunk_BBQM2DBF_exports);
36
36
  var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
37
37
  var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
38
- var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.js");
38
+ var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
39
39
  var import_chunk_OFSFRIEP = require("./chunk-OFSFRIEP.js");
40
40
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
41
41
  var import_debug = __toESM(require("@prisma/debug"));
@@ -6594,7 +6594,7 @@ var require_del = (0, import_chunk_AH6QHEOA.__commonJS)({
6594
6594
  var globby = require_globby();
6595
6595
  var isGlob = require_is_glob();
6596
6596
  var slash = require_slash();
6597
- var gracefulFs = (0, import_chunk_VVUX3UR2.require_graceful_fs)();
6597
+ var gracefulFs = (0, import_chunk_G7EM4XDM.require_graceful_fs)();
6598
6598
  var isPathCwd = require_is_path_cwd();
6599
6599
  var isPathInside = require_is_path_inside();
6600
6600
  var rimraf2 = (0, import_chunk_ZAFWMCVK.require_rimraf)();
@@ -8094,7 +8094,7 @@ async function downloadZip(url, target, progressCb) {
8094
8094
  onFailedAttempt: (err) => debug("An error occurred while downloading the engine file", err)
8095
8095
  }
8096
8096
  );
8097
- await (0, import_chunk_VVUX3UR2.overwriteFile)(partial, target);
8097
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(partial, target);
8098
8098
  try {
8099
8099
  await del(partial);
8100
8100
  await del(tmpDir);
@@ -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_FOVXMBDU_exports = {};
30
- __export(chunk_FOVXMBDU_exports, {
29
+ var chunk_FKKOTNO6_exports = {};
30
+ __export(chunk_FKKOTNO6_exports, {
31
31
  cleanupCache: () => cleanupCache
32
32
  });
33
- module.exports = __toCommonJS(chunk_FOVXMBDU_exports);
33
+ module.exports = __toCommonJS(chunk_FKKOTNO6_exports);
34
34
  var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
35
- var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.js");
35
+ var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
36
36
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
37
37
  var import_debug = __toESM(require("@prisma/debug"));
38
38
  var import_fs = __toESM(require("fs"));
@@ -44,7 +44,7 @@ var debug = (0, import_debug.default)("cleanupCache");
44
44
  var del = (0, import_util.promisify)(import_rimraf.default);
45
45
  async function cleanupCache(n = 5) {
46
46
  try {
47
- const rootCacheDir = await (0, import_chunk_VVUX3UR2.getRootCacheDir)();
47
+ const rootCacheDir = await (0, import_chunk_G7EM4XDM.getRootCacheDir)();
48
48
  if (!rootCacheDir) {
49
49
  debug("no rootCacheDir found");
50
50
  return;
@@ -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_VVUX3UR2_exports = {};
30
- __export(chunk_VVUX3UR2_exports, {
29
+ var chunk_G7EM4XDM_exports = {};
30
+ __export(chunk_G7EM4XDM_exports, {
31
31
  getCacheDir: () => getCacheDir,
32
32
  getDownloadUrl: () => getDownloadUrl,
33
33
  getRootCacheDir: () => getRootCacheDir,
@@ -35,7 +35,7 @@ __export(chunk_VVUX3UR2_exports, {
35
35
  require_graceful_fs: () => require_graceful_fs,
36
36
  require_lib: () => require_lib
37
37
  });
38
- module.exports = __toCommonJS(chunk_VVUX3UR2_exports);
38
+ module.exports = __toCommonJS(chunk_G7EM4XDM_exports);
39
39
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
40
40
  var import_debug = __toESM(require("@prisma/debug"));
41
41
  var import_get_platform = require("@prisma/get-platform");
@@ -1931,6 +1931,778 @@ var require_ensure = (0, import_chunk_AH6QHEOA.__commonJS)({
1931
1931
  };
1932
1932
  }
1933
1933
  });
1934
+ var require_polyfills2 = (0, import_chunk_AH6QHEOA.__commonJS)({
1935
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
1936
+ "use strict";
1937
+ var constants = (0, import_chunk_AH6QHEOA.__require)("constants");
1938
+ var origCwd = process.cwd;
1939
+ var cwd2 = null;
1940
+ var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
1941
+ process.cwd = function() {
1942
+ if (!cwd2)
1943
+ cwd2 = origCwd.call(process);
1944
+ return cwd2;
1945
+ };
1946
+ try {
1947
+ process.cwd();
1948
+ } catch (er) {
1949
+ }
1950
+ if (typeof process.chdir === "function") {
1951
+ chdir = process.chdir;
1952
+ process.chdir = function(d) {
1953
+ cwd2 = null;
1954
+ chdir.call(process, d);
1955
+ };
1956
+ if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
1957
+ }
1958
+ var chdir;
1959
+ module2.exports = patch;
1960
+ function patch(fs4) {
1961
+ if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
1962
+ patchLchmod(fs4);
1963
+ }
1964
+ if (!fs4.lutimes) {
1965
+ patchLutimes(fs4);
1966
+ }
1967
+ fs4.chown = chownFix(fs4.chown);
1968
+ fs4.fchown = chownFix(fs4.fchown);
1969
+ fs4.lchown = chownFix(fs4.lchown);
1970
+ fs4.chmod = chmodFix(fs4.chmod);
1971
+ fs4.fchmod = chmodFix(fs4.fchmod);
1972
+ fs4.lchmod = chmodFix(fs4.lchmod);
1973
+ fs4.chownSync = chownFixSync(fs4.chownSync);
1974
+ fs4.fchownSync = chownFixSync(fs4.fchownSync);
1975
+ fs4.lchownSync = chownFixSync(fs4.lchownSync);
1976
+ fs4.chmodSync = chmodFixSync(fs4.chmodSync);
1977
+ fs4.fchmodSync = chmodFixSync(fs4.fchmodSync);
1978
+ fs4.lchmodSync = chmodFixSync(fs4.lchmodSync);
1979
+ fs4.stat = statFix(fs4.stat);
1980
+ fs4.fstat = statFix(fs4.fstat);
1981
+ fs4.lstat = statFix(fs4.lstat);
1982
+ fs4.statSync = statFixSync(fs4.statSync);
1983
+ fs4.fstatSync = statFixSync(fs4.fstatSync);
1984
+ fs4.lstatSync = statFixSync(fs4.lstatSync);
1985
+ if (fs4.chmod && !fs4.lchmod) {
1986
+ fs4.lchmod = function(path6, mode, cb) {
1987
+ if (cb) process.nextTick(cb);
1988
+ };
1989
+ fs4.lchmodSync = function() {
1990
+ };
1991
+ }
1992
+ if (fs4.chown && !fs4.lchown) {
1993
+ fs4.lchown = function(path6, uid, gid, cb) {
1994
+ if (cb) process.nextTick(cb);
1995
+ };
1996
+ fs4.lchownSync = function() {
1997
+ };
1998
+ }
1999
+ if (platform === "win32") {
2000
+ fs4.rename = typeof fs4.rename !== "function" ? fs4.rename : function(fs$rename) {
2001
+ function rename(from, to, cb) {
2002
+ var start = Date.now();
2003
+ var backoff = 0;
2004
+ fs$rename(from, to, function CB(er) {
2005
+ if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
2006
+ setTimeout(function() {
2007
+ fs4.stat(to, function(stater, st) {
2008
+ if (stater && stater.code === "ENOENT")
2009
+ fs$rename(from, to, CB);
2010
+ else
2011
+ cb(er);
2012
+ });
2013
+ }, backoff);
2014
+ if (backoff < 100)
2015
+ backoff += 10;
2016
+ return;
2017
+ }
2018
+ if (cb) cb(er);
2019
+ });
2020
+ }
2021
+ if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
2022
+ return rename;
2023
+ }(fs4.rename);
2024
+ }
2025
+ fs4.read = typeof fs4.read !== "function" ? fs4.read : function(fs$read) {
2026
+ function read(fd, buffer, offset, length, position, callback_) {
2027
+ var callback;
2028
+ if (callback_ && typeof callback_ === "function") {
2029
+ var eagCounter = 0;
2030
+ callback = function(er, _, __) {
2031
+ if (er && er.code === "EAGAIN" && eagCounter < 10) {
2032
+ eagCounter++;
2033
+ return fs$read.call(fs4, fd, buffer, offset, length, position, callback);
2034
+ }
2035
+ callback_.apply(this, arguments);
2036
+ };
2037
+ }
2038
+ return fs$read.call(fs4, fd, buffer, offset, length, position, callback);
2039
+ }
2040
+ if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
2041
+ return read;
2042
+ }(fs4.read);
2043
+ fs4.readSync = typeof fs4.readSync !== "function" ? fs4.readSync : /* @__PURE__ */ function(fs$readSync) {
2044
+ return function(fd, buffer, offset, length, position) {
2045
+ var eagCounter = 0;
2046
+ while (true) {
2047
+ try {
2048
+ return fs$readSync.call(fs4, fd, buffer, offset, length, position);
2049
+ } catch (er) {
2050
+ if (er.code === "EAGAIN" && eagCounter < 10) {
2051
+ eagCounter++;
2052
+ continue;
2053
+ }
2054
+ throw er;
2055
+ }
2056
+ }
2057
+ };
2058
+ }(fs4.readSync);
2059
+ function patchLchmod(fs5) {
2060
+ fs5.lchmod = function(path6, mode, callback) {
2061
+ fs5.open(
2062
+ path6,
2063
+ constants.O_WRONLY | constants.O_SYMLINK,
2064
+ mode,
2065
+ function(err, fd) {
2066
+ if (err) {
2067
+ if (callback) callback(err);
2068
+ return;
2069
+ }
2070
+ fs5.fchmod(fd, mode, function(err2) {
2071
+ fs5.close(fd, function(err22) {
2072
+ if (callback) callback(err2 || err22);
2073
+ });
2074
+ });
2075
+ }
2076
+ );
2077
+ };
2078
+ fs5.lchmodSync = function(path6, mode) {
2079
+ var fd = fs5.openSync(path6, constants.O_WRONLY | constants.O_SYMLINK, mode);
2080
+ var threw = true;
2081
+ var ret;
2082
+ try {
2083
+ ret = fs5.fchmodSync(fd, mode);
2084
+ threw = false;
2085
+ } finally {
2086
+ if (threw) {
2087
+ try {
2088
+ fs5.closeSync(fd);
2089
+ } catch (er) {
2090
+ }
2091
+ } else {
2092
+ fs5.closeSync(fd);
2093
+ }
2094
+ }
2095
+ return ret;
2096
+ };
2097
+ }
2098
+ function patchLutimes(fs5) {
2099
+ if (constants.hasOwnProperty("O_SYMLINK") && fs5.futimes) {
2100
+ fs5.lutimes = function(path6, at, mt, cb) {
2101
+ fs5.open(path6, constants.O_SYMLINK, function(er, fd) {
2102
+ if (er) {
2103
+ if (cb) cb(er);
2104
+ return;
2105
+ }
2106
+ fs5.futimes(fd, at, mt, function(er2) {
2107
+ fs5.close(fd, function(er22) {
2108
+ if (cb) cb(er2 || er22);
2109
+ });
2110
+ });
2111
+ });
2112
+ };
2113
+ fs5.lutimesSync = function(path6, at, mt) {
2114
+ var fd = fs5.openSync(path6, constants.O_SYMLINK);
2115
+ var ret;
2116
+ var threw = true;
2117
+ try {
2118
+ ret = fs5.futimesSync(fd, at, mt);
2119
+ threw = false;
2120
+ } finally {
2121
+ if (threw) {
2122
+ try {
2123
+ fs5.closeSync(fd);
2124
+ } catch (er) {
2125
+ }
2126
+ } else {
2127
+ fs5.closeSync(fd);
2128
+ }
2129
+ }
2130
+ return ret;
2131
+ };
2132
+ } else if (fs5.futimes) {
2133
+ fs5.lutimes = function(_a, _b, _c, cb) {
2134
+ if (cb) process.nextTick(cb);
2135
+ };
2136
+ fs5.lutimesSync = function() {
2137
+ };
2138
+ }
2139
+ }
2140
+ function chmodFix(orig) {
2141
+ if (!orig) return orig;
2142
+ return function(target, mode, cb) {
2143
+ return orig.call(fs4, target, mode, function(er) {
2144
+ if (chownErOk(er)) er = null;
2145
+ if (cb) cb.apply(this, arguments);
2146
+ });
2147
+ };
2148
+ }
2149
+ function chmodFixSync(orig) {
2150
+ if (!orig) return orig;
2151
+ return function(target, mode) {
2152
+ try {
2153
+ return orig.call(fs4, target, mode);
2154
+ } catch (er) {
2155
+ if (!chownErOk(er)) throw er;
2156
+ }
2157
+ };
2158
+ }
2159
+ function chownFix(orig) {
2160
+ if (!orig) return orig;
2161
+ return function(target, uid, gid, cb) {
2162
+ return orig.call(fs4, target, uid, gid, function(er) {
2163
+ if (chownErOk(er)) er = null;
2164
+ if (cb) cb.apply(this, arguments);
2165
+ });
2166
+ };
2167
+ }
2168
+ function chownFixSync(orig) {
2169
+ if (!orig) return orig;
2170
+ return function(target, uid, gid) {
2171
+ try {
2172
+ return orig.call(fs4, target, uid, gid);
2173
+ } catch (er) {
2174
+ if (!chownErOk(er)) throw er;
2175
+ }
2176
+ };
2177
+ }
2178
+ function statFix(orig) {
2179
+ if (!orig) return orig;
2180
+ return function(target, options, cb) {
2181
+ if (typeof options === "function") {
2182
+ cb = options;
2183
+ options = null;
2184
+ }
2185
+ function callback(er, stats) {
2186
+ if (stats) {
2187
+ if (stats.uid < 0) stats.uid += 4294967296;
2188
+ if (stats.gid < 0) stats.gid += 4294967296;
2189
+ }
2190
+ if (cb) cb.apply(this, arguments);
2191
+ }
2192
+ return options ? orig.call(fs4, target, options, callback) : orig.call(fs4, target, callback);
2193
+ };
2194
+ }
2195
+ function statFixSync(orig) {
2196
+ if (!orig) return orig;
2197
+ return function(target, options) {
2198
+ var stats = options ? orig.call(fs4, target, options) : orig.call(fs4, target);
2199
+ if (stats) {
2200
+ if (stats.uid < 0) stats.uid += 4294967296;
2201
+ if (stats.gid < 0) stats.gid += 4294967296;
2202
+ }
2203
+ return stats;
2204
+ };
2205
+ }
2206
+ function chownErOk(er) {
2207
+ if (!er)
2208
+ return true;
2209
+ if (er.code === "ENOSYS")
2210
+ return true;
2211
+ var nonroot = !process.getuid || process.getuid() !== 0;
2212
+ if (nonroot) {
2213
+ if (er.code === "EINVAL" || er.code === "EPERM")
2214
+ return true;
2215
+ }
2216
+ return false;
2217
+ }
2218
+ }
2219
+ }
2220
+ });
2221
+ var require_legacy_streams2 = (0, import_chunk_AH6QHEOA.__commonJS)({
2222
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
2223
+ "use strict";
2224
+ var Stream = (0, import_chunk_AH6QHEOA.__require)("stream").Stream;
2225
+ module2.exports = legacy;
2226
+ function legacy(fs4) {
2227
+ return {
2228
+ ReadStream,
2229
+ WriteStream
2230
+ };
2231
+ function ReadStream(path6, options) {
2232
+ if (!(this instanceof ReadStream)) return new ReadStream(path6, options);
2233
+ Stream.call(this);
2234
+ var self = this;
2235
+ this.path = path6;
2236
+ this.fd = null;
2237
+ this.readable = true;
2238
+ this.paused = false;
2239
+ this.flags = "r";
2240
+ this.mode = 438;
2241
+ this.bufferSize = 64 * 1024;
2242
+ options = options || {};
2243
+ var keys = Object.keys(options);
2244
+ for (var index = 0, length = keys.length; index < length; index++) {
2245
+ var key = keys[index];
2246
+ this[key] = options[key];
2247
+ }
2248
+ if (this.encoding) this.setEncoding(this.encoding);
2249
+ if (this.start !== void 0) {
2250
+ if ("number" !== typeof this.start) {
2251
+ throw TypeError("start must be a Number");
2252
+ }
2253
+ if (this.end === void 0) {
2254
+ this.end = Infinity;
2255
+ } else if ("number" !== typeof this.end) {
2256
+ throw TypeError("end must be a Number");
2257
+ }
2258
+ if (this.start > this.end) {
2259
+ throw new Error("start must be <= end");
2260
+ }
2261
+ this.pos = this.start;
2262
+ }
2263
+ if (this.fd !== null) {
2264
+ process.nextTick(function() {
2265
+ self._read();
2266
+ });
2267
+ return;
2268
+ }
2269
+ fs4.open(this.path, this.flags, this.mode, function(err, fd) {
2270
+ if (err) {
2271
+ self.emit("error", err);
2272
+ self.readable = false;
2273
+ return;
2274
+ }
2275
+ self.fd = fd;
2276
+ self.emit("open", fd);
2277
+ self._read();
2278
+ });
2279
+ }
2280
+ function WriteStream(path6, options) {
2281
+ if (!(this instanceof WriteStream)) return new WriteStream(path6, options);
2282
+ Stream.call(this);
2283
+ this.path = path6;
2284
+ this.fd = null;
2285
+ this.writable = true;
2286
+ this.flags = "w";
2287
+ this.encoding = "binary";
2288
+ this.mode = 438;
2289
+ this.bytesWritten = 0;
2290
+ options = options || {};
2291
+ var keys = Object.keys(options);
2292
+ for (var index = 0, length = keys.length; index < length; index++) {
2293
+ var key = keys[index];
2294
+ this[key] = options[key];
2295
+ }
2296
+ if (this.start !== void 0) {
2297
+ if ("number" !== typeof this.start) {
2298
+ throw TypeError("start must be a Number");
2299
+ }
2300
+ if (this.start < 0) {
2301
+ throw new Error("start must be >= zero");
2302
+ }
2303
+ this.pos = this.start;
2304
+ }
2305
+ this.busy = false;
2306
+ this._queue = [];
2307
+ if (this.fd === null) {
2308
+ this._open = fs4.open;
2309
+ this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
2310
+ this.flush();
2311
+ }
2312
+ }
2313
+ }
2314
+ }
2315
+ });
2316
+ var require_clone2 = (0, import_chunk_AH6QHEOA.__commonJS)({
2317
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
2318
+ "use strict";
2319
+ module2.exports = clone;
2320
+ var getPrototypeOf = Object.getPrototypeOf || function(obj) {
2321
+ return obj.__proto__;
2322
+ };
2323
+ function clone(obj) {
2324
+ if (obj === null || typeof obj !== "object")
2325
+ return obj;
2326
+ if (obj instanceof Object)
2327
+ var copy = { __proto__: getPrototypeOf(obj) };
2328
+ else
2329
+ var copy = /* @__PURE__ */ Object.create(null);
2330
+ Object.getOwnPropertyNames(obj).forEach(function(key) {
2331
+ Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
2332
+ });
2333
+ return copy;
2334
+ }
2335
+ }
2336
+ });
2337
+ var require_graceful_fs2 = (0, import_chunk_AH6QHEOA.__commonJS)({
2338
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
2339
+ "use strict";
2340
+ var fs4 = (0, import_chunk_AH6QHEOA.__require)("fs");
2341
+ var polyfills = require_polyfills2();
2342
+ var legacy = require_legacy_streams2();
2343
+ var clone = require_clone2();
2344
+ var util = (0, import_chunk_AH6QHEOA.__require)("util");
2345
+ var gracefulQueue;
2346
+ var previousSymbol;
2347
+ if (typeof Symbol === "function" && typeof Symbol.for === "function") {
2348
+ gracefulQueue = Symbol.for("graceful-fs.queue");
2349
+ previousSymbol = Symbol.for("graceful-fs.previous");
2350
+ } else {
2351
+ gracefulQueue = "___graceful-fs.queue";
2352
+ previousSymbol = "___graceful-fs.previous";
2353
+ }
2354
+ function noop() {
2355
+ }
2356
+ function publishQueue(context, queue2) {
2357
+ Object.defineProperty(context, gracefulQueue, {
2358
+ get: function() {
2359
+ return queue2;
2360
+ }
2361
+ });
2362
+ }
2363
+ var debug2 = noop;
2364
+ if (util.debuglog)
2365
+ debug2 = util.debuglog("gfs4");
2366
+ else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
2367
+ debug2 = function() {
2368
+ var m = util.format.apply(util, arguments);
2369
+ m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
2370
+ console.error(m);
2371
+ };
2372
+ if (!fs4[gracefulQueue]) {
2373
+ queue = global[gracefulQueue] || [];
2374
+ publishQueue(fs4, queue);
2375
+ fs4.close = function(fs$close) {
2376
+ function close(fd, cb) {
2377
+ return fs$close.call(fs4, fd, function(err) {
2378
+ if (!err) {
2379
+ resetQueue();
2380
+ }
2381
+ if (typeof cb === "function")
2382
+ cb.apply(this, arguments);
2383
+ });
2384
+ }
2385
+ Object.defineProperty(close, previousSymbol, {
2386
+ value: fs$close
2387
+ });
2388
+ return close;
2389
+ }(fs4.close);
2390
+ fs4.closeSync = function(fs$closeSync) {
2391
+ function closeSync(fd) {
2392
+ fs$closeSync.apply(fs4, arguments);
2393
+ resetQueue();
2394
+ }
2395
+ Object.defineProperty(closeSync, previousSymbol, {
2396
+ value: fs$closeSync
2397
+ });
2398
+ return closeSync;
2399
+ }(fs4.closeSync);
2400
+ if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
2401
+ process.on("exit", function() {
2402
+ debug2(fs4[gracefulQueue]);
2403
+ (0, import_chunk_AH6QHEOA.__require)("assert").equal(fs4[gracefulQueue].length, 0);
2404
+ });
2405
+ }
2406
+ }
2407
+ var queue;
2408
+ if (!global[gracefulQueue]) {
2409
+ publishQueue(global, fs4[gracefulQueue]);
2410
+ }
2411
+ module2.exports = patch(clone(fs4));
2412
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs4.__patched) {
2413
+ module2.exports = patch(fs4);
2414
+ fs4.__patched = true;
2415
+ }
2416
+ function patch(fs5) {
2417
+ polyfills(fs5);
2418
+ fs5.gracefulify = patch;
2419
+ fs5.createReadStream = createReadStream;
2420
+ fs5.createWriteStream = createWriteStream;
2421
+ var fs$readFile = fs5.readFile;
2422
+ fs5.readFile = readFile;
2423
+ function readFile(path6, options, cb) {
2424
+ if (typeof options === "function")
2425
+ cb = options, options = null;
2426
+ return go$readFile(path6, options, cb);
2427
+ function go$readFile(path7, options2, cb2, startTime) {
2428
+ return fs$readFile(path7, options2, function(err) {
2429
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
2430
+ enqueue([go$readFile, [path7, options2, cb2], err, startTime || Date.now(), Date.now()]);
2431
+ else {
2432
+ if (typeof cb2 === "function")
2433
+ cb2.apply(this, arguments);
2434
+ }
2435
+ });
2436
+ }
2437
+ }
2438
+ var fs$writeFile = fs5.writeFile;
2439
+ fs5.writeFile = writeFile;
2440
+ function writeFile(path6, data, options, cb) {
2441
+ if (typeof options === "function")
2442
+ cb = options, options = null;
2443
+ return go$writeFile(path6, data, options, cb);
2444
+ function go$writeFile(path7, data2, options2, cb2, startTime) {
2445
+ return fs$writeFile(path7, data2, options2, function(err) {
2446
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
2447
+ enqueue([go$writeFile, [path7, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
2448
+ else {
2449
+ if (typeof cb2 === "function")
2450
+ cb2.apply(this, arguments);
2451
+ }
2452
+ });
2453
+ }
2454
+ }
2455
+ var fs$appendFile = fs5.appendFile;
2456
+ if (fs$appendFile)
2457
+ fs5.appendFile = appendFile;
2458
+ function appendFile(path6, data, options, cb) {
2459
+ if (typeof options === "function")
2460
+ cb = options, options = null;
2461
+ return go$appendFile(path6, data, options, cb);
2462
+ function go$appendFile(path7, data2, options2, cb2, startTime) {
2463
+ return fs$appendFile(path7, data2, options2, function(err) {
2464
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
2465
+ enqueue([go$appendFile, [path7, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
2466
+ else {
2467
+ if (typeof cb2 === "function")
2468
+ cb2.apply(this, arguments);
2469
+ }
2470
+ });
2471
+ }
2472
+ }
2473
+ var fs$copyFile = fs5.copyFile;
2474
+ if (fs$copyFile)
2475
+ fs5.copyFile = copyFile;
2476
+ function copyFile(src, dest, flags, cb) {
2477
+ if (typeof flags === "function") {
2478
+ cb = flags;
2479
+ flags = 0;
2480
+ }
2481
+ return go$copyFile(src, dest, flags, cb);
2482
+ function go$copyFile(src2, dest2, flags2, cb2, startTime) {
2483
+ return fs$copyFile(src2, dest2, flags2, function(err) {
2484
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
2485
+ enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
2486
+ else {
2487
+ if (typeof cb2 === "function")
2488
+ cb2.apply(this, arguments);
2489
+ }
2490
+ });
2491
+ }
2492
+ }
2493
+ var fs$readdir = fs5.readdir;
2494
+ fs5.readdir = readdir;
2495
+ var noReaddirOptionVersions = /^v[0-5]\./;
2496
+ function readdir(path6, options, cb) {
2497
+ if (typeof options === "function")
2498
+ cb = options, options = null;
2499
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path7, options2, cb2, startTime) {
2500
+ return fs$readdir(path7, fs$readdirCallback(
2501
+ path7,
2502
+ options2,
2503
+ cb2,
2504
+ startTime
2505
+ ));
2506
+ } : function go$readdir2(path7, options2, cb2, startTime) {
2507
+ return fs$readdir(path7, options2, fs$readdirCallback(
2508
+ path7,
2509
+ options2,
2510
+ cb2,
2511
+ startTime
2512
+ ));
2513
+ };
2514
+ return go$readdir(path6, options, cb);
2515
+ function fs$readdirCallback(path7, options2, cb2, startTime) {
2516
+ return function(err, files) {
2517
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
2518
+ enqueue([
2519
+ go$readdir,
2520
+ [path7, options2, cb2],
2521
+ err,
2522
+ startTime || Date.now(),
2523
+ Date.now()
2524
+ ]);
2525
+ else {
2526
+ if (files && files.sort)
2527
+ files.sort();
2528
+ if (typeof cb2 === "function")
2529
+ cb2.call(this, err, files);
2530
+ }
2531
+ };
2532
+ }
2533
+ }
2534
+ if (process.version.substr(0, 4) === "v0.8") {
2535
+ var legStreams = legacy(fs5);
2536
+ ReadStream = legStreams.ReadStream;
2537
+ WriteStream = legStreams.WriteStream;
2538
+ }
2539
+ var fs$ReadStream = fs5.ReadStream;
2540
+ if (fs$ReadStream) {
2541
+ ReadStream.prototype = Object.create(fs$ReadStream.prototype);
2542
+ ReadStream.prototype.open = ReadStream$open;
2543
+ }
2544
+ var fs$WriteStream = fs5.WriteStream;
2545
+ if (fs$WriteStream) {
2546
+ WriteStream.prototype = Object.create(fs$WriteStream.prototype);
2547
+ WriteStream.prototype.open = WriteStream$open;
2548
+ }
2549
+ Object.defineProperty(fs5, "ReadStream", {
2550
+ get: function() {
2551
+ return ReadStream;
2552
+ },
2553
+ set: function(val) {
2554
+ ReadStream = val;
2555
+ },
2556
+ enumerable: true,
2557
+ configurable: true
2558
+ });
2559
+ Object.defineProperty(fs5, "WriteStream", {
2560
+ get: function() {
2561
+ return WriteStream;
2562
+ },
2563
+ set: function(val) {
2564
+ WriteStream = val;
2565
+ },
2566
+ enumerable: true,
2567
+ configurable: true
2568
+ });
2569
+ var FileReadStream = ReadStream;
2570
+ Object.defineProperty(fs5, "FileReadStream", {
2571
+ get: function() {
2572
+ return FileReadStream;
2573
+ },
2574
+ set: function(val) {
2575
+ FileReadStream = val;
2576
+ },
2577
+ enumerable: true,
2578
+ configurable: true
2579
+ });
2580
+ var FileWriteStream = WriteStream;
2581
+ Object.defineProperty(fs5, "FileWriteStream", {
2582
+ get: function() {
2583
+ return FileWriteStream;
2584
+ },
2585
+ set: function(val) {
2586
+ FileWriteStream = val;
2587
+ },
2588
+ enumerable: true,
2589
+ configurable: true
2590
+ });
2591
+ function ReadStream(path6, options) {
2592
+ if (this instanceof ReadStream)
2593
+ return fs$ReadStream.apply(this, arguments), this;
2594
+ else
2595
+ return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
2596
+ }
2597
+ function ReadStream$open() {
2598
+ var that = this;
2599
+ open(that.path, that.flags, that.mode, function(err, fd) {
2600
+ if (err) {
2601
+ if (that.autoClose)
2602
+ that.destroy();
2603
+ that.emit("error", err);
2604
+ } else {
2605
+ that.fd = fd;
2606
+ that.emit("open", fd);
2607
+ that.read();
2608
+ }
2609
+ });
2610
+ }
2611
+ function WriteStream(path6, options) {
2612
+ if (this instanceof WriteStream)
2613
+ return fs$WriteStream.apply(this, arguments), this;
2614
+ else
2615
+ return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
2616
+ }
2617
+ function WriteStream$open() {
2618
+ var that = this;
2619
+ open(that.path, that.flags, that.mode, function(err, fd) {
2620
+ if (err) {
2621
+ that.destroy();
2622
+ that.emit("error", err);
2623
+ } else {
2624
+ that.fd = fd;
2625
+ that.emit("open", fd);
2626
+ }
2627
+ });
2628
+ }
2629
+ function createReadStream(path6, options) {
2630
+ return new fs5.ReadStream(path6, options);
2631
+ }
2632
+ function createWriteStream(path6, options) {
2633
+ return new fs5.WriteStream(path6, options);
2634
+ }
2635
+ var fs$open = fs5.open;
2636
+ fs5.open = open;
2637
+ function open(path6, flags, mode, cb) {
2638
+ if (typeof mode === "function")
2639
+ cb = mode, mode = null;
2640
+ return go$open(path6, flags, mode, cb);
2641
+ function go$open(path7, flags2, mode2, cb2, startTime) {
2642
+ return fs$open(path7, flags2, mode2, function(err, fd) {
2643
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
2644
+ enqueue([go$open, [path7, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
2645
+ else {
2646
+ if (typeof cb2 === "function")
2647
+ cb2.apply(this, arguments);
2648
+ }
2649
+ });
2650
+ }
2651
+ }
2652
+ return fs5;
2653
+ }
2654
+ function enqueue(elem) {
2655
+ debug2("ENQUEUE", elem[0].name, elem[1]);
2656
+ fs4[gracefulQueue].push(elem);
2657
+ retry();
2658
+ }
2659
+ var retryTimer;
2660
+ function resetQueue() {
2661
+ var now = Date.now();
2662
+ for (var i = 0; i < fs4[gracefulQueue].length; ++i) {
2663
+ if (fs4[gracefulQueue][i].length > 2) {
2664
+ fs4[gracefulQueue][i][3] = now;
2665
+ fs4[gracefulQueue][i][4] = now;
2666
+ }
2667
+ }
2668
+ retry();
2669
+ }
2670
+ function retry() {
2671
+ clearTimeout(retryTimer);
2672
+ retryTimer = void 0;
2673
+ if (fs4[gracefulQueue].length === 0)
2674
+ return;
2675
+ var elem = fs4[gracefulQueue].shift();
2676
+ var fn = elem[0];
2677
+ var args = elem[1];
2678
+ var err = elem[2];
2679
+ var startTime = elem[3];
2680
+ var lastTime = elem[4];
2681
+ if (startTime === void 0) {
2682
+ debug2("RETRY", fn.name, args);
2683
+ fn.apply(null, args);
2684
+ } else if (Date.now() - startTime >= 6e4) {
2685
+ debug2("TIMEOUT", fn.name, args);
2686
+ var cb = args.pop();
2687
+ if (typeof cb === "function")
2688
+ cb.call(null, err);
2689
+ } else {
2690
+ var sinceAttempt = Date.now() - lastTime;
2691
+ var sinceStart = Math.max(lastTime - startTime, 1);
2692
+ var desiredDelay = Math.min(sinceStart * 1.2, 100);
2693
+ if (sinceAttempt >= desiredDelay) {
2694
+ debug2("RETRY", fn.name, args);
2695
+ fn.apply(null, args.concat([startTime]));
2696
+ } else {
2697
+ fs4[gracefulQueue].push(elem);
2698
+ }
2699
+ }
2700
+ if (retryTimer === void 0) {
2701
+ retryTimer = setTimeout(retry, 0);
2702
+ }
2703
+ }
2704
+ }
2705
+ });
1934
2706
  var require_utils2 = (0, import_chunk_AH6QHEOA.__commonJS)({
1935
2707
  "../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
1936
2708
  "use strict";
@@ -1951,7 +2723,7 @@ var require_jsonfile = (0, import_chunk_AH6QHEOA.__commonJS)({
1951
2723
  "use strict";
1952
2724
  var _fs;
1953
2725
  try {
1954
- _fs = require_graceful_fs();
2726
+ _fs = require_graceful_fs2();
1955
2727
  } catch (_) {
1956
2728
  _fs = (0, import_chunk_AH6QHEOA.__require)("fs");
1957
2729
  }
@@ -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 chunk_JMUYHE63_exports = {};
30
- __export(chunk_JMUYHE63_exports, {
29
+ var chunk_HYEEXHYX_exports = {};
30
+ __export(chunk_HYEEXHYX_exports, {
31
31
  download: () => download,
32
32
  getBinaryName: () => getBinaryName,
33
33
  getVersion: () => getVersion,
@@ -35,12 +35,12 @@ __export(chunk_JMUYHE63_exports, {
35
35
  plusX: () => plusX,
36
36
  vercelPkgPathRegex: () => vercelPkgPathRegex
37
37
  });
38
- module.exports = __toCommonJS(chunk_JMUYHE63_exports);
38
+ module.exports = __toCommonJS(chunk_HYEEXHYX_exports);
39
39
  var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
40
40
  var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
41
- var import_chunk_FOVXMBDU = require("./chunk-FOVXMBDU.js");
42
- var import_chunk_PAN2XU4H = require("./chunk-PAN2XU4H.js");
43
- var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.js");
41
+ var import_chunk_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
42
+ var import_chunk_BBQM2DBF = require("./chunk-BBQM2DBF.js");
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");
46
46
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.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, import_chunk_PAN2XU4H.require_is_stream)();
1555
+ var isStream = (0, import_chunk_BBQM2DBF.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.6.13",
2028
+ "@swc/core": "1.10.1",
2029
2029
  "@swc/jest": "0.2.37",
2030
2030
  "@types/jest": "29.5.14",
2031
2031
  "@types/node": "18.19.31",
@@ -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.1.0-3.025d69d4aa1362e128e0bcc53b5147a416dfebad",
2056
+ "@prisma/engines-version": "6.1.0-16.40232c93c80a22f3a8bae784b0386319a57a5aa0",
2057
2057
  "@prisma/get-platform": "workspace:*"
2058
2058
  },
2059
2059
  scripts: {
@@ -2071,9 +2071,9 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
2071
2071
  }
2072
2072
  });
2073
2073
  var import_execa = (0, import_chunk_AH6QHEOA.__toESM)(require_execa());
2074
- var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_VVUX3UR2.require_lib)());
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, import_chunk_PAN2XU4H.require_temp_dir)());
2076
+ var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_BBQM2DBF.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);
@@ -2140,7 +2140,7 @@ async function download(options) {
2140
2140
  return shouldDownload;
2141
2141
  });
2142
2142
  if (binariesToDownload.length > 0) {
2143
- const cleanupPromise = (0, import_chunk_FOVXMBDU.cleanupCache)();
2143
+ const cleanupPromise = (0, import_chunk_FKKOTNO6.cleanupCache)();
2144
2144
  let finishBar;
2145
2145
  let setProgress;
2146
2146
  if (opts.showProgress) {
@@ -2149,7 +2149,7 @@ async function download(options) {
2149
2149
  setProgress = collectiveBar.setProgress;
2150
2150
  }
2151
2151
  const promises = binariesToDownload.map((job) => {
2152
- const downloadUrl = (0, import_chunk_VVUX3UR2.getDownloadUrl)({
2152
+ const downloadUrl = (0, import_chunk_G7EM4XDM.getDownloadUrl)({
2153
2153
  channel: "all_commits",
2154
2154
  version: opts.version,
2155
2155
  binaryTarget: job.binaryTarget,
@@ -2231,7 +2231,7 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2231
2231
  });
2232
2232
  if (cachedFile) {
2233
2233
  if (job.skipCacheIntegrityCheck === true) {
2234
- await (0, import_chunk_VVUX3UR2.overwriteFile)(cachedFile, job.targetFilePath);
2234
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2235
2235
  return false;
2236
2236
  }
2237
2237
  const sha256FilePath = cachedFile + ".sha256";
@@ -2242,12 +2242,12 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2242
2242
  if (!targetExists) {
2243
2243
  debug(`copying ${cachedFile} to ${job.targetFilePath}`);
2244
2244
  await import_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
2245
- await (0, import_chunk_VVUX3UR2.overwriteFile)(cachedFile, job.targetFilePath);
2245
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2246
2246
  }
2247
2247
  const targetSha256 = await (0, import_chunk_CWGQAQ3T.getHash)(job.targetFilePath);
2248
2248
  if (sha256File !== targetSha256) {
2249
2249
  debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`);
2250
- await (0, import_chunk_VVUX3UR2.overwriteFile)(cachedFile, job.targetFilePath);
2250
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2251
2251
  }
2252
2252
  return false;
2253
2253
  } else {
@@ -2301,7 +2301,7 @@ async function getCachedBinaryPath({
2301
2301
  binaryTarget: binaryTarget2,
2302
2302
  binaryName
2303
2303
  }) {
2304
- const cacheDir = await (0, import_chunk_VVUX3UR2.getCacheDir)(channel, version, binaryTarget2);
2304
+ const cacheDir = await (0, import_chunk_G7EM4XDM.getCacheDir)(channel, version, binaryTarget2);
2305
2305
  if (!cacheDir) {
2306
2306
  return null;
2307
2307
  }
@@ -2334,7 +2334,7 @@ async function downloadBinary(options2) {
2334
2334
  if (progressCb) {
2335
2335
  progressCb(0);
2336
2336
  }
2337
- const { sha256, zippedSha256 } = await (0, import_chunk_PAN2XU4H.downloadZip)(downloadUrl, targetFilePath, progressCb);
2337
+ const { sha256, zippedSha256 } = await (0, import_chunk_BBQM2DBF.downloadZip)(downloadUrl, targetFilePath, progressCb);
2338
2338
  if (progressCb) {
2339
2339
  progressCb(1);
2340
2340
  }
@@ -2342,7 +2342,7 @@ async function downloadBinary(options2) {
2342
2342
  await saveFileToCache(options2, version, sha256, zippedSha256);
2343
2343
  }
2344
2344
  async function saveFileToCache(job, version, sha256, zippedSha256) {
2345
- const cacheDir = await (0, import_chunk_VVUX3UR2.getCacheDir)(channel, version, job.binaryTarget);
2345
+ const cacheDir = await (0, import_chunk_G7EM4XDM.getCacheDir)(channel, version, job.binaryTarget);
2346
2346
  if (!cacheDir) {
2347
2347
  return;
2348
2348
  }
@@ -2350,7 +2350,7 @@ async function saveFileToCache(job, version, sha256, zippedSha256) {
2350
2350
  const cachedSha256Path = import_path.default.join(cacheDir, job.binaryName + ".sha256");
2351
2351
  const cachedSha256ZippedPath = import_path.default.join(cacheDir, job.binaryName + ".gz.sha256");
2352
2352
  try {
2353
- await (0, import_chunk_VVUX3UR2.overwriteFile)(job.targetFilePath, cachedTargetPath);
2353
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(job.targetFilePath, cachedTargetPath);
2354
2354
  if (sha256 != null) {
2355
2355
  await import_fs.default.promises.writeFile(cachedSha256Path, sha256);
2356
2356
  }
@@ -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 chunk_Y72L5ICW_exports = {};
30
- __export(chunk_Y72L5ICW_exports, {
29
+ var chunk_RJIZSLS3_exports = {};
30
+ __export(chunk_RJIZSLS3_exports, {
31
31
  download: () => download,
32
32
  getBinaryName: () => getBinaryName,
33
33
  getVersion: () => getVersion,
@@ -35,12 +35,12 @@ __export(chunk_Y72L5ICW_exports, {
35
35
  plusX: () => plusX,
36
36
  vercelPkgPathRegex: () => vercelPkgPathRegex
37
37
  });
38
- module.exports = __toCommonJS(chunk_Y72L5ICW_exports);
38
+ module.exports = __toCommonJS(chunk_RJIZSLS3_exports);
39
39
  var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
40
40
  var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
41
- var import_chunk_FOVXMBDU = require("./chunk-FOVXMBDU.js");
42
- var import_chunk_PAN2XU4H = require("./chunk-PAN2XU4H.js");
43
- var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.js");
41
+ var import_chunk_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
42
+ var import_chunk_BBQM2DBF = require("./chunk-BBQM2DBF.js");
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");
46
46
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.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, import_chunk_PAN2XU4H.require_is_stream)();
1555
+ var isStream = (0, import_chunk_BBQM2DBF.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.1.0-dev.3",
2013
+ version: "6.1.0-dev.31",
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.6.13",
2028
+ "@swc/core": "1.10.1",
2029
2029
  "@swc/jest": "0.2.37",
2030
2030
  "@types/jest": "29.5.14",
2031
2031
  "@types/node": "18.19.31",
@@ -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.1.0-3.025d69d4aa1362e128e0bcc53b5147a416dfebad",
2056
+ "@prisma/engines-version": "6.1.0-16.40232c93c80a22f3a8bae784b0386319a57a5aa0",
2057
2057
  "@prisma/get-platform": "workspace:*"
2058
2058
  },
2059
2059
  scripts: {
@@ -2071,9 +2071,9 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
2071
2071
  }
2072
2072
  });
2073
2073
  var import_execa = (0, import_chunk_AH6QHEOA.__toESM)(require_execa());
2074
- var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_VVUX3UR2.require_lib)());
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, import_chunk_PAN2XU4H.require_temp_dir)());
2076
+ var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_BBQM2DBF.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);
@@ -2140,7 +2140,7 @@ async function download(options) {
2140
2140
  return shouldDownload;
2141
2141
  });
2142
2142
  if (binariesToDownload.length > 0) {
2143
- const cleanupPromise = (0, import_chunk_FOVXMBDU.cleanupCache)();
2143
+ const cleanupPromise = (0, import_chunk_FKKOTNO6.cleanupCache)();
2144
2144
  let finishBar;
2145
2145
  let setProgress;
2146
2146
  if (opts.showProgress) {
@@ -2149,7 +2149,7 @@ async function download(options) {
2149
2149
  setProgress = collectiveBar.setProgress;
2150
2150
  }
2151
2151
  const promises = binariesToDownload.map((job) => {
2152
- const downloadUrl = (0, import_chunk_VVUX3UR2.getDownloadUrl)({
2152
+ const downloadUrl = (0, import_chunk_G7EM4XDM.getDownloadUrl)({
2153
2153
  channel: "all_commits",
2154
2154
  version: opts.version,
2155
2155
  binaryTarget: job.binaryTarget,
@@ -2231,7 +2231,7 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2231
2231
  });
2232
2232
  if (cachedFile) {
2233
2233
  if (job.skipCacheIntegrityCheck === true) {
2234
- await (0, import_chunk_VVUX3UR2.overwriteFile)(cachedFile, job.targetFilePath);
2234
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2235
2235
  return false;
2236
2236
  }
2237
2237
  const sha256FilePath = cachedFile + ".sha256";
@@ -2242,12 +2242,12 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2242
2242
  if (!targetExists) {
2243
2243
  debug(`copying ${cachedFile} to ${job.targetFilePath}`);
2244
2244
  await import_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
2245
- await (0, import_chunk_VVUX3UR2.overwriteFile)(cachedFile, job.targetFilePath);
2245
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2246
2246
  }
2247
2247
  const targetSha256 = await (0, import_chunk_CWGQAQ3T.getHash)(job.targetFilePath);
2248
2248
  if (sha256File !== targetSha256) {
2249
2249
  debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`);
2250
- await (0, import_chunk_VVUX3UR2.overwriteFile)(cachedFile, job.targetFilePath);
2250
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2251
2251
  }
2252
2252
  return false;
2253
2253
  } else {
@@ -2301,7 +2301,7 @@ async function getCachedBinaryPath({
2301
2301
  binaryTarget: binaryTarget2,
2302
2302
  binaryName
2303
2303
  }) {
2304
- const cacheDir = await (0, import_chunk_VVUX3UR2.getCacheDir)(channel, version, binaryTarget2);
2304
+ const cacheDir = await (0, import_chunk_G7EM4XDM.getCacheDir)(channel, version, binaryTarget2);
2305
2305
  if (!cacheDir) {
2306
2306
  return null;
2307
2307
  }
@@ -2334,7 +2334,7 @@ async function downloadBinary(options2) {
2334
2334
  if (progressCb) {
2335
2335
  progressCb(0);
2336
2336
  }
2337
- const { sha256, zippedSha256 } = await (0, import_chunk_PAN2XU4H.downloadZip)(downloadUrl, targetFilePath, progressCb);
2337
+ const { sha256, zippedSha256 } = await (0, import_chunk_BBQM2DBF.downloadZip)(downloadUrl, targetFilePath, progressCb);
2338
2338
  if (progressCb) {
2339
2339
  progressCb(1);
2340
2340
  }
@@ -2342,7 +2342,7 @@ async function downloadBinary(options2) {
2342
2342
  await saveFileToCache(options2, version, sha256, zippedSha256);
2343
2343
  }
2344
2344
  async function saveFileToCache(job, version, sha256, zippedSha256) {
2345
- const cacheDir = await (0, import_chunk_VVUX3UR2.getCacheDir)(channel, version, job.binaryTarget);
2345
+ const cacheDir = await (0, import_chunk_G7EM4XDM.getCacheDir)(channel, version, job.binaryTarget);
2346
2346
  if (!cacheDir) {
2347
2347
  return;
2348
2348
  }
@@ -2350,7 +2350,7 @@ async function saveFileToCache(job, version, sha256, zippedSha256) {
2350
2350
  const cachedSha256Path = import_path.default.join(cacheDir, job.binaryName + ".sha256");
2351
2351
  const cachedSha256ZippedPath = import_path.default.join(cacheDir, job.binaryName + ".gz.sha256");
2352
2352
  try {
2353
- await (0, import_chunk_VVUX3UR2.overwriteFile)(job.targetFilePath, cachedTargetPath);
2353
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(job.targetFilePath, cachedTargetPath);
2354
2354
  if (sha256 != null) {
2355
2355
  await import_fs.default.promises.writeFile(cachedSha256Path, sha256);
2356
2356
  }
@@ -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_FOVXMBDU.cleanupCache
21
+ cleanupCache: () => import_chunk_FKKOTNO6.cleanupCache
22
22
  });
23
23
  module.exports = __toCommonJS(cleanupCache_exports);
24
- var import_chunk_FOVXMBDU = require("./chunk-FOVXMBDU.js");
24
+ var import_chunk_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
25
25
  var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
26
- var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.js");
26
+ var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
27
27
  var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
28
28
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
package/dist/download.js CHANGED
@@ -18,22 +18,22 @@ 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_Y72L5ICW.download,
22
- getBinaryName: () => import_chunk_Y72L5ICW.getBinaryName,
23
- getVersion: () => import_chunk_Y72L5ICW.getVersion,
24
- maybeCopyToTmp: () => import_chunk_Y72L5ICW.maybeCopyToTmp,
25
- plusX: () => import_chunk_Y72L5ICW.plusX,
26
- vercelPkgPathRegex: () => import_chunk_Y72L5ICW.vercelPkgPathRegex
21
+ download: () => import_chunk_RJIZSLS3.download,
22
+ getBinaryName: () => import_chunk_RJIZSLS3.getBinaryName,
23
+ getVersion: () => import_chunk_RJIZSLS3.getVersion,
24
+ maybeCopyToTmp: () => import_chunk_RJIZSLS3.maybeCopyToTmp,
25
+ plusX: () => import_chunk_RJIZSLS3.plusX,
26
+ vercelPkgPathRegex: () => import_chunk_RJIZSLS3.vercelPkgPathRegex
27
27
  });
28
28
  module.exports = __toCommonJS(download_exports);
29
- var import_chunk_Y72L5ICW = require("./chunk-Y72L5ICW.js");
29
+ var import_chunk_RJIZSLS3 = require("./chunk-RJIZSLS3.js");
30
30
  var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
31
31
  var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
32
- var import_chunk_FOVXMBDU = require("./chunk-FOVXMBDU.js");
33
- var import_chunk_PAN2XU4H = require("./chunk-PAN2XU4H.js");
32
+ var import_chunk_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
33
+ var import_chunk_BBQM2DBF = require("./chunk-BBQM2DBF.js");
34
34
  var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
35
35
  var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
36
- var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.js");
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");
@@ -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_PAN2XU4H.downloadZip
21
+ downloadZip: () => import_chunk_BBQM2DBF.downloadZip
22
22
  });
23
23
  module.exports = __toCommonJS(downloadZip_exports);
24
- var import_chunk_PAN2XU4H = require("./chunk-PAN2XU4H.js");
24
+ var import_chunk_BBQM2DBF = require("./chunk-BBQM2DBF.js");
25
25
  var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
26
26
  var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
27
- var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.js");
27
+ var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
28
28
  var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
29
29
  var import_chunk_OFSFRIEP = require("./chunk-OFSFRIEP.js");
30
30
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
package/dist/index.js CHANGED
@@ -21,27 +21,27 @@ __export(dist_exports, {
21
21
  BinaryType: () => import_chunk_X37PZICB.BinaryType,
22
22
  allEngineEnvVarsSet: () => import_chunk_PXQVM7NP.allEngineEnvVarsSet,
23
23
  deprecatedEnvVarMap: () => import_chunk_PXQVM7NP.deprecatedEnvVarMap,
24
- download: () => import_chunk_Y72L5ICW.download,
24
+ download: () => import_chunk_RJIZSLS3.download,
25
25
  engineEnvVarMap: () => import_chunk_PXQVM7NP.engineEnvVarMap,
26
26
  getBinaryEnvVarPath: () => import_chunk_PXQVM7NP.getBinaryEnvVarPath,
27
- getBinaryName: () => import_chunk_Y72L5ICW.getBinaryName,
28
- getCacheDir: () => import_chunk_VVUX3UR2.getCacheDir,
27
+ getBinaryName: () => import_chunk_RJIZSLS3.getBinaryName,
28
+ getCacheDir: () => import_chunk_G7EM4XDM.getCacheDir,
29
29
  getProxyAgent: () => import_chunk_OFSFRIEP.getProxyAgent,
30
- getVersion: () => import_chunk_Y72L5ICW.getVersion,
31
- maybeCopyToTmp: () => import_chunk_Y72L5ICW.maybeCopyToTmp,
32
- overwriteFile: () => import_chunk_VVUX3UR2.overwriteFile,
33
- plusX: () => import_chunk_Y72L5ICW.plusX,
34
- vercelPkgPathRegex: () => import_chunk_Y72L5ICW.vercelPkgPathRegex
30
+ getVersion: () => import_chunk_RJIZSLS3.getVersion,
31
+ maybeCopyToTmp: () => import_chunk_RJIZSLS3.maybeCopyToTmp,
32
+ overwriteFile: () => import_chunk_G7EM4XDM.overwriteFile,
33
+ plusX: () => import_chunk_RJIZSLS3.plusX,
34
+ vercelPkgPathRegex: () => import_chunk_RJIZSLS3.vercelPkgPathRegex
35
35
  });
36
36
  module.exports = __toCommonJS(dist_exports);
37
- var import_chunk_Y72L5ICW = require("./chunk-Y72L5ICW.js");
37
+ var import_chunk_RJIZSLS3 = require("./chunk-RJIZSLS3.js");
38
38
  var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
39
39
  var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
40
- var import_chunk_FOVXMBDU = require("./chunk-FOVXMBDU.js");
41
- var import_chunk_PAN2XU4H = require("./chunk-PAN2XU4H.js");
40
+ var import_chunk_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
41
+ var import_chunk_BBQM2DBF = require("./chunk-BBQM2DBF.js");
42
42
  var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
43
43
  var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
44
- var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.js");
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");
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_VVUX3UR2.getCacheDir,
22
- getDownloadUrl: () => import_chunk_VVUX3UR2.getDownloadUrl,
23
- getRootCacheDir: () => import_chunk_VVUX3UR2.getRootCacheDir,
24
- overwriteFile: () => import_chunk_VVUX3UR2.overwriteFile
21
+ getCacheDir: () => import_chunk_G7EM4XDM.getCacheDir,
22
+ getDownloadUrl: () => import_chunk_G7EM4XDM.getDownloadUrl,
23
+ getRootCacheDir: () => import_chunk_G7EM4XDM.getRootCacheDir,
24
+ overwriteFile: () => import_chunk_G7EM4XDM.overwriteFile
25
25
  });
26
26
  module.exports = __toCommonJS(utils_exports);
27
- var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.js");
27
+ var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
28
28
  var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
29
29
  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.1.0-dev.3",
3
+ "version": "6.1.0-dev.31",
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.6.13",
18
+ "@swc/core": "1.10.1",
19
19
  "@swc/jest": "0.2.37",
20
20
  "@types/jest": "29.5.14",
21
21
  "@types/node": "18.19.31",
@@ -42,9 +42,9 @@
42
42
  "typescript": "5.4.5"
43
43
  },
44
44
  "dependencies": {
45
- "@prisma/engines-version": "6.1.0-3.025d69d4aa1362e128e0bcc53b5147a416dfebad",
46
- "@prisma/debug": "6.1.0-dev.3",
47
- "@prisma/get-platform": "6.1.0-dev.3"
45
+ "@prisma/engines-version": "6.1.0-16.40232c93c80a22f3a8bae784b0386319a57a5aa0",
46
+ "@prisma/debug": "6.1.0-dev.31",
47
+ "@prisma/get-platform": "6.1.0-dev.31"
48
48
  },
49
49
  "files": [
50
50
  "README.md",