@prisma/internals 7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1 → 7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.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-VBLGRBF2.js → chunk-262R2PBW.js} +5 -5
- package/dist/chunk-3FP46GUV.js +471 -0
- package/dist/chunk-46ABODUM.js +186 -0
- package/dist/{chunk-GJSFP4V4.js → chunk-4CGPN5SR.js} +9 -3
- package/dist/{chunk-TCDF53CN.js → chunk-4JCVHBYR.js} +6 -6
- package/dist/{chunk-Q6D7PXUU.js → chunk-55ZV2II2.js} +38 -16
- package/dist/{chunk-YQYFLEMT.js → chunk-5ETP2F4G.js} +5 -5
- package/dist/{chunk-Z64WCHZR.js → chunk-5PEHPZHO.js} +11 -11
- package/dist/{chunk-PNYEHZAU.js → chunk-656EKQL7.js} +5 -5
- package/dist/{chunk-OWVQILDA.js → chunk-65XSDXPY.js} +13 -13
- package/dist/chunk-6TTRTZXU.js +37 -0
- package/dist/{chunk-Q5XW7CMJ.js → chunk-75BIJ5PX.js} +9 -9
- package/dist/{chunk-DXWYZA7B.js → chunk-7QC5VORA.js} +4 -3
- package/dist/{chunk-5YZKJGXV.js → chunk-7QKLIARO.js} +10 -8
- package/dist/{chunk-CQVWHHIJ.js → chunk-AX5N26KG.js} +6 -11
- package/dist/{chunk-NBWRGVYR.js → chunk-BCQZ6JQE.js} +6 -4
- package/dist/{chunk-BXIKQUP5.js → chunk-BVJP43JS.js} +7 -7
- package/dist/chunk-D4VDA2TZ.js +66 -0
- package/dist/{chunk-EQ6XBXVV.js → chunk-D6JNJJI7.js} +146 -58
- package/dist/chunk-DZYINYAA.js +68 -0
- package/dist/{chunk-4QR3X56D.js → chunk-E2QTLJH5.js} +13 -13
- package/dist/chunk-ERSH2BQA.js +58 -0
- package/dist/{chunk-42R3EIRM.js → chunk-EYVG6XQS.js} +67 -55
- package/dist/{chunk-GH2WAX5Y.js → chunk-F2OZV76L.js} +7 -7
- package/dist/{chunk-R3J2O23S.js → chunk-FCYHZHVW.js} +4 -4
- package/dist/{chunk-DQWKFZPY.js → chunk-FYZCPL2Z.js} +7 -4
- package/dist/{chunk-2GPDFPDR.js → chunk-GMW36QQF.js} +7 -7
- package/dist/{chunk-US23KCBP.js → chunk-H43XC5ET.js} +5 -5
- package/dist/{chunk-YXCPS3WU.js → chunk-HFFWZTVM.js} +15 -5
- package/dist/chunk-HO5HRHFZ.js +30 -0
- package/dist/chunk-HW5RCZSE.js +1 -0
- package/dist/{chunk-YV4IFLW4.js → chunk-JOIIWB3U.js} +129 -128
- package/dist/chunk-KDHESRKE.js +49 -0
- package/dist/{chunk-B4NUBXXO.js → chunk-KH7FI42S.js} +11 -11
- package/dist/chunk-L6KOIJJ5.js +125 -0
- package/dist/{chunk-3U4QB2G3.js → chunk-LYFOJ5NK.js} +6 -4
- package/dist/{chunk-Q75TMXCR.js → chunk-OAT7ZJED.js} +20 -7
- package/dist/{chunk-WK3RWN6T.js → chunk-OPLMJ5WZ.js} +146 -58
- package/dist/{chunk-SP2ETLT2.js → chunk-OSHZ4P3G.js} +5 -5
- package/dist/{chunk-QFQIWWVN.js → chunk-OWUYXGDF.js} +12 -12
- package/dist/chunk-PZMRR772.js +41 -0
- package/dist/{chunk-RR7B6GH2.js → chunk-QDT7TGYZ.js} +5 -5
- package/dist/{chunk-QNSOKYEF.js → chunk-QLOP3Z4E.js} +38 -16
- package/dist/{chunk-Y5TWK45J.js → chunk-QPQF4VGD.js} +12 -12
- package/dist/chunk-RFB2U4GQ.js +41 -0
- package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
- package/dist/chunk-T2PM5TKT.js +55 -0
- package/dist/{chunk-X2DGDDLX.js → chunk-THADADEM.js} +9 -7
- package/dist/{chunk-5BRXEOYH.js → chunk-TQFONRJP.js} +5 -5
- package/dist/{chunk-WSZXPLJQ.js → chunk-TZJROXB3.js} +4 -4
- package/dist/{chunk-YJVCIN4F.js → chunk-UHI6VYFX.js} +14 -16
- package/dist/{chunk-NYNXYKR4.js → chunk-UQUWZJVN.js} +7 -7
- package/dist/{chunk-N3FJZLFP.js → chunk-W6J5YFD2.js} +5 -5
- package/dist/{chunk-AJALNZEH.js → chunk-WDPDHAFW.js} +5 -5
- package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
- package/dist/{chunk-5IS5OH7Z.js → chunk-WKP2TVYB.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.d.ts +9 -7
- package/dist/cli/checkUnsupportedDataProxy.js +65 -53
- package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +22 -0
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +135 -0
- package/dist/cli/directoryConfig.d.ts +2 -5
- package/dist/cli/directoryConfig.js +2 -2
- package/dist/cli/getGeneratorSuccessMessage.js +3 -2
- package/dist/cli/getSchema.d.ts +20 -28
- package/dist/cli/getSchema.js +5 -7
- package/dist/cli/hashes.d.ts +1 -2
- package/dist/cli/hashes.js +4 -4
- package/dist/cli/schemaContext.d.ts +22 -5
- package/dist/cli/schemaContext.js +65 -54
- package/dist/cli/types.d.ts +1 -1
- package/dist/client/getClientEngineType.d.ts +7 -0
- package/dist/client/getClientEngineType.js +26 -0
- package/dist/convertCredentials.js +4 -4
- package/dist/dotenvExpand.d.ts +35 -0
- package/dist/dotenvExpand.js +25 -0
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +64 -52
- package/dist/engine-commands/getConfig.d.ts +5 -1
- package/dist/engine-commands/getConfig.js +13 -10
- package/dist/engine-commands/getDmmf.js +10 -10
- package/dist/engine-commands/getEngineVersion.js +9 -5
- package/dist/engine-commands/getEnginesInfo.d.ts +1 -0
- package/dist/engine-commands/getEnginesInfo.js +9 -6
- package/dist/engine-commands/index.d.ts +1 -1
- package/dist/engine-commands/index.js +76 -62
- package/dist/engine-commands/lintSchema.js +9 -9
- package/dist/engine-commands/mergeSchemas.js +10 -10
- package/dist/engine-commands/queryEngineCommons.js +6 -6
- package/dist/engine-commands/validate.js +10 -10
- package/dist/get-generators/getGenerators.d.ts +2 -0
- package/dist/get-generators/getGenerators.js +67 -55
- package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
- package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
- package/dist/getPackedPackage.js +3 -3
- package/dist/index.d.ts +19 -5
- package/dist/index.js +125 -99
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/sendPanic.js +3 -2
- package/dist/tracing/types.d.ts +54 -0
- package/dist/tracing/types.js +2 -0
- package/dist/types.d.ts +0 -15
- package/dist/utils/__tests__/maskSchema.test.js +23 -0
- package/dist/utils/byline.d.ts +4 -0
- package/dist/utils/byline.js +28 -0
- package/dist/utils/canPrompt.js +3 -3
- package/dist/utils/cloudflareD1.d.ts +5 -0
- package/dist/utils/cloudflareD1.js +27 -0
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getEnvPaths.d.ts +14 -0
- package/dist/utils/{validatePrismaConfigWithDatasource.js → getEnvPaths.js} +8 -7
- package/dist/utils/getMigrateConfigDir.d.ts +2 -0
- package/dist/utils/getMigrateConfigDir.js +25 -0
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handleEngineLoadingErrors.d.ts +8 -0
- package/dist/utils/handleEngineLoadingErrors.js +27 -0
- package/dist/utils/handlePanic.js +7 -6
- package/dist/utils/load.d.ts +6 -0
- package/dist/utils/load.js +28 -0
- package/dist/utils/loadEnvFile.d.ts +10 -0
- package/dist/utils/loadEnvFile.js +30 -0
- package/dist/utils/maskSchema.d.ts +4 -0
- package/dist/utils/maskSchema.js +27 -0
- package/dist/utils/missingDatasource.js +2 -2
- package/dist/utils/missingGeneratorMessage.js +4 -4
- package/dist/utils/serializeQueryEngineName.d.ts +4 -0
- package/dist/utils/serializeQueryEngineName.js +25 -0
- package/dist/utils/toSchemasContainer.d.ts +1 -1
- package/dist/utils/toSchemasContainer.js +3 -3
- package/dist/utils/tryLoadEnvs.d.ts +25 -0
- package/dist/utils/tryLoadEnvs.js +30 -0
- package/dist/wasm.js +5 -5
- package/package.json +17 -15
- package/dist/chunk-5SAWCTGN.js +0 -46
- package/dist/utils/validatePrismaConfigWithDatasource.d.ts +0 -15
|
@@ -26,17 +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(
|
|
31
|
-
|
|
32
|
-
getCliProvidedSchemaFile: () => getCliProvidedSchemaFile,
|
|
33
|
-
getConfigProvidedSchemaFile: () => getConfigProvidedSchemaFile,
|
|
29
|
+
var chunk_EYVG6XQS_exports = {};
|
|
30
|
+
__export(chunk_EYVG6XQS_exports, {
|
|
31
|
+
getSchemaFromPackageJson: () => getSchemaFromPackageJson,
|
|
34
32
|
getSchemaWithPath: () => getSchemaWithPath,
|
|
35
33
|
getSchemaWithPathOptional: () => getSchemaWithPathOptional,
|
|
36
34
|
printSchemaLoadedMessage: () => printSchemaLoadedMessage
|
|
37
35
|
});
|
|
38
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(chunk_EYVG6XQS_exports);
|
|
39
37
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
38
|
+
var import_config = require("@prisma/config");
|
|
40
39
|
var import_debug = require("@prisma/debug");
|
|
41
40
|
var import_schema_files_loader = require("@prisma/schema-files-loader");
|
|
42
41
|
var import_fs = __toESM(require("fs"));
|
|
@@ -45,30 +44,15 @@ var import_util = require("util");
|
|
|
45
44
|
var readFile = (0, import_util.promisify)(import_fs.default.readFile);
|
|
46
45
|
var stat = (0, import_util.promisify)(import_fs.default.stat);
|
|
47
46
|
var debug = (0, import_debug.Debug)("prisma:getSchema");
|
|
48
|
-
function
|
|
49
|
-
schemaPathFromArgs,
|
|
50
|
-
schemaPathFromConfig,
|
|
51
|
-
baseDir
|
|
52
|
-
}) {
|
|
53
|
-
return schemaPathFromArgs ? { cliProvidedPath: schemaPathFromArgs } : schemaPathFromConfig ? { configProvidedPath: schemaPathFromConfig } : { baseDir };
|
|
54
|
-
}
|
|
55
|
-
async function getSchemaWithPath({
|
|
56
|
-
schemaPath,
|
|
57
|
-
cwd = process.cwd(),
|
|
58
|
-
argumentName = "--schema"
|
|
59
|
-
}) {
|
|
60
|
-
const result = await getSchemaWithPathInternal({ schemaPath, cwd, argumentName });
|
|
47
|
+
async function getSchemaWithPath(schemaPathFromArgs, schemaPathFromConfig, { cwd = process.cwd(), argumentName = "--schema" } = {}) {
|
|
48
|
+
const result = await getSchemaWithPathInternal(schemaPathFromArgs, schemaPathFromConfig, { cwd, argumentName });
|
|
61
49
|
if (result.ok) {
|
|
62
50
|
return result.schema;
|
|
63
51
|
}
|
|
64
52
|
throw new Error(renderDefaultLookupError(result.error, cwd));
|
|
65
53
|
}
|
|
66
|
-
async function getSchemaWithPathOptional({
|
|
67
|
-
|
|
68
|
-
cwd = process.cwd(),
|
|
69
|
-
argumentName = "--schema"
|
|
70
|
-
}) {
|
|
71
|
-
const result = await getSchemaWithPathInternal({ schemaPath, cwd, argumentName });
|
|
54
|
+
async function getSchemaWithPathOptional(schemaPathFromArgs, schemaPathFromConfig, { cwd = process.cwd(), argumentName = "--schema" } = {}) {
|
|
55
|
+
const result = await getSchemaWithPathInternal(schemaPathFromArgs, schemaPathFromConfig, { cwd, argumentName });
|
|
72
56
|
if (result.ok) {
|
|
73
57
|
return result.schema;
|
|
74
58
|
}
|
|
@@ -117,24 +101,29 @@ async function readSchemaFromFileOrDirectory(schemaPath) {
|
|
|
117
101
|
}
|
|
118
102
|
return { ok: false, error: { kind: "WrongType", path: schemaPath, expectedTypes: ["file", "directory"] } };
|
|
119
103
|
}
|
|
120
|
-
async function getSchemaWithPathInternal({
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
104
|
+
async function getSchemaWithPathInternal(schemaPathFromArgs, schemaPathFromConfig, { cwd, argumentName }) {
|
|
105
|
+
if (schemaPathFromArgs) {
|
|
106
|
+
const absPath = import_path.default.resolve(cwd, schemaPathFromArgs);
|
|
107
|
+
const customSchemaResult = await readSchemaFromFileOrDirectory(absPath);
|
|
108
|
+
if (!customSchemaResult.ok) {
|
|
109
|
+
const relPath = import_path.default.relative(cwd, absPath);
|
|
110
|
+
throw new Error(
|
|
111
|
+
`Could not load \`${argumentName}\` from provided path \`${relPath}\`: ${renderLookupError(
|
|
112
|
+
customSchemaResult.error
|
|
113
|
+
)}`
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
return customSchemaResult;
|
|
130
117
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
118
|
+
const prismaConfigResult = await readSchemaFromPrismaConfigBasedLocation(schemaPathFromConfig);
|
|
119
|
+
if (prismaConfigResult.ok) {
|
|
120
|
+
return prismaConfigResult;
|
|
121
|
+
}
|
|
122
|
+
const pkgJsonResult = await getSchemaFromPackageJson(cwd);
|
|
123
|
+
if (pkgJsonResult.ok) {
|
|
124
|
+
return pkgJsonResult;
|
|
136
125
|
}
|
|
137
|
-
const defaultResult = await getDefaultSchema(
|
|
126
|
+
const defaultResult = await getDefaultSchema(cwd);
|
|
138
127
|
if (defaultResult.ok) {
|
|
139
128
|
return defaultResult;
|
|
140
129
|
}
|
|
@@ -173,20 +162,13 @@ function renderDefaultLookupError(error, cwd) {
|
|
|
173
162
|
parts.push("\nSee also https://pris.ly/d/prisma-schema-location");
|
|
174
163
|
return parts.join("\n");
|
|
175
164
|
}
|
|
176
|
-
async function
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
`Could not load \`${argumentName}\` from provided path \`${relPath}\`: ${renderLookupError(
|
|
183
|
-
customSchemaResult.error
|
|
184
|
-
)}`
|
|
185
|
-
);
|
|
165
|
+
async function readSchemaFromPrismaConfigBasedLocation(schemaPathFromConfig) {
|
|
166
|
+
if (!schemaPathFromConfig) {
|
|
167
|
+
return {
|
|
168
|
+
ok: false,
|
|
169
|
+
error: { kind: "PrismaConfigNotConfigured" }
|
|
170
|
+
};
|
|
186
171
|
}
|
|
187
|
-
return customSchemaResult.schema;
|
|
188
|
-
}
|
|
189
|
-
async function getConfigProvidedSchemaFile(schemaPathFromConfig) {
|
|
190
172
|
const schemaResult = await readSchemaFromFileOrDirectory(schemaPathFromConfig);
|
|
191
173
|
if (!schemaResult.ok) {
|
|
192
174
|
throw new Error(
|
|
@@ -195,7 +177,37 @@ async function getConfigProvidedSchemaFile(schemaPathFromConfig) {
|
|
|
195
177
|
)}`
|
|
196
178
|
);
|
|
197
179
|
}
|
|
198
|
-
return schemaResult
|
|
180
|
+
return schemaResult;
|
|
181
|
+
}
|
|
182
|
+
async function getSchemaFromPackageJson(cwd) {
|
|
183
|
+
const prismaConfig = await (0, import_config.loadConfigFromPackageJson)(cwd);
|
|
184
|
+
debug("prismaConfig", prismaConfig);
|
|
185
|
+
if (!prismaConfig || !prismaConfig.config?.schema) {
|
|
186
|
+
return { ok: false, error: { kind: "PackageJsonNotConfigured" } };
|
|
187
|
+
}
|
|
188
|
+
const schemaPathFromPkgJson = prismaConfig.config.schema;
|
|
189
|
+
if (typeof schemaPathFromPkgJson !== "string") {
|
|
190
|
+
throw new Error(
|
|
191
|
+
`Provided schema path \`${schemaPathFromPkgJson}\` from \`${import_path.default.relative(
|
|
192
|
+
cwd,
|
|
193
|
+
prismaConfig.loadedFromFile
|
|
194
|
+
)}\` must be of type string`
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
const absoluteSchemaPath = import_path.default.isAbsolute(schemaPathFromPkgJson) ? schemaPathFromPkgJson : import_path.default.resolve(import_path.default.dirname(prismaConfig.loadedFromFile), schemaPathFromPkgJson);
|
|
198
|
+
const lookupResult = await readSchemaFromFileOrDirectory(absoluteSchemaPath);
|
|
199
|
+
if (!lookupResult.ok) {
|
|
200
|
+
throw new Error(
|
|
201
|
+
`Could not load schema from \`${import_path.default.relative(
|
|
202
|
+
cwd,
|
|
203
|
+
absoluteSchemaPath
|
|
204
|
+
)}\` provided by "prisma.schema" config of \`${import_path.default.relative(
|
|
205
|
+
cwd,
|
|
206
|
+
prismaConfig.loadedFromFile
|
|
207
|
+
)}\`: ${renderLookupError(lookupResult.error)}`
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
return lookupResult;
|
|
199
211
|
}
|
|
200
212
|
async function getDefaultSchema(cwd, failures = []) {
|
|
201
213
|
const lookupPaths = [import_path.default.join(cwd, "schema.prisma"), import_path.default.join(cwd, "prisma", "schema.prisma")];
|
|
@@ -26,13 +26,13 @@ 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_F2OZV76L_exports = {};
|
|
30
|
+
__export(chunk_F2OZV76L_exports, {
|
|
31
31
|
getBinaryPathsByVersion: () => getBinaryPathsByVersion
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
35
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_F2OZV76L_exports);
|
|
34
|
+
var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
|
|
35
|
+
var import_chunk_4CGPN5SR = require("./chunk-4CGPN5SR.js");
|
|
36
36
|
var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
|
|
37
37
|
var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
|
|
38
38
|
var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
|
|
@@ -91,7 +91,7 @@ async function getBinaryPathsByVersion({
|
|
|
91
91
|
}
|
|
92
92
|
const binariesConfig = neededVersion.engines.reduce((acc, curr) => {
|
|
93
93
|
if (!binaryPathsOverride?.[curr]) {
|
|
94
|
-
acc[(0,
|
|
94
|
+
acc[(0, import_chunk_4CGPN5SR.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
|
|
95
95
|
}
|
|
96
96
|
return acc;
|
|
97
97
|
}, /* @__PURE__ */ Object.create(null));
|
|
@@ -107,7 +107,7 @@ async function getBinaryPathsByVersion({
|
|
|
107
107
|
skipDownload
|
|
108
108
|
};
|
|
109
109
|
const binaryPathsWithEngineType = await (0, import_fetch_engine.download)(downloadParams);
|
|
110
|
-
const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType,
|
|
110
|
+
const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_RS2R7COT.binaryTypeToEngineType);
|
|
111
111
|
binaryPathsByVersion[currentVersion] = binaryPaths;
|
|
112
112
|
}
|
|
113
113
|
if (binaryPathsOverride) {
|
|
@@ -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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_FCYHZHVW_exports = {};
|
|
30
|
+
__export(chunk_FCYHZHVW_exports, {
|
|
31
31
|
canPrompt: () => canPrompt
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var import_chunk_ICFLO5JW = require("./chunk-ICFLO5JW.js");
|
|
33
|
+
module.exports = __toCommonJS(chunk_FCYHZHVW_exports);
|
|
35
34
|
var import_chunk_H4NI2RIK = require("./chunk-H4NI2RIK.js");
|
|
35
|
+
var import_chunk_ICFLO5JW = require("./chunk-ICFLO5JW.js");
|
|
36
36
|
var import_prompts = __toESM(require("prompts"));
|
|
37
37
|
var canPrompt = () => {
|
|
38
38
|
const injectedCount = import_prompts.default._injected?.length;
|
|
@@ -26,17 +26,17 @@ 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_FYZCPL2Z_exports = {};
|
|
30
|
+
__export(chunk_FYZCPL2Z_exports, {
|
|
31
31
|
BinaryType: () => import_fetch_engine.BinaryType,
|
|
32
32
|
engineEnvVarMap: () => import_fetch_engine.engineEnvVarMap,
|
|
33
33
|
maybeCopyToTmp: () => maybeCopyToTmp,
|
|
34
34
|
resolveBinary: () => resolveBinary,
|
|
35
35
|
safeResolveBinary: () => safeResolveBinary
|
|
36
36
|
});
|
|
37
|
-
module.exports = __toCommonJS(
|
|
38
|
-
var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
|
|
37
|
+
module.exports = __toCommonJS(chunk_FYZCPL2Z_exports);
|
|
39
38
|
var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
|
|
39
|
+
var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
|
|
40
40
|
var import_chunk_TWSLDIFL = require("./chunk-TWSLDIFL.js");
|
|
41
41
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
42
42
|
var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");
|
|
@@ -51,6 +51,9 @@ var import_temp_dir = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_5VQNKC
|
|
|
51
51
|
async function getBinaryName(name) {
|
|
52
52
|
const binaryTarget = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)();
|
|
53
53
|
const extension = binaryTarget === "windows" ? ".exe" : "";
|
|
54
|
+
if (name === import_fetch_engine.BinaryType.QueryEngineLibrary) {
|
|
55
|
+
return (0, import_get_platform.getNodeAPIName)(binaryTarget, "fs");
|
|
56
|
+
}
|
|
54
57
|
return `${name}-${binaryTarget}${extension}`;
|
|
55
58
|
}
|
|
56
59
|
async function resolveBinary(name, proposedPath) {
|
|
@@ -26,15 +26,15 @@ 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_GMW36QQF_exports = {};
|
|
30
|
+
__export(chunk_GMW36QQF_exports, {
|
|
31
31
|
getEnginesInfo: () => getEnginesInfo,
|
|
32
32
|
resolveEngine: () => resolveEngine
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_GMW36QQF_exports);
|
|
35
|
+
var import_chunk_OAT7ZJED = require("./chunk-OAT7ZJED.js");
|
|
36
36
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
|
|
38
38
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
39
39
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
40
40
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
@@ -131,7 +131,7 @@ async function resolveEngine(binaryName) {
|
|
|
131
131
|
const enginePathEither = await (0, import_function2.pipe)(
|
|
132
132
|
pathFromEnvOption,
|
|
133
133
|
fold(
|
|
134
|
-
() => (0,
|
|
134
|
+
() => (0, import_chunk_FYZCPL2Z.safeResolveBinary)(binaryName),
|
|
135
135
|
(pathFromEnv) => (0, import_chunk_5DBOS77Y.right2)(pathFromEnv.path)
|
|
136
136
|
)
|
|
137
137
|
)();
|
|
@@ -139,7 +139,7 @@ async function resolveEngine(binaryName) {
|
|
|
139
139
|
enginePathEither,
|
|
140
140
|
import_chunk_5DBOS77Y.fromEither,
|
|
141
141
|
(0, import_chunk_5DBOS77Y.chain)((enginePath) => {
|
|
142
|
-
return (0,
|
|
142
|
+
return (0, import_chunk_OAT7ZJED.safeGetEngineVersion)(enginePath, binaryName);
|
|
143
143
|
})
|
|
144
144
|
)();
|
|
145
145
|
const engineInfo = {
|
|
@@ -16,11 +16,11 @@ 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_H43XC5ET_exports = {};
|
|
20
|
+
__export(chunk_H43XC5ET_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_H43XC5ET_exports);
|
|
24
|
+
var import_chunk_7QKLIARO = require("./chunk-7QKLIARO.js");
|
|
25
|
+
var packageJson = (0, import_chunk_7QKLIARO.require_package)();
|
|
26
26
|
var version = packageJson.version;
|
|
@@ -26,11 +26,12 @@ 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_HFFWZTVM_exports = {};
|
|
30
|
+
__export(chunk_HFFWZTVM_exports, {
|
|
31
31
|
sendPanic: () => sendPanic
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_HFFWZTVM_exports);
|
|
34
|
+
var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
|
|
34
35
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
35
36
|
var import_chunk_5AI4FIZ3 = require("./chunk-5AI4FIZ3.js");
|
|
36
37
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
@@ -1784,7 +1785,14 @@ async function sendPanic({
|
|
|
1784
1785
|
}).otherwise(() => void 0);
|
|
1785
1786
|
dbVersion = await getDatabaseVersionSafe(getDatabaseVersionParams);
|
|
1786
1787
|
}
|
|
1787
|
-
const migrateRequest = error.request ? JSON.stringify(
|
|
1788
|
+
const migrateRequest = error.request ? JSON.stringify(
|
|
1789
|
+
(0, import_chunk_KDHESRKE.mapScalarValues)(error.request, (value) => {
|
|
1790
|
+
if (typeof value === "string") {
|
|
1791
|
+
return (0, import_chunk_KDHESRKE.maskSchema)(value);
|
|
1792
|
+
}
|
|
1793
|
+
return value;
|
|
1794
|
+
})
|
|
1795
|
+
) : void 0;
|
|
1788
1796
|
const params = {
|
|
1789
1797
|
area: error.area,
|
|
1790
1798
|
kind: "RUST_PANIC",
|
|
@@ -1805,7 +1813,9 @@ async function sendPanic({
|
|
|
1805
1813
|
return id;
|
|
1806
1814
|
}
|
|
1807
1815
|
function getCommand() {
|
|
1808
|
-
if (process.argv[2] === "
|
|
1816
|
+
if (process.argv[2] === "introspect") {
|
|
1817
|
+
return "introspect";
|
|
1818
|
+
} else if (process.argv[2] === "db" && process.argv[3] === "pull") {
|
|
1809
1819
|
return "db pull";
|
|
1810
1820
|
}
|
|
1811
1821
|
return process.argv.slice(2).join(" ");
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var chunk_HO5HRHFZ_exports = {};
|
|
20
|
+
__export(chunk_HO5HRHFZ_exports, {
|
|
21
|
+
serializeQueryEngineName: () => serializeQueryEngineName
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(chunk_HO5HRHFZ_exports);
|
|
24
|
+
function serializeQueryEngineName(message) {
|
|
25
|
+
const normalizedName = "query-engine-NORMALIZED";
|
|
26
|
+
if (process.env.PRISMA_CLI_QUERY_ENGINE_TYPE === "binary") {
|
|
27
|
+
return message.replace(/query-engine binary/g, normalizedName);
|
|
28
|
+
}
|
|
29
|
+
return message.replace(/query-engine-node-api library/g, normalizedName);
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -16,139 +16,15 @@ 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_JOIIWB3U_exports = {};
|
|
20
|
+
__export(chunk_JOIIWB3U_exports, {
|
|
21
21
|
require_globby: () => require_globby,
|
|
22
22
|
require_is_glob: () => require_is_glob,
|
|
23
|
+
require_out: () => require_out4,
|
|
23
24
|
require_slash: () => require_slash
|
|
24
25
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
26
|
+
module.exports = __toCommonJS(chunk_JOIIWB3U_exports);
|
|
26
27
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
27
|
-
var require_array_union = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
28
|
-
"../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) {
|
|
29
|
-
"use strict";
|
|
30
|
-
module2.exports = (...arguments_) => {
|
|
31
|
-
return [...new Set([].concat(...arguments_))];
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
var require_merge2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
36
|
-
"../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(exports, module2) {
|
|
37
|
-
"use strict";
|
|
38
|
-
var Stream = (0, import_chunk_4VNS5WPM.__require)("stream");
|
|
39
|
-
var PassThrough = Stream.PassThrough;
|
|
40
|
-
var slice = Array.prototype.slice;
|
|
41
|
-
module2.exports = merge2;
|
|
42
|
-
function merge2() {
|
|
43
|
-
const streamsQueue = [];
|
|
44
|
-
const args = slice.call(arguments);
|
|
45
|
-
let merging = false;
|
|
46
|
-
let options = args[args.length - 1];
|
|
47
|
-
if (options && !Array.isArray(options) && options.pipe == null) {
|
|
48
|
-
args.pop();
|
|
49
|
-
} else {
|
|
50
|
-
options = {};
|
|
51
|
-
}
|
|
52
|
-
const doEnd = options.end !== false;
|
|
53
|
-
const doPipeError = options.pipeError === true;
|
|
54
|
-
if (options.objectMode == null) {
|
|
55
|
-
options.objectMode = true;
|
|
56
|
-
}
|
|
57
|
-
if (options.highWaterMark == null) {
|
|
58
|
-
options.highWaterMark = 64 * 1024;
|
|
59
|
-
}
|
|
60
|
-
const mergedStream = PassThrough(options);
|
|
61
|
-
function addStream() {
|
|
62
|
-
for (let i = 0, len = arguments.length; i < len; i++) {
|
|
63
|
-
streamsQueue.push(pauseStreams(arguments[i], options));
|
|
64
|
-
}
|
|
65
|
-
mergeStream();
|
|
66
|
-
return this;
|
|
67
|
-
}
|
|
68
|
-
function mergeStream() {
|
|
69
|
-
if (merging) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
merging = true;
|
|
73
|
-
let streams = streamsQueue.shift();
|
|
74
|
-
if (!streams) {
|
|
75
|
-
process.nextTick(endStream);
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
if (!Array.isArray(streams)) {
|
|
79
|
-
streams = [streams];
|
|
80
|
-
}
|
|
81
|
-
let pipesCount = streams.length + 1;
|
|
82
|
-
function next() {
|
|
83
|
-
if (--pipesCount > 0) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
merging = false;
|
|
87
|
-
mergeStream();
|
|
88
|
-
}
|
|
89
|
-
function pipe(stream) {
|
|
90
|
-
function onend() {
|
|
91
|
-
stream.removeListener("merge2UnpipeEnd", onend);
|
|
92
|
-
stream.removeListener("end", onend);
|
|
93
|
-
if (doPipeError) {
|
|
94
|
-
stream.removeListener("error", onerror);
|
|
95
|
-
}
|
|
96
|
-
next();
|
|
97
|
-
}
|
|
98
|
-
function onerror(err) {
|
|
99
|
-
mergedStream.emit("error", err);
|
|
100
|
-
}
|
|
101
|
-
if (stream._readableState.endEmitted) {
|
|
102
|
-
return next();
|
|
103
|
-
}
|
|
104
|
-
stream.on("merge2UnpipeEnd", onend);
|
|
105
|
-
stream.on("end", onend);
|
|
106
|
-
if (doPipeError) {
|
|
107
|
-
stream.on("error", onerror);
|
|
108
|
-
}
|
|
109
|
-
stream.pipe(mergedStream, { end: false });
|
|
110
|
-
stream.resume();
|
|
111
|
-
}
|
|
112
|
-
for (let i = 0; i < streams.length; i++) {
|
|
113
|
-
pipe(streams[i]);
|
|
114
|
-
}
|
|
115
|
-
next();
|
|
116
|
-
}
|
|
117
|
-
function endStream() {
|
|
118
|
-
merging = false;
|
|
119
|
-
mergedStream.emit("queueDrain");
|
|
120
|
-
if (doEnd) {
|
|
121
|
-
mergedStream.end();
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
mergedStream.setMaxListeners(0);
|
|
125
|
-
mergedStream.add = addStream;
|
|
126
|
-
mergedStream.on("unpipe", function(stream) {
|
|
127
|
-
stream.emit("merge2UnpipeEnd");
|
|
128
|
-
});
|
|
129
|
-
if (args.length) {
|
|
130
|
-
addStream.apply(null, args);
|
|
131
|
-
}
|
|
132
|
-
return mergedStream;
|
|
133
|
-
}
|
|
134
|
-
function pauseStreams(streams, options) {
|
|
135
|
-
if (!Array.isArray(streams)) {
|
|
136
|
-
if (!streams._readableState && streams.pipe) {
|
|
137
|
-
streams = streams.pipe(PassThrough(options));
|
|
138
|
-
}
|
|
139
|
-
if (!streams._readableState || !streams.pause || !streams.pipe) {
|
|
140
|
-
throw new Error("Only readable stream can be merged.");
|
|
141
|
-
}
|
|
142
|
-
streams.pause();
|
|
143
|
-
} else {
|
|
144
|
-
for (let i = 0, len = streams.length; i < len; i++) {
|
|
145
|
-
streams[i] = pauseStreams(streams[i], options);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return streams;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
28
|
var require_array = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
153
29
|
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
154
30
|
"use strict";
|
|
@@ -3314,6 +3190,123 @@ var require_pattern = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
3314
3190
|
exports.isAbsolute = isAbsolute;
|
|
3315
3191
|
}
|
|
3316
3192
|
});
|
|
3193
|
+
var require_merge2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
3194
|
+
"../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(exports, module2) {
|
|
3195
|
+
"use strict";
|
|
3196
|
+
var Stream = (0, import_chunk_4VNS5WPM.__require)("stream");
|
|
3197
|
+
var PassThrough = Stream.PassThrough;
|
|
3198
|
+
var slice = Array.prototype.slice;
|
|
3199
|
+
module2.exports = merge2;
|
|
3200
|
+
function merge2() {
|
|
3201
|
+
const streamsQueue = [];
|
|
3202
|
+
const args = slice.call(arguments);
|
|
3203
|
+
let merging = false;
|
|
3204
|
+
let options = args[args.length - 1];
|
|
3205
|
+
if (options && !Array.isArray(options) && options.pipe == null) {
|
|
3206
|
+
args.pop();
|
|
3207
|
+
} else {
|
|
3208
|
+
options = {};
|
|
3209
|
+
}
|
|
3210
|
+
const doEnd = options.end !== false;
|
|
3211
|
+
const doPipeError = options.pipeError === true;
|
|
3212
|
+
if (options.objectMode == null) {
|
|
3213
|
+
options.objectMode = true;
|
|
3214
|
+
}
|
|
3215
|
+
if (options.highWaterMark == null) {
|
|
3216
|
+
options.highWaterMark = 64 * 1024;
|
|
3217
|
+
}
|
|
3218
|
+
const mergedStream = PassThrough(options);
|
|
3219
|
+
function addStream() {
|
|
3220
|
+
for (let i = 0, len = arguments.length; i < len; i++) {
|
|
3221
|
+
streamsQueue.push(pauseStreams(arguments[i], options));
|
|
3222
|
+
}
|
|
3223
|
+
mergeStream();
|
|
3224
|
+
return this;
|
|
3225
|
+
}
|
|
3226
|
+
function mergeStream() {
|
|
3227
|
+
if (merging) {
|
|
3228
|
+
return;
|
|
3229
|
+
}
|
|
3230
|
+
merging = true;
|
|
3231
|
+
let streams = streamsQueue.shift();
|
|
3232
|
+
if (!streams) {
|
|
3233
|
+
process.nextTick(endStream);
|
|
3234
|
+
return;
|
|
3235
|
+
}
|
|
3236
|
+
if (!Array.isArray(streams)) {
|
|
3237
|
+
streams = [streams];
|
|
3238
|
+
}
|
|
3239
|
+
let pipesCount = streams.length + 1;
|
|
3240
|
+
function next() {
|
|
3241
|
+
if (--pipesCount > 0) {
|
|
3242
|
+
return;
|
|
3243
|
+
}
|
|
3244
|
+
merging = false;
|
|
3245
|
+
mergeStream();
|
|
3246
|
+
}
|
|
3247
|
+
function pipe(stream) {
|
|
3248
|
+
function onend() {
|
|
3249
|
+
stream.removeListener("merge2UnpipeEnd", onend);
|
|
3250
|
+
stream.removeListener("end", onend);
|
|
3251
|
+
if (doPipeError) {
|
|
3252
|
+
stream.removeListener("error", onerror);
|
|
3253
|
+
}
|
|
3254
|
+
next();
|
|
3255
|
+
}
|
|
3256
|
+
function onerror(err) {
|
|
3257
|
+
mergedStream.emit("error", err);
|
|
3258
|
+
}
|
|
3259
|
+
if (stream._readableState.endEmitted) {
|
|
3260
|
+
return next();
|
|
3261
|
+
}
|
|
3262
|
+
stream.on("merge2UnpipeEnd", onend);
|
|
3263
|
+
stream.on("end", onend);
|
|
3264
|
+
if (doPipeError) {
|
|
3265
|
+
stream.on("error", onerror);
|
|
3266
|
+
}
|
|
3267
|
+
stream.pipe(mergedStream, { end: false });
|
|
3268
|
+
stream.resume();
|
|
3269
|
+
}
|
|
3270
|
+
for (let i = 0; i < streams.length; i++) {
|
|
3271
|
+
pipe(streams[i]);
|
|
3272
|
+
}
|
|
3273
|
+
next();
|
|
3274
|
+
}
|
|
3275
|
+
function endStream() {
|
|
3276
|
+
merging = false;
|
|
3277
|
+
mergedStream.emit("queueDrain");
|
|
3278
|
+
if (doEnd) {
|
|
3279
|
+
mergedStream.end();
|
|
3280
|
+
}
|
|
3281
|
+
}
|
|
3282
|
+
mergedStream.setMaxListeners(0);
|
|
3283
|
+
mergedStream.add = addStream;
|
|
3284
|
+
mergedStream.on("unpipe", function(stream) {
|
|
3285
|
+
stream.emit("merge2UnpipeEnd");
|
|
3286
|
+
});
|
|
3287
|
+
if (args.length) {
|
|
3288
|
+
addStream.apply(null, args);
|
|
3289
|
+
}
|
|
3290
|
+
return mergedStream;
|
|
3291
|
+
}
|
|
3292
|
+
function pauseStreams(streams, options) {
|
|
3293
|
+
if (!Array.isArray(streams)) {
|
|
3294
|
+
if (!streams._readableState && streams.pipe) {
|
|
3295
|
+
streams = streams.pipe(PassThrough(options));
|
|
3296
|
+
}
|
|
3297
|
+
if (!streams._readableState || !streams.pause || !streams.pipe) {
|
|
3298
|
+
throw new Error("Only readable stream can be merged.");
|
|
3299
|
+
}
|
|
3300
|
+
streams.pause();
|
|
3301
|
+
} else {
|
|
3302
|
+
for (let i = 0, len = streams.length; i < len; i++) {
|
|
3303
|
+
streams[i] = pauseStreams(streams[i], options);
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
return streams;
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
});
|
|
3317
3310
|
var require_stream = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
3318
3311
|
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
3319
3312
|
"use strict";
|
|
@@ -5358,6 +5351,14 @@ var require_out4 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5358
5351
|
module2.exports = FastGlob;
|
|
5359
5352
|
}
|
|
5360
5353
|
});
|
|
5354
|
+
var require_array_union = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
5355
|
+
"../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) {
|
|
5356
|
+
"use strict";
|
|
5357
|
+
module2.exports = (...arguments_) => {
|
|
5358
|
+
return [...new Set([].concat(...arguments_))];
|
|
5359
|
+
};
|
|
5360
|
+
}
|
|
5361
|
+
});
|
|
5361
5362
|
var require_path_type = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
5362
5363
|
"../../node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.js"(exports) {
|
|
5363
5364
|
"use strict";
|