@prisma/fetch-engine 6.3.0-integration-simpler-typeinfo-query.1 → 6.3.0-integration-studio-ux-refinements.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-QLWYUM7O.js → chunk-BBQM2DBF.js} +84 -84
- package/dist/{chunk-XOHJAYLM.js → chunk-E4U6QY5W.js} +22 -22
- package/dist/{chunk-QSTZGX47.js → chunk-FKKOTNO6.js} +8 -8
- package/dist/{chunk-BBSR4B7O.js → chunk-G7EM4XDM.js} +40 -40
- package/dist/{chunk-KDPLGCY6.js → chunk-OFSFRIEP.js} +8 -8
- package/dist/{chunk-VTJS2JJN.js → chunk-TIRVZJHP.js} +7 -7
- package/dist/{chunk-43CHHWJS.js → chunk-UE42BPIG.js} +23 -23
- 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 +19 -19
- package/dist/{multipart-parser-47FFAP42.js → multipart-parser-ITART6UP.js} +9 -6
- package/dist/utils.js +5 -5
- package/package.json +7 -7
- package/dist/chunk-74KKSUUB.js +0 -70
- package/dist/chunk-FQ2BOR66.js +0 -2457
- package/dist/chunk-VPECQVLG.js +0 -8153
@@ -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_G7EM4XDM_exports = {};
|
30
|
+
__export(chunk_G7EM4XDM_exports, {
|
31
31
|
getCacheDir: () => getCacheDir,
|
32
32
|
getDownloadUrl: () => getDownloadUrl,
|
33
33
|
getRootCacheDir: () => getRootCacheDir,
|
@@ -35,23 +35,23 @@ __export(chunk_BBSR4B7O_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_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");
|
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";
|
@@ -3042,18 +3042,18 @@ function checkType(type) {
|
|
3042
3042
|
throw new Error(`Invalid type specified: ${type}`);
|
3043
3043
|
}
|
3044
3044
|
var matchType = (type, stat) => stat[typeMappings[type]]();
|
3045
|
-
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0,
|
3045
|
+
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
|
3046
3046
|
function locatePathSync(paths, {
|
3047
|
-
cwd: cwd2 =
|
3047
|
+
cwd: cwd2 = import_node_process2.default.cwd(),
|
3048
3048
|
type = "file",
|
3049
3049
|
allowSymlinks = true
|
3050
3050
|
} = {}) {
|
3051
3051
|
checkType(type);
|
3052
3052
|
cwd2 = toPath(cwd2);
|
3053
|
-
const statFunction = allowSymlinks ?
|
3053
|
+
const statFunction = allowSymlinks ? import_node_fs2.default.statSync : import_node_fs2.default.lstatSync;
|
3054
3054
|
for (const path_ of paths) {
|
3055
3055
|
try {
|
3056
|
-
const stat = statFunction(
|
3056
|
+
const stat = statFunction(import_node_path4.default.resolve(cwd2, path_), {
|
3057
3057
|
throwIfNoEntry: false
|
3058
3058
|
});
|
3059
3059
|
if (!stat) {
|
@@ -3066,11 +3066,11 @@ function locatePathSync(paths, {
|
|
3066
3066
|
}
|
3067
3067
|
}
|
3068
3068
|
}
|
3069
|
-
var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0,
|
3069
|
+
var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
|
3070
3070
|
var findUpStop = Symbol("findUpStop");
|
3071
3071
|
function findUpMultipleSync(name, options = {}) {
|
3072
|
-
let directory =
|
3073
|
-
const { root } =
|
3072
|
+
let directory = import_node_path3.default.resolve(toPath2(options.cwd) || "");
|
3073
|
+
const { root } = import_node_path3.default.parse(directory);
|
3074
3074
|
const stopAt = options.stopAt || root;
|
3075
3075
|
const limit = options.limit || Number.POSITIVE_INFINITY;
|
3076
3076
|
const paths = [name].flat();
|
@@ -3091,12 +3091,12 @@ function findUpMultipleSync(name, options = {}) {
|
|
3091
3091
|
break;
|
3092
3092
|
}
|
3093
3093
|
if (foundPath) {
|
3094
|
-
matches.push(
|
3094
|
+
matches.push(import_node_path3.default.resolve(directory, foundPath));
|
3095
3095
|
}
|
3096
3096
|
if (directory === stopAt || matches.length >= limit) {
|
3097
3097
|
break;
|
3098
3098
|
}
|
3099
|
-
directory =
|
3099
|
+
directory = import_node_path3.default.dirname(directory);
|
3100
3100
|
}
|
3101
3101
|
return matches;
|
3102
3102
|
}
|
@@ -3106,12 +3106,12 @@ function findUpSync(name, options = {}) {
|
|
3106
3106
|
}
|
3107
3107
|
function packageDirectorySync({ cwd: cwd2 } = {}) {
|
3108
3108
|
const filePath = findUpSync("package.json", { cwd: cwd2 });
|
3109
|
-
return filePath &&
|
3109
|
+
return filePath && import_node_path2.default.dirname(filePath);
|
3110
3110
|
}
|
3111
|
-
var { env, cwd } =
|
3111
|
+
var { env, cwd } = import_node_process.default;
|
3112
3112
|
var isWritable = (path6) => {
|
3113
3113
|
try {
|
3114
|
-
|
3114
|
+
import_node_fs.default.accessSync(path6, import_node_fs.default.constants.W_OK);
|
3115
3115
|
return true;
|
3116
3116
|
} catch {
|
3117
3117
|
return false;
|
@@ -3119,27 +3119,27 @@ var isWritable = (path6) => {
|
|
3119
3119
|
};
|
3120
3120
|
function useDirectory(directory, options) {
|
3121
3121
|
if (options.create) {
|
3122
|
-
|
3122
|
+
import_node_fs.default.mkdirSync(directory, { recursive: true });
|
3123
3123
|
}
|
3124
3124
|
return directory;
|
3125
3125
|
}
|
3126
3126
|
function getNodeModuleDirectory(directory) {
|
3127
|
-
const nodeModules =
|
3128
|
-
if (!isWritable(nodeModules) && (
|
3127
|
+
const nodeModules = import_node_path.default.join(directory, "node_modules");
|
3128
|
+
if (!isWritable(nodeModules) && (import_node_fs.default.existsSync(nodeModules) || !isWritable(import_node_path.default.join(directory)))) {
|
3129
3129
|
return;
|
3130
3130
|
}
|
3131
3131
|
return nodeModules;
|
3132
3132
|
}
|
3133
3133
|
function findCacheDirectory(options = {}) {
|
3134
3134
|
if (env.CACHE_DIR && !["true", "false", "1", "0"].includes(env.CACHE_DIR)) {
|
3135
|
-
return useDirectory(
|
3135
|
+
return useDirectory(import_node_path.default.join(env.CACHE_DIR, options.name), options);
|
3136
3136
|
}
|
3137
3137
|
let { cwd: directory = cwd(), files } = options;
|
3138
3138
|
if (files) {
|
3139
3139
|
if (!Array.isArray(files)) {
|
3140
3140
|
throw new TypeError(`Expected \`files\` option to be an array, got \`${typeof files}\`.`);
|
3141
3141
|
}
|
3142
|
-
directory = (0, import_common_path_prefix.default)(files.map((file) =>
|
3142
|
+
directory = (0, import_common_path_prefix.default)(files.map((file) => import_node_path.default.resolve(directory, file)));
|
3143
3143
|
}
|
3144
3144
|
directory = packageDirectorySync({ cwd: directory });
|
3145
3145
|
if (!directory) {
|
@@ -3149,7 +3149,7 @@ function findCacheDirectory(options = {}) {
|
|
3149
3149
|
if (!nodeModules) {
|
3150
3150
|
return;
|
3151
3151
|
}
|
3152
|
-
return useDirectory(
|
3152
|
+
return useDirectory(import_node_path.default.join(directory, "node_modules", ".cache", options.name), options);
|
3153
3153
|
}
|
3154
3154
|
var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)(require_lib());
|
3155
3155
|
var debug = (0, import_debug.default)("prisma:fetch-engine:cache-dir");
|
@@ -3160,7 +3160,7 @@ async function getRootCacheDir() {
|
|
3160
3160
|
return cacheDir;
|
3161
3161
|
}
|
3162
3162
|
if (process.env.APPDATA) {
|
3163
|
-
return
|
3163
|
+
return import_path.default.join(process.env.APPDATA, "Prisma");
|
3164
3164
|
}
|
3165
3165
|
}
|
3166
3166
|
if (process.env.AWS_LAMBDA_FUNCTION_VERSION) {
|
@@ -3171,16 +3171,16 @@ async function getRootCacheDir() {
|
|
3171
3171
|
return null;
|
3172
3172
|
}
|
3173
3173
|
}
|
3174
|
-
return
|
3174
|
+
return import_path.default.join(import_os.default.homedir(), ".cache/prisma");
|
3175
3175
|
}
|
3176
3176
|
async function getCacheDir(channel, version, binaryTarget) {
|
3177
3177
|
const rootCacheDir = await getRootCacheDir();
|
3178
3178
|
if (!rootCacheDir) {
|
3179
3179
|
return null;
|
3180
3180
|
}
|
3181
|
-
const cacheDir =
|
3181
|
+
const cacheDir = import_path.default.join(rootCacheDir, channel, version, binaryTarget);
|
3182
3182
|
try {
|
3183
|
-
if (!
|
3183
|
+
if (!import_fs.default.existsSync(cacheDir)) {
|
3184
3184
|
await (0, import_fs_extra.ensureDir)(cacheDir);
|
3185
3185
|
}
|
3186
3186
|
} catch (e) {
|
@@ -3211,16 +3211,16 @@ function getDownloadUrl({
|
|
3211
3211
|
async function overwriteFile(sourcePath, targetPath) {
|
3212
3212
|
if (import_os.default.platform() === "darwin") {
|
3213
3213
|
await removeFileIfExists(targetPath);
|
3214
|
-
await
|
3214
|
+
await import_fs.default.promises.copyFile(sourcePath, targetPath);
|
3215
3215
|
} else {
|
3216
3216
|
let tempPath = `${targetPath}.tmp${process.pid}`;
|
3217
|
-
await
|
3218
|
-
await
|
3217
|
+
await import_fs.default.promises.copyFile(sourcePath, tempPath);
|
3218
|
+
await import_fs.default.promises.rename(tempPath, targetPath);
|
3219
3219
|
}
|
3220
3220
|
}
|
3221
3221
|
async function removeFileIfExists(filePath) {
|
3222
3222
|
try {
|
3223
|
-
await
|
3223
|
+
await import_fs.default.promises.unlink(filePath);
|
3224
3224
|
} catch (e) {
|
3225
3225
|
if (e.code !== "ENOENT") {
|
3226
3226
|
throw e;
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_OFSFRIEP_exports = {};
|
30
|
+
__export(chunk_OFSFRIEP_exports, {
|
31
31
|
getProxyAgent: () => getProxyAgent
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
33
|
+
module.exports = __toCommonJS(chunk_OFSFRIEP_exports);
|
34
34
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
35
35
|
var import_debug = __toESM(require("@prisma/debug"));
|
36
36
|
var import_url = __toESM(require("url"));
|
37
37
|
var require_ms = (0, import_chunk_AH6QHEOA.__commonJS)({
|
38
|
-
"../../node_modules/.pnpm/ms@2.1.
|
38
|
+
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module2) {
|
39
39
|
"use strict";
|
40
40
|
var s = 1e3;
|
41
41
|
var m = s * 60;
|
@@ -150,7 +150,7 @@ var require_ms = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
150
150
|
}
|
151
151
|
});
|
152
152
|
var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({
|
153
|
-
"../../node_modules/.pnpm/debug@4.3.
|
153
|
+
"../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js"(exports, module2) {
|
154
154
|
"use strict";
|
155
155
|
function setup(env) {
|
156
156
|
createDebug.debug = createDebug;
|
@@ -312,7 +312,7 @@ var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
312
312
|
}
|
313
313
|
});
|
314
314
|
var require_browser = (0, import_chunk_AH6QHEOA.__commonJS)({
|
315
|
-
"../../node_modules/.pnpm/debug@4.3.
|
315
|
+
"../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js"(exports, module2) {
|
316
316
|
"use strict";
|
317
317
|
exports.formatArgs = formatArgs;
|
318
318
|
exports.save = save;
|
@@ -604,7 +604,7 @@ var require_supports_color = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
604
604
|
}
|
605
605
|
});
|
606
606
|
var require_node = (0, import_chunk_AH6QHEOA.__commonJS)({
|
607
|
-
"../../node_modules/.pnpm/debug@4.3.
|
607
|
+
"../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js"(exports, module2) {
|
608
608
|
"use strict";
|
609
609
|
var tty = (0, import_chunk_AH6QHEOA.__require)("tty");
|
610
610
|
var util = (0, import_chunk_AH6QHEOA.__require)("util");
|
@@ -777,7 +777,7 @@ var require_node = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
777
777
|
}
|
778
778
|
});
|
779
779
|
var require_src = (0, import_chunk_AH6QHEOA.__commonJS)({
|
780
|
-
"../../node_modules/.pnpm/debug@4.3.
|
780
|
+
"../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js"(exports, module2) {
|
781
781
|
"use strict";
|
782
782
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
783
783
|
module2.exports = require_browser();
|
@@ -16,16 +16,16 @@ 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_TIRVZJHP_exports = {};
|
20
|
+
__export(chunk_TIRVZJHP_exports, {
|
21
21
|
FormData: () => FormData,
|
22
22
|
fetch_blob_default: () => fetch_blob_default,
|
23
23
|
file_default: () => file_default,
|
24
24
|
formDataToBlob: () => formDataToBlob
|
25
25
|
});
|
26
|
-
module.exports = __toCommonJS(
|
26
|
+
module.exports = __toCommonJS(chunk_TIRVZJHP_exports);
|
27
27
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
28
|
-
var
|
28
|
+
var import_node_fs = require("node:fs");
|
29
29
|
var require_ponyfill_es2018 = (0, import_chunk_AH6QHEOA.__commonJS)({
|
30
30
|
"../../node_modules/.pnpm/web-streams-polyfill@3.2.1/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js"(exports, module2) {
|
31
31
|
"use strict";
|
@@ -3841,12 +3841,12 @@ var require_streams = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
3841
3841
|
var POOL_SIZE2 = 65536;
|
3842
3842
|
if (!globalThis.ReadableStream) {
|
3843
3843
|
try {
|
3844
|
-
const process = (0, import_chunk_AH6QHEOA.__require)("process");
|
3844
|
+
const process = (0, import_chunk_AH6QHEOA.__require)("node:process");
|
3845
3845
|
const { emitWarning } = process;
|
3846
3846
|
try {
|
3847
3847
|
process.emitWarning = () => {
|
3848
3848
|
};
|
3849
|
-
Object.assign(globalThis, (0, import_chunk_AH6QHEOA.__require)("stream/web"));
|
3849
|
+
Object.assign(globalThis, (0, import_chunk_AH6QHEOA.__require)("node:stream/web"));
|
3850
3850
|
process.emitWarning = emitWarning;
|
3851
3851
|
} catch (error) {
|
3852
3852
|
process.emitWarning = emitWarning;
|
@@ -4218,7 +4218,7 @@ Content-Type: ${v.type || "application/octet-stream"}\r
|
|
4218
4218
|
return new B(c, { type: "multipart/form-data; boundary=" + b });
|
4219
4219
|
}
|
4220
4220
|
var import_node_domexception = (0, import_chunk_AH6QHEOA.__toESM)(require_node_domexception(), 1);
|
4221
|
-
var { stat } =
|
4221
|
+
var { stat } = import_node_fs.promises;
|
4222
4222
|
/*! Bundled license information:
|
4223
4223
|
|
4224
4224
|
node-domexception/index.js:
|
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_UE42BPIG_exports = {};
|
30
|
+
__export(chunk_UE42BPIG_exports, {
|
31
31
|
download: () => download,
|
32
32
|
getBinaryName: () => getBinaryName,
|
33
33
|
getVersion: () => getVersion,
|
@@ -35,12 +35,12 @@ __export(chunk_43CHHWJS_exports, {
|
|
35
35
|
plusX: () => plusX,
|
36
36
|
vercelPkgPathRegex: () => vercelPkgPathRegex
|
37
37
|
});
|
38
|
-
module.exports = __toCommonJS(
|
38
|
+
module.exports = __toCommonJS(chunk_UE42BPIG_exports);
|
39
39
|
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
|
40
40
|
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
|
41
|
-
var
|
42
|
-
var
|
43
|
-
var
|
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,
|
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.3.0-integration-
|
2013
|
+
version: "6.3.0-integration-studio-ux-refinements.1",
|
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,9 +2025,9 @@ 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.
|
2029
|
-
"@swc/jest": "0.2.
|
2030
|
-
"@types/jest": "29.5.
|
2028
|
+
"@swc/core": "1.10.1",
|
2029
|
+
"@swc/jest": "0.2.37",
|
2030
|
+
"@types/jest": "29.5.14",
|
2031
2031
|
"@types/node": "18.19.31",
|
2032
2032
|
"@types/progress": "2.0.7",
|
2033
2033
|
del: "6.1.1",
|
@@ -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.3.0-
|
2056
|
+
"@prisma/engines-version": "6.3.0-13.1635fdddbcd54b9f4b16ffcd9eb726b58d5408da",
|
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,
|
2074
|
+
var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_G7EM4XDM.require_lib)());
|
2075
2075
|
var import_p_filter = (0, import_chunk_AH6QHEOA.__toESM)(require_p_filter());
|
2076
|
-
var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0,
|
2076
|
+
var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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
|
}
|
@@ -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_FKKOTNO6.cleanupCache
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(cleanupCache_exports);
|
24
|
-
var
|
25
|
-
var
|
26
|
-
var
|
24
|
+
var import_chunk_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
|
25
|
+
var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.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,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_UE42BPIG.download,
|
22
|
+
getBinaryName: () => import_chunk_UE42BPIG.getBinaryName,
|
23
|
+
getVersion: () => import_chunk_UE42BPIG.getVersion,
|
24
|
+
maybeCopyToTmp: () => import_chunk_UE42BPIG.maybeCopyToTmp,
|
25
|
+
plusX: () => import_chunk_UE42BPIG.plusX,
|
26
|
+
vercelPkgPathRegex: () => import_chunk_UE42BPIG.vercelPkgPathRegex
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(download_exports);
|
29
|
-
var
|
29
|
+
var import_chunk_UE42BPIG = require("./chunk-UE42BPIG.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_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
|
33
|
+
var import_chunk_BBQM2DBF = require("./chunk-BBQM2DBF.js");
|
34
|
+
var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
|
35
|
+
var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.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");
|
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_BBQM2DBF.downloadZip
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(downloadZip_exports);
|
24
|
-
var
|
25
|
-
var
|
26
|
-
var
|
27
|
-
var
|
24
|
+
var import_chunk_BBQM2DBF = require("./chunk-BBQM2DBF.js");
|
25
|
+
var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
|
26
|
+
var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
|
27
|
+
var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
|
28
28
|
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
|
29
|
-
var
|
29
|
+
var import_chunk_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");
|