@prisma/fetch-engine 5.23.0-dev.2 → 5.23.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-QLWYUM7O.js → chunk-BBQM2DBF.js} +84 -84
- package/dist/{chunk-ZO5BYTQ2.js → chunk-DBXUYSFY.js} +19 -19
- package/dist/{chunk-74KKSUUB.js → chunk-FKKOTNO6.js} +8 -8
- package/dist/{chunk-QSTZGX47.js → chunk-FOVXMBDU.js} +8 -8
- package/dist/{chunk-BBSR4B7O.js → chunk-G7EM4XDM.js} +40 -40
- package/dist/{chunk-RNZ6HCUY.js → chunk-NOIIB3RP.js} +20 -20
- package/dist/{chunk-KDPLGCY6.js → chunk-OFSFRIEP.js} +8 -8
- package/dist/{chunk-VPECQVLG.js → chunk-PAN2XU4H.js} +84 -84
- package/dist/{chunk-VTJS2JJN.js → chunk-TIRVZJHP.js} +7 -7
- package/dist/{chunk-FQ2BOR66.js → chunk-VVUX3UR2.js} +40 -40
- package/dist/{chunk-RGVHWUUH.js → chunk-ZAFWMCVK.js} +13 -3
- package/dist/cleanupCache.js +4 -4
- package/dist/download.js +13 -13
- package/dist/downloadZip.js +6 -6
- package/dist/getProxyAgent.js +2 -2
- package/dist/index.js +16 -16
- package/dist/{multipart-parser-47FFAP42.js → multipart-parser-ITART6UP.js} +9 -6
- package/dist/utils.js +5 -5
- package/package.json +4 -4
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_VVUX3UR2_exports = {};
|
30
|
+
__export(chunk_VVUX3UR2_exports, {
|
31
31
|
getCacheDir: () => getCacheDir,
|
32
32
|
getDownloadUrl: () => getDownloadUrl,
|
33
33
|
getRootCacheDir: () => getRootCacheDir,
|
@@ -35,23 +35,23 @@ __export(chunk_FQ2BOR66_exports, {
|
|
35
35
|
require_graceful_fs: () => require_graceful_fs,
|
36
36
|
require_lib: () => require_lib
|
37
37
|
});
|
38
|
-
module.exports = __toCommonJS(
|
38
|
+
module.exports = __toCommonJS(chunk_VVUX3UR2_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");
|
42
|
-
var
|
43
|
-
var
|
42
|
+
var import_node_process = __toESM(require("node:process"));
|
43
|
+
var import_node_path = __toESM(require("node:path"));
|
44
|
+
var import_node_fs = __toESM(require("node:fs"));
|
45
|
+
var import_node_path2 = __toESM(require("node:path"));
|
46
|
+
var import_node_path3 = __toESM(require("node:path"));
|
47
|
+
var import_node_url = require("node:url");
|
48
|
+
var import_node_process2 = __toESM(require("node:process"));
|
49
|
+
var import_node_path4 = __toESM(require("node:path"));
|
50
|
+
var import_node_fs2 = __toESM(require("node:fs"));
|
51
|
+
var import_node_url2 = require("node:url");
|
44
52
|
var import_fs = __toESM(require("fs"));
|
45
|
-
var import_path2 = __toESM(require("path"));
|
46
|
-
var import_path3 = __toESM(require("path"));
|
47
|
-
var import_url = require("url");
|
48
|
-
var import_process2 = __toESM(require("process"));
|
49
|
-
var import_path4 = __toESM(require("path"));
|
50
|
-
var import_fs2 = __toESM(require("fs"));
|
51
|
-
var import_url2 = require("url");
|
52
|
-
var import_fs3 = __toESM(require("fs"));
|
53
53
|
var import_os = __toESM(require("os"));
|
54
|
-
var
|
54
|
+
var import_path = __toESM(require("path"));
|
55
55
|
var require_common_path_prefix = (0, import_chunk_AH6QHEOA.__commonJS)({
|
56
56
|
"../../node_modules/.pnpm/common-path-prefix@3.0.0/node_modules/common-path-prefix/index.js"(exports, module2) {
|
57
57
|
"use strict";
|
@@ -2270,18 +2270,18 @@ function checkType(type) {
|
|
2270
2270
|
throw new Error(`Invalid type specified: ${type}`);
|
2271
2271
|
}
|
2272
2272
|
var matchType = (type, stat) => stat[typeMappings[type]]();
|
2273
|
-
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0,
|
2273
|
+
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
|
2274
2274
|
function locatePathSync(paths, {
|
2275
|
-
cwd: cwd2 =
|
2275
|
+
cwd: cwd2 = import_node_process2.default.cwd(),
|
2276
2276
|
type = "file",
|
2277
2277
|
allowSymlinks = true
|
2278
2278
|
} = {}) {
|
2279
2279
|
checkType(type);
|
2280
2280
|
cwd2 = toPath(cwd2);
|
2281
|
-
const statFunction = allowSymlinks ?
|
2281
|
+
const statFunction = allowSymlinks ? import_node_fs2.default.statSync : import_node_fs2.default.lstatSync;
|
2282
2282
|
for (const path_ of paths) {
|
2283
2283
|
try {
|
2284
|
-
const stat = statFunction(
|
2284
|
+
const stat = statFunction(import_node_path4.default.resolve(cwd2, path_), {
|
2285
2285
|
throwIfNoEntry: false
|
2286
2286
|
});
|
2287
2287
|
if (!stat) {
|
@@ -2294,11 +2294,11 @@ function locatePathSync(paths, {
|
|
2294
2294
|
}
|
2295
2295
|
}
|
2296
2296
|
}
|
2297
|
-
var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0,
|
2297
|
+
var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
|
2298
2298
|
var findUpStop = Symbol("findUpStop");
|
2299
2299
|
function findUpMultipleSync(name, options = {}) {
|
2300
|
-
let directory =
|
2301
|
-
const { root } =
|
2300
|
+
let directory = import_node_path3.default.resolve(toPath2(options.cwd) || "");
|
2301
|
+
const { root } = import_node_path3.default.parse(directory);
|
2302
2302
|
const stopAt = options.stopAt || root;
|
2303
2303
|
const limit = options.limit || Number.POSITIVE_INFINITY;
|
2304
2304
|
const paths = [name].flat();
|
@@ -2319,12 +2319,12 @@ function findUpMultipleSync(name, options = {}) {
|
|
2319
2319
|
break;
|
2320
2320
|
}
|
2321
2321
|
if (foundPath) {
|
2322
|
-
matches.push(
|
2322
|
+
matches.push(import_node_path3.default.resolve(directory, foundPath));
|
2323
2323
|
}
|
2324
2324
|
if (directory === stopAt || matches.length >= limit) {
|
2325
2325
|
break;
|
2326
2326
|
}
|
2327
|
-
directory =
|
2327
|
+
directory = import_node_path3.default.dirname(directory);
|
2328
2328
|
}
|
2329
2329
|
return matches;
|
2330
2330
|
}
|
@@ -2334,12 +2334,12 @@ function findUpSync(name, options = {}) {
|
|
2334
2334
|
}
|
2335
2335
|
function packageDirectorySync({ cwd: cwd2 } = {}) {
|
2336
2336
|
const filePath = findUpSync("package.json", { cwd: cwd2 });
|
2337
|
-
return filePath &&
|
2337
|
+
return filePath && import_node_path2.default.dirname(filePath);
|
2338
2338
|
}
|
2339
|
-
var { env, cwd } =
|
2339
|
+
var { env, cwd } = import_node_process.default;
|
2340
2340
|
var isWritable = (path6) => {
|
2341
2341
|
try {
|
2342
|
-
|
2342
|
+
import_node_fs.default.accessSync(path6, import_node_fs.default.constants.W_OK);
|
2343
2343
|
return true;
|
2344
2344
|
} catch {
|
2345
2345
|
return false;
|
@@ -2347,27 +2347,27 @@ var isWritable = (path6) => {
|
|
2347
2347
|
};
|
2348
2348
|
function useDirectory(directory, options) {
|
2349
2349
|
if (options.create) {
|
2350
|
-
|
2350
|
+
import_node_fs.default.mkdirSync(directory, { recursive: true });
|
2351
2351
|
}
|
2352
2352
|
return directory;
|
2353
2353
|
}
|
2354
2354
|
function getNodeModuleDirectory(directory) {
|
2355
|
-
const nodeModules =
|
2356
|
-
if (!isWritable(nodeModules) && (
|
2355
|
+
const nodeModules = import_node_path.default.join(directory, "node_modules");
|
2356
|
+
if (!isWritable(nodeModules) && (import_node_fs.default.existsSync(nodeModules) || !isWritable(import_node_path.default.join(directory)))) {
|
2357
2357
|
return;
|
2358
2358
|
}
|
2359
2359
|
return nodeModules;
|
2360
2360
|
}
|
2361
2361
|
function findCacheDirectory(options = {}) {
|
2362
2362
|
if (env.CACHE_DIR && !["true", "false", "1", "0"].includes(env.CACHE_DIR)) {
|
2363
|
-
return useDirectory(
|
2363
|
+
return useDirectory(import_node_path.default.join(env.CACHE_DIR, options.name), options);
|
2364
2364
|
}
|
2365
2365
|
let { cwd: directory = cwd(), files } = options;
|
2366
2366
|
if (files) {
|
2367
2367
|
if (!Array.isArray(files)) {
|
2368
2368
|
throw new TypeError(`Expected \`files\` option to be an array, got \`${typeof files}\`.`);
|
2369
2369
|
}
|
2370
|
-
directory = (0, import_common_path_prefix.default)(files.map((file) =>
|
2370
|
+
directory = (0, import_common_path_prefix.default)(files.map((file) => import_node_path.default.resolve(directory, file)));
|
2371
2371
|
}
|
2372
2372
|
directory = packageDirectorySync({ cwd: directory });
|
2373
2373
|
if (!directory) {
|
@@ -2377,7 +2377,7 @@ function findCacheDirectory(options = {}) {
|
|
2377
2377
|
if (!nodeModules) {
|
2378
2378
|
return;
|
2379
2379
|
}
|
2380
|
-
return useDirectory(
|
2380
|
+
return useDirectory(import_node_path.default.join(directory, "node_modules", ".cache", options.name), options);
|
2381
2381
|
}
|
2382
2382
|
var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)(require_lib());
|
2383
2383
|
var debug = (0, import_debug.default)("prisma:fetch-engine:cache-dir");
|
@@ -2388,7 +2388,7 @@ async function getRootCacheDir() {
|
|
2388
2388
|
return cacheDir;
|
2389
2389
|
}
|
2390
2390
|
if (process.env.APPDATA) {
|
2391
|
-
return
|
2391
|
+
return import_path.default.join(process.env.APPDATA, "Prisma");
|
2392
2392
|
}
|
2393
2393
|
}
|
2394
2394
|
if (process.env.AWS_LAMBDA_FUNCTION_VERSION) {
|
@@ -2399,16 +2399,16 @@ async function getRootCacheDir() {
|
|
2399
2399
|
return null;
|
2400
2400
|
}
|
2401
2401
|
}
|
2402
|
-
return
|
2402
|
+
return import_path.default.join(import_os.default.homedir(), ".cache/prisma");
|
2403
2403
|
}
|
2404
2404
|
async function getCacheDir(channel, version, binaryTarget) {
|
2405
2405
|
const rootCacheDir = await getRootCacheDir();
|
2406
2406
|
if (!rootCacheDir) {
|
2407
2407
|
return null;
|
2408
2408
|
}
|
2409
|
-
const cacheDir =
|
2409
|
+
const cacheDir = import_path.default.join(rootCacheDir, channel, version, binaryTarget);
|
2410
2410
|
try {
|
2411
|
-
if (!
|
2411
|
+
if (!import_fs.default.existsSync(cacheDir)) {
|
2412
2412
|
await (0, import_fs_extra.ensureDir)(cacheDir);
|
2413
2413
|
}
|
2414
2414
|
} catch (e) {
|
@@ -2439,16 +2439,16 @@ function getDownloadUrl({
|
|
2439
2439
|
async function overwriteFile(sourcePath, targetPath) {
|
2440
2440
|
if (import_os.default.platform() === "darwin") {
|
2441
2441
|
await removeFileIfExists(targetPath);
|
2442
|
-
await
|
2442
|
+
await import_fs.default.promises.copyFile(sourcePath, targetPath);
|
2443
2443
|
} else {
|
2444
2444
|
let tempPath = `${targetPath}.tmp${process.pid}`;
|
2445
|
-
await
|
2446
|
-
await
|
2445
|
+
await import_fs.default.promises.copyFile(sourcePath, tempPath);
|
2446
|
+
await import_fs.default.promises.rename(tempPath, targetPath);
|
2447
2447
|
}
|
2448
2448
|
}
|
2449
2449
|
async function removeFileIfExists(filePath) {
|
2450
2450
|
try {
|
2451
|
-
await
|
2451
|
+
await import_fs.default.promises.unlink(filePath);
|
2452
2452
|
} catch (e) {
|
2453
2453
|
if (e.code !== "ENOENT") {
|
2454
2454
|
throw e;
|
@@ -16,12 +16,12 @@ 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 chunk_ZAFWMCVK_exports = {};
|
20
|
+
__export(chunk_ZAFWMCVK_exports, {
|
21
21
|
require_p_map: () => require_p_map,
|
22
22
|
require_rimraf: () => require_rimraf
|
23
23
|
});
|
24
|
-
module.exports = __toCommonJS(
|
24
|
+
module.exports = __toCommonJS(chunk_ZAFWMCVK_exports);
|
25
25
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
26
26
|
var require_indent_string = (0, import_chunk_AH6QHEOA.__commonJS)({
|
27
27
|
"../../node_modules/.pnpm/indent-string@4.0.0/node_modules/indent-string/index.js"(exports, module2) {
|
@@ -903,6 +903,7 @@ var require_minimatch = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
903
903
|
continue;
|
904
904
|
}
|
905
905
|
switch (c) {
|
906
|
+
/* istanbul ignore next */
|
906
907
|
case "/": {
|
907
908
|
return false;
|
908
909
|
}
|
@@ -910,6 +911,8 @@ var require_minimatch = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
910
911
|
clearStateChar();
|
911
912
|
escaping = true;
|
912
913
|
continue;
|
914
|
+
// the various stateChar values
|
915
|
+
// for the "extglob" stuff.
|
913
916
|
case "?":
|
914
917
|
case "*":
|
915
918
|
case "+":
|
@@ -970,6 +973,7 @@ var require_minimatch = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
970
973
|
clearStateChar();
|
971
974
|
re += "|";
|
972
975
|
continue;
|
976
|
+
// these are mostly the same in regexp and glob
|
973
977
|
case "[":
|
974
978
|
clearStateChar();
|
975
979
|
if (inClass) {
|
@@ -1555,6 +1559,7 @@ var require_sync = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1555
1559
|
}
|
1556
1560
|
var prefix;
|
1557
1561
|
switch (n) {
|
1562
|
+
// if not, then this is rather simple
|
1558
1563
|
case pattern.length:
|
1559
1564
|
this._processSimple(pattern.join("/"), index);
|
1560
1565
|
return;
|
@@ -1716,6 +1721,7 @@ var require_sync = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1716
1721
|
GlobSync.prototype._readdirError = function(f, er) {
|
1717
1722
|
switch (er.code) {
|
1718
1723
|
case "ENOTSUP":
|
1724
|
+
// https://github.com/isaacs/node-glob/issues/205
|
1719
1725
|
case "ENOTDIR":
|
1720
1726
|
var abs = this._makeAbs(f);
|
1721
1727
|
this.cache[abs] = "FILE";
|
@@ -1727,6 +1733,7 @@ var require_sync = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1727
1733
|
}
|
1728
1734
|
break;
|
1729
1735
|
case "ENOENT":
|
1736
|
+
// not terribly unusual
|
1730
1737
|
case "ELOOP":
|
1731
1738
|
case "ENAMETOOLONG":
|
1732
1739
|
case "UNKNOWN":
|
@@ -2170,6 +2177,7 @@ var require_glob = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2170
2177
|
}
|
2171
2178
|
var prefix;
|
2172
2179
|
switch (n) {
|
2180
|
+
// if not, then this is rather simple
|
2173
2181
|
case pattern.length:
|
2174
2182
|
this._processSimple(pattern.join("/"), index, cb);
|
2175
2183
|
return;
|
@@ -2359,6 +2367,7 @@ var require_glob = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2359
2367
|
return;
|
2360
2368
|
switch (er.code) {
|
2361
2369
|
case "ENOTSUP":
|
2370
|
+
// https://github.com/isaacs/node-glob/issues/205
|
2362
2371
|
case "ENOTDIR":
|
2363
2372
|
var abs = this._makeAbs(f);
|
2364
2373
|
this.cache[abs] = "FILE";
|
@@ -2371,6 +2380,7 @@ var require_glob = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2371
2380
|
}
|
2372
2381
|
break;
|
2373
2382
|
case "ENOENT":
|
2383
|
+
// not terribly unusual
|
2374
2384
|
case "ELOOP":
|
2375
2385
|
case "ENAMETOOLONG":
|
2376
2386
|
case "UNKNOWN":
|
package/dist/cleanupCache.js
CHANGED
@@ -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: () =>
|
21
|
+
cleanupCache: () => import_chunk_FOVXMBDU.cleanupCache
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(cleanupCache_exports);
|
24
|
-
var
|
25
|
-
var
|
26
|
-
var
|
24
|
+
var import_chunk_FOVXMBDU = require("./chunk-FOVXMBDU.js");
|
25
|
+
var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
|
26
|
+
var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.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,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_NOIIB3RP.download,
|
22
|
+
getBinaryName: () => import_chunk_NOIIB3RP.getBinaryName,
|
23
|
+
getVersion: () => import_chunk_NOIIB3RP.getVersion,
|
24
|
+
maybeCopyToTmp: () => import_chunk_NOIIB3RP.maybeCopyToTmp,
|
25
|
+
plusX: () => import_chunk_NOIIB3RP.plusX,
|
26
|
+
vercelPkgPathRegex: () => import_chunk_NOIIB3RP.vercelPkgPathRegex
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(download_exports);
|
29
|
-
var
|
29
|
+
var import_chunk_NOIIB3RP = require("./chunk-NOIIB3RP.js");
|
30
30
|
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
|
31
31
|
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
|
32
|
-
var
|
33
|
-
var
|
34
|
-
var
|
35
|
-
var
|
36
|
-
var
|
32
|
+
var import_chunk_FOVXMBDU = require("./chunk-FOVXMBDU.js");
|
33
|
+
var import_chunk_PAN2XU4H = require("./chunk-PAN2XU4H.js");
|
34
|
+
var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
|
35
|
+
var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
|
36
|
+
var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.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_OFSFRIEP = require("./chunk-OFSFRIEP.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_PAN2XU4H.downloadZip
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(downloadZip_exports);
|
24
|
-
var
|
25
|
-
var
|
26
|
-
var
|
27
|
-
var
|
24
|
+
var import_chunk_PAN2XU4H = require("./chunk-PAN2XU4H.js");
|
25
|
+
var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
|
26
|
+
var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
|
27
|
+
var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.js");
|
28
28
|
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
|
29
|
-
var
|
29
|
+
var import_chunk_OFSFRIEP = require("./chunk-OFSFRIEP.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_OFSFRIEP.getProxyAgent
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(getProxyAgent_exports);
|
24
|
-
var
|
24
|
+
var import_chunk_OFSFRIEP = require("./chunk-OFSFRIEP.js");
|
25
25
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
package/dist/index.js
CHANGED
@@ -21,29 +21,29 @@ __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: () =>
|
24
|
+
download: () => import_chunk_NOIIB3RP.download,
|
25
25
|
engineEnvVarMap: () => import_chunk_PXQVM7NP.engineEnvVarMap,
|
26
26
|
getBinaryEnvVarPath: () => import_chunk_PXQVM7NP.getBinaryEnvVarPath,
|
27
|
-
getBinaryName: () =>
|
28
|
-
getCacheDir: () =>
|
29
|
-
getProxyAgent: () =>
|
30
|
-
getVersion: () =>
|
31
|
-
maybeCopyToTmp: () =>
|
32
|
-
overwriteFile: () =>
|
33
|
-
plusX: () =>
|
34
|
-
vercelPkgPathRegex: () =>
|
27
|
+
getBinaryName: () => import_chunk_NOIIB3RP.getBinaryName,
|
28
|
+
getCacheDir: () => import_chunk_VVUX3UR2.getCacheDir,
|
29
|
+
getProxyAgent: () => import_chunk_OFSFRIEP.getProxyAgent,
|
30
|
+
getVersion: () => import_chunk_NOIIB3RP.getVersion,
|
31
|
+
maybeCopyToTmp: () => import_chunk_NOIIB3RP.maybeCopyToTmp,
|
32
|
+
overwriteFile: () => import_chunk_VVUX3UR2.overwriteFile,
|
33
|
+
plusX: () => import_chunk_NOIIB3RP.plusX,
|
34
|
+
vercelPkgPathRegex: () => import_chunk_NOIIB3RP.vercelPkgPathRegex
|
35
35
|
});
|
36
36
|
module.exports = __toCommonJS(dist_exports);
|
37
|
-
var
|
37
|
+
var import_chunk_NOIIB3RP = require("./chunk-NOIIB3RP.js");
|
38
38
|
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
|
39
39
|
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
|
40
|
-
var
|
41
|
-
var
|
42
|
-
var
|
43
|
-
var
|
44
|
-
var
|
40
|
+
var import_chunk_FOVXMBDU = require("./chunk-FOVXMBDU.js");
|
41
|
+
var import_chunk_PAN2XU4H = require("./chunk-PAN2XU4H.js");
|
42
|
+
var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
|
43
|
+
var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
|
44
|
+
var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.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_OFSFRIEP = require("./chunk-OFSFRIEP.js");
|
49
49
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
@@ -16,12 +16,12 @@ 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 multipart_parser_ITART6UP_exports = {};
|
20
|
+
__export(multipart_parser_ITART6UP_exports, {
|
21
21
|
toFormData: () => toFormData
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(multipart_parser_ITART6UP_exports);
|
24
|
+
var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
|
25
25
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
26
26
|
var s = 0;
|
27
27
|
var S = {
|
@@ -149,6 +149,7 @@ var MultipartParser = class {
|
|
149
149
|
state = S.HEADER_FIELD;
|
150
150
|
mark("onHeaderField");
|
151
151
|
index = 0;
|
152
|
+
// falls through
|
152
153
|
case S.HEADER_FIELD:
|
153
154
|
if (c === CR) {
|
154
155
|
clear("onHeaderField");
|
@@ -178,6 +179,7 @@ var MultipartParser = class {
|
|
178
179
|
}
|
179
180
|
mark("onHeaderValue");
|
180
181
|
state = S.HEADER_VALUE;
|
182
|
+
// falls through
|
181
183
|
case S.HEADER_VALUE:
|
182
184
|
if (c === CR) {
|
183
185
|
dataCallback("onHeaderValue", true);
|
@@ -201,6 +203,7 @@ var MultipartParser = class {
|
|
201
203
|
case S.PART_DATA_START:
|
202
204
|
state = S.PART_DATA;
|
203
205
|
mark("onPartData");
|
206
|
+
// falls through
|
204
207
|
case S.PART_DATA:
|
205
208
|
previousIndex = index;
|
206
209
|
if (index === 0) {
|
@@ -311,7 +314,7 @@ async function toFormData(Body, ct) {
|
|
311
314
|
let contentType;
|
312
315
|
let filename;
|
313
316
|
const entryChunks = [];
|
314
|
-
const formData = new
|
317
|
+
const formData = new import_chunk_TIRVZJHP.FormData();
|
315
318
|
const onPartData = (ui8a) => {
|
316
319
|
entryValue += decoder.decode(ui8a, { stream: true });
|
317
320
|
};
|
@@ -319,7 +322,7 @@ async function toFormData(Body, ct) {
|
|
319
322
|
entryChunks.push(ui8a);
|
320
323
|
};
|
321
324
|
const appendFileToFormData = () => {
|
322
|
-
const file = new
|
325
|
+
const file = new import_chunk_TIRVZJHP.file_default(entryChunks, filename, { type: contentType });
|
323
326
|
formData.append(entryName, file);
|
324
327
|
};
|
325
328
|
const appendEntryToFormData = () => {
|
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: () =>
|
22
|
-
getDownloadUrl: () =>
|
23
|
-
getRootCacheDir: () =>
|
24
|
-
overwriteFile: () =>
|
21
|
+
getCacheDir: () => import_chunk_VVUX3UR2.getCacheDir,
|
22
|
+
getDownloadUrl: () => import_chunk_VVUX3UR2.getDownloadUrl,
|
23
|
+
getRootCacheDir: () => import_chunk_VVUX3UR2.getRootCacheDir,
|
24
|
+
overwriteFile: () => import_chunk_VVUX3UR2.overwriteFile
|
25
25
|
});
|
26
26
|
module.exports = __toCommonJS(utils_exports);
|
27
|
-
var
|
27
|
+
var import_chunk_VVUX3UR2 = require("./chunk-VVUX3UR2.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": "5.23.0-dev.
|
3
|
+
"version": "5.23.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",
|
@@ -42,9 +42,9 @@
|
|
42
42
|
"typescript": "5.4.5"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@prisma/engines-version": "5.
|
46
|
-
"@prisma/debug": "5.23.0-dev.
|
47
|
-
"@prisma/get-platform": "5.23.0-dev.
|
45
|
+
"@prisma/engines-version": "5.23.0-13.06d4b2f30bf4fc71a1cb03bdc0f69f8c2a5c2b9c",
|
46
|
+
"@prisma/debug": "5.23.0-dev.21",
|
47
|
+
"@prisma/get-platform": "5.23.0-dev.21"
|
48
48
|
},
|
49
49
|
"files": [
|
50
50
|
"README.md",
|