@prisma/internals 6.19.0-integration-release-tags.3 → 6.19.0-integration-next.19
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-LV27YCGC.js → chunk-23LG3AM7.js} +11 -11
- package/dist/{chunk-JTS4UPHJ.js → chunk-2KREE2OX.js} +5 -5
- package/dist/{chunk-JOIIWB3U.js → chunk-2LOGW45F.js} +68 -33
- package/dist/{chunk-BVJP43JS.js → chunk-32LLAKF4.js} +13 -784
- package/dist/{chunk-SOKSKSEX.js → chunk-33FYCEWF.js} +14 -20
- package/dist/{chunk-FYZCPL2Z.js → chunk-3CAPLXKF.js} +5 -8
- package/dist/{chunk-I6WLABB2.js → chunk-3WXUQZS7.js} +14 -5
- package/dist/{chunk-OAT7ZJED.js → chunk-4YDN7W7B.js} +7 -20
- package/dist/{chunk-CCLAMTCA.js → chunk-5B5U2HVK.js} +7 -8
- package/dist/{chunk-E4H6V3Z4.js → chunk-5FPOMN3L.js} +11 -11
- package/dist/{chunk-RS2R7COT.js → chunk-5I4ERIIY.js} +3 -9
- package/dist/{chunk-F2OZV76L.js → chunk-5MHUYAV3.js} +9 -9
- package/dist/{chunk-HO5HRHFZ.js → chunk-5W3BSMTH.js} +3 -6
- package/dist/{chunk-MJCGY2V3.js → chunk-6FP5PMMX.js} +5 -5
- package/dist/{chunk-G47GO4CL.js → chunk-6QTJ35DP.js} +12 -12
- package/dist/{chunk-ELPSTBV4.js → chunk-6ZC3SFH2.js} +5 -5
- package/dist/{chunk-TBR6SNKL.js → chunk-7HPJZOAI.js} +5 -5
- package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
- package/dist/{chunk-HFFWZTVM.js → chunk-BUQN4WLU.js} +7 -9
- package/dist/{chunk-HHG4DGHC.js → chunk-CGLLQXZE.js} +11 -12
- package/dist/{chunk-CUJX3THN.js → chunk-DHUVROOE.js} +5 -5
- package/dist/{chunk-WYQJ4JWO.js → chunk-DLSGMFZ4.js} +12 -12
- package/dist/{chunk-GMW36QQF.js → chunk-DOO45FN6.js} +7 -7
- package/dist/chunk-DYV47NUW.js +796 -0
- package/dist/{chunk-IDINCQMN.js → chunk-FF7OLLBP.js} +12 -784
- package/dist/{chunk-4CGPN5SR.js → chunk-GJSFP4V4.js} +3 -9
- package/dist/{chunk-4JCVHBYR.js → chunk-GL7OANR6.js} +5 -5
- package/dist/{chunk-YIUTMODJ.js → chunk-HBU4ZVCA.js} +11 -11
- package/dist/{chunk-BNL4QIT4.js → chunk-HQE53CGA.js} +11 -11
- package/dist/{chunk-2GUGGLPK.js → chunk-HTA73PCG.js} +38 -71
- package/dist/{chunk-UHI6VYFX.js → chunk-IHC4ZVPQ.js} +5 -5
- package/dist/{chunk-D4VDA2TZ.js → chunk-IRWX4FCC.js} +6 -6
- package/dist/{chunk-UQUWZJVN.js → chunk-IU77SCOB.js} +9 -9
- package/dist/{chunk-NVNI2SRU.js → chunk-KNNTV7IN.js} +687 -213
- package/dist/{chunk-QJ3QPUM5.js → chunk-KZ5SMOBR.js} +5 -5
- package/dist/{chunk-FHZ5QJLR.js → chunk-MEBZK5AR.js} +5 -5
- package/dist/{chunk-5AI4FIZ3.js → chunk-MEOOYUIZ.js} +10 -10
- package/dist/{chunk-TQFONRJP.js → chunk-MXAUURHG.js} +5 -5
- package/dist/{chunk-7QC5VORA.js → chunk-MYLPCGTT.js} +5 -5
- package/dist/{chunk-EYVG6XQS.js → chunk-OKVM3CW4.js} +3 -39
- package/dist/{chunk-A7MROPVQ.js → chunk-QF6YW5EC.js} +8 -9
- package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
- package/dist/{chunk-LD3IX5KG.js → chunk-RFO22WCQ.js} +5 -5
- package/dist/{chunk-AX5N26KG.js → chunk-TGA7DC5A.js} +14 -9
- package/dist/{chunk-W5VKVBWS.js → chunk-UAUMB7WI.js} +14 -20
- package/dist/{chunk-75BIJ5PX.js → chunk-UB2X7DGZ.js} +9 -9
- package/dist/{chunk-KFW5IV6W.js → chunk-W6ZWX546.js} +38 -71
- package/dist/{chunk-TZJROXB3.js → chunk-WSZXPLJQ.js} +4 -4
- package/dist/cli/checkUnsupportedDataProxy.js +56 -62
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +56 -62
- package/dist/cli/getGeneratorSuccessMessage.js +2 -3
- package/dist/cli/getSchema.d.ts +1 -15
- package/dist/cli/getSchema.js +4 -5
- package/dist/cli/hashes.js +4 -4
- package/dist/cli/schemaContext.d.ts +1 -3
- package/dist/cli/schemaContext.js +56 -62
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +55 -61
- package/dist/engine-commands/getConfig.d.ts +0 -1
- package/dist/engine-commands/getConfig.js +13 -13
- package/dist/engine-commands/getDmmf.js +10 -10
- package/dist/engine-commands/getEngineVersion.js +6 -9
- package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
- package/dist/engine-commands/getEnginesInfo.js +7 -9
- package/dist/engine-commands/index.js +67 -73
- 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/errorReporting.js +6 -6
- package/dist/get-generators/getGenerators.d.ts +0 -1
- package/dist/get-generators/getGenerators.js +58 -64
- 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 +6 -5
- package/dist/getPackedPackage.js +4 -3
- package/dist/index.d.ts +1 -8
- package/dist/index.js +101 -115
- package/dist/{multipart-parser-3AFJFP6K.js → multipart-parser-UV3WZSWW.js} +6 -6
- package/dist/resolveBinary.js +8 -7
- package/dist/schemaEngineCommands.js +9 -8
- package/dist/sendPanic.js +4 -4
- package/dist/utils/canPrompt.js +3 -3
- package/dist/utils/cloudflareD1.js +3 -3
- package/dist/utils/drawBox.js +2 -2
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +8 -8
- package/dist/utils/link.js +2 -2
- package/dist/utils/missingDatasource.js +3 -3
- package/dist/utils/missingGeneratorMessage.js +5 -5
- package/dist/utils/serializeQueryEngineName.js +2 -2
- package/dist/wasm.js +5 -5
- package/package.json +15 -16
- package/dist/chunk-3FP46GUV.js +0 -471
- package/dist/chunk-46ABODUM.js +0 -186
- package/dist/chunk-6TTRTZXU.js +0 -37
- package/dist/chunk-DZYINYAA.js +0 -68
- package/dist/chunk-ERSH2BQA.js +0 -58
- package/dist/chunk-PZMRR772.js +0 -41
- package/dist/chunk-T2PM5TKT.js +0 -55
- package/dist/client/getClientEngineType.d.ts +0 -7
- package/dist/client/getClientEngineType.js +0 -26
- package/dist/dotenvExpand.d.ts +0 -35
- package/dist/dotenvExpand.js +0 -25
- package/dist/utils/getEnvPaths.d.ts +0 -14
- package/dist/utils/getEnvPaths.js +0 -29
- package/dist/utils/handleEngineLoadingErrors.d.ts +0 -8
- package/dist/utils/handleEngineLoadingErrors.js +0 -27
- package/dist/utils/load.d.ts +0 -6
- package/dist/utils/load.js +0 -28
- package/dist/utils/loadEnvFile.d.ts +0 -10
- package/dist/utils/loadEnvFile.js +0 -30
- package/dist/utils/tryLoadEnvs.d.ts +0 -25
- package/dist/utils/tryLoadEnvs.js +0 -30
|
@@ -26,16 +26,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_23LG3AM7_exports = {};
|
|
30
|
+
__export(chunk_23LG3AM7_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_23LG3AM7_exports);
|
|
35
|
+
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
|
36
36
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
37
|
-
var
|
|
38
|
-
var
|
|
37
|
+
var import_chunk_6ZC3SFH2 = require("./chunk-6ZC3SFH2.js");
|
|
38
|
+
var import_chunk_RFO22WCQ = require("./chunk-RFO22WCQ.js");
|
|
39
39
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
41
41
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
@@ -58,25 +58,25 @@ ${detailsHeader} ${message}`;
|
|
|
58
58
|
}).exhaustive();
|
|
59
59
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
60
60
|
[Context: getDmmf]`;
|
|
61
|
-
super((0,
|
|
61
|
+
super((0, import_chunk_6ZC3SFH2.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
62
62
|
this.name = "GetDmmfError";
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
async function getDMMF(options) {
|
|
66
|
-
const debugErrorType = (0,
|
|
66
|
+
const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getDmmfWasm");
|
|
67
67
|
debug(`Using getDmmf Wasm`);
|
|
68
68
|
const dmmfPipeline = (0, import_function.pipe)(
|
|
69
69
|
(0, import_chunk_5DBOS77Y.tryCatch)(
|
|
70
70
|
() => {
|
|
71
71
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
72
72
|
debug("Triggering a Rust panic...");
|
|
73
|
-
|
|
73
|
+
import_chunk_RFO22WCQ.prismaSchemaWasm.debug_panic();
|
|
74
74
|
}
|
|
75
75
|
const params = JSON.stringify({
|
|
76
76
|
prismaSchema: options.datamodel,
|
|
77
77
|
noColor: Boolean(process.env.NO_COLOR)
|
|
78
78
|
});
|
|
79
|
-
const data =
|
|
79
|
+
const data = import_chunk_RFO22WCQ.prismaSchemaWasm.get_dmmf(params);
|
|
80
80
|
return data;
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
@@ -124,7 +124,7 @@ async function getDMMF(options) {
|
|
|
124
124
|
return panic;
|
|
125
125
|
}
|
|
126
126
|
const errorOutput = e.error.message;
|
|
127
|
-
return new GetDmmfError((0,
|
|
127
|
+
return new GetDmmfError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
128
128
|
}).with({ type: "parse-json" }, (e) => {
|
|
129
129
|
debugErrorType(e);
|
|
130
130
|
return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
|
|
@@ -16,15 +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_2KREE2OX_exports = {};
|
|
20
|
+
__export(chunk_2KREE2OX_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_2KREE2OX_exports);
|
|
24
|
+
var import_chunk_KZ5SMOBR = require("./chunk-KZ5SMOBR.js");
|
|
25
25
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
|
27
|
-
const rows = [["Prisma CLI Version",
|
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_KZ5SMOBR.version]];
|
|
28
28
|
return `${message}
|
|
29
29
|
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
|
@@ -16,14 +16,14 @@ 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_2LOGW45F_exports = {};
|
|
20
|
+
__export(chunk_2LOGW45F_exports, {
|
|
21
21
|
require_globby: () => require_globby,
|
|
22
22
|
require_is_glob: () => require_is_glob,
|
|
23
23
|
require_out: () => require_out4,
|
|
24
24
|
require_slash: () => require_slash
|
|
25
25
|
});
|
|
26
|
-
module.exports = __toCommonJS(
|
|
26
|
+
module.exports = __toCommonJS(chunk_2LOGW45F_exports);
|
|
27
27
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
28
28
|
var require_array = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
29
29
|
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
@@ -3964,7 +3964,7 @@ var require_out2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
3964
3964
|
}
|
|
3965
3965
|
});
|
|
3966
3966
|
var require_reusify = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
3967
|
-
"../../node_modules/.pnpm/reusify@1.0
|
|
3967
|
+
"../../node_modules/.pnpm/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module2) {
|
|
3968
3968
|
"use strict";
|
|
3969
3969
|
function reusify(Constructor) {
|
|
3970
3970
|
var head = new Constructor();
|
|
@@ -3993,17 +3993,17 @@ var require_reusify = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
3993
3993
|
}
|
|
3994
3994
|
});
|
|
3995
3995
|
var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
3996
|
-
"../../node_modules/.pnpm/fastq@1.
|
|
3996
|
+
"../../node_modules/.pnpm/fastq@1.19.1/node_modules/fastq/queue.js"(exports, module2) {
|
|
3997
3997
|
"use strict";
|
|
3998
3998
|
var reusify = require_reusify();
|
|
3999
|
-
function fastqueue(context, worker,
|
|
3999
|
+
function fastqueue(context, worker, _concurrency) {
|
|
4000
4000
|
if (typeof context === "function") {
|
|
4001
|
-
|
|
4001
|
+
_concurrency = worker;
|
|
4002
4002
|
worker = context;
|
|
4003
4003
|
context = null;
|
|
4004
4004
|
}
|
|
4005
|
-
if (
|
|
4006
|
-
throw new Error("fastqueue concurrency must be greater than 1");
|
|
4005
|
+
if (!(_concurrency >= 1)) {
|
|
4006
|
+
throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
4007
4007
|
}
|
|
4008
4008
|
var cache = reusify(Task);
|
|
4009
4009
|
var queueHead = null;
|
|
@@ -4016,7 +4016,20 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4016
4016
|
saturated: noop,
|
|
4017
4017
|
pause,
|
|
4018
4018
|
paused: false,
|
|
4019
|
-
concurrency
|
|
4019
|
+
get concurrency() {
|
|
4020
|
+
return _concurrency;
|
|
4021
|
+
},
|
|
4022
|
+
set concurrency(value) {
|
|
4023
|
+
if (!(value >= 1)) {
|
|
4024
|
+
throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
4025
|
+
}
|
|
4026
|
+
_concurrency = value;
|
|
4027
|
+
if (self.paused) return;
|
|
4028
|
+
for (; queueHead && _running < _concurrency; ) {
|
|
4029
|
+
_running++;
|
|
4030
|
+
release();
|
|
4031
|
+
}
|
|
4032
|
+
},
|
|
4020
4033
|
running,
|
|
4021
4034
|
resume,
|
|
4022
4035
|
idle,
|
|
@@ -4056,7 +4069,12 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4056
4069
|
function resume() {
|
|
4057
4070
|
if (!self.paused) return;
|
|
4058
4071
|
self.paused = false;
|
|
4059
|
-
|
|
4072
|
+
if (queueHead === null) {
|
|
4073
|
+
_running++;
|
|
4074
|
+
release();
|
|
4075
|
+
return;
|
|
4076
|
+
}
|
|
4077
|
+
for (; queueHead && _running < _concurrency; ) {
|
|
4060
4078
|
_running++;
|
|
4061
4079
|
release();
|
|
4062
4080
|
}
|
|
@@ -4071,7 +4089,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4071
4089
|
current.value = value;
|
|
4072
4090
|
current.callback = done || noop;
|
|
4073
4091
|
current.errorHandler = errorHandler;
|
|
4074
|
-
if (_running
|
|
4092
|
+
if (_running >= _concurrency || self.paused) {
|
|
4075
4093
|
if (queueTail) {
|
|
4076
4094
|
queueTail.next = current;
|
|
4077
4095
|
queueTail = current;
|
|
@@ -4091,7 +4109,8 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4091
4109
|
current.release = release;
|
|
4092
4110
|
current.value = value;
|
|
4093
4111
|
current.callback = done || noop;
|
|
4094
|
-
|
|
4112
|
+
current.errorHandler = errorHandler;
|
|
4113
|
+
if (_running >= _concurrency || self.paused) {
|
|
4095
4114
|
if (queueHead) {
|
|
4096
4115
|
current.next = queueHead;
|
|
4097
4116
|
queueHead = current;
|
|
@@ -4110,7 +4129,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4110
4129
|
cache.release(holder);
|
|
4111
4130
|
}
|
|
4112
4131
|
var next = queueHead;
|
|
4113
|
-
if (next) {
|
|
4132
|
+
if (next && _running <= _concurrency) {
|
|
4114
4133
|
if (!self.paused) {
|
|
4115
4134
|
if (queueTail === queueHead) {
|
|
4116
4135
|
queueTail = null;
|
|
@@ -4166,9 +4185,9 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4166
4185
|
self.release(self);
|
|
4167
4186
|
};
|
|
4168
4187
|
}
|
|
4169
|
-
function queueAsPromised(context, worker,
|
|
4188
|
+
function queueAsPromised(context, worker, _concurrency) {
|
|
4170
4189
|
if (typeof context === "function") {
|
|
4171
|
-
|
|
4190
|
+
_concurrency = worker;
|
|
4172
4191
|
worker = context;
|
|
4173
4192
|
context = null;
|
|
4174
4193
|
}
|
|
@@ -4177,7 +4196,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4177
4196
|
cb(null, res);
|
|
4178
4197
|
}, cb);
|
|
4179
4198
|
}
|
|
4180
|
-
var queue = fastqueue(context, asyncWrapper,
|
|
4199
|
+
var queue = fastqueue(context, asyncWrapper, _concurrency);
|
|
4181
4200
|
var pushCb = queue.push;
|
|
4182
4201
|
var unshiftCb = queue.unshift;
|
|
4183
4202
|
queue.push = push;
|
|
@@ -4211,17 +4230,19 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4211
4230
|
return p;
|
|
4212
4231
|
}
|
|
4213
4232
|
function drained() {
|
|
4214
|
-
if (queue.idle()) {
|
|
4215
|
-
return new Promise(function(resolve) {
|
|
4216
|
-
resolve();
|
|
4217
|
-
});
|
|
4218
|
-
}
|
|
4219
|
-
var previousDrain = queue.drain;
|
|
4220
4233
|
var p = new Promise(function(resolve) {
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4234
|
+
process.nextTick(function() {
|
|
4235
|
+
if (queue.idle()) {
|
|
4236
|
+
resolve();
|
|
4237
|
+
} else {
|
|
4238
|
+
var previousDrain = queue.drain;
|
|
4239
|
+
queue.drain = function() {
|
|
4240
|
+
if (typeof previousDrain === "function") previousDrain();
|
|
4241
|
+
resolve();
|
|
4242
|
+
queue.drain = previousDrain;
|
|
4243
|
+
};
|
|
4244
|
+
}
|
|
4245
|
+
});
|
|
4225
4246
|
});
|
|
4226
4247
|
return p;
|
|
4227
4248
|
}
|
|
@@ -5461,7 +5482,7 @@ var require_dir_glob = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5461
5482
|
}
|
|
5462
5483
|
});
|
|
5463
5484
|
var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
5464
|
-
"../../node_modules/.pnpm/ignore@5.2
|
|
5485
|
+
"../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js"(exports, module2) {
|
|
5465
5486
|
"use strict";
|
|
5466
5487
|
function makeArray(subject) {
|
|
5467
5488
|
return Array.isArray(subject) ? subject : [subject];
|
|
@@ -5493,18 +5514,32 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5493
5514
|
return slashes.slice(0, length - length % 2);
|
|
5494
5515
|
};
|
|
5495
5516
|
var REPLACERS = [
|
|
5517
|
+
[
|
|
5518
|
+
// remove BOM
|
|
5519
|
+
// TODO:
|
|
5520
|
+
// Other similar zero-width characters?
|
|
5521
|
+
/^\uFEFF/,
|
|
5522
|
+
() => EMPTY
|
|
5523
|
+
],
|
|
5496
5524
|
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
5497
5525
|
[
|
|
5498
5526
|
// (a\ ) -> (a )
|
|
5499
5527
|
// (a ) -> (a)
|
|
5528
|
+
// (a ) -> (a)
|
|
5500
5529
|
// (a \ ) -> (a )
|
|
5501
|
-
|
|
5502
|
-
(
|
|
5530
|
+
/((?:\\\\)*?)(\\?\s+)$/,
|
|
5531
|
+
(_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
|
|
5503
5532
|
],
|
|
5504
5533
|
// replace (\ ) with ' '
|
|
5534
|
+
// (\ ) -> ' '
|
|
5535
|
+
// (\\ ) -> '\\ '
|
|
5536
|
+
// (\\\ ) -> '\\ '
|
|
5505
5537
|
[
|
|
5506
|
-
|
|
5507
|
-
() =>
|
|
5538
|
+
/(\\+?)\s/g,
|
|
5539
|
+
(_, m1) => {
|
|
5540
|
+
const { length } = m1;
|
|
5541
|
+
return m1.slice(0, length - length % 2) + SPACE;
|
|
5542
|
+
}
|
|
5508
5543
|
],
|
|
5509
5544
|
// Escape metacharacters
|
|
5510
5545
|
// which is written down by users but means special for regular expressions.
|
|
@@ -5639,7 +5674,7 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5639
5674
|
let source = regexCache[pattern];
|
|
5640
5675
|
if (!source) {
|
|
5641
5676
|
source = REPLACERS.reduce(
|
|
5642
|
-
(prev,
|
|
5677
|
+
(prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
|
|
5643
5678
|
pattern
|
|
5644
5679
|
);
|
|
5645
5680
|
regexCache[pattern] = source;
|