prisma 6.1.0-dev.10 → 6.1.0-dev.12
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/build/index.js +232 -232
- package/package.json +10 -10
- package/prisma-client/generator-build/index.js +783 -3
- package/prisma-client/package.json +2 -2
- package/prisma-client/runtime/binary.js +1 -1
- package/prisma-client/runtime/edge-esm.js +1 -1
- package/prisma-client/runtime/edge.js +1 -1
- package/prisma-client/runtime/library.js +1 -1
- package/prisma-client/runtime/react-native.js +1 -1
- package/prisma-client/scripts/default-index.js +1 -1
|
@@ -1971,6 +1971,786 @@ var require_ensure = __commonJS({
|
|
|
1971
1971
|
}
|
|
1972
1972
|
});
|
|
1973
1973
|
|
|
1974
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
1975
|
+
var require_polyfills2 = __commonJS({
|
|
1976
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports2, module2) {
|
|
1977
|
+
"use strict";
|
|
1978
|
+
var constants = require("constants");
|
|
1979
|
+
var origCwd = process.cwd;
|
|
1980
|
+
var cwd2 = null;
|
|
1981
|
+
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
1982
|
+
process.cwd = function() {
|
|
1983
|
+
if (!cwd2)
|
|
1984
|
+
cwd2 = origCwd.call(process);
|
|
1985
|
+
return cwd2;
|
|
1986
|
+
};
|
|
1987
|
+
try {
|
|
1988
|
+
process.cwd();
|
|
1989
|
+
} catch (er) {
|
|
1990
|
+
}
|
|
1991
|
+
if (typeof process.chdir === "function") {
|
|
1992
|
+
chdir = process.chdir;
|
|
1993
|
+
process.chdir = function(d) {
|
|
1994
|
+
cwd2 = null;
|
|
1995
|
+
chdir.call(process, d);
|
|
1996
|
+
};
|
|
1997
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
|
|
1998
|
+
}
|
|
1999
|
+
var chdir;
|
|
2000
|
+
module2.exports = patch;
|
|
2001
|
+
function patch(fs3) {
|
|
2002
|
+
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
2003
|
+
patchLchmod(fs3);
|
|
2004
|
+
}
|
|
2005
|
+
if (!fs3.lutimes) {
|
|
2006
|
+
patchLutimes(fs3);
|
|
2007
|
+
}
|
|
2008
|
+
fs3.chown = chownFix(fs3.chown);
|
|
2009
|
+
fs3.fchown = chownFix(fs3.fchown);
|
|
2010
|
+
fs3.lchown = chownFix(fs3.lchown);
|
|
2011
|
+
fs3.chmod = chmodFix(fs3.chmod);
|
|
2012
|
+
fs3.fchmod = chmodFix(fs3.fchmod);
|
|
2013
|
+
fs3.lchmod = chmodFix(fs3.lchmod);
|
|
2014
|
+
fs3.chownSync = chownFixSync(fs3.chownSync);
|
|
2015
|
+
fs3.fchownSync = chownFixSync(fs3.fchownSync);
|
|
2016
|
+
fs3.lchownSync = chownFixSync(fs3.lchownSync);
|
|
2017
|
+
fs3.chmodSync = chmodFixSync(fs3.chmodSync);
|
|
2018
|
+
fs3.fchmodSync = chmodFixSync(fs3.fchmodSync);
|
|
2019
|
+
fs3.lchmodSync = chmodFixSync(fs3.lchmodSync);
|
|
2020
|
+
fs3.stat = statFix(fs3.stat);
|
|
2021
|
+
fs3.fstat = statFix(fs3.fstat);
|
|
2022
|
+
fs3.lstat = statFix(fs3.lstat);
|
|
2023
|
+
fs3.statSync = statFixSync(fs3.statSync);
|
|
2024
|
+
fs3.fstatSync = statFixSync(fs3.fstatSync);
|
|
2025
|
+
fs3.lstatSync = statFixSync(fs3.lstatSync);
|
|
2026
|
+
if (fs3.chmod && !fs3.lchmod) {
|
|
2027
|
+
fs3.lchmod = function(path5, mode, cb) {
|
|
2028
|
+
if (cb) process.nextTick(cb);
|
|
2029
|
+
};
|
|
2030
|
+
fs3.lchmodSync = function() {
|
|
2031
|
+
};
|
|
2032
|
+
}
|
|
2033
|
+
if (fs3.chown && !fs3.lchown) {
|
|
2034
|
+
fs3.lchown = function(path5, uid, gid, cb) {
|
|
2035
|
+
if (cb) process.nextTick(cb);
|
|
2036
|
+
};
|
|
2037
|
+
fs3.lchownSync = function() {
|
|
2038
|
+
};
|
|
2039
|
+
}
|
|
2040
|
+
if (platform === "win32") {
|
|
2041
|
+
fs3.rename = typeof fs3.rename !== "function" ? fs3.rename : function(fs$rename) {
|
|
2042
|
+
function rename(from, to, cb) {
|
|
2043
|
+
var start = Date.now();
|
|
2044
|
+
var backoff = 0;
|
|
2045
|
+
fs$rename(from, to, function CB(er) {
|
|
2046
|
+
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
2047
|
+
setTimeout(function() {
|
|
2048
|
+
fs3.stat(to, function(stater, st) {
|
|
2049
|
+
if (stater && stater.code === "ENOENT")
|
|
2050
|
+
fs$rename(from, to, CB);
|
|
2051
|
+
else
|
|
2052
|
+
cb(er);
|
|
2053
|
+
});
|
|
2054
|
+
}, backoff);
|
|
2055
|
+
if (backoff < 100)
|
|
2056
|
+
backoff += 10;
|
|
2057
|
+
return;
|
|
2058
|
+
}
|
|
2059
|
+
if (cb) cb(er);
|
|
2060
|
+
});
|
|
2061
|
+
}
|
|
2062
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
2063
|
+
return rename;
|
|
2064
|
+
}(fs3.rename);
|
|
2065
|
+
}
|
|
2066
|
+
fs3.read = typeof fs3.read !== "function" ? fs3.read : function(fs$read) {
|
|
2067
|
+
function read(fd, buffer, offset, length, position, callback_) {
|
|
2068
|
+
var callback;
|
|
2069
|
+
if (callback_ && typeof callback_ === "function") {
|
|
2070
|
+
var eagCounter = 0;
|
|
2071
|
+
callback = function(er, _, __) {
|
|
2072
|
+
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
2073
|
+
eagCounter++;
|
|
2074
|
+
return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
|
|
2075
|
+
}
|
|
2076
|
+
callback_.apply(this, arguments);
|
|
2077
|
+
};
|
|
2078
|
+
}
|
|
2079
|
+
return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
|
|
2080
|
+
}
|
|
2081
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
2082
|
+
return read;
|
|
2083
|
+
}(fs3.read);
|
|
2084
|
+
fs3.readSync = typeof fs3.readSync !== "function" ? fs3.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
2085
|
+
return function(fd, buffer, offset, length, position) {
|
|
2086
|
+
var eagCounter = 0;
|
|
2087
|
+
while (true) {
|
|
2088
|
+
try {
|
|
2089
|
+
return fs$readSync.call(fs3, fd, buffer, offset, length, position);
|
|
2090
|
+
} catch (er) {
|
|
2091
|
+
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
2092
|
+
eagCounter++;
|
|
2093
|
+
continue;
|
|
2094
|
+
}
|
|
2095
|
+
throw er;
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
};
|
|
2099
|
+
}(fs3.readSync);
|
|
2100
|
+
function patchLchmod(fs4) {
|
|
2101
|
+
fs4.lchmod = function(path5, mode, callback) {
|
|
2102
|
+
fs4.open(
|
|
2103
|
+
path5,
|
|
2104
|
+
constants.O_WRONLY | constants.O_SYMLINK,
|
|
2105
|
+
mode,
|
|
2106
|
+
function(err, fd) {
|
|
2107
|
+
if (err) {
|
|
2108
|
+
if (callback) callback(err);
|
|
2109
|
+
return;
|
|
2110
|
+
}
|
|
2111
|
+
fs4.fchmod(fd, mode, function(err2) {
|
|
2112
|
+
fs4.close(fd, function(err22) {
|
|
2113
|
+
if (callback) callback(err2 || err22);
|
|
2114
|
+
});
|
|
2115
|
+
});
|
|
2116
|
+
}
|
|
2117
|
+
);
|
|
2118
|
+
};
|
|
2119
|
+
fs4.lchmodSync = function(path5, mode) {
|
|
2120
|
+
var fd = fs4.openSync(path5, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
2121
|
+
var threw = true;
|
|
2122
|
+
var ret;
|
|
2123
|
+
try {
|
|
2124
|
+
ret = fs4.fchmodSync(fd, mode);
|
|
2125
|
+
threw = false;
|
|
2126
|
+
} finally {
|
|
2127
|
+
if (threw) {
|
|
2128
|
+
try {
|
|
2129
|
+
fs4.closeSync(fd);
|
|
2130
|
+
} catch (er) {
|
|
2131
|
+
}
|
|
2132
|
+
} else {
|
|
2133
|
+
fs4.closeSync(fd);
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
return ret;
|
|
2137
|
+
};
|
|
2138
|
+
}
|
|
2139
|
+
function patchLutimes(fs4) {
|
|
2140
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
|
|
2141
|
+
fs4.lutimes = function(path5, at, mt, cb) {
|
|
2142
|
+
fs4.open(path5, constants.O_SYMLINK, function(er, fd) {
|
|
2143
|
+
if (er) {
|
|
2144
|
+
if (cb) cb(er);
|
|
2145
|
+
return;
|
|
2146
|
+
}
|
|
2147
|
+
fs4.futimes(fd, at, mt, function(er2) {
|
|
2148
|
+
fs4.close(fd, function(er22) {
|
|
2149
|
+
if (cb) cb(er2 || er22);
|
|
2150
|
+
});
|
|
2151
|
+
});
|
|
2152
|
+
});
|
|
2153
|
+
};
|
|
2154
|
+
fs4.lutimesSync = function(path5, at, mt) {
|
|
2155
|
+
var fd = fs4.openSync(path5, constants.O_SYMLINK);
|
|
2156
|
+
var ret;
|
|
2157
|
+
var threw = true;
|
|
2158
|
+
try {
|
|
2159
|
+
ret = fs4.futimesSync(fd, at, mt);
|
|
2160
|
+
threw = false;
|
|
2161
|
+
} finally {
|
|
2162
|
+
if (threw) {
|
|
2163
|
+
try {
|
|
2164
|
+
fs4.closeSync(fd);
|
|
2165
|
+
} catch (er) {
|
|
2166
|
+
}
|
|
2167
|
+
} else {
|
|
2168
|
+
fs4.closeSync(fd);
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
return ret;
|
|
2172
|
+
};
|
|
2173
|
+
} else if (fs4.futimes) {
|
|
2174
|
+
fs4.lutimes = function(_a, _b, _c, cb) {
|
|
2175
|
+
if (cb) process.nextTick(cb);
|
|
2176
|
+
};
|
|
2177
|
+
fs4.lutimesSync = function() {
|
|
2178
|
+
};
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
function chmodFix(orig) {
|
|
2182
|
+
if (!orig) return orig;
|
|
2183
|
+
return function(target, mode, cb) {
|
|
2184
|
+
return orig.call(fs3, target, mode, function(er) {
|
|
2185
|
+
if (chownErOk(er)) er = null;
|
|
2186
|
+
if (cb) cb.apply(this, arguments);
|
|
2187
|
+
});
|
|
2188
|
+
};
|
|
2189
|
+
}
|
|
2190
|
+
function chmodFixSync(orig) {
|
|
2191
|
+
if (!orig) return orig;
|
|
2192
|
+
return function(target, mode) {
|
|
2193
|
+
try {
|
|
2194
|
+
return orig.call(fs3, target, mode);
|
|
2195
|
+
} catch (er) {
|
|
2196
|
+
if (!chownErOk(er)) throw er;
|
|
2197
|
+
}
|
|
2198
|
+
};
|
|
2199
|
+
}
|
|
2200
|
+
function chownFix(orig) {
|
|
2201
|
+
if (!orig) return orig;
|
|
2202
|
+
return function(target, uid, gid, cb) {
|
|
2203
|
+
return orig.call(fs3, target, uid, gid, function(er) {
|
|
2204
|
+
if (chownErOk(er)) er = null;
|
|
2205
|
+
if (cb) cb.apply(this, arguments);
|
|
2206
|
+
});
|
|
2207
|
+
};
|
|
2208
|
+
}
|
|
2209
|
+
function chownFixSync(orig) {
|
|
2210
|
+
if (!orig) return orig;
|
|
2211
|
+
return function(target, uid, gid) {
|
|
2212
|
+
try {
|
|
2213
|
+
return orig.call(fs3, target, uid, gid);
|
|
2214
|
+
} catch (er) {
|
|
2215
|
+
if (!chownErOk(er)) throw er;
|
|
2216
|
+
}
|
|
2217
|
+
};
|
|
2218
|
+
}
|
|
2219
|
+
function statFix(orig) {
|
|
2220
|
+
if (!orig) return orig;
|
|
2221
|
+
return function(target, options, cb) {
|
|
2222
|
+
if (typeof options === "function") {
|
|
2223
|
+
cb = options;
|
|
2224
|
+
options = null;
|
|
2225
|
+
}
|
|
2226
|
+
function callback(er, stats) {
|
|
2227
|
+
if (stats) {
|
|
2228
|
+
if (stats.uid < 0) stats.uid += 4294967296;
|
|
2229
|
+
if (stats.gid < 0) stats.gid += 4294967296;
|
|
2230
|
+
}
|
|
2231
|
+
if (cb) cb.apply(this, arguments);
|
|
2232
|
+
}
|
|
2233
|
+
return options ? orig.call(fs3, target, options, callback) : orig.call(fs3, target, callback);
|
|
2234
|
+
};
|
|
2235
|
+
}
|
|
2236
|
+
function statFixSync(orig) {
|
|
2237
|
+
if (!orig) return orig;
|
|
2238
|
+
return function(target, options) {
|
|
2239
|
+
var stats = options ? orig.call(fs3, target, options) : orig.call(fs3, target);
|
|
2240
|
+
if (stats) {
|
|
2241
|
+
if (stats.uid < 0) stats.uid += 4294967296;
|
|
2242
|
+
if (stats.gid < 0) stats.gid += 4294967296;
|
|
2243
|
+
}
|
|
2244
|
+
return stats;
|
|
2245
|
+
};
|
|
2246
|
+
}
|
|
2247
|
+
function chownErOk(er) {
|
|
2248
|
+
if (!er)
|
|
2249
|
+
return true;
|
|
2250
|
+
if (er.code === "ENOSYS")
|
|
2251
|
+
return true;
|
|
2252
|
+
var nonroot = !process.getuid || process.getuid() !== 0;
|
|
2253
|
+
if (nonroot) {
|
|
2254
|
+
if (er.code === "EINVAL" || er.code === "EPERM")
|
|
2255
|
+
return true;
|
|
2256
|
+
}
|
|
2257
|
+
return false;
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
});
|
|
2262
|
+
|
|
2263
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
2264
|
+
var require_legacy_streams2 = __commonJS({
|
|
2265
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
|
|
2266
|
+
"use strict";
|
|
2267
|
+
var Stream = require("stream").Stream;
|
|
2268
|
+
module2.exports = legacy;
|
|
2269
|
+
function legacy(fs3) {
|
|
2270
|
+
return {
|
|
2271
|
+
ReadStream,
|
|
2272
|
+
WriteStream
|
|
2273
|
+
};
|
|
2274
|
+
function ReadStream(path5, options) {
|
|
2275
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path5, options);
|
|
2276
|
+
Stream.call(this);
|
|
2277
|
+
var self = this;
|
|
2278
|
+
this.path = path5;
|
|
2279
|
+
this.fd = null;
|
|
2280
|
+
this.readable = true;
|
|
2281
|
+
this.paused = false;
|
|
2282
|
+
this.flags = "r";
|
|
2283
|
+
this.mode = 438;
|
|
2284
|
+
this.bufferSize = 64 * 1024;
|
|
2285
|
+
options = options || {};
|
|
2286
|
+
var keys = Object.keys(options);
|
|
2287
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
|
2288
|
+
var key = keys[index];
|
|
2289
|
+
this[key] = options[key];
|
|
2290
|
+
}
|
|
2291
|
+
if (this.encoding) this.setEncoding(this.encoding);
|
|
2292
|
+
if (this.start !== void 0) {
|
|
2293
|
+
if ("number" !== typeof this.start) {
|
|
2294
|
+
throw TypeError("start must be a Number");
|
|
2295
|
+
}
|
|
2296
|
+
if (this.end === void 0) {
|
|
2297
|
+
this.end = Infinity;
|
|
2298
|
+
} else if ("number" !== typeof this.end) {
|
|
2299
|
+
throw TypeError("end must be a Number");
|
|
2300
|
+
}
|
|
2301
|
+
if (this.start > this.end) {
|
|
2302
|
+
throw new Error("start must be <= end");
|
|
2303
|
+
}
|
|
2304
|
+
this.pos = this.start;
|
|
2305
|
+
}
|
|
2306
|
+
if (this.fd !== null) {
|
|
2307
|
+
process.nextTick(function() {
|
|
2308
|
+
self._read();
|
|
2309
|
+
});
|
|
2310
|
+
return;
|
|
2311
|
+
}
|
|
2312
|
+
fs3.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
2313
|
+
if (err) {
|
|
2314
|
+
self.emit("error", err);
|
|
2315
|
+
self.readable = false;
|
|
2316
|
+
return;
|
|
2317
|
+
}
|
|
2318
|
+
self.fd = fd;
|
|
2319
|
+
self.emit("open", fd);
|
|
2320
|
+
self._read();
|
|
2321
|
+
});
|
|
2322
|
+
}
|
|
2323
|
+
function WriteStream(path5, options) {
|
|
2324
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path5, options);
|
|
2325
|
+
Stream.call(this);
|
|
2326
|
+
this.path = path5;
|
|
2327
|
+
this.fd = null;
|
|
2328
|
+
this.writable = true;
|
|
2329
|
+
this.flags = "w";
|
|
2330
|
+
this.encoding = "binary";
|
|
2331
|
+
this.mode = 438;
|
|
2332
|
+
this.bytesWritten = 0;
|
|
2333
|
+
options = options || {};
|
|
2334
|
+
var keys = Object.keys(options);
|
|
2335
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
|
2336
|
+
var key = keys[index];
|
|
2337
|
+
this[key] = options[key];
|
|
2338
|
+
}
|
|
2339
|
+
if (this.start !== void 0) {
|
|
2340
|
+
if ("number" !== typeof this.start) {
|
|
2341
|
+
throw TypeError("start must be a Number");
|
|
2342
|
+
}
|
|
2343
|
+
if (this.start < 0) {
|
|
2344
|
+
throw new Error("start must be >= zero");
|
|
2345
|
+
}
|
|
2346
|
+
this.pos = this.start;
|
|
2347
|
+
}
|
|
2348
|
+
this.busy = false;
|
|
2349
|
+
this._queue = [];
|
|
2350
|
+
if (this.fd === null) {
|
|
2351
|
+
this._open = fs3.open;
|
|
2352
|
+
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
2353
|
+
this.flush();
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
});
|
|
2359
|
+
|
|
2360
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
|
|
2361
|
+
var require_clone2 = __commonJS({
|
|
2362
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports2, module2) {
|
|
2363
|
+
"use strict";
|
|
2364
|
+
module2.exports = clone;
|
|
2365
|
+
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
2366
|
+
return obj.__proto__;
|
|
2367
|
+
};
|
|
2368
|
+
function clone(obj) {
|
|
2369
|
+
if (obj === null || typeof obj !== "object")
|
|
2370
|
+
return obj;
|
|
2371
|
+
if (obj instanceof Object)
|
|
2372
|
+
var copy = { __proto__: getPrototypeOf(obj) };
|
|
2373
|
+
else
|
|
2374
|
+
var copy = /* @__PURE__ */ Object.create(null);
|
|
2375
|
+
Object.getOwnPropertyNames(obj).forEach(function(key) {
|
|
2376
|
+
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
|
|
2377
|
+
});
|
|
2378
|
+
return copy;
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
});
|
|
2382
|
+
|
|
2383
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
|
|
2384
|
+
var require_graceful_fs2 = __commonJS({
|
|
2385
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
2386
|
+
"use strict";
|
|
2387
|
+
var fs3 = require("fs");
|
|
2388
|
+
var polyfills = require_polyfills2();
|
|
2389
|
+
var legacy = require_legacy_streams2();
|
|
2390
|
+
var clone = require_clone2();
|
|
2391
|
+
var util2 = require("util");
|
|
2392
|
+
var gracefulQueue;
|
|
2393
|
+
var previousSymbol;
|
|
2394
|
+
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
2395
|
+
gracefulQueue = Symbol.for("graceful-fs.queue");
|
|
2396
|
+
previousSymbol = Symbol.for("graceful-fs.previous");
|
|
2397
|
+
} else {
|
|
2398
|
+
gracefulQueue = "___graceful-fs.queue";
|
|
2399
|
+
previousSymbol = "___graceful-fs.previous";
|
|
2400
|
+
}
|
|
2401
|
+
function noop() {
|
|
2402
|
+
}
|
|
2403
|
+
function publishQueue(context, queue2) {
|
|
2404
|
+
Object.defineProperty(context, gracefulQueue, {
|
|
2405
|
+
get: function() {
|
|
2406
|
+
return queue2;
|
|
2407
|
+
}
|
|
2408
|
+
});
|
|
2409
|
+
}
|
|
2410
|
+
var debug4 = noop;
|
|
2411
|
+
if (util2.debuglog)
|
|
2412
|
+
debug4 = util2.debuglog("gfs4");
|
|
2413
|
+
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
2414
|
+
debug4 = function() {
|
|
2415
|
+
var m = util2.format.apply(util2, arguments);
|
|
2416
|
+
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
2417
|
+
console.error(m);
|
|
2418
|
+
};
|
|
2419
|
+
if (!fs3[gracefulQueue]) {
|
|
2420
|
+
queue = global[gracefulQueue] || [];
|
|
2421
|
+
publishQueue(fs3, queue);
|
|
2422
|
+
fs3.close = function(fs$close) {
|
|
2423
|
+
function close(fd, cb) {
|
|
2424
|
+
return fs$close.call(fs3, fd, function(err) {
|
|
2425
|
+
if (!err) {
|
|
2426
|
+
resetQueue();
|
|
2427
|
+
}
|
|
2428
|
+
if (typeof cb === "function")
|
|
2429
|
+
cb.apply(this, arguments);
|
|
2430
|
+
});
|
|
2431
|
+
}
|
|
2432
|
+
Object.defineProperty(close, previousSymbol, {
|
|
2433
|
+
value: fs$close
|
|
2434
|
+
});
|
|
2435
|
+
return close;
|
|
2436
|
+
}(fs3.close);
|
|
2437
|
+
fs3.closeSync = function(fs$closeSync) {
|
|
2438
|
+
function closeSync(fd) {
|
|
2439
|
+
fs$closeSync.apply(fs3, arguments);
|
|
2440
|
+
resetQueue();
|
|
2441
|
+
}
|
|
2442
|
+
Object.defineProperty(closeSync, previousSymbol, {
|
|
2443
|
+
value: fs$closeSync
|
|
2444
|
+
});
|
|
2445
|
+
return closeSync;
|
|
2446
|
+
}(fs3.closeSync);
|
|
2447
|
+
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
2448
|
+
process.on("exit", function() {
|
|
2449
|
+
debug4(fs3[gracefulQueue]);
|
|
2450
|
+
require("assert").equal(fs3[gracefulQueue].length, 0);
|
|
2451
|
+
});
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
var queue;
|
|
2455
|
+
if (!global[gracefulQueue]) {
|
|
2456
|
+
publishQueue(global, fs3[gracefulQueue]);
|
|
2457
|
+
}
|
|
2458
|
+
module2.exports = patch(clone(fs3));
|
|
2459
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs3.__patched) {
|
|
2460
|
+
module2.exports = patch(fs3);
|
|
2461
|
+
fs3.__patched = true;
|
|
2462
|
+
}
|
|
2463
|
+
function patch(fs4) {
|
|
2464
|
+
polyfills(fs4);
|
|
2465
|
+
fs4.gracefulify = patch;
|
|
2466
|
+
fs4.createReadStream = createReadStream;
|
|
2467
|
+
fs4.createWriteStream = createWriteStream;
|
|
2468
|
+
var fs$readFile = fs4.readFile;
|
|
2469
|
+
fs4.readFile = readFile;
|
|
2470
|
+
function readFile(path5, options, cb) {
|
|
2471
|
+
if (typeof options === "function")
|
|
2472
|
+
cb = options, options = null;
|
|
2473
|
+
return go$readFile(path5, options, cb);
|
|
2474
|
+
function go$readFile(path6, options2, cb2, startTime) {
|
|
2475
|
+
return fs$readFile(path6, options2, function(err) {
|
|
2476
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
2477
|
+
enqueue([go$readFile, [path6, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
2478
|
+
else {
|
|
2479
|
+
if (typeof cb2 === "function")
|
|
2480
|
+
cb2.apply(this, arguments);
|
|
2481
|
+
}
|
|
2482
|
+
});
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2485
|
+
var fs$writeFile = fs4.writeFile;
|
|
2486
|
+
fs4.writeFile = writeFile;
|
|
2487
|
+
function writeFile(path5, data, options, cb) {
|
|
2488
|
+
if (typeof options === "function")
|
|
2489
|
+
cb = options, options = null;
|
|
2490
|
+
return go$writeFile(path5, data, options, cb);
|
|
2491
|
+
function go$writeFile(path6, data2, options2, cb2, startTime) {
|
|
2492
|
+
return fs$writeFile(path6, data2, options2, function(err) {
|
|
2493
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
2494
|
+
enqueue([go$writeFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
2495
|
+
else {
|
|
2496
|
+
if (typeof cb2 === "function")
|
|
2497
|
+
cb2.apply(this, arguments);
|
|
2498
|
+
}
|
|
2499
|
+
});
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
var fs$appendFile = fs4.appendFile;
|
|
2503
|
+
if (fs$appendFile)
|
|
2504
|
+
fs4.appendFile = appendFile;
|
|
2505
|
+
function appendFile(path5, data, options, cb) {
|
|
2506
|
+
if (typeof options === "function")
|
|
2507
|
+
cb = options, options = null;
|
|
2508
|
+
return go$appendFile(path5, data, options, cb);
|
|
2509
|
+
function go$appendFile(path6, data2, options2, cb2, startTime) {
|
|
2510
|
+
return fs$appendFile(path6, data2, options2, function(err) {
|
|
2511
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
2512
|
+
enqueue([go$appendFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
2513
|
+
else {
|
|
2514
|
+
if (typeof cb2 === "function")
|
|
2515
|
+
cb2.apply(this, arguments);
|
|
2516
|
+
}
|
|
2517
|
+
});
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
var fs$copyFile = fs4.copyFile;
|
|
2521
|
+
if (fs$copyFile)
|
|
2522
|
+
fs4.copyFile = copyFile;
|
|
2523
|
+
function copyFile(src, dest, flags, cb) {
|
|
2524
|
+
if (typeof flags === "function") {
|
|
2525
|
+
cb = flags;
|
|
2526
|
+
flags = 0;
|
|
2527
|
+
}
|
|
2528
|
+
return go$copyFile(src, dest, flags, cb);
|
|
2529
|
+
function go$copyFile(src2, dest2, flags2, cb2, startTime) {
|
|
2530
|
+
return fs$copyFile(src2, dest2, flags2, function(err) {
|
|
2531
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
2532
|
+
enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
2533
|
+
else {
|
|
2534
|
+
if (typeof cb2 === "function")
|
|
2535
|
+
cb2.apply(this, arguments);
|
|
2536
|
+
}
|
|
2537
|
+
});
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
var fs$readdir = fs4.readdir;
|
|
2541
|
+
fs4.readdir = readdir;
|
|
2542
|
+
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
2543
|
+
function readdir(path5, options, cb) {
|
|
2544
|
+
if (typeof options === "function")
|
|
2545
|
+
cb = options, options = null;
|
|
2546
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path6, options2, cb2, startTime) {
|
|
2547
|
+
return fs$readdir(path6, fs$readdirCallback(
|
|
2548
|
+
path6,
|
|
2549
|
+
options2,
|
|
2550
|
+
cb2,
|
|
2551
|
+
startTime
|
|
2552
|
+
));
|
|
2553
|
+
} : function go$readdir2(path6, options2, cb2, startTime) {
|
|
2554
|
+
return fs$readdir(path6, options2, fs$readdirCallback(
|
|
2555
|
+
path6,
|
|
2556
|
+
options2,
|
|
2557
|
+
cb2,
|
|
2558
|
+
startTime
|
|
2559
|
+
));
|
|
2560
|
+
};
|
|
2561
|
+
return go$readdir(path5, options, cb);
|
|
2562
|
+
function fs$readdirCallback(path6, options2, cb2, startTime) {
|
|
2563
|
+
return function(err, files) {
|
|
2564
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
2565
|
+
enqueue([
|
|
2566
|
+
go$readdir,
|
|
2567
|
+
[path6, options2, cb2],
|
|
2568
|
+
err,
|
|
2569
|
+
startTime || Date.now(),
|
|
2570
|
+
Date.now()
|
|
2571
|
+
]);
|
|
2572
|
+
else {
|
|
2573
|
+
if (files && files.sort)
|
|
2574
|
+
files.sort();
|
|
2575
|
+
if (typeof cb2 === "function")
|
|
2576
|
+
cb2.call(this, err, files);
|
|
2577
|
+
}
|
|
2578
|
+
};
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
if (process.version.substr(0, 4) === "v0.8") {
|
|
2582
|
+
var legStreams = legacy(fs4);
|
|
2583
|
+
ReadStream = legStreams.ReadStream;
|
|
2584
|
+
WriteStream = legStreams.WriteStream;
|
|
2585
|
+
}
|
|
2586
|
+
var fs$ReadStream = fs4.ReadStream;
|
|
2587
|
+
if (fs$ReadStream) {
|
|
2588
|
+
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
2589
|
+
ReadStream.prototype.open = ReadStream$open;
|
|
2590
|
+
}
|
|
2591
|
+
var fs$WriteStream = fs4.WriteStream;
|
|
2592
|
+
if (fs$WriteStream) {
|
|
2593
|
+
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
2594
|
+
WriteStream.prototype.open = WriteStream$open;
|
|
2595
|
+
}
|
|
2596
|
+
Object.defineProperty(fs4, "ReadStream", {
|
|
2597
|
+
get: function() {
|
|
2598
|
+
return ReadStream;
|
|
2599
|
+
},
|
|
2600
|
+
set: function(val) {
|
|
2601
|
+
ReadStream = val;
|
|
2602
|
+
},
|
|
2603
|
+
enumerable: true,
|
|
2604
|
+
configurable: true
|
|
2605
|
+
});
|
|
2606
|
+
Object.defineProperty(fs4, "WriteStream", {
|
|
2607
|
+
get: function() {
|
|
2608
|
+
return WriteStream;
|
|
2609
|
+
},
|
|
2610
|
+
set: function(val) {
|
|
2611
|
+
WriteStream = val;
|
|
2612
|
+
},
|
|
2613
|
+
enumerable: true,
|
|
2614
|
+
configurable: true
|
|
2615
|
+
});
|
|
2616
|
+
var FileReadStream = ReadStream;
|
|
2617
|
+
Object.defineProperty(fs4, "FileReadStream", {
|
|
2618
|
+
get: function() {
|
|
2619
|
+
return FileReadStream;
|
|
2620
|
+
},
|
|
2621
|
+
set: function(val) {
|
|
2622
|
+
FileReadStream = val;
|
|
2623
|
+
},
|
|
2624
|
+
enumerable: true,
|
|
2625
|
+
configurable: true
|
|
2626
|
+
});
|
|
2627
|
+
var FileWriteStream = WriteStream;
|
|
2628
|
+
Object.defineProperty(fs4, "FileWriteStream", {
|
|
2629
|
+
get: function() {
|
|
2630
|
+
return FileWriteStream;
|
|
2631
|
+
},
|
|
2632
|
+
set: function(val) {
|
|
2633
|
+
FileWriteStream = val;
|
|
2634
|
+
},
|
|
2635
|
+
enumerable: true,
|
|
2636
|
+
configurable: true
|
|
2637
|
+
});
|
|
2638
|
+
function ReadStream(path5, options) {
|
|
2639
|
+
if (this instanceof ReadStream)
|
|
2640
|
+
return fs$ReadStream.apply(this, arguments), this;
|
|
2641
|
+
else
|
|
2642
|
+
return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
|
|
2643
|
+
}
|
|
2644
|
+
function ReadStream$open() {
|
|
2645
|
+
var that = this;
|
|
2646
|
+
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
2647
|
+
if (err) {
|
|
2648
|
+
if (that.autoClose)
|
|
2649
|
+
that.destroy();
|
|
2650
|
+
that.emit("error", err);
|
|
2651
|
+
} else {
|
|
2652
|
+
that.fd = fd;
|
|
2653
|
+
that.emit("open", fd);
|
|
2654
|
+
that.read();
|
|
2655
|
+
}
|
|
2656
|
+
});
|
|
2657
|
+
}
|
|
2658
|
+
function WriteStream(path5, options) {
|
|
2659
|
+
if (this instanceof WriteStream)
|
|
2660
|
+
return fs$WriteStream.apply(this, arguments), this;
|
|
2661
|
+
else
|
|
2662
|
+
return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
|
2663
|
+
}
|
|
2664
|
+
function WriteStream$open() {
|
|
2665
|
+
var that = this;
|
|
2666
|
+
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
2667
|
+
if (err) {
|
|
2668
|
+
that.destroy();
|
|
2669
|
+
that.emit("error", err);
|
|
2670
|
+
} else {
|
|
2671
|
+
that.fd = fd;
|
|
2672
|
+
that.emit("open", fd);
|
|
2673
|
+
}
|
|
2674
|
+
});
|
|
2675
|
+
}
|
|
2676
|
+
function createReadStream(path5, options) {
|
|
2677
|
+
return new fs4.ReadStream(path5, options);
|
|
2678
|
+
}
|
|
2679
|
+
function createWriteStream(path5, options) {
|
|
2680
|
+
return new fs4.WriteStream(path5, options);
|
|
2681
|
+
}
|
|
2682
|
+
var fs$open = fs4.open;
|
|
2683
|
+
fs4.open = open;
|
|
2684
|
+
function open(path5, flags, mode, cb) {
|
|
2685
|
+
if (typeof mode === "function")
|
|
2686
|
+
cb = mode, mode = null;
|
|
2687
|
+
return go$open(path5, flags, mode, cb);
|
|
2688
|
+
function go$open(path6, flags2, mode2, cb2, startTime) {
|
|
2689
|
+
return fs$open(path6, flags2, mode2, function(err, fd) {
|
|
2690
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
2691
|
+
enqueue([go$open, [path6, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
2692
|
+
else {
|
|
2693
|
+
if (typeof cb2 === "function")
|
|
2694
|
+
cb2.apply(this, arguments);
|
|
2695
|
+
}
|
|
2696
|
+
});
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
return fs4;
|
|
2700
|
+
}
|
|
2701
|
+
function enqueue(elem) {
|
|
2702
|
+
debug4("ENQUEUE", elem[0].name, elem[1]);
|
|
2703
|
+
fs3[gracefulQueue].push(elem);
|
|
2704
|
+
retry();
|
|
2705
|
+
}
|
|
2706
|
+
var retryTimer;
|
|
2707
|
+
function resetQueue() {
|
|
2708
|
+
var now = Date.now();
|
|
2709
|
+
for (var i = 0; i < fs3[gracefulQueue].length; ++i) {
|
|
2710
|
+
if (fs3[gracefulQueue][i].length > 2) {
|
|
2711
|
+
fs3[gracefulQueue][i][3] = now;
|
|
2712
|
+
fs3[gracefulQueue][i][4] = now;
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
retry();
|
|
2716
|
+
}
|
|
2717
|
+
function retry() {
|
|
2718
|
+
clearTimeout(retryTimer);
|
|
2719
|
+
retryTimer = void 0;
|
|
2720
|
+
if (fs3[gracefulQueue].length === 0)
|
|
2721
|
+
return;
|
|
2722
|
+
var elem = fs3[gracefulQueue].shift();
|
|
2723
|
+
var fn = elem[0];
|
|
2724
|
+
var args = elem[1];
|
|
2725
|
+
var err = elem[2];
|
|
2726
|
+
var startTime = elem[3];
|
|
2727
|
+
var lastTime = elem[4];
|
|
2728
|
+
if (startTime === void 0) {
|
|
2729
|
+
debug4("RETRY", fn.name, args);
|
|
2730
|
+
fn.apply(null, args);
|
|
2731
|
+
} else if (Date.now() - startTime >= 6e4) {
|
|
2732
|
+
debug4("TIMEOUT", fn.name, args);
|
|
2733
|
+
var cb = args.pop();
|
|
2734
|
+
if (typeof cb === "function")
|
|
2735
|
+
cb.call(null, err);
|
|
2736
|
+
} else {
|
|
2737
|
+
var sinceAttempt = Date.now() - lastTime;
|
|
2738
|
+
var sinceStart = Math.max(lastTime - startTime, 1);
|
|
2739
|
+
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
|
2740
|
+
if (sinceAttempt >= desiredDelay) {
|
|
2741
|
+
debug4("RETRY", fn.name, args);
|
|
2742
|
+
fn.apply(null, args.concat([startTime]));
|
|
2743
|
+
} else {
|
|
2744
|
+
fs3[gracefulQueue].push(elem);
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
if (retryTimer === void 0) {
|
|
2748
|
+
retryTimer = setTimeout(retry, 0);
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
});
|
|
2753
|
+
|
|
1974
2754
|
// ../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
|
|
1975
2755
|
var require_utils2 = __commonJS({
|
|
1976
2756
|
"../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports2, module2) {
|
|
@@ -1994,7 +2774,7 @@ var require_jsonfile = __commonJS({
|
|
|
1994
2774
|
"use strict";
|
|
1995
2775
|
var _fs;
|
|
1996
2776
|
try {
|
|
1997
|
-
_fs =
|
|
2777
|
+
_fs = require_graceful_fs2();
|
|
1998
2778
|
} catch (_) {
|
|
1999
2779
|
_fs = require("fs");
|
|
2000
2780
|
}
|
|
@@ -3166,7 +3946,7 @@ var require_package2 = __commonJS({
|
|
|
3166
3946
|
"package.json"(exports2, module2) {
|
|
3167
3947
|
module2.exports = {
|
|
3168
3948
|
name: "@prisma/client",
|
|
3169
|
-
version: "6.1.0-dev.
|
|
3949
|
+
version: "6.1.0-dev.12",
|
|
3170
3950
|
description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
3171
3951
|
keywords: [
|
|
3172
3952
|
"ORM",
|
|
@@ -3404,7 +4184,7 @@ var require_package2 = __commonJS({
|
|
|
3404
4184
|
jest: "29.7.0",
|
|
3405
4185
|
"jest-extended": "4.0.2",
|
|
3406
4186
|
"jest-junit": "16.0.0",
|
|
3407
|
-
"jest-serializer-ansi-escapes": "
|
|
4187
|
+
"jest-serializer-ansi-escapes": "4.0.0",
|
|
3408
4188
|
"jest-snapshot": "29.7.0",
|
|
3409
4189
|
"js-levenshtein": "1.1.6",
|
|
3410
4190
|
kleur: "4.1.5",
|