@prisma/internals 6.5.0-dev.8 → 6.5.0-dev.80
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/Generator.js +2 -2
- package/dist/WasmPanicRegistry.js +2 -2
- package/dist/{chunk-2SWS7ZGF.js → chunk-3AIIELLW.js} +7 -7
- package/dist/{chunk-NXIWDQBF.js → chunk-3ERIN7PH.js} +5 -5
- package/dist/{chunk-CCLACYA6.js → chunk-3WYXBDAT.js} +11 -11
- package/dist/{chunk-XOWBYDC2.js → chunk-6EY425PC.js} +12 -12
- package/dist/{chunk-A4QWQE3W.js → chunk-ATFQZVBS.js} +11 -4
- package/dist/{chunk-3MFI4O7A.js → chunk-AXTLBHF6.js} +309 -529
- package/dist/{chunk-6YN6HZLA.js → chunk-BICBHOFV.js} +11 -11
- package/dist/{chunk-HOZFIXMD.js → chunk-BPZFDGKN.js} +5 -4
- package/dist/{chunk-RL3K4V2J.js → chunk-C2WD2XUT.js} +980 -113
- package/dist/{chunk-T5RACBRF.js → chunk-CHMJ5V7I.js} +10 -10
- package/dist/{chunk-FHXAG4A2.js → chunk-CZL7DCL2.js} +5 -5
- package/dist/{chunk-3WTVUMXL.js → chunk-EMOBFROK.js} +12 -12
- package/dist/{chunk-54KM4LPR.js → chunk-EQ3LP5OP.js} +309 -529
- package/dist/{chunk-QIVUAERL.js → chunk-GXDYIY4M.js} +1653 -1762
- package/dist/{chunk-6HAMFH75.js → chunk-IF453IGN.js} +8 -8
- package/dist/{chunk-CKLMOOZY.js → chunk-JKSKSL27.js} +5 -5
- package/dist/chunk-KKGIKPIK.js +573 -0
- package/dist/{chunk-G4BGJ6IP.js → chunk-KTBNIQ7N.js} +5 -5
- package/dist/{chunk-UUQ4S65T.js → chunk-M5RTEYAS.js} +10 -11
- package/dist/{chunk-5XRQ7ONW.js → chunk-NJQWZ447.js} +5 -5
- package/dist/{chunk-NDBGA4UH.js → chunk-PHR6BD4C.js} +5 -5
- package/dist/{chunk-VXSQZXSR.js → chunk-PRXCQXPA.js} +5 -5
- package/dist/{chunk-VQX3AXS3.js → chunk-Q4F5XQEO.js} +12 -12
- package/dist/{chunk-XC2UX56M.js → chunk-QQQJTSEH.js} +12 -12
- package/dist/{chunk-WHHQZHZW.js → chunk-RG3KUBMQ.js} +8 -8
- package/dist/{chunk-ZLQSEX7S.js → chunk-SIE7JUHZ.js} +7 -7
- package/dist/{chunk-OYLZC5OV.js → chunk-TATYN3T2.js} +7 -7
- package/dist/{chunk-PN2CAU7D.js → chunk-TCZIM3NJ.js} +12 -12
- package/dist/{chunk-VESI4NCT.js → chunk-TDZT42DL.js} +11 -12
- package/dist/{chunk-IFSZX2CY.js → chunk-TNMIW5RV.js} +5 -5
- package/dist/{chunk-IWJ2BUYF.js → chunk-XLGODPZH.js} +5 -5
- package/dist/{chunk-Z3HEQNNY.js → chunk-YR5SAA2G.js} +12 -12
- package/dist/{chunk-635TMBAP.js → chunk-ZYW3HGSH.js} +8 -4
- package/dist/cli/checkUnsupportedDataProxy.js +25 -26
- package/dist/cli/getSchema.js +29 -30
- package/dist/cli/hashes.js +25 -26
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +24 -25
- package/dist/engine-commands/getConfig.js +12 -12
- package/dist/engine-commands/getDmmf.js +9 -9
- package/dist/engine-commands/getEngineVersion.js +5 -6
- package/dist/engine-commands/getEnginesMetaInfo.js +7 -8
- package/dist/engine-commands/index.js +35 -36
- package/dist/engine-commands/lintSchema.js +10 -10
- package/dist/engine-commands/mergeSchemas.js +9 -9
- package/dist/engine-commands/validate.js +9 -9
- package/dist/errorReporting.d.ts +1 -0
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +24 -25
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +24 -25
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +25 -26
- package/dist/get-generators/getGenerators.js +27 -28
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -4
- package/dist/getPackedPackage.js +3 -4
- package/dist/index.js +68 -69
- package/dist/panic.js +6 -6
- package/dist/resolveBinary.js +7 -8
- package/dist/schemaEngineCommands.js +8 -9
- package/dist/sendPanic.js +24 -25
- package/dist/utils/drawBox.js +2 -2
- package/dist/utils/getEnvPaths.js +24 -25
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +24 -25
- package/dist/utils/isValidJsIdentifier.js +3 -3
- package/dist/utils/loadEnvFile.js +24 -25
- package/dist/wasm.js +5 -5
- package/package.json +15 -16
- package/dist/chunk-F3SIWK3J.js +0 -1404
- package/dist/chunk-H4J2FN2W.js +0 -796
@@ -26,11 +26,11 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export2(
|
29
|
+
var chunk_EQ3LP5OP_exports = {};
|
30
|
+
__export2(chunk_EQ3LP5OP_exports, {
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
33
|
-
debug: () =>
|
33
|
+
debug: () => debug5,
|
34
34
|
forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
|
35
35
|
formatSchema: () => formatSchema,
|
36
36
|
generatorResolvers: () => generatorResolvers,
|
@@ -54,7 +54,7 @@ __export2(chunk_54KM4LPR_exports, {
|
|
54
54
|
sendPanic: () => sendPanic,
|
55
55
|
skipIndex: () => skipIndex
|
56
56
|
});
|
57
|
-
module.exports = __toCommonJS2(
|
57
|
+
module.exports = __toCommonJS2(chunk_EQ3LP5OP_exports);
|
58
58
|
var import_chunk_S57RMXZW = require("./chunk-S57RMXZW.js");
|
59
59
|
var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
|
60
60
|
var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
|
@@ -62,7 +62,7 @@ var import_chunk_PIPE5DSU = require("./chunk-PIPE5DSU.js");
|
|
62
62
|
var import_chunk_77IC3DNO = require("./chunk-77IC3DNO.js");
|
63
63
|
var import_chunk_MGZOEY6N = require("./chunk-MGZOEY6N.js");
|
64
64
|
var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
|
65
|
-
var
|
65
|
+
var import_chunk_NJQWZ447 = require("./chunk-NJQWZ447.js");
|
66
66
|
var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
|
67
67
|
var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
|
68
68
|
var import_chunk_ONHKZPSV = require("./chunk-ONHKZPSV.js");
|
@@ -79,21 +79,21 @@ var import_chunk_AC6EAR56 = require("./chunk-AC6EAR56.js");
|
|
79
79
|
var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
|
80
80
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
81
81
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
82
|
-
var
|
83
|
-
var
|
84
|
-
var
|
85
|
-
var
|
82
|
+
var import_chunk_RG3KUBMQ = require("./chunk-RG3KUBMQ.js");
|
83
|
+
var import_chunk_BICBHOFV = require("./chunk-BICBHOFV.js");
|
84
|
+
var import_chunk_Q4F5XQEO = require("./chunk-Q4F5XQEO.js");
|
85
|
+
var import_chunk_6EY425PC = require("./chunk-6EY425PC.js");
|
86
86
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
87
87
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
88
|
-
var
|
89
|
-
var
|
88
|
+
var import_chunk_SIE7JUHZ = require("./chunk-SIE7JUHZ.js");
|
89
|
+
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
90
90
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
91
|
-
var
|
91
|
+
var import_chunk_GXDYIY4M = require("./chunk-GXDYIY4M.js");
|
92
92
|
var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
|
93
|
-
var
|
93
|
+
var import_chunk_ZYW3HGSH = require("./chunk-ZYW3HGSH.js");
|
94
94
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
95
95
|
var import_chunk_KQOJB3ZW = require("./chunk-KQOJB3ZW.js");
|
96
|
-
var
|
96
|
+
var import_chunk_C2WD2XUT = require("./chunk-C2WD2XUT.js");
|
97
97
|
var import_chunk_YXD4CJDK = require("./chunk-YXD4CJDK.js");
|
98
98
|
var import_chunk_53LS3WUO = require("./chunk-53LS3WUO.js");
|
99
99
|
var import_chunk_AZNLB67U = require("./chunk-AZNLB67U.js");
|
@@ -103,24 +103,29 @@ var import_debug = __toESM2(require("@prisma/debug"));
|
|
103
103
|
var import_config = require("@prisma/config");
|
104
104
|
var import_fs = __toESM2(require("fs"));
|
105
105
|
var import_debug2 = __toESM2(require("@prisma/debug"));
|
106
|
-
var
|
106
|
+
var import_node_path = __toESM2(require("node:path"));
|
107
|
+
var import_node_process = __toESM2(require("node:process"));
|
108
|
+
var import_node_path2 = __toESM2(require("node:path"));
|
109
|
+
var import_node_fs = __toESM2(require("node:fs"));
|
110
|
+
var import_node_url = require("node:url");
|
111
|
+
var import_node_fs2 = __toESM2(require("node:fs"));
|
107
112
|
var import_fs2 = __toESM2(require("fs"));
|
108
113
|
var import_path = __toESM2(require("path"));
|
109
|
-
var
|
114
|
+
var import_debug3 = require("@prisma/debug");
|
110
115
|
var import_schema_files_loader = require("@prisma/schema-files-loader");
|
111
116
|
var import_fs3 = __toESM2(require("fs"));
|
112
117
|
var import_path2 = __toESM2(require("path"));
|
113
118
|
var import_util = require("util");
|
114
119
|
var import_crypto = __toESM2(require("crypto"));
|
115
|
-
var
|
120
|
+
var import_debug4 = __toESM2(require("@prisma/debug"));
|
116
121
|
var import_engines = require("@prisma/engines");
|
117
122
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
118
123
|
var import_get_platform = require("@prisma/get-platform");
|
119
124
|
var import_path3 = __toESM2(require("path"));
|
120
|
-
var
|
125
|
+
var import_debug5 = __toESM2(require("@prisma/debug"));
|
121
126
|
var import_fs4 = __toESM2(require("fs"));
|
122
127
|
var import_path4 = __toESM2(require("path"));
|
123
|
-
var
|
128
|
+
var import_debug6 = __toESM2(require("@prisma/debug"));
|
124
129
|
var import_fs5 = __toESM2(require("fs"));
|
125
130
|
var import_path5 = __toESM2(require("path"));
|
126
131
|
var import_get_platform2 = require("@prisma/get-platform");
|
@@ -129,321 +134,17 @@ var import_os = __toESM2(require("os"));
|
|
129
134
|
var import_path6 = __toESM2(require("path"));
|
130
135
|
var import_prompts = __toESM2(require("prompts"));
|
131
136
|
var import_get_platform3 = require("@prisma/get-platform");
|
132
|
-
var require_yocto_queue = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
133
|
-
"../../node_modules/.pnpm/yocto-queue@0.1.0/node_modules/yocto-queue/index.js"(exports2, module2) {
|
134
|
-
"use strict";
|
135
|
-
var Node = class {
|
136
|
-
/// value;
|
137
|
-
/// next;
|
138
|
-
constructor(value) {
|
139
|
-
this.value = value;
|
140
|
-
this.next = void 0;
|
141
|
-
}
|
142
|
-
};
|
143
|
-
var Queue = class {
|
144
|
-
// TODO: Use private class fields when targeting Node.js 12.
|
145
|
-
// #_head;
|
146
|
-
// #_tail;
|
147
|
-
// #_size;
|
148
|
-
constructor() {
|
149
|
-
this.clear();
|
150
|
-
}
|
151
|
-
enqueue(value) {
|
152
|
-
const node = new Node(value);
|
153
|
-
if (this._head) {
|
154
|
-
this._tail.next = node;
|
155
|
-
this._tail = node;
|
156
|
-
} else {
|
157
|
-
this._head = node;
|
158
|
-
this._tail = node;
|
159
|
-
}
|
160
|
-
this._size++;
|
161
|
-
}
|
162
|
-
dequeue() {
|
163
|
-
const current = this._head;
|
164
|
-
if (!current) {
|
165
|
-
return;
|
166
|
-
}
|
167
|
-
this._head = this._head.next;
|
168
|
-
this._size--;
|
169
|
-
return current.value;
|
170
|
-
}
|
171
|
-
clear() {
|
172
|
-
this._head = void 0;
|
173
|
-
this._tail = void 0;
|
174
|
-
this._size = 0;
|
175
|
-
}
|
176
|
-
get size() {
|
177
|
-
return this._size;
|
178
|
-
}
|
179
|
-
*[Symbol.iterator]() {
|
180
|
-
let current = this._head;
|
181
|
-
while (current) {
|
182
|
-
yield current.value;
|
183
|
-
current = current.next;
|
184
|
-
}
|
185
|
-
}
|
186
|
-
};
|
187
|
-
module2.exports = Queue;
|
188
|
-
}
|
189
|
-
});
|
190
|
-
var require_p_limit = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
191
|
-
"../../node_modules/.pnpm/p-limit@3.1.0/node_modules/p-limit/index.js"(exports2, module2) {
|
192
|
-
"use strict";
|
193
|
-
var Queue = require_yocto_queue();
|
194
|
-
var pLimit = (concurrency) => {
|
195
|
-
if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
|
196
|
-
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
197
|
-
}
|
198
|
-
const queue2 = new Queue();
|
199
|
-
let activeCount = 0;
|
200
|
-
const next = () => {
|
201
|
-
activeCount--;
|
202
|
-
if (queue2.size > 0) {
|
203
|
-
queue2.dequeue()();
|
204
|
-
}
|
205
|
-
};
|
206
|
-
const run = async (fn, resolve, ...args) => {
|
207
|
-
activeCount++;
|
208
|
-
const result = (async () => fn(...args))();
|
209
|
-
resolve(result);
|
210
|
-
try {
|
211
|
-
await result;
|
212
|
-
} catch {
|
213
|
-
}
|
214
|
-
next();
|
215
|
-
};
|
216
|
-
const enqueue = (fn, resolve, ...args) => {
|
217
|
-
queue2.enqueue(run.bind(null, fn, resolve, ...args));
|
218
|
-
(async () => {
|
219
|
-
await Promise.resolve();
|
220
|
-
if (activeCount < concurrency && queue2.size > 0) {
|
221
|
-
queue2.dequeue()();
|
222
|
-
}
|
223
|
-
})();
|
224
|
-
};
|
225
|
-
const generator = (fn, ...args) => new Promise((resolve) => {
|
226
|
-
enqueue(fn, resolve, ...args);
|
227
|
-
});
|
228
|
-
Object.defineProperties(generator, {
|
229
|
-
activeCount: {
|
230
|
-
get: () => activeCount
|
231
|
-
},
|
232
|
-
pendingCount: {
|
233
|
-
get: () => queue2.size
|
234
|
-
},
|
235
|
-
clearQueue: {
|
236
|
-
value: () => {
|
237
|
-
queue2.clear();
|
238
|
-
}
|
239
|
-
}
|
240
|
-
});
|
241
|
-
return generator;
|
242
|
-
};
|
243
|
-
module2.exports = pLimit;
|
244
|
-
}
|
245
|
-
});
|
246
|
-
var require_p_locate = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
247
|
-
"../../node_modules/.pnpm/p-locate@5.0.0/node_modules/p-locate/index.js"(exports2, module2) {
|
248
|
-
"use strict";
|
249
|
-
var pLimit = require_p_limit();
|
250
|
-
var EndError = class extends Error {
|
251
|
-
constructor(value) {
|
252
|
-
super();
|
253
|
-
this.value = value;
|
254
|
-
}
|
255
|
-
};
|
256
|
-
var testElement = async (element, tester) => tester(await element);
|
257
|
-
var finder = async (element) => {
|
258
|
-
const values = await Promise.all(element);
|
259
|
-
if (values[1] === true) {
|
260
|
-
throw new EndError(values[0]);
|
261
|
-
}
|
262
|
-
return false;
|
263
|
-
};
|
264
|
-
var pLocate = async (iterable, tester, options2) => {
|
265
|
-
options2 = {
|
266
|
-
concurrency: Infinity,
|
267
|
-
preserveOrder: true,
|
268
|
-
...options2
|
269
|
-
};
|
270
|
-
const limit = pLimit(options2.concurrency);
|
271
|
-
const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
|
272
|
-
const checkLimit = pLimit(options2.preserveOrder ? 1 : Infinity);
|
273
|
-
try {
|
274
|
-
await Promise.all(items.map((element) => checkLimit(finder, element)));
|
275
|
-
} catch (error) {
|
276
|
-
if (error instanceof EndError) {
|
277
|
-
return error.value;
|
278
|
-
}
|
279
|
-
throw error;
|
280
|
-
}
|
281
|
-
};
|
282
|
-
module2.exports = pLocate;
|
283
|
-
}
|
284
|
-
});
|
285
|
-
var require_locate_path = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
286
|
-
"../../node_modules/.pnpm/locate-path@6.0.0/node_modules/locate-path/index.js"(exports2, module2) {
|
287
|
-
"use strict";
|
288
|
-
var path8 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
289
|
-
var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
290
|
-
var { promisify: promisify3 } = (0, import_chunk_WWAWV7DQ.__require)("util");
|
291
|
-
var pLocate = require_p_locate();
|
292
|
-
var fsStat = promisify3(fs8.stat);
|
293
|
-
var fsLStat = promisify3(fs8.lstat);
|
294
|
-
var typeMappings = {
|
295
|
-
directory: "isDirectory",
|
296
|
-
file: "isFile"
|
297
|
-
};
|
298
|
-
function checkType({ type }) {
|
299
|
-
if (type in typeMappings) {
|
300
|
-
return;
|
301
|
-
}
|
302
|
-
throw new Error(`Invalid type specified: ${type}`);
|
303
|
-
}
|
304
|
-
var matchType = (type, stat2) => type === void 0 || stat2[typeMappings[type]]();
|
305
|
-
module2.exports = async (paths2, options2) => {
|
306
|
-
options2 = {
|
307
|
-
cwd: process.cwd(),
|
308
|
-
type: "file",
|
309
|
-
allowSymlinks: true,
|
310
|
-
...options2
|
311
|
-
};
|
312
|
-
checkType(options2);
|
313
|
-
const statFn = options2.allowSymlinks ? fsStat : fsLStat;
|
314
|
-
return pLocate(paths2, async (path_) => {
|
315
|
-
try {
|
316
|
-
const stat2 = await statFn(path8.resolve(options2.cwd, path_));
|
317
|
-
return matchType(options2.type, stat2);
|
318
|
-
} catch {
|
319
|
-
return false;
|
320
|
-
}
|
321
|
-
}, options2);
|
322
|
-
};
|
323
|
-
module2.exports.sync = (paths2, options2) => {
|
324
|
-
options2 = {
|
325
|
-
cwd: process.cwd(),
|
326
|
-
allowSymlinks: true,
|
327
|
-
type: "file",
|
328
|
-
...options2
|
329
|
-
};
|
330
|
-
checkType(options2);
|
331
|
-
const statFn = options2.allowSymlinks ? fs8.statSync : fs8.lstatSync;
|
332
|
-
for (const path_ of paths2) {
|
333
|
-
try {
|
334
|
-
const stat2 = statFn(path8.resolve(options2.cwd, path_));
|
335
|
-
if (matchType(options2.type, stat2)) {
|
336
|
-
return path_;
|
337
|
-
}
|
338
|
-
} catch {
|
339
|
-
}
|
340
|
-
}
|
341
|
-
};
|
342
|
-
}
|
343
|
-
});
|
344
|
-
var require_path_exists = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
345
|
-
"../../node_modules/.pnpm/path-exists@4.0.0/node_modules/path-exists/index.js"(exports2, module2) {
|
346
|
-
"use strict";
|
347
|
-
var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
348
|
-
var { promisify: promisify3 } = (0, import_chunk_WWAWV7DQ.__require)("util");
|
349
|
-
var pAccess = promisify3(fs8.access);
|
350
|
-
module2.exports = async (path8) => {
|
351
|
-
try {
|
352
|
-
await pAccess(path8);
|
353
|
-
return true;
|
354
|
-
} catch (_2) {
|
355
|
-
return false;
|
356
|
-
}
|
357
|
-
};
|
358
|
-
module2.exports.sync = (path8) => {
|
359
|
-
try {
|
360
|
-
fs8.accessSync(path8);
|
361
|
-
return true;
|
362
|
-
} catch (_2) {
|
363
|
-
return false;
|
364
|
-
}
|
365
|
-
};
|
366
|
-
}
|
367
|
-
});
|
368
|
-
var require_find_up = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
369
|
-
"../../node_modules/.pnpm/find-up@5.0.0/node_modules/find-up/index.js"(exports2, module2) {
|
370
|
-
"use strict";
|
371
|
-
var path8 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
372
|
-
var locatePath = require_locate_path();
|
373
|
-
var pathExists = require_path_exists();
|
374
|
-
var stop = Symbol("findUp.stop");
|
375
|
-
module2.exports = async (name, options2 = {}) => {
|
376
|
-
let directory = path8.resolve(options2.cwd || "");
|
377
|
-
const { root } = path8.parse(directory);
|
378
|
-
const paths2 = [].concat(name);
|
379
|
-
const runMatcher = async (locateOptions) => {
|
380
|
-
if (typeof name !== "function") {
|
381
|
-
return locatePath(paths2, locateOptions);
|
382
|
-
}
|
383
|
-
const foundPath = await name(locateOptions.cwd);
|
384
|
-
if (typeof foundPath === "string") {
|
385
|
-
return locatePath([foundPath], locateOptions);
|
386
|
-
}
|
387
|
-
return foundPath;
|
388
|
-
};
|
389
|
-
while (true) {
|
390
|
-
const foundPath = await runMatcher({ ...options2, cwd: directory });
|
391
|
-
if (foundPath === stop) {
|
392
|
-
return;
|
393
|
-
}
|
394
|
-
if (foundPath) {
|
395
|
-
return path8.resolve(directory, foundPath);
|
396
|
-
}
|
397
|
-
if (directory === root) {
|
398
|
-
return;
|
399
|
-
}
|
400
|
-
directory = path8.dirname(directory);
|
401
|
-
}
|
402
|
-
};
|
403
|
-
module2.exports.sync = (name, options2 = {}) => {
|
404
|
-
let directory = path8.resolve(options2.cwd || "");
|
405
|
-
const { root } = path8.parse(directory);
|
406
|
-
const paths2 = [].concat(name);
|
407
|
-
const runMatcher = (locateOptions) => {
|
408
|
-
if (typeof name !== "function") {
|
409
|
-
return locatePath.sync(paths2, locateOptions);
|
410
|
-
}
|
411
|
-
const foundPath = name(locateOptions.cwd);
|
412
|
-
if (typeof foundPath === "string") {
|
413
|
-
return locatePath.sync([foundPath], locateOptions);
|
414
|
-
}
|
415
|
-
return foundPath;
|
416
|
-
};
|
417
|
-
while (true) {
|
418
|
-
const foundPath = runMatcher({ ...options2, cwd: directory });
|
419
|
-
if (foundPath === stop) {
|
420
|
-
return;
|
421
|
-
}
|
422
|
-
if (foundPath) {
|
423
|
-
return path8.resolve(directory, foundPath);
|
424
|
-
}
|
425
|
-
if (directory === root) {
|
426
|
-
return;
|
427
|
-
}
|
428
|
-
directory = path8.dirname(directory);
|
429
|
-
}
|
430
|
-
};
|
431
|
-
module2.exports.exists = pathExists;
|
432
|
-
module2.exports.sync.exists = pathExists.sync;
|
433
|
-
module2.exports.stop = stop;
|
434
|
-
}
|
435
|
-
});
|
436
137
|
var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
437
138
|
"../../node_modules/.pnpm/readdir-glob@1.1.2/node_modules/readdir-glob/index.js"(exports2, module2) {
|
438
139
|
"use strict";
|
439
140
|
module2.exports = readdirGlob;
|
440
|
-
var
|
141
|
+
var fs10 = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
441
142
|
var { EventEmitter } = (0, import_chunk_WWAWV7DQ.__require)("events");
|
442
|
-
var { Minimatch } = (0,
|
143
|
+
var { Minimatch } = (0, import_chunk_C2WD2XUT.require_minimatch)();
|
443
144
|
var { resolve } = (0, import_chunk_WWAWV7DQ.__require)("path");
|
444
145
|
function readdir(dir2, strict) {
|
445
146
|
return new Promise((resolve2, reject2) => {
|
446
|
-
|
147
|
+
fs10.readdir(dir2, { withFileTypes: true }, (err, files) => {
|
447
148
|
if (err) {
|
448
149
|
switch (err.code) {
|
449
150
|
case "ENOTDIR":
|
@@ -476,7 +177,7 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
476
177
|
}
|
477
178
|
function stat2(file, followSymlinks) {
|
478
179
|
return new Promise((resolve2, reject2) => {
|
479
|
-
const statFunc = followSymlinks ?
|
180
|
+
const statFunc = followSymlinks ? fs10.stat : fs10.lstat;
|
480
181
|
statFunc(file, (err, stats) => {
|
481
182
|
if (err) {
|
482
183
|
switch (err.code) {
|
@@ -497,8 +198,8 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
497
198
|
});
|
498
199
|
});
|
499
200
|
}
|
500
|
-
async function* exploreWalkAsync(dir2,
|
501
|
-
let files = await readdir(
|
201
|
+
async function* exploreWalkAsync(dir2, path10, followSymlinks, useStat, shouldSkip, strict) {
|
202
|
+
let files = await readdir(path10 + dir2, strict);
|
502
203
|
for (const file of files) {
|
503
204
|
let name = file.name;
|
504
205
|
if (name === void 0) {
|
@@ -507,7 +208,7 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
507
208
|
}
|
508
209
|
const filename = dir2 + "/" + name;
|
509
210
|
const relative = filename.slice(1);
|
510
|
-
const absolute =
|
211
|
+
const absolute = path10 + "/" + relative;
|
511
212
|
let stats = null;
|
512
213
|
if (useStat || followSymlinks) {
|
513
214
|
stats = await stat2(absolute, followSymlinks);
|
@@ -521,15 +222,15 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
521
222
|
if (stats.isDirectory()) {
|
522
223
|
if (!shouldSkip(relative)) {
|
523
224
|
yield { relative, absolute, stats };
|
524
|
-
yield* exploreWalkAsync(filename,
|
225
|
+
yield* exploreWalkAsync(filename, path10, followSymlinks, useStat, shouldSkip, false);
|
525
226
|
}
|
526
227
|
} else {
|
527
228
|
yield { relative, absolute, stats };
|
528
229
|
}
|
529
230
|
}
|
530
231
|
}
|
531
|
-
async function* explore(
|
532
|
-
yield* exploreWalkAsync("",
|
232
|
+
async function* explore(path10, followSymlinks, useStat, shouldSkip) {
|
233
|
+
yield* exploreWalkAsync("", path10, followSymlinks, useStat, shouldSkip, true);
|
533
234
|
}
|
534
235
|
function readOptions(options2) {
|
535
236
|
return {
|
@@ -2850,7 +2551,7 @@ var require_stream_writable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2850
2551
|
var Duplex;
|
2851
2552
|
Writable.WritableState = WritableState;
|
2852
2553
|
var util = Object.create(require_util());
|
2853
|
-
util.inherits = (0,
|
2554
|
+
util.inherits = (0, import_chunk_C2WD2XUT.require_inherits)();
|
2854
2555
|
var internalUtil = {
|
2855
2556
|
deprecate: require_node()
|
2856
2557
|
};
|
@@ -3288,7 +2989,7 @@ var require_stream_duplex = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3288
2989
|
};
|
3289
2990
|
module2.exports = Duplex;
|
3290
2991
|
var util = Object.create(require_util());
|
3291
|
-
util.inherits = (0,
|
2992
|
+
util.inherits = (0, import_chunk_C2WD2XUT.require_inherits)();
|
3292
2993
|
var Readable = require_stream_readable();
|
3293
2994
|
var Writable = require_stream_writable();
|
3294
2995
|
util.inherits(Duplex, Readable);
|
@@ -3609,13 +3310,13 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3609
3310
|
return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
|
3610
3311
|
}
|
3611
3312
|
var util = Object.create(require_util());
|
3612
|
-
util.inherits = (0,
|
3313
|
+
util.inherits = (0, import_chunk_C2WD2XUT.require_inherits)();
|
3613
3314
|
var debugUtil = (0, import_chunk_WWAWV7DQ.__require)("util");
|
3614
|
-
var
|
3315
|
+
var debug8 = void 0;
|
3615
3316
|
if (debugUtil && debugUtil.debuglog) {
|
3616
|
-
|
3317
|
+
debug8 = debugUtil.debuglog("stream");
|
3617
3318
|
} else {
|
3618
|
-
|
3319
|
+
debug8 = function() {
|
3619
3320
|
};
|
3620
3321
|
}
|
3621
3322
|
var BufferList = require_BufferList();
|
@@ -3815,13 +3516,13 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3815
3516
|
return state.length;
|
3816
3517
|
}
|
3817
3518
|
Readable.prototype.read = function(n) {
|
3818
|
-
|
3519
|
+
debug8("read", n);
|
3819
3520
|
n = parseInt(n, 10);
|
3820
3521
|
var state = this._readableState;
|
3821
3522
|
var nOrig = n;
|
3822
3523
|
if (n !== 0) state.emittedReadable = false;
|
3823
3524
|
if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {
|
3824
|
-
|
3525
|
+
debug8("read: emitReadable", state.length, state.ended);
|
3825
3526
|
if (state.length === 0 && state.ended) endReadable(this);
|
3826
3527
|
else emitReadable(this);
|
3827
3528
|
return null;
|
@@ -3832,16 +3533,16 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3832
3533
|
return null;
|
3833
3534
|
}
|
3834
3535
|
var doRead = state.needReadable;
|
3835
|
-
|
3536
|
+
debug8("need readable", doRead);
|
3836
3537
|
if (state.length === 0 || state.length - n < state.highWaterMark) {
|
3837
3538
|
doRead = true;
|
3838
|
-
|
3539
|
+
debug8("length less than watermark", doRead);
|
3839
3540
|
}
|
3840
3541
|
if (state.ended || state.reading) {
|
3841
3542
|
doRead = false;
|
3842
|
-
|
3543
|
+
debug8("reading or ended", doRead);
|
3843
3544
|
} else if (doRead) {
|
3844
|
-
|
3545
|
+
debug8("do read");
|
3845
3546
|
state.reading = true;
|
3846
3547
|
state.sync = true;
|
3847
3548
|
if (state.length === 0) state.needReadable = true;
|
@@ -3881,14 +3582,14 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3881
3582
|
var state = stream._readableState;
|
3882
3583
|
state.needReadable = false;
|
3883
3584
|
if (!state.emittedReadable) {
|
3884
|
-
|
3585
|
+
debug8("emitReadable", state.flowing);
|
3885
3586
|
state.emittedReadable = true;
|
3886
3587
|
if (state.sync) pna.nextTick(emitReadable_, stream);
|
3887
3588
|
else emitReadable_(stream);
|
3888
3589
|
}
|
3889
3590
|
}
|
3890
3591
|
function emitReadable_(stream) {
|
3891
|
-
|
3592
|
+
debug8("emit readable");
|
3892
3593
|
stream.emit("readable");
|
3893
3594
|
flow(stream);
|
3894
3595
|
}
|
@@ -3901,7 +3602,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3901
3602
|
function maybeReadMore_(stream, state) {
|
3902
3603
|
var len = state.length;
|
3903
3604
|
while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {
|
3904
|
-
|
3605
|
+
debug8("maybeReadMore read 0");
|
3905
3606
|
stream.read(0);
|
3906
3607
|
if (len === state.length)
|
3907
3608
|
break;
|
@@ -3927,14 +3628,14 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3927
3628
|
break;
|
3928
3629
|
}
|
3929
3630
|
state.pipesCount += 1;
|
3930
|
-
|
3631
|
+
debug8("pipe count=%d opts=%j", state.pipesCount, pipeOpts);
|
3931
3632
|
var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;
|
3932
3633
|
var endFn = doEnd ? onend : unpipe;
|
3933
3634
|
if (state.endEmitted) pna.nextTick(endFn);
|
3934
3635
|
else src.once("end", endFn);
|
3935
3636
|
dest.on("unpipe", onunpipe);
|
3936
3637
|
function onunpipe(readable, unpipeInfo) {
|
3937
|
-
|
3638
|
+
debug8("onunpipe");
|
3938
3639
|
if (readable === src) {
|
3939
3640
|
if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
|
3940
3641
|
unpipeInfo.hasUnpiped = true;
|
@@ -3943,14 +3644,14 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3943
3644
|
}
|
3944
3645
|
}
|
3945
3646
|
function onend() {
|
3946
|
-
|
3647
|
+
debug8("onend");
|
3947
3648
|
dest.end();
|
3948
3649
|
}
|
3949
3650
|
var ondrain = pipeOnDrain(src);
|
3950
3651
|
dest.on("drain", ondrain);
|
3951
3652
|
var cleanedUp = false;
|
3952
3653
|
function cleanup() {
|
3953
|
-
|
3654
|
+
debug8("cleanup");
|
3954
3655
|
dest.removeListener("close", onclose);
|
3955
3656
|
dest.removeListener("finish", onfinish);
|
3956
3657
|
dest.removeListener("drain", ondrain);
|
@@ -3965,12 +3666,12 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3965
3666
|
var increasedAwaitDrain = false;
|
3966
3667
|
src.on("data", ondata);
|
3967
3668
|
function ondata(chunk) {
|
3968
|
-
|
3669
|
+
debug8("ondata");
|
3969
3670
|
increasedAwaitDrain = false;
|
3970
3671
|
var ret = dest.write(chunk);
|
3971
3672
|
if (false === ret && !increasedAwaitDrain) {
|
3972
3673
|
if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
|
3973
|
-
|
3674
|
+
debug8("false write response, pause", src._readableState.awaitDrain);
|
3974
3675
|
src._readableState.awaitDrain++;
|
3975
3676
|
increasedAwaitDrain = true;
|
3976
3677
|
}
|
@@ -3978,7 +3679,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3978
3679
|
}
|
3979
3680
|
}
|
3980
3681
|
function onerror(er) {
|
3981
|
-
|
3682
|
+
debug8("onerror", er);
|
3982
3683
|
unpipe();
|
3983
3684
|
dest.removeListener("error", onerror);
|
3984
3685
|
if (EElistenerCount(dest, "error") === 0) dest.emit("error", er);
|
@@ -3990,18 +3691,18 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3990
3691
|
}
|
3991
3692
|
dest.once("close", onclose);
|
3992
3693
|
function onfinish() {
|
3993
|
-
|
3694
|
+
debug8("onfinish");
|
3994
3695
|
dest.removeListener("close", onclose);
|
3995
3696
|
unpipe();
|
3996
3697
|
}
|
3997
3698
|
dest.once("finish", onfinish);
|
3998
3699
|
function unpipe() {
|
3999
|
-
|
3700
|
+
debug8("unpipe");
|
4000
3701
|
src.unpipe(dest);
|
4001
3702
|
}
|
4002
3703
|
dest.emit("pipe", src);
|
4003
3704
|
if (!state.flowing) {
|
4004
|
-
|
3705
|
+
debug8("pipe resume");
|
4005
3706
|
src.resume();
|
4006
3707
|
}
|
4007
3708
|
return dest;
|
@@ -4009,7 +3710,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4009
3710
|
function pipeOnDrain(src) {
|
4010
3711
|
return function() {
|
4011
3712
|
var state = src._readableState;
|
4012
|
-
|
3713
|
+
debug8("pipeOnDrain", state.awaitDrain);
|
4013
3714
|
if (state.awaitDrain) state.awaitDrain--;
|
4014
3715
|
if (state.awaitDrain === 0 && EElistenerCount(src, "data")) {
|
4015
3716
|
state.flowing = true;
|
@@ -4069,13 +3770,13 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4069
3770
|
};
|
4070
3771
|
Readable.prototype.addListener = Readable.prototype.on;
|
4071
3772
|
function nReadingNextTick(self2) {
|
4072
|
-
|
3773
|
+
debug8("readable nexttick read 0");
|
4073
3774
|
self2.read(0);
|
4074
3775
|
}
|
4075
3776
|
Readable.prototype.resume = function() {
|
4076
3777
|
var state = this._readableState;
|
4077
3778
|
if (!state.flowing) {
|
4078
|
-
|
3779
|
+
debug8("resume");
|
4079
3780
|
state.flowing = true;
|
4080
3781
|
resume(this, state);
|
4081
3782
|
}
|
@@ -4089,7 +3790,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4089
3790
|
}
|
4090
3791
|
function resume_(stream, state) {
|
4091
3792
|
if (!state.reading) {
|
4092
|
-
|
3793
|
+
debug8("resume read 0");
|
4093
3794
|
stream.read(0);
|
4094
3795
|
}
|
4095
3796
|
state.resumeScheduled = false;
|
@@ -4099,9 +3800,9 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4099
3800
|
if (state.flowing && !state.reading) stream.read(0);
|
4100
3801
|
}
|
4101
3802
|
Readable.prototype.pause = function() {
|
4102
|
-
|
3803
|
+
debug8("call pause flowing=%j", this._readableState.flowing);
|
4103
3804
|
if (false !== this._readableState.flowing) {
|
4104
|
-
|
3805
|
+
debug8("pause");
|
4105
3806
|
this._readableState.flowing = false;
|
4106
3807
|
this.emit("pause");
|
4107
3808
|
}
|
@@ -4109,7 +3810,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4109
3810
|
};
|
4110
3811
|
function flow(stream) {
|
4111
3812
|
var state = stream._readableState;
|
4112
|
-
|
3813
|
+
debug8("flow", state.flowing);
|
4113
3814
|
while (state.flowing && stream.read() !== null) {
|
4114
3815
|
}
|
4115
3816
|
}
|
@@ -4118,7 +3819,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4118
3819
|
var state = this._readableState;
|
4119
3820
|
var paused = false;
|
4120
3821
|
stream.on("end", function() {
|
4121
|
-
|
3822
|
+
debug8("wrapped end");
|
4122
3823
|
if (state.decoder && !state.ended) {
|
4123
3824
|
var chunk = state.decoder.end();
|
4124
3825
|
if (chunk && chunk.length) _this.push(chunk);
|
@@ -4126,7 +3827,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4126
3827
|
_this.push(null);
|
4127
3828
|
});
|
4128
3829
|
stream.on("data", function(chunk) {
|
4129
|
-
|
3830
|
+
debug8("wrapped data");
|
4130
3831
|
if (state.decoder) chunk = state.decoder.write(chunk);
|
4131
3832
|
if (state.objectMode && (chunk === null || chunk === void 0)) return;
|
4132
3833
|
else if (!state.objectMode && (!chunk || !chunk.length)) return;
|
@@ -4149,7 +3850,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4149
3850
|
stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
|
4150
3851
|
}
|
4151
3852
|
this._read = function(n2) {
|
4152
|
-
|
3853
|
+
debug8("wrapped _read", n2);
|
4153
3854
|
if (paused) {
|
4154
3855
|
paused = false;
|
4155
3856
|
stream.resume();
|
@@ -4276,7 +3977,7 @@ var require_stream_transform = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4276
3977
|
module2.exports = Transform;
|
4277
3978
|
var Duplex = require_stream_duplex();
|
4278
3979
|
var util = Object.create(require_util());
|
4279
|
-
util.inherits = (0,
|
3980
|
+
util.inherits = (0, import_chunk_C2WD2XUT.require_inherits)();
|
4280
3981
|
util.inherits(Transform, Duplex);
|
4281
3982
|
function afterTransform(er, data) {
|
4282
3983
|
var ts = this._transformState;
|
@@ -4374,7 +4075,7 @@ var require_stream_passthrough = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4374
4075
|
module2.exports = PassThrough;
|
4375
4076
|
var Transform = require_stream_transform();
|
4376
4077
|
var util = Object.create(require_util());
|
4377
|
-
util.inherits = (0,
|
4078
|
+
util.inherits = (0, import_chunk_C2WD2XUT.require_inherits)();
|
4378
4079
|
util.inherits(PassThrough, Transform);
|
4379
4080
|
function PassThrough(options2) {
|
4380
4081
|
if (!(this instanceof PassThrough)) return new PassThrough(options2);
|
@@ -4462,22 +4163,22 @@ var require_lazystream = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4462
4163
|
var require_normalize_path = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
4463
4164
|
"../../node_modules/.pnpm/normalize-path@3.0.0/node_modules/normalize-path/index.js"(exports2, module2) {
|
4464
4165
|
"use strict";
|
4465
|
-
module2.exports = function(
|
4466
|
-
if (typeof
|
4166
|
+
module2.exports = function(path10, stripTrailing) {
|
4167
|
+
if (typeof path10 !== "string") {
|
4467
4168
|
throw new TypeError("expected path to be a string");
|
4468
4169
|
}
|
4469
|
-
if (
|
4470
|
-
var len =
|
4471
|
-
if (len <= 1) return
|
4170
|
+
if (path10 === "\\" || path10 === "/") return "/";
|
4171
|
+
var len = path10.length;
|
4172
|
+
if (len <= 1) return path10;
|
4472
4173
|
var prefix = "";
|
4473
|
-
if (len > 4 &&
|
4474
|
-
var ch =
|
4475
|
-
if ((ch === "?" || ch === ".") &&
|
4476
|
-
|
4174
|
+
if (len > 4 && path10[3] === "\\") {
|
4175
|
+
var ch = path10[2];
|
4176
|
+
if ((ch === "?" || ch === ".") && path10.slice(0, 2) === "\\\\") {
|
4177
|
+
path10 = path10.slice(2);
|
4477
4178
|
prefix = "//";
|
4478
4179
|
}
|
4479
4180
|
}
|
4480
|
-
var segs =
|
4181
|
+
var segs = path10.split(/[/\\]+/);
|
4481
4182
|
if (stripTrailing !== false && segs[segs.length - 1] === "") {
|
4482
4183
|
segs.pop();
|
4483
4184
|
}
|
@@ -5660,7 +5361,7 @@ var require_stream_writable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5660
5361
|
var ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END;
|
5661
5362
|
var ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
|
5662
5363
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
5663
|
-
(0,
|
5364
|
+
(0, import_chunk_C2WD2XUT.require_inherits)()(Writable, Stream);
|
5664
5365
|
function nop() {
|
5665
5366
|
}
|
5666
5367
|
function WritableState(options2, stream, isDuplex) {
|
@@ -6102,7 +5803,7 @@ var require_stream_duplex2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6102
5803
|
module2.exports = Duplex;
|
6103
5804
|
var Readable = require_stream_readable2();
|
6104
5805
|
var Writable = require_stream_writable2();
|
6105
|
-
(0,
|
5806
|
+
(0, import_chunk_C2WD2XUT.require_inherits)()(Duplex, Readable);
|
6106
5807
|
{
|
6107
5808
|
keys = objectKeys(Writable.prototype);
|
6108
5809
|
for (v = 0; v < keys.length; v++) {
|
@@ -6860,11 +6561,11 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6860
6561
|
return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
|
6861
6562
|
}
|
6862
6563
|
var debugUtil = (0, import_chunk_WWAWV7DQ.__require)("util");
|
6863
|
-
var
|
6564
|
+
var debug8;
|
6864
6565
|
if (debugUtil && debugUtil.debuglog) {
|
6865
|
-
|
6566
|
+
debug8 = debugUtil.debuglog("stream");
|
6866
6567
|
} else {
|
6867
|
-
|
6568
|
+
debug8 = function debug9() {
|
6868
6569
|
};
|
6869
6570
|
}
|
6870
6571
|
var BufferList = require_buffer_list();
|
@@ -6879,7 +6580,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6879
6580
|
var StringDecoder;
|
6880
6581
|
var createReadableStreamAsyncIterator;
|
6881
6582
|
var from;
|
6882
|
-
(0,
|
6583
|
+
(0, import_chunk_C2WD2XUT.require_inherits)()(Readable, Stream);
|
6883
6584
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
6884
6585
|
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
6885
6586
|
function prependListener(emitter, event, fn) {
|
@@ -6979,7 +6680,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6979
6680
|
return readableAddChunk(this, chunk, null, true, false);
|
6980
6681
|
};
|
6981
6682
|
function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
|
6982
|
-
|
6683
|
+
debug8("readableAddChunk", chunk);
|
6983
6684
|
var state = stream._readableState;
|
6984
6685
|
if (chunk === null) {
|
6985
6686
|
state.reading = false;
|
@@ -7086,13 +6787,13 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7086
6787
|
return state.length;
|
7087
6788
|
}
|
7088
6789
|
Readable.prototype.read = function(n) {
|
7089
|
-
|
6790
|
+
debug8("read", n);
|
7090
6791
|
n = parseInt(n, 10);
|
7091
6792
|
var state = this._readableState;
|
7092
6793
|
var nOrig = n;
|
7093
6794
|
if (n !== 0) state.emittedReadable = false;
|
7094
6795
|
if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {
|
7095
|
-
|
6796
|
+
debug8("read: emitReadable", state.length, state.ended);
|
7096
6797
|
if (state.length === 0 && state.ended) endReadable(this);
|
7097
6798
|
else emitReadable(this);
|
7098
6799
|
return null;
|
@@ -7103,16 +6804,16 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7103
6804
|
return null;
|
7104
6805
|
}
|
7105
6806
|
var doRead = state.needReadable;
|
7106
|
-
|
6807
|
+
debug8("need readable", doRead);
|
7107
6808
|
if (state.length === 0 || state.length - n < state.highWaterMark) {
|
7108
6809
|
doRead = true;
|
7109
|
-
|
6810
|
+
debug8("length less than watermark", doRead);
|
7110
6811
|
}
|
7111
6812
|
if (state.ended || state.reading) {
|
7112
6813
|
doRead = false;
|
7113
|
-
|
6814
|
+
debug8("reading or ended", doRead);
|
7114
6815
|
} else if (doRead) {
|
7115
|
-
|
6816
|
+
debug8("do read");
|
7116
6817
|
state.reading = true;
|
7117
6818
|
state.sync = true;
|
7118
6819
|
if (state.length === 0) state.needReadable = true;
|
@@ -7138,7 +6839,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7138
6839
|
return ret;
|
7139
6840
|
};
|
7140
6841
|
function onEofChunk(stream, state) {
|
7141
|
-
|
6842
|
+
debug8("onEofChunk");
|
7142
6843
|
if (state.ended) return;
|
7143
6844
|
if (state.decoder) {
|
7144
6845
|
var chunk = state.decoder.end();
|
@@ -7160,17 +6861,17 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7160
6861
|
}
|
7161
6862
|
function emitReadable(stream) {
|
7162
6863
|
var state = stream._readableState;
|
7163
|
-
|
6864
|
+
debug8("emitReadable", state.needReadable, state.emittedReadable);
|
7164
6865
|
state.needReadable = false;
|
7165
6866
|
if (!state.emittedReadable) {
|
7166
|
-
|
6867
|
+
debug8("emitReadable", state.flowing);
|
7167
6868
|
state.emittedReadable = true;
|
7168
6869
|
process.nextTick(emitReadable_, stream);
|
7169
6870
|
}
|
7170
6871
|
}
|
7171
6872
|
function emitReadable_(stream) {
|
7172
6873
|
var state = stream._readableState;
|
7173
|
-
|
6874
|
+
debug8("emitReadable_", state.destroyed, state.length, state.ended);
|
7174
6875
|
if (!state.destroyed && (state.length || state.ended)) {
|
7175
6876
|
stream.emit("readable");
|
7176
6877
|
state.emittedReadable = false;
|
@@ -7187,7 +6888,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7187
6888
|
function maybeReadMore_(stream, state) {
|
7188
6889
|
while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {
|
7189
6890
|
var len = state.length;
|
7190
|
-
|
6891
|
+
debug8("maybeReadMore read 0");
|
7191
6892
|
stream.read(0);
|
7192
6893
|
if (len === state.length)
|
7193
6894
|
break;
|
@@ -7212,14 +6913,14 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7212
6913
|
break;
|
7213
6914
|
}
|
7214
6915
|
state.pipesCount += 1;
|
7215
|
-
|
6916
|
+
debug8("pipe count=%d opts=%j", state.pipesCount, pipeOpts);
|
7216
6917
|
var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;
|
7217
6918
|
var endFn = doEnd ? onend : unpipe;
|
7218
6919
|
if (state.endEmitted) process.nextTick(endFn);
|
7219
6920
|
else src.once("end", endFn);
|
7220
6921
|
dest.on("unpipe", onunpipe);
|
7221
6922
|
function onunpipe(readable, unpipeInfo) {
|
7222
|
-
|
6923
|
+
debug8("onunpipe");
|
7223
6924
|
if (readable === src) {
|
7224
6925
|
if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
|
7225
6926
|
unpipeInfo.hasUnpiped = true;
|
@@ -7228,14 +6929,14 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7228
6929
|
}
|
7229
6930
|
}
|
7230
6931
|
function onend() {
|
7231
|
-
|
6932
|
+
debug8("onend");
|
7232
6933
|
dest.end();
|
7233
6934
|
}
|
7234
6935
|
var ondrain = pipeOnDrain(src);
|
7235
6936
|
dest.on("drain", ondrain);
|
7236
6937
|
var cleanedUp = false;
|
7237
6938
|
function cleanup() {
|
7238
|
-
|
6939
|
+
debug8("cleanup");
|
7239
6940
|
dest.removeListener("close", onclose);
|
7240
6941
|
dest.removeListener("finish", onfinish);
|
7241
6942
|
dest.removeListener("drain", ondrain);
|
@@ -7249,19 +6950,19 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7249
6950
|
}
|
7250
6951
|
src.on("data", ondata);
|
7251
6952
|
function ondata(chunk) {
|
7252
|
-
|
6953
|
+
debug8("ondata");
|
7253
6954
|
var ret = dest.write(chunk);
|
7254
|
-
|
6955
|
+
debug8("dest.write", ret);
|
7255
6956
|
if (ret === false) {
|
7256
6957
|
if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
|
7257
|
-
|
6958
|
+
debug8("false write response, pause", state.awaitDrain);
|
7258
6959
|
state.awaitDrain++;
|
7259
6960
|
}
|
7260
6961
|
src.pause();
|
7261
6962
|
}
|
7262
6963
|
}
|
7263
6964
|
function onerror(er) {
|
7264
|
-
|
6965
|
+
debug8("onerror", er);
|
7265
6966
|
unpipe();
|
7266
6967
|
dest.removeListener("error", onerror);
|
7267
6968
|
if (EElistenerCount(dest, "error") === 0) errorOrDestroy(dest, er);
|
@@ -7273,18 +6974,18 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7273
6974
|
}
|
7274
6975
|
dest.once("close", onclose);
|
7275
6976
|
function onfinish() {
|
7276
|
-
|
6977
|
+
debug8("onfinish");
|
7277
6978
|
dest.removeListener("close", onclose);
|
7278
6979
|
unpipe();
|
7279
6980
|
}
|
7280
6981
|
dest.once("finish", onfinish);
|
7281
6982
|
function unpipe() {
|
7282
|
-
|
6983
|
+
debug8("unpipe");
|
7283
6984
|
src.unpipe(dest);
|
7284
6985
|
}
|
7285
6986
|
dest.emit("pipe", src);
|
7286
6987
|
if (!state.flowing) {
|
7287
|
-
|
6988
|
+
debug8("pipe resume");
|
7288
6989
|
src.resume();
|
7289
6990
|
}
|
7290
6991
|
return dest;
|
@@ -7292,7 +6993,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7292
6993
|
function pipeOnDrain(src) {
|
7293
6994
|
return function pipeOnDrainFunctionResult() {
|
7294
6995
|
var state = src._readableState;
|
7295
|
-
|
6996
|
+
debug8("pipeOnDrain", state.awaitDrain);
|
7296
6997
|
if (state.awaitDrain) state.awaitDrain--;
|
7297
6998
|
if (state.awaitDrain === 0 && EElistenerCount(src, "data")) {
|
7298
6999
|
state.flowing = true;
|
@@ -7347,7 +7048,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7347
7048
|
state.readableListening = state.needReadable = true;
|
7348
7049
|
state.flowing = false;
|
7349
7050
|
state.emittedReadable = false;
|
7350
|
-
|
7051
|
+
debug8("on readable", state.length, state.reading);
|
7351
7052
|
if (state.length) {
|
7352
7053
|
emitReadable(this);
|
7353
7054
|
} else if (!state.reading) {
|
@@ -7382,13 +7083,13 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7382
7083
|
}
|
7383
7084
|
}
|
7384
7085
|
function nReadingNextTick(self2) {
|
7385
|
-
|
7086
|
+
debug8("readable nexttick read 0");
|
7386
7087
|
self2.read(0);
|
7387
7088
|
}
|
7388
7089
|
Readable.prototype.resume = function() {
|
7389
7090
|
var state = this._readableState;
|
7390
7091
|
if (!state.flowing) {
|
7391
|
-
|
7092
|
+
debug8("resume");
|
7392
7093
|
state.flowing = !state.readableListening;
|
7393
7094
|
resume(this, state);
|
7394
7095
|
}
|
@@ -7402,7 +7103,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7402
7103
|
}
|
7403
7104
|
}
|
7404
7105
|
function resume_(stream, state) {
|
7405
|
-
|
7106
|
+
debug8("resume", state.reading);
|
7406
7107
|
if (!state.reading) {
|
7407
7108
|
stream.read(0);
|
7408
7109
|
}
|
@@ -7412,9 +7113,9 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7412
7113
|
if (state.flowing && !state.reading) stream.read(0);
|
7413
7114
|
}
|
7414
7115
|
Readable.prototype.pause = function() {
|
7415
|
-
|
7116
|
+
debug8("call pause flowing=%j", this._readableState.flowing);
|
7416
7117
|
if (this._readableState.flowing !== false) {
|
7417
|
-
|
7118
|
+
debug8("pause");
|
7418
7119
|
this._readableState.flowing = false;
|
7419
7120
|
this.emit("pause");
|
7420
7121
|
}
|
@@ -7423,7 +7124,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7423
7124
|
};
|
7424
7125
|
function flow(stream) {
|
7425
7126
|
var state = stream._readableState;
|
7426
|
-
|
7127
|
+
debug8("flow", state.flowing);
|
7427
7128
|
while (state.flowing && stream.read() !== null) {
|
7428
7129
|
;
|
7429
7130
|
}
|
@@ -7433,7 +7134,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7433
7134
|
var state = this._readableState;
|
7434
7135
|
var paused = false;
|
7435
7136
|
stream.on("end", function() {
|
7436
|
-
|
7137
|
+
debug8("wrapped end");
|
7437
7138
|
if (state.decoder && !state.ended) {
|
7438
7139
|
var chunk = state.decoder.end();
|
7439
7140
|
if (chunk && chunk.length) _this.push(chunk);
|
@@ -7441,7 +7142,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7441
7142
|
_this.push(null);
|
7442
7143
|
});
|
7443
7144
|
stream.on("data", function(chunk) {
|
7444
|
-
|
7145
|
+
debug8("wrapped data");
|
7445
7146
|
if (state.decoder) chunk = state.decoder.write(chunk);
|
7446
7147
|
if (state.objectMode && (chunk === null || chunk === void 0)) return;
|
7447
7148
|
else if (!state.objectMode && (!chunk || !chunk.length)) return;
|
@@ -7464,7 +7165,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7464
7165
|
stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
|
7465
7166
|
}
|
7466
7167
|
this._read = function(n2) {
|
7467
|
-
|
7168
|
+
debug8("wrapped _read", n2);
|
7468
7169
|
if (paused) {
|
7469
7170
|
paused = false;
|
7470
7171
|
stream.resume();
|
@@ -7538,14 +7239,14 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7538
7239
|
}
|
7539
7240
|
function endReadable(stream) {
|
7540
7241
|
var state = stream._readableState;
|
7541
|
-
|
7242
|
+
debug8("endReadable", state.endEmitted);
|
7542
7243
|
if (!state.endEmitted) {
|
7543
7244
|
state.ended = true;
|
7544
7245
|
process.nextTick(endReadableNT, state, stream);
|
7545
7246
|
}
|
7546
7247
|
}
|
7547
7248
|
function endReadableNT(state, stream) {
|
7548
|
-
|
7249
|
+
debug8("endReadableNT", state.endEmitted, state.length);
|
7549
7250
|
if (!state.endEmitted && state.length === 0) {
|
7550
7251
|
state.endEmitted = true;
|
7551
7252
|
stream.readable = false;
|
@@ -7584,7 +7285,7 @@ var require_stream_transform2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7584
7285
|
var ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING;
|
7585
7286
|
var ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
|
7586
7287
|
var Duplex = require_stream_duplex2();
|
7587
|
-
(0,
|
7288
|
+
(0, import_chunk_C2WD2XUT.require_inherits)()(Transform, Duplex);
|
7588
7289
|
function afterTransform(er, data) {
|
7589
7290
|
var ts = this._transformState;
|
7590
7291
|
ts.transforming = false;
|
@@ -7678,7 +7379,7 @@ var require_stream_passthrough2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7678
7379
|
"use strict";
|
7679
7380
|
module2.exports = PassThrough;
|
7680
7381
|
var Transform = require_stream_transform2();
|
7681
|
-
(0,
|
7382
|
+
(0, import_chunk_C2WD2XUT.require_inherits)()(PassThrough, Transform);
|
7682
7383
|
function PassThrough(options2) {
|
7683
7384
|
if (!(this instanceof PassThrough)) return new PassThrough(options2);
|
7684
7385
|
Transform.call(this, options2);
|
@@ -8546,13 +8247,13 @@ var require_isPlainObject = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8546
8247
|
var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
8547
8248
|
"../../node_modules/.pnpm/archiver-utils@4.0.1/node_modules/archiver-utils/file.js"(exports2, module2) {
|
8548
8249
|
"use strict";
|
8549
|
-
var
|
8550
|
-
var
|
8250
|
+
var fs10 = (0, import_chunk_GXDYIY4M.require_graceful_fs)();
|
8251
|
+
var path10 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
8551
8252
|
var flatten = require_flatten();
|
8552
8253
|
var difference = require_difference();
|
8553
8254
|
var union = require_union();
|
8554
8255
|
var isPlainObject = require_isPlainObject();
|
8555
|
-
var glob = (0,
|
8256
|
+
var glob = (0, import_chunk_C2WD2XUT.require_glob)();
|
8556
8257
|
var file = module2.exports = {};
|
8557
8258
|
var pathSeparatorRe = /[\/\\]/g;
|
8558
8259
|
var processPatterns = function(patterns, fn) {
|
@@ -8572,8 +8273,8 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8572
8273
|
return result;
|
8573
8274
|
};
|
8574
8275
|
file.exists = function() {
|
8575
|
-
var filepath =
|
8576
|
-
return
|
8276
|
+
var filepath = path10.join.apply(path10, arguments);
|
8277
|
+
return fs10.existsSync(filepath);
|
8577
8278
|
};
|
8578
8279
|
file.expand = function(...args) {
|
8579
8280
|
var options2 = isPlainObject(args[0]) ? args.shift() : {};
|
@@ -8586,12 +8287,12 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8586
8287
|
});
|
8587
8288
|
if (options2.filter) {
|
8588
8289
|
matches = matches.filter(function(filepath) {
|
8589
|
-
filepath =
|
8290
|
+
filepath = path10.join(options2.cwd || "", filepath);
|
8590
8291
|
try {
|
8591
8292
|
if (typeof options2.filter === "function") {
|
8592
8293
|
return options2.filter(filepath);
|
8593
8294
|
} else {
|
8594
|
-
return
|
8295
|
+
return fs10.statSync(filepath)[options2.filter]();
|
8595
8296
|
}
|
8596
8297
|
} catch (e) {
|
8597
8298
|
return false;
|
@@ -8603,7 +8304,7 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8603
8304
|
file.expandMapping = function(patterns, destBase, options2) {
|
8604
8305
|
options2 = Object.assign({
|
8605
8306
|
rename: function(destBase2, destPath) {
|
8606
|
-
return
|
8307
|
+
return path10.join(destBase2 || "", destPath);
|
8607
8308
|
}
|
8608
8309
|
}, options2);
|
8609
8310
|
var files = [];
|
@@ -8611,14 +8312,14 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8611
8312
|
file.expand(options2, patterns).forEach(function(src) {
|
8612
8313
|
var destPath = src;
|
8613
8314
|
if (options2.flatten) {
|
8614
|
-
destPath =
|
8315
|
+
destPath = path10.basename(destPath);
|
8615
8316
|
}
|
8616
8317
|
if (options2.ext) {
|
8617
8318
|
destPath = destPath.replace(/(\.[^\/]*)?$/, options2.ext);
|
8618
8319
|
}
|
8619
8320
|
var dest = options2.rename(destBase, destPath, options2);
|
8620
8321
|
if (options2.cwd) {
|
8621
|
-
src =
|
8322
|
+
src = path10.join(options2.cwd, src);
|
8622
8323
|
}
|
8623
8324
|
dest = dest.replace(pathSeparatorRe, "/");
|
8624
8325
|
src = src.replace(pathSeparatorRe, "/");
|
@@ -8698,8 +8399,8 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8698
8399
|
var require_archiver_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
8699
8400
|
"../../node_modules/.pnpm/archiver-utils@4.0.1/node_modules/archiver-utils/index.js"(exports2, module2) {
|
8700
8401
|
"use strict";
|
8701
|
-
var
|
8702
|
-
var
|
8402
|
+
var fs10 = (0, import_chunk_GXDYIY4M.require_graceful_fs)();
|
8403
|
+
var path10 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
8703
8404
|
var lazystream = require_lazystream();
|
8704
8405
|
var normalizePath = require_normalize_path();
|
8705
8406
|
var defaults = require_defaults();
|
@@ -8746,7 +8447,7 @@ var require_archiver_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8746
8447
|
};
|
8747
8448
|
utils.lazyReadStream = function(filepath) {
|
8748
8449
|
return new lazystream.Readable(function() {
|
8749
|
-
return
|
8450
|
+
return fs10.createReadStream(filepath);
|
8750
8451
|
});
|
8751
8452
|
};
|
8752
8453
|
utils.normalizeInputSource = function(source) {
|
@@ -8774,7 +8475,7 @@ var require_archiver_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8774
8475
|
callback = base;
|
8775
8476
|
base = dirpath;
|
8776
8477
|
}
|
8777
|
-
|
8478
|
+
fs10.readdir(dirpath, function(err, list) {
|
8778
8479
|
var i = 0;
|
8779
8480
|
var file;
|
8780
8481
|
var filepath;
|
@@ -8786,11 +8487,11 @@ var require_archiver_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8786
8487
|
if (!file) {
|
8787
8488
|
return callback(null, results);
|
8788
8489
|
}
|
8789
|
-
filepath =
|
8790
|
-
|
8490
|
+
filepath = path10.join(dirpath, file);
|
8491
|
+
fs10.stat(filepath, function(err2, stats) {
|
8791
8492
|
results.push({
|
8792
8493
|
path: filepath,
|
8793
|
-
relative:
|
8494
|
+
relative: path10.relative(base, filepath).replace(/\\/g, "/"),
|
8794
8495
|
stats
|
8795
8496
|
});
|
8796
8497
|
if (stats && stats.isDirectory()) {
|
@@ -8847,10 +8548,10 @@ var require_error = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8847
8548
|
var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
8848
8549
|
"../../node_modules/.pnpm/archiver@6.0.2/node_modules/archiver/lib/core.js"(exports2, module2) {
|
8849
8550
|
"use strict";
|
8850
|
-
var
|
8551
|
+
var fs10 = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
8851
8552
|
var glob = require_readdir_glob();
|
8852
8553
|
var async = (init_async(), (0, import_chunk_WWAWV7DQ.__toCommonJS)(async_exports));
|
8853
|
-
var
|
8554
|
+
var path10 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
8854
8555
|
var util = require_archiver_utils();
|
8855
8556
|
var inherits = (0, import_chunk_WWAWV7DQ.__require)("util").inherits;
|
8856
8557
|
var ArchiverError = require_error();
|
@@ -8911,7 +8612,7 @@ var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8911
8612
|
data.sourcePath = filepath;
|
8912
8613
|
task.data = data;
|
8913
8614
|
this._entriesCount++;
|
8914
|
-
if (data.stats && data.stats instanceof
|
8615
|
+
if (data.stats && data.stats instanceof fs10.Stats) {
|
8915
8616
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
8916
8617
|
if (task) {
|
8917
8618
|
if (data.stats.size) {
|
@@ -9082,7 +8783,7 @@ var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9082
8783
|
callback();
|
9083
8784
|
return;
|
9084
8785
|
}
|
9085
|
-
|
8786
|
+
fs10.lstat(task.filepath, function(err, stats) {
|
9086
8787
|
if (this._state.aborted) {
|
9087
8788
|
setImmediate(callback);
|
9088
8789
|
return;
|
@@ -9125,10 +8826,10 @@ var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9125
8826
|
task.data.sourceType = "buffer";
|
9126
8827
|
task.source = Buffer.concat([]);
|
9127
8828
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
9128
|
-
var linkPath =
|
9129
|
-
var dirName =
|
8829
|
+
var linkPath = fs10.readlinkSync(task.filepath);
|
8830
|
+
var dirName = path10.dirname(task.filepath);
|
9130
8831
|
task.data.type = "symlink";
|
9131
|
-
task.data.linkname =
|
8832
|
+
task.data.linkname = path10.relative(dirName, path10.resolve(dirName, linkPath));
|
9132
8833
|
task.data.sourceType = "buffer";
|
9133
8834
|
task.source = Buffer.concat([]);
|
9134
8835
|
} else {
|
@@ -10246,22 +9947,22 @@ var require_zip_archive_output_stream = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
10246
9947
|
};
|
10247
9948
|
ZipArchiveOutputStream.prototype._smartStream = function(ae, callback) {
|
10248
9949
|
var deflate = ae.getMethod() === constants2.METHOD_DEFLATED;
|
10249
|
-
var
|
9950
|
+
var process3 = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream();
|
10250
9951
|
var error = null;
|
10251
9952
|
function handleStuff() {
|
10252
|
-
var digest =
|
9953
|
+
var digest = process3.digest().readUInt32BE(0);
|
10253
9954
|
ae.setCrc(digest);
|
10254
|
-
ae.setSize(
|
10255
|
-
ae.setCompressedSize(
|
9955
|
+
ae.setSize(process3.size());
|
9956
|
+
ae.setCompressedSize(process3.size(true));
|
10256
9957
|
this._afterAppend(ae);
|
10257
9958
|
callback(error, ae);
|
10258
9959
|
}
|
10259
|
-
|
10260
|
-
|
9960
|
+
process3.once("end", handleStuff.bind(this));
|
9961
|
+
process3.once("error", function(err) {
|
10261
9962
|
error = err;
|
10262
9963
|
});
|
10263
|
-
|
10264
|
-
return
|
9964
|
+
process3.pipe(this, { end: false });
|
9965
|
+
return process3;
|
10265
9966
|
};
|
10266
9967
|
ZipArchiveOutputStream.prototype._writeCentralDirectoryEnd = function() {
|
10267
9968
|
var records = this._entries.length;
|
@@ -13542,7 +13243,7 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
13542
13243
|
var re$1 = { exports: {} };
|
13543
13244
|
(function(module2, exports2) {
|
13544
13245
|
const { MAX_SAFE_COMPONENT_LENGTH: MAX_SAFE_COMPONENT_LENGTH2, MAX_SAFE_BUILD_LENGTH: MAX_SAFE_BUILD_LENGTH2 } = constants;
|
13545
|
-
const
|
13246
|
+
const debug8 = debug_1;
|
13546
13247
|
exports2 = module2.exports = {};
|
13547
13248
|
const re2 = exports2.re = [];
|
13548
13249
|
const safeRe = exports2.safeRe = [];
|
@@ -13564,7 +13265,7 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
13564
13265
|
const createToken = (name, value, isGlobal) => {
|
13565
13266
|
const safe = makeSafeRegex(value);
|
13566
13267
|
const index2 = R++;
|
13567
|
-
|
13268
|
+
debug8(name, index2, value);
|
13568
13269
|
t2[name] = index2;
|
13569
13270
|
src[index2] = value;
|
13570
13271
|
re2[index2] = new RegExp(value, isGlobal ? "g" : void 0);
|
@@ -14402,11 +14103,11 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14402
14103
|
var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
14403
14104
|
"../../node_modules/.pnpm/tmp@0.2.3/node_modules/tmp/lib/tmp.js"(exports2, module2) {
|
14404
14105
|
"use strict";
|
14405
|
-
var
|
14106
|
+
var fs10 = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
14406
14107
|
var os3 = (0, import_chunk_WWAWV7DQ.__require)("os");
|
14407
|
-
var
|
14108
|
+
var path10 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
14408
14109
|
var crypto3 = (0, import_chunk_WWAWV7DQ.__require)("crypto");
|
14409
|
-
var _c = { fs:
|
14110
|
+
var _c = { fs: fs10.constants, os: os3.constants };
|
14410
14111
|
var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
14411
14112
|
var TEMPLATE_PATTERN = /XXXXXX/;
|
14412
14113
|
var DEFAULT_TRIES = 3;
|
@@ -14418,13 +14119,13 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14418
14119
|
var FILE_MODE = 384;
|
14419
14120
|
var EXIT = "exit";
|
14420
14121
|
var _removeObjects = [];
|
14421
|
-
var FN_RMDIR_SYNC =
|
14122
|
+
var FN_RMDIR_SYNC = fs10.rmdirSync.bind(fs10);
|
14422
14123
|
var _gracefulCleanup = false;
|
14423
14124
|
function rimraf(dirPath, callback) {
|
14424
|
-
return
|
14125
|
+
return fs10.rm(dirPath, { recursive: true }, callback);
|
14425
14126
|
}
|
14426
14127
|
function FN_RIMRAF_SYNC(dirPath) {
|
14427
|
-
return
|
14128
|
+
return fs10.rmSync(dirPath, { recursive: true });
|
14428
14129
|
}
|
14429
14130
|
function tmpName(options2, callback) {
|
14430
14131
|
const args = _parseArguments(options2, callback), opts = args[0], cb = args[1];
|
@@ -14437,7 +14138,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14437
14138
|
(function _getUniqueName() {
|
14438
14139
|
try {
|
14439
14140
|
const name = _generateTmpName(opts);
|
14440
|
-
|
14141
|
+
fs10.stat(name, function(err) {
|
14441
14142
|
if (!err) {
|
14442
14143
|
if (tries-- > 0) return _getUniqueName();
|
14443
14144
|
return cb(new Error("Could not get a unique tmp filename, max tries reached " + name));
|
@@ -14456,7 +14157,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14456
14157
|
do {
|
14457
14158
|
const name = _generateTmpName(opts);
|
14458
14159
|
try {
|
14459
|
-
|
14160
|
+
fs10.statSync(name);
|
14460
14161
|
} catch (e) {
|
14461
14162
|
return name;
|
14462
14163
|
}
|
@@ -14467,10 +14168,10 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14467
14168
|
const args = _parseArguments(options2, callback), opts = args[0], cb = args[1];
|
14468
14169
|
tmpName(opts, function _tmpNameCreated(err, name) {
|
14469
14170
|
if (err) return cb(err);
|
14470
|
-
|
14171
|
+
fs10.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
|
14471
14172
|
if (err2) return cb(err2);
|
14472
14173
|
if (opts.discardDescriptor) {
|
14473
|
-
return
|
14174
|
+
return fs10.close(fd, function _discardCallback(possibleErr) {
|
14474
14175
|
return cb(possibleErr, name, void 0, _prepareTmpFileRemoveCallback(name, -1, opts, false));
|
14475
14176
|
});
|
14476
14177
|
} else {
|
@@ -14484,9 +14185,9 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14484
14185
|
const args = _parseArguments(options2), opts = args[0];
|
14485
14186
|
const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
|
14486
14187
|
const name = tmpNameSync(opts);
|
14487
|
-
var fd =
|
14188
|
+
var fd = fs10.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
|
14488
14189
|
if (opts.discardDescriptor) {
|
14489
|
-
|
14190
|
+
fs10.closeSync(fd);
|
14490
14191
|
fd = void 0;
|
14491
14192
|
}
|
14492
14193
|
return {
|
@@ -14499,7 +14200,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14499
14200
|
const args = _parseArguments(options2, callback), opts = args[0], cb = args[1];
|
14500
14201
|
tmpName(opts, function _tmpNameCreated(err, name) {
|
14501
14202
|
if (err) return cb(err);
|
14502
|
-
|
14203
|
+
fs10.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) {
|
14503
14204
|
if (err2) return cb(err2);
|
14504
14205
|
cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false));
|
14505
14206
|
});
|
@@ -14508,7 +14209,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14508
14209
|
function dirSync(options2) {
|
14509
14210
|
const args = _parseArguments(options2), opts = args[0];
|
14510
14211
|
const name = tmpNameSync(opts);
|
14511
|
-
|
14212
|
+
fs10.mkdirSync(name, opts.mode || DIR_MODE);
|
14512
14213
|
return {
|
14513
14214
|
name,
|
14514
14215
|
removeCallback: _prepareTmpDirRemoveCallback(name, opts, true)
|
@@ -14522,20 +14223,20 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14522
14223
|
next();
|
14523
14224
|
};
|
14524
14225
|
if (0 <= fdPath[0])
|
14525
|
-
|
14526
|
-
|
14226
|
+
fs10.close(fdPath[0], function() {
|
14227
|
+
fs10.unlink(fdPath[1], _handler);
|
14527
14228
|
});
|
14528
|
-
else
|
14229
|
+
else fs10.unlink(fdPath[1], _handler);
|
14529
14230
|
}
|
14530
14231
|
function _removeFileSync(fdPath) {
|
14531
14232
|
let rethrownException = null;
|
14532
14233
|
try {
|
14533
|
-
if (0 <= fdPath[0])
|
14234
|
+
if (0 <= fdPath[0]) fs10.closeSync(fdPath[0]);
|
14534
14235
|
} catch (e) {
|
14535
14236
|
if (!_isEBADF(e) && !_isENOENT(e)) throw e;
|
14536
14237
|
} finally {
|
14537
14238
|
try {
|
14538
|
-
|
14239
|
+
fs10.unlinkSync(fdPath[1]);
|
14539
14240
|
} catch (e) {
|
14540
14241
|
if (!_isENOENT(e)) rethrownException = e;
|
14541
14242
|
}
|
@@ -14551,7 +14252,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14551
14252
|
return sync ? removeCallbackSync : removeCallback;
|
14552
14253
|
}
|
14553
14254
|
function _prepareTmpDirRemoveCallback(name, opts, sync) {
|
14554
|
-
const removeFunction = opts.unsafeCleanup ? rimraf :
|
14255
|
+
const removeFunction = opts.unsafeCleanup ? rimraf : fs10.rmdir.bind(fs10);
|
14555
14256
|
const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC;
|
14556
14257
|
const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync);
|
14557
14258
|
const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync);
|
@@ -14618,9 +14319,9 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14618
14319
|
function _generateTmpName(opts) {
|
14619
14320
|
const tmpDir = opts.tmpdir;
|
14620
14321
|
if (!_isUndefined(opts.name))
|
14621
|
-
return
|
14322
|
+
return path10.join(tmpDir, opts.dir, opts.name);
|
14622
14323
|
if (!_isUndefined(opts.template))
|
14623
|
-
return
|
14324
|
+
return path10.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
|
14624
14325
|
const name = [
|
14625
14326
|
opts.prefix ? opts.prefix : "tmp",
|
14626
14327
|
"-",
|
@@ -14629,7 +14330,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14629
14330
|
_randomChars(12),
|
14630
14331
|
opts.postfix ? "-" + opts.postfix : ""
|
14631
14332
|
].join("");
|
14632
|
-
return
|
14333
|
+
return path10.join(tmpDir, opts.dir, name);
|
14633
14334
|
}
|
14634
14335
|
function _assertAndSanitizeOptions(options2) {
|
14635
14336
|
options2.tmpdir = _getTmpDir(options2);
|
@@ -14650,29 +14351,29 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14650
14351
|
options2.detachDescriptor = !!options2.detachDescriptor;
|
14651
14352
|
options2.discardDescriptor = !!options2.discardDescriptor;
|
14652
14353
|
options2.unsafeCleanup = !!options2.unsafeCleanup;
|
14653
|
-
options2.dir = _isUndefined(options2.dir) ? "" :
|
14654
|
-
options2.template = _isUndefined(options2.template) ? void 0 :
|
14655
|
-
options2.template = _isBlank(options2.template) ? void 0 :
|
14354
|
+
options2.dir = _isUndefined(options2.dir) ? "" : path10.relative(tmpDir, _resolvePath(options2.dir, tmpDir));
|
14355
|
+
options2.template = _isUndefined(options2.template) ? void 0 : path10.relative(tmpDir, _resolvePath(options2.template, tmpDir));
|
14356
|
+
options2.template = _isBlank(options2.template) ? void 0 : path10.relative(options2.dir, options2.template);
|
14656
14357
|
options2.name = _isUndefined(options2.name) ? void 0 : options2.name;
|
14657
14358
|
options2.prefix = _isUndefined(options2.prefix) ? "" : options2.prefix;
|
14658
14359
|
options2.postfix = _isUndefined(options2.postfix) ? "" : options2.postfix;
|
14659
14360
|
}
|
14660
14361
|
function _resolvePath(name, tmpDir) {
|
14661
14362
|
if (name.startsWith(tmpDir)) {
|
14662
|
-
return
|
14363
|
+
return path10.resolve(name);
|
14663
14364
|
} else {
|
14664
|
-
return
|
14365
|
+
return path10.resolve(path10.join(tmpDir, name));
|
14665
14366
|
}
|
14666
14367
|
}
|
14667
14368
|
function _assertIsRelative(name, option, tmpDir) {
|
14668
14369
|
if (option === "name") {
|
14669
|
-
if (
|
14370
|
+
if (path10.isAbsolute(name))
|
14670
14371
|
throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
|
14671
|
-
let basename =
|
14372
|
+
let basename = path10.basename(name);
|
14672
14373
|
if (basename === ".." || basename === "." || basename !== name)
|
14673
14374
|
throw new Error(`${option} option must not contain a path, found "${name}".`);
|
14674
14375
|
} else {
|
14675
|
-
if (
|
14376
|
+
if (path10.isAbsolute(name) && !name.startsWith(tmpDir)) {
|
14676
14377
|
throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
|
14677
14378
|
}
|
14678
14379
|
let resolvedPath = _resolvePath(name, tmpDir);
|
@@ -14693,7 +14394,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14693
14394
|
_gracefulCleanup = true;
|
14694
14395
|
}
|
14695
14396
|
function _getTmpDir(options2) {
|
14696
|
-
return
|
14397
|
+
return path10.resolve(options2 && options2.tmpdir || os3.tmpdir());
|
14697
14398
|
}
|
14698
14399
|
process.addListener(EXIT, _garbageCollector);
|
14699
14400
|
Object.defineProperty(module2.exports, "tmpdir", {
|
@@ -14712,10 +14413,89 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14712
14413
|
module2.exports.setGracefulCleanup = setGracefulCleanup;
|
14713
14414
|
}
|
14714
14415
|
});
|
14715
|
-
var
|
14416
|
+
var typeMappings = {
|
14417
|
+
directory: "isDirectory",
|
14418
|
+
file: "isFile"
|
14419
|
+
};
|
14420
|
+
function checkType(type) {
|
14421
|
+
if (Object.hasOwnProperty.call(typeMappings, type)) {
|
14422
|
+
return;
|
14423
|
+
}
|
14424
|
+
throw new Error(`Invalid type specified: ${type}`);
|
14425
|
+
}
|
14426
|
+
var matchType = (type, stat2) => stat2[typeMappings[type]]();
|
14427
|
+
var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
|
14428
|
+
function locatePathSync(paths2, {
|
14429
|
+
cwd = import_node_process.default.cwd(),
|
14430
|
+
type = "file",
|
14431
|
+
allowSymlinks = true
|
14432
|
+
} = {}) {
|
14433
|
+
checkType(type);
|
14434
|
+
cwd = toPath2(cwd);
|
14435
|
+
const statFunction = allowSymlinks ? import_node_fs.default.statSync : import_node_fs.default.lstatSync;
|
14436
|
+
for (const path_ of paths2) {
|
14437
|
+
try {
|
14438
|
+
const stat2 = statFunction(import_node_path2.default.resolve(cwd, path_), {
|
14439
|
+
throwIfNoEntry: false
|
14440
|
+
});
|
14441
|
+
if (!stat2) {
|
14442
|
+
continue;
|
14443
|
+
}
|
14444
|
+
if (matchType(type, stat2)) {
|
14445
|
+
return path_;
|
14446
|
+
}
|
14447
|
+
} catch {
|
14448
|
+
}
|
14449
|
+
}
|
14450
|
+
}
|
14451
|
+
function pathExistsSync(path10) {
|
14452
|
+
try {
|
14453
|
+
import_node_fs2.default.accessSync(path10);
|
14454
|
+
return true;
|
14455
|
+
} catch {
|
14456
|
+
return false;
|
14457
|
+
}
|
14458
|
+
}
|
14459
|
+
var findUpStop = Symbol("findUpStop");
|
14460
|
+
function findUpMultipleSync(name, options2 = {}) {
|
14461
|
+
let directory = import_node_path.default.resolve((0, import_chunk_C2WD2XUT.toPath)(options2.cwd) ?? "");
|
14462
|
+
const { root } = import_node_path.default.parse(directory);
|
14463
|
+
const stopAt = import_node_path.default.resolve(directory, (0, import_chunk_C2WD2XUT.toPath)(options2.stopAt) ?? root);
|
14464
|
+
const limit = options2.limit ?? Number.POSITIVE_INFINITY;
|
14465
|
+
const paths2 = [name].flat();
|
14466
|
+
const runMatcher = (locateOptions) => {
|
14467
|
+
if (typeof name !== "function") {
|
14468
|
+
return locatePathSync(paths2, locateOptions);
|
14469
|
+
}
|
14470
|
+
const foundPath = name(locateOptions.cwd);
|
14471
|
+
if (typeof foundPath === "string") {
|
14472
|
+
return locatePathSync([foundPath], locateOptions);
|
14473
|
+
}
|
14474
|
+
return foundPath;
|
14475
|
+
};
|
14476
|
+
const matches = [];
|
14477
|
+
while (true) {
|
14478
|
+
const foundPath = runMatcher({ ...options2, cwd: directory });
|
14479
|
+
if (foundPath === findUpStop) {
|
14480
|
+
break;
|
14481
|
+
}
|
14482
|
+
if (foundPath) {
|
14483
|
+
matches.push(import_node_path.default.resolve(directory, foundPath));
|
14484
|
+
}
|
14485
|
+
if (directory === stopAt || matches.length >= limit) {
|
14486
|
+
break;
|
14487
|
+
}
|
14488
|
+
directory = import_node_path.default.dirname(directory);
|
14489
|
+
}
|
14490
|
+
return matches;
|
14491
|
+
}
|
14492
|
+
function findUpSync(name, options2 = {}) {
|
14493
|
+
const matches = findUpMultipleSync(name, { ...options2, limit: 1 });
|
14494
|
+
return matches[0];
|
14495
|
+
}
|
14716
14496
|
var readFile = (0, import_util.promisify)(import_fs3.default.readFile);
|
14717
14497
|
var stat = (0, import_util.promisify)(import_fs3.default.stat);
|
14718
|
-
var debug2 = (0,
|
14498
|
+
var debug2 = (0, import_debug3.Debug)("prisma:getSchema");
|
14719
14499
|
async function getSchemaWithPath(schemaPathFromArgs, schemaPathFromConfig, { cwd = process.cwd(), argumentName = "--schema" } = {}) {
|
14720
14500
|
const result = await getSchemaWithPathInternal(schemaPathFromArgs, schemaPathFromConfig, { cwd, argumentName });
|
14721
14501
|
if (result.ok) {
|
@@ -14751,7 +14531,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
14751
14531
|
}
|
14752
14532
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
14753
14533
|
debug2("Loading config");
|
14754
|
-
const config2 = await (0,
|
14534
|
+
const config2 = await (0, import_chunk_Q4F5XQEO.getConfig)({
|
14755
14535
|
datamodel: files,
|
14756
14536
|
ignoreEnvVarErrors: true
|
14757
14537
|
});
|
@@ -14842,7 +14622,7 @@ function renderDefaultLookupError(error, cwd) {
|
|
14842
14622
|
return parts.join("\n");
|
14843
14623
|
}
|
14844
14624
|
async function getPrismaConfigFromPackageJson(cwd) {
|
14845
|
-
const pkgJson = await (0,
|
14625
|
+
const pkgJson = await (0, import_chunk_C2WD2XUT.readPackageUp)({ cwd, normalize: false });
|
14846
14626
|
const prismaPropertyFromPkgJson = pkgJson?.packageJson?.prisma;
|
14847
14627
|
if (!pkgJson) {
|
14848
14628
|
return null;
|
@@ -14985,7 +14765,7 @@ async function getSchema(schemaPathFromArgs, schemaPathFromConfig) {
|
|
14985
14765
|
const schemaPathResult = await getSchemaWithPath(schemaPathFromArgs, schemaPathFromConfig);
|
14986
14766
|
return schemaPathResult.schemas;
|
14987
14767
|
}
|
14988
|
-
var debug3 = (0,
|
14768
|
+
var debug3 = (0, import_debug2.default)("prisma:loadEnv");
|
14989
14769
|
async function getEnvPaths(schemaPath2, opts = { cwd: process.cwd() }) {
|
14990
14770
|
const rootEnvPath = getProjectRootEnvPath({ cwd: opts.cwd }) ?? null;
|
14991
14771
|
const schemaEnvPathFromArgs = schemaPathToEnvPath(schemaPath2);
|
@@ -15015,9 +14795,9 @@ async function readSchemaPathFromPkgJson() {
|
|
15015
14795
|
}
|
15016
14796
|
}
|
15017
14797
|
function getProjectRootEnvPath(opts) {
|
15018
|
-
const pkgJsonPath =
|
14798
|
+
const pkgJsonPath = findUpSync((dir2) => {
|
15019
14799
|
const pkgPath = import_path.default.join(dir2, "package.json");
|
15020
|
-
if (
|
14800
|
+
if (pathExistsSync(pkgPath)) {
|
15021
14801
|
try {
|
15022
14802
|
const pkg = JSON.parse(import_fs2.default.readFileSync(pkgPath, "utf8"));
|
15023
14803
|
if (pkg["name"] !== ".prisma/client") {
|
@@ -15043,14 +14823,14 @@ function schemaPathToEnvPath(schemaPath2) {
|
|
15043
14823
|
if (!schemaPath2) return null;
|
15044
14824
|
return import_path.default.join(import_path.default.dirname(schemaPath2), ".env");
|
15045
14825
|
}
|
15046
|
-
var debug4 = (0, import_debug2.default)("prisma:cli:loadEnvFile");
|
15047
14826
|
async function loadEnvFile({
|
15048
14827
|
schemaPath: schemaPath2,
|
15049
14828
|
config: config2,
|
15050
14829
|
printMessage = false
|
15051
14830
|
}) {
|
15052
14831
|
if (config2.loadedFromFile) {
|
15053
|
-
|
14832
|
+
process.stdout.write(`Prisma config detected, skipping environment variable loading.
|
14833
|
+
`);
|
15054
14834
|
return;
|
15055
14835
|
}
|
15056
14836
|
const envPaths2 = await getEnvPaths(schemaPath2);
|
@@ -15077,8 +14857,8 @@ async function checkUnsupportedDataProxyMessage(command, args, schemaPathFromCon
|
|
15077
14857
|
if (argName.includes("schema")) {
|
15078
14858
|
await loadEnvFile({ schemaPath: argValue, printMessage: false, config: (0, import_config.defaultTestConfig)() });
|
15079
14859
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
15080
|
-
const config2 = await (0,
|
15081
|
-
const url = (0,
|
14860
|
+
const config2 = await (0, import_chunk_Q4F5XQEO.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
14861
|
+
const url = (0, import_chunk_Q4F5XQEO.resolveUrl)((0, import_chunk_Q4F5XQEO.getEffectiveUrl)(config2.datasources[0]));
|
15082
14862
|
if (url?.startsWith("prisma://")) {
|
15083
14863
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
15084
14864
|
}
|
@@ -15100,15 +14880,15 @@ function getCLIPathHash() {
|
|
15100
14880
|
const cliPath = process.argv[1];
|
15101
14881
|
return import_crypto.default.createHash("sha256").update(cliPath).digest("hex").substring(0, 8);
|
15102
14882
|
}
|
15103
|
-
var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
15104
|
-
var
|
14883
|
+
var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_C2WD2XUT.require_p_map)());
|
14884
|
+
var debug4 = (0, import_debug6.default)("prisma:generator");
|
15105
14885
|
async function checkTypeScriptVersion() {
|
15106
14886
|
const minVersion = "4.1.0";
|
15107
14887
|
try {
|
15108
14888
|
const typescriptPath = await (0, import_chunk_YXD4CJDK.resolvePkg)("typescript", {
|
15109
14889
|
basedir: process.cwd()
|
15110
14890
|
});
|
15111
|
-
|
14891
|
+
debug4("typescriptPath", typescriptPath);
|
15112
14892
|
const typescriptPkg = typescriptPath && import_path5.default.join(typescriptPath, "package.json");
|
15113
14893
|
if (typescriptPkg && import_fs5.default.existsSync(typescriptPkg)) {
|
15114
14894
|
const pjson = (0, import_chunk_WWAWV7DQ.__require)(typescriptPkg);
|
@@ -15126,14 +14906,14 @@ async function checkTypeScriptVersion() {
|
|
15126
14906
|
} catch (e) {
|
15127
14907
|
}
|
15128
14908
|
}
|
15129
|
-
var
|
14909
|
+
var debug5 = (0, import_debug5.default)("prisma:generator");
|
15130
14910
|
async function prismaClientResolver(baseDir, version3) {
|
15131
14911
|
let prismaClientDir = await (0, import_chunk_PIPE5DSU.findPrismaClientDir)(baseDir);
|
15132
|
-
|
14912
|
+
debug5("baseDir", baseDir);
|
15133
14913
|
await checkTypeScriptVersion();
|
15134
14914
|
if (!prismaClientDir && !process.env.PRISMA_GENERATE_SKIP_AUTOINSTALL) {
|
15135
14915
|
let projectRoot = (0, import_chunk_J77ZIDXB.longestCommonPathPrefix)(baseDir, process.cwd());
|
15136
|
-
|
14916
|
+
debug5("projectRoot", projectRoot);
|
15137
14917
|
const warningTag = `${(0, import_chunk_PG5FDKSF.bold)("Warning:")} ${(0, import_chunk_PG5FDKSF.dim)("[Prisma auto-install on generate]")}`;
|
15138
14918
|
if (projectRoot === void 0) {
|
15139
14919
|
console.warn(
|
@@ -15203,7 +14983,7 @@ Please try to install it with ${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk
|
|
15203
14983
|
var generatorResolvers = {
|
15204
14984
|
"prisma-client-js": prismaClientResolver
|
15205
14985
|
};
|
15206
|
-
var
|
14986
|
+
var debug6 = (0, import_debug4.default)("prisma:getGenerators");
|
15207
14987
|
async function getGenerators(options) {
|
15208
14988
|
const {
|
15209
14989
|
schemaPath,
|
@@ -15251,7 +15031,7 @@ async function getGenerators(options) {
|
|
15251
15031
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
15252
15032
|
}
|
15253
15033
|
}
|
15254
|
-
const config = await (0,
|
15034
|
+
const config = await (0, import_chunk_Q4F5XQEO.getConfig)({
|
15255
15035
|
datamodel: schemas,
|
15256
15036
|
datamodelPath: schemaPath,
|
15257
15037
|
prismaPath,
|
@@ -15262,7 +15042,7 @@ async function getGenerators(options) {
|
|
15262
15042
|
}
|
15263
15043
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
15264
15044
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
15265
|
-
const dmmf = await (0,
|
15045
|
+
const dmmf = await (0, import_chunk_6EY425PC.getDMMF)({
|
15266
15046
|
datamodel: schemas,
|
15267
15047
|
datamodelPath: schemaPath,
|
15268
15048
|
prismaPath,
|
@@ -15293,7 +15073,7 @@ async function getGenerators(options) {
|
|
15293
15073
|
paths2 = await generatorResolvers[providerValue](baseDir, cliVersion);
|
15294
15074
|
generatorPath = paths2.generatorPath;
|
15295
15075
|
}
|
15296
|
-
const generatorInstance = new
|
15076
|
+
const generatorInstance = new import_chunk_ZYW3HGSH.Generator(generatorPath, generator, paths2?.isNode);
|
15297
15077
|
await generatorInstance.init();
|
15298
15078
|
if (generator.output) {
|
15299
15079
|
generator.output = {
|
@@ -15323,7 +15103,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
15323
15103
|
fromEnvVar: "null"
|
15324
15104
|
};
|
15325
15105
|
}
|
15326
|
-
const datamodel = (0,
|
15106
|
+
const datamodel = (0, import_chunk_BICBHOFV.mergeSchemas)({ schemas });
|
15327
15107
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
15328
15108
|
const options2 = {
|
15329
15109
|
datamodel,
|
@@ -15389,8 +15169,8 @@ generator gen {
|
|
15389
15169
|
}
|
15390
15170
|
}
|
15391
15171
|
}
|
15392
|
-
|
15393
|
-
const binaryPathsByVersion = await (0,
|
15172
|
+
debug6("neededVersions", JSON.stringify(neededVersions, null, 2));
|
15173
|
+
const binaryPathsByVersion = await (0, import_chunk_NJQWZ447.getBinaryPathsByVersion)({
|
15394
15174
|
neededVersions,
|
15395
15175
|
binaryTarget,
|
15396
15176
|
version,
|
@@ -15403,19 +15183,19 @@ generator gen {
|
|
15403
15183
|
const engineVersion = (0, import_chunk_X3P4J7WW.getEngineVersionForGenerator)(generator.manifest, version);
|
15404
15184
|
const binaryPaths = binaryPathsByVersion[engineVersion];
|
15405
15185
|
const generatorBinaryPaths = (0, import_chunk_5V36RLCO.pick)(binaryPaths, generator.manifest.requiresEngines);
|
15406
|
-
|
15186
|
+
debug6({ generatorBinaryPaths });
|
15407
15187
|
generator.setBinaryPaths(generatorBinaryPaths);
|
15408
15188
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
15409
|
-
const customDmmf = await (0,
|
15189
|
+
const customDmmf = await (0, import_chunk_6EY425PC.getDMMF)({
|
15410
15190
|
datamodel: schemas,
|
15411
15191
|
datamodelPath: schemaPath,
|
15412
15192
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
15413
15193
|
previewFeatures
|
15414
15194
|
});
|
15415
15195
|
const options2 = { ...generator.options, dmmf: customDmmf };
|
15416
|
-
|
15417
|
-
|
15418
|
-
|
15196
|
+
debug6("generator.manifest.prettyName", generator.manifest.prettyName);
|
15197
|
+
debug6("options", options2);
|
15198
|
+
debug6("options.generator.binaryTargets", options2.generator.binaryTargets);
|
15419
15199
|
generator.setOptions(options2);
|
15420
15200
|
}
|
15421
15201
|
}
|
@@ -15590,7 +15370,7 @@ function concatSchemaForReport(schemaFiles) {
|
|
15590
15370
|
if (!schemaFiles) {
|
15591
15371
|
return void 0;
|
15592
15372
|
}
|
15593
|
-
return schemaFiles.map(([
|
15373
|
+
return schemaFiles.map(([path10, content]) => `// ${path10}
|
15594
15374
|
${content}`).join("\n");
|
15595
15375
|
}
|
15596
15376
|
function getCommand() {
|
@@ -15699,12 +15479,12 @@ ${(0, import_chunk_PG5FDKSF.bold)("Thanks a lot for your help! \u{1F64F}")}`);
|
|
15699
15479
|
});
|
15700
15480
|
process.exit(1);
|
15701
15481
|
}
|
15702
|
-
var
|
15482
|
+
var debug7 = (0, import_debug.default)("prisma:format");
|
15703
15483
|
async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
15704
15484
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
15705
15485
|
handleFormatPanic(
|
15706
15486
|
() => {
|
15707
|
-
|
15487
|
+
import_chunk_SIE7JUHZ.prismaSchemaWasm.debug_panic();
|
15708
15488
|
},
|
15709
15489
|
{ schemas: schemas2 }
|
15710
15490
|
);
|
@@ -15724,12 +15504,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15724
15504
|
() => {
|
15725
15505
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
15726
15506
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
15727
|
-
const lintDiagnostics2 = (0,
|
15507
|
+
const lintDiagnostics2 = (0, import_chunk_RG3KUBMQ.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
15728
15508
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
15729
15509
|
},
|
15730
15510
|
{ schemas: schemas2 }
|
15731
15511
|
);
|
15732
|
-
const lintWarnings = (0,
|
15512
|
+
const lintWarnings = (0, import_chunk_RG3KUBMQ.getLintWarningsAsText)(lintDiagnostics);
|
15733
15513
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
15734
15514
|
console.warn(lintWarnings);
|
15735
15515
|
}
|
@@ -15739,10 +15519,10 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
15739
15519
|
try {
|
15740
15520
|
return tryCb();
|
15741
15521
|
} catch (e) {
|
15742
|
-
const { message, stack } = (0,
|
15743
|
-
|
15744
|
-
|
15745
|
-
const panic = new
|
15522
|
+
const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e);
|
15523
|
+
debug7(`Error formatting schema: ${message}`);
|
15524
|
+
debug7(stack);
|
15525
|
+
const panic = new import_chunk_ATFQZVBS.RustPanic(
|
15746
15526
|
/* message */
|
15747
15527
|
message,
|
15748
15528
|
/* rustStack */
|
@@ -15759,7 +15539,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
15759
15539
|
}
|
15760
15540
|
}
|
15761
15541
|
function formatWasm(schema, documentFormattingParams) {
|
15762
|
-
const formattedSchema =
|
15542
|
+
const formattedSchema = import_chunk_SIE7JUHZ.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
15763
15543
|
return formattedSchema;
|
15764
15544
|
}
|
15765
15545
|
/*! Bundled license information:
|