@kubb/core 4.1.3 → 4.1.4
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/README.md +15 -16
- package/dist/{FileManager-CkRuIf5a.js → FileManager-B0V0rX5Z.js} +10 -8
- package/dist/FileManager-B0V0rX5Z.js.map +1 -0
- package/dist/{FileManager-C8it6zdT.cjs → FileManager-COJW0Zp4.cjs} +10 -8
- package/dist/FileManager-COJW0Zp4.cjs.map +1 -0
- package/dist/{PluginManager-H8G0i6KS.d.ts → PluginManager-BSUDeUfP.d.ts} +2 -2
- package/dist/{PluginManager-C62HGihR.d.cts → PluginManager-a3RiDAFC.d.cts} +2 -2
- package/dist/{acorn-DExO7r0H.cjs → acorn-Cg_eXN51.cjs} +21 -17
- package/dist/{acorn-DExO7r0H.cjs.map → acorn-Cg_eXN51.cjs.map} +1 -1
- package/dist/{acorn-B0JdnMwY.js → acorn-Z0oy0vSt.js} +21 -17
- package/dist/{acorn-B0JdnMwY.js.map → acorn-Z0oy0vSt.js.map} +1 -1
- package/dist/{angular-CmU_K35W.js → angular-BUlb_iaU.js} +29 -24
- package/dist/{angular-CmU_K35W.js.map → angular-BUlb_iaU.js.map} +1 -1
- package/dist/{angular-C2M8l5eL.cjs → angular-nBly58h0.cjs} +29 -24
- package/dist/{angular-C2M8l5eL.cjs.map → angular-nBly58h0.cjs.map} +1 -1
- package/dist/{babel-BKn0s9Rj.cjs → babel-5qXjvTGO.cjs} +37 -27
- package/dist/{babel-BKn0s9Rj.cjs.map → babel-5qXjvTGO.cjs.map} +1 -1
- package/dist/{babel-CfF0c5A9.js → babel-DfXTN9QX.js} +37 -27
- package/dist/{babel-CfF0c5A9.js.map → babel-DfXTN9QX.js.map} +1 -1
- package/dist/{estree-B_YMDsR7.js → estree-Bt3vRtV3.js} +64 -49
- package/dist/{estree-B_YMDsR7.js.map → estree-Bt3vRtV3.js.map} +1 -1
- package/dist/{estree-Br3l79C5.cjs → estree-DyiFjXDy.cjs} +64 -49
- package/dist/{estree-Br3l79C5.cjs.map → estree-DyiFjXDy.cjs.map} +1 -1
- package/dist/{flow-Dc3wao4M.js → flow-Bb8_yYns.js} +1038 -978
- package/dist/{flow-Dc3wao4M.js.map → flow-Bb8_yYns.js.map} +1 -1
- package/dist/{flow-B_3vaVXc.cjs → flow-DdtBrX0O.cjs} +1038 -978
- package/dist/{flow-B_3vaVXc.cjs.map → flow-DdtBrX0O.cjs.map} +1 -1
- package/dist/{fs-B7JGYSzW.js → fs-BNC5Fj6t.js} +3 -2
- package/dist/{fs-B7JGYSzW.js.map → fs-BNC5Fj6t.js.map} +1 -1
- package/dist/{fs-RSVoUw3S.cjs → fs-Bi2kuxAm.cjs} +3 -2
- package/dist/{fs-RSVoUw3S.cjs.map → fs-Bi2kuxAm.cjs.map} +1 -1
- package/dist/fs.cjs +1 -1
- package/dist/fs.d.cts +1 -1
- package/dist/fs.d.ts +1 -1
- package/dist/fs.js +1 -1
- package/dist/{glimmer-BF35HI3l.cjs → glimmer-BuCRLjbI.cjs} +41 -27
- package/dist/{glimmer-BF35HI3l.cjs.map → glimmer-BuCRLjbI.cjs.map} +1 -1
- package/dist/{glimmer-CwM1XZA1.js → glimmer-By8WZPkK.js} +41 -27
- package/dist/{glimmer-CwM1XZA1.js.map → glimmer-By8WZPkK.js.map} +1 -1
- package/dist/{graphql-KQQTidk7.js → graphql-DsrNefXx.js} +20 -16
- package/dist/{graphql-KQQTidk7.js.map → graphql-DsrNefXx.js.map} +1 -1
- package/dist/{graphql-DhaHiYrP.cjs → graphql-TN0hv-fx.cjs} +20 -16
- package/dist/{graphql-DhaHiYrP.cjs.map → graphql-TN0hv-fx.cjs.map} +1 -1
- package/dist/{html-B2QWX43c.cjs → html-1W4-2_9J.cjs} +27 -26
- package/dist/{html-B2QWX43c.cjs.map → html-1W4-2_9J.cjs.map} +1 -1
- package/dist/{html-DQoJX7Yj.js → html-Y5KDc150.js} +27 -26
- package/dist/{html-DQoJX7Yj.js.map → html-Y5KDc150.js.map} +1 -1
- package/dist/{index-DERUIhQK.d.cts → index-B7KKQHG8.d.cts} +3 -3
- package/dist/{index-B428LQ0Z.d.ts → index-BhFFCWR1.d.ts} +3 -3
- package/dist/{index-3smcdUnJ.d.ts → index-CGJ3tdk-.d.ts} +1 -4
- package/dist/{index-Bglrijef.d.cts → index-CWX6_-da.d.cts} +1 -4
- package/dist/index.cjs +12 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +12 -9
- package/dist/index.js.map +1 -1
- package/dist/{logger-CibtdnUJ.js → logger-BKPT4rkB.js} +12 -8
- package/dist/{logger-CibtdnUJ.js.map → logger-BKPT4rkB.js.map} +1 -1
- package/dist/{logger-S_t55o9n.cjs → logger-DBJsdlpZ.cjs} +12 -8
- package/dist/{logger-S_t55o9n.cjs.map → logger-DBJsdlpZ.cjs.map} +1 -1
- package/dist/logger.cjs +1 -1
- package/dist/logger.js +1 -1
- package/dist/{markdown-HXmAlxeH.cjs → markdown-Bltb-uzO.cjs} +29 -25
- package/dist/{markdown-HXmAlxeH.cjs.map → markdown-Bltb-uzO.cjs.map} +1 -1
- package/dist/{markdown-CDf4HsAQ.js → markdown-Drl4Cbq5.js} +29 -25
- package/dist/{markdown-CDf4HsAQ.js.map → markdown-Drl4Cbq5.js.map} +1 -1
- package/dist/{meriyah-CWoiYjq_.cjs → meriyah-CdG8HPS2.cjs} +29 -21
- package/dist/{meriyah-CWoiYjq_.cjs.map → meriyah-CdG8HPS2.cjs.map} +1 -1
- package/dist/{meriyah-D8fyVkyI.js → meriyah-Cz9whwp-.js} +29 -21
- package/dist/{meriyah-D8fyVkyI.js.map → meriyah-Cz9whwp-.js.map} +1 -1
- package/dist/mocks.cjs +138 -81
- package/dist/mocks.cjs.map +1 -1
- package/dist/mocks.d.cts +2 -2
- package/dist/mocks.d.ts +2 -2
- package/dist/mocks.js +138 -81
- package/dist/mocks.js.map +1 -1
- package/dist/{postcss-bESf1Yzf.cjs → postcss-B7n9zUIy.cjs} +54 -41
- package/dist/{postcss-bESf1Yzf.cjs.map → postcss-B7n9zUIy.cjs.map} +1 -1
- package/dist/{postcss-Dqh1XvaI.js → postcss-Dfx_9buT.js} +54 -41
- package/dist/{postcss-Dqh1XvaI.js.map → postcss-Dfx_9buT.js.map} +1 -1
- package/dist/{prompt-BYM8dl_2.js → prompt-BMs_Y-vT.js} +31 -29
- package/dist/{prompt-BYM8dl_2.js.map → prompt-BMs_Y-vT.js.map} +1 -1
- package/dist/{prompt-ZBXNC-aV.cjs → prompt-BXlYKArM.cjs} +31 -29
- package/dist/{prompt-ZBXNC-aV.cjs.map → prompt-BXlYKArM.cjs.map} +1 -1
- package/dist/{transformers-j70QaKtD.js → transformers-BllSzdDt.js} +21 -12
- package/dist/{transformers-j70QaKtD.js.map → transformers-BllSzdDt.js.map} +1 -1
- package/dist/{transformers-BIx7CVmw.cjs → transformers-DZ22lE-S.cjs} +21 -12
- package/dist/{transformers-BIx7CVmw.cjs.map → transformers-DZ22lE-S.cjs.map} +1 -1
- package/dist/transformers.cjs +1 -1
- package/dist/transformers.js +1 -1
- package/dist/typescript-BY9-7pw9.js +3 -0
- package/dist/{typescript-CKDlnZSX.js → typescript-C8iCxnaF.js} +152 -100
- package/dist/{typescript-CKDlnZSX.js.map → typescript-C8iCxnaF.js.map} +1 -1
- package/dist/{typescript-BYxryL2A.cjs → typescript-Evf8GXVW.cjs} +152 -100
- package/dist/{typescript-BYxryL2A.cjs.map → typescript-Evf8GXVW.cjs.map} +1 -1
- package/dist/typescript-PxlX-TH7.cjs +4 -0
- package/dist/utils.cjs +3 -3
- package/dist/utils.d.cts +3 -3
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +3 -3
- package/dist/{yaml-DQCs4b_O.cjs → yaml-B2qeXFgu.cjs} +157 -141
- package/dist/{yaml-DQCs4b_O.cjs.map → yaml-B2qeXFgu.cjs.map} +1 -1
- package/dist/{yaml-BMiF8MYP.js → yaml-Bi_nSoU_.js} +157 -141
- package/dist/{yaml-BMiF8MYP.js.map → yaml-Bi_nSoU_.js.map} +1 -1
- package/package.json +4 -4
- package/dist/FileManager-C8it6zdT.cjs.map +0 -1
- package/dist/FileManager-CkRuIf5a.js.map +0 -1
- package/dist/typescript-CabSmKb3.js +0 -3
- package/dist/typescript-CbuCkdxv.cjs +0 -4
package/dist/mocks.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CZg_9w7l.cjs');
|
|
2
|
-
require('./fs-
|
|
2
|
+
require('./fs-Bi2kuxAm.cjs');
|
|
3
3
|
require('./write-BJfM7G1_.cjs');
|
|
4
|
-
const require_transformers = require('./transformers-
|
|
5
|
-
const require_FileManager = require('./FileManager-
|
|
6
|
-
const require_typescript = require('./typescript-
|
|
4
|
+
const require_transformers = require('./transformers-DZ22lE-S.cjs');
|
|
5
|
+
const require_FileManager = require('./FileManager-COJW0Zp4.cjs');
|
|
6
|
+
const require_typescript = require('./typescript-Evf8GXVW.cjs');
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_chunk.__toESM(node_path);
|
|
9
9
|
let module$1 = require("module");
|
|
@@ -131,14 +131,14 @@ function traverseDoc$1(doc, onEnter, onExit, shouldTraverseConditionalGroups) {
|
|
|
131
131
|
case DOC_TYPE_ARRAY$1:
|
|
132
132
|
case DOC_TYPE_FILL$1: {
|
|
133
133
|
const parts = docType === DOC_TYPE_ARRAY$1 ? doc2 : doc2.parts;
|
|
134
|
-
for (let
|
|
134
|
+
for (let ic = parts.length, i = ic - 1; i >= 0; --i) docsStack.push(parts[i]);
|
|
135
135
|
break;
|
|
136
136
|
}
|
|
137
137
|
case DOC_TYPE_IF_BREAK$1:
|
|
138
138
|
docsStack.push(doc2.flatContents, doc2.breakContents);
|
|
139
139
|
break;
|
|
140
140
|
case DOC_TYPE_GROUP$1:
|
|
141
|
-
if (shouldTraverseConditionalGroups && doc2.expandedStates) for (let
|
|
141
|
+
if (shouldTraverseConditionalGroups && doc2.expandedStates) for (let ic = doc2.expandedStates.length, i = ic - 1; i >= 0; --i) docsStack.push(doc2.expandedStates[i]);
|
|
142
142
|
else docsStack.push(doc2.contents);
|
|
143
143
|
break;
|
|
144
144
|
case DOC_TYPE_ALIGN$1:
|
|
@@ -803,10 +803,11 @@ function printDocToString$1(doc, options) {
|
|
|
803
803
|
});
|
|
804
804
|
break;
|
|
805
805
|
} else {
|
|
806
|
+
const state = doc2.expandedStates[i];
|
|
806
807
|
const cmd = {
|
|
807
808
|
ind,
|
|
808
809
|
mode: MODE_FLAT$1,
|
|
809
|
-
doc:
|
|
810
|
+
doc: state
|
|
810
811
|
};
|
|
811
812
|
if (fits$1(cmd, cmds, rem, hasLineSuffix, groupModeMap)) {
|
|
812
813
|
cmds.push(cmd);
|
|
@@ -1026,7 +1027,8 @@ var public_default = public_exports$1;
|
|
|
1026
1027
|
//#endregion
|
|
1027
1028
|
//#region ../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/index.mjs
|
|
1028
1029
|
const require$1 = (0, module$1.createRequire)(require("url").pathToFileURL(__filename).href);
|
|
1029
|
-
|
|
1030
|
+
const __filename$1 = (0, url.fileURLToPath)(require("url").pathToFileURL(__filename).href);
|
|
1031
|
+
(0, path.dirname)(__filename$1);
|
|
1030
1032
|
var __create = Object.create;
|
|
1031
1033
|
var __defProp = Object.defineProperty;
|
|
1032
1034
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -2002,7 +2004,7 @@ var require_parse = __commonJS({ "node_modules/braces/lib/parse.js"(exports$1, m
|
|
|
2002
2004
|
}
|
|
2003
2005
|
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
2004
2006
|
depth++;
|
|
2005
|
-
|
|
2007
|
+
const brace = {
|
|
2006
2008
|
type: "brace",
|
|
2007
2009
|
open: true,
|
|
2008
2010
|
close: false,
|
|
@@ -2011,7 +2013,8 @@ var require_parse = __commonJS({ "node_modules/braces/lib/parse.js"(exports$1, m
|
|
|
2011
2013
|
commas: 0,
|
|
2012
2014
|
ranges: 0,
|
|
2013
2015
|
nodes: []
|
|
2014
|
-
}
|
|
2016
|
+
};
|
|
2017
|
+
block = push2(brace);
|
|
2015
2018
|
stack2.push(block);
|
|
2016
2019
|
push2({
|
|
2017
2020
|
type: "open",
|
|
@@ -2167,6 +2170,12 @@ var require_constants2 = __commonJS({ "node_modules/micromatch/node_modules/pico
|
|
|
2167
2170
|
var END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
|
|
2168
2171
|
var START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
|
|
2169
2172
|
var DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
|
|
2173
|
+
var NO_DOT = `(?!${DOT_LITERAL})`;
|
|
2174
|
+
var NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
|
|
2175
|
+
var NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
|
|
2176
|
+
var NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
|
|
2177
|
+
var QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
|
|
2178
|
+
var STAR = `${QMARK}*?`;
|
|
2170
2179
|
var POSIX_CHARS = {
|
|
2171
2180
|
DOT_LITERAL,
|
|
2172
2181
|
PLUS_LITERAL,
|
|
@@ -2176,12 +2185,12 @@ var require_constants2 = __commonJS({ "node_modules/micromatch/node_modules/pico
|
|
|
2176
2185
|
QMARK,
|
|
2177
2186
|
END_ANCHOR,
|
|
2178
2187
|
DOTS_SLASH,
|
|
2179
|
-
NO_DOT
|
|
2180
|
-
NO_DOTS
|
|
2181
|
-
NO_DOT_SLASH
|
|
2182
|
-
NO_DOTS_SLASH
|
|
2183
|
-
QMARK_NO_DOT
|
|
2184
|
-
STAR
|
|
2188
|
+
NO_DOT,
|
|
2189
|
+
NO_DOTS,
|
|
2190
|
+
NO_DOT_SLASH,
|
|
2191
|
+
NO_DOTS_SLASH,
|
|
2192
|
+
QMARK_NO_DOT,
|
|
2193
|
+
STAR,
|
|
2185
2194
|
START_ANCHOR
|
|
2186
2195
|
};
|
|
2187
2196
|
var WINDOWS_CHARS = {
|
|
@@ -2343,7 +2352,9 @@ var require_utils2 = __commonJS({ "node_modules/micromatch/node_modules/picomatc
|
|
|
2343
2352
|
return output;
|
|
2344
2353
|
};
|
|
2345
2354
|
exports$1.wrapOutput = (input, state = {}, options8 = {}) => {
|
|
2346
|
-
|
|
2355
|
+
const prepend = options8.contains ? "" : "^";
|
|
2356
|
+
const append = options8.contains ? "" : "$";
|
|
2357
|
+
let output = `${prepend}(?:${input})${append}`;
|
|
2347
2358
|
if (state.negated === true) output = `(?:^(?!${output}).*$)`;
|
|
2348
2359
|
return output;
|
|
2349
2360
|
};
|
|
@@ -2855,7 +2866,8 @@ var require_parse2 = __commonJS({ "node_modules/micromatch/node_modules/picomatc
|
|
|
2855
2866
|
if (inner.includes(":")) {
|
|
2856
2867
|
const idx = prev.value.lastIndexOf("[");
|
|
2857
2868
|
const pre = prev.value.slice(0, idx);
|
|
2858
|
-
const
|
|
2869
|
+
const rest2 = prev.value.slice(idx + 2);
|
|
2870
|
+
const posix = POSIX_REGEX_SOURCE[rest2];
|
|
2859
2871
|
if (posix) {
|
|
2860
2872
|
prev.value = pre + posix;
|
|
2861
2873
|
state.backtrack = true;
|
|
@@ -3381,7 +3393,8 @@ var require_parse2 = __commonJS({ "node_modules/micromatch/node_modules/picomatc
|
|
|
3381
3393
|
}
|
|
3382
3394
|
}
|
|
3383
3395
|
};
|
|
3384
|
-
|
|
3396
|
+
const output = utils$1.removePrefix(input, state);
|
|
3397
|
+
let source2 = create(output);
|
|
3385
3398
|
if (source2 && opts.strictSlashes !== true) source2 += `${SLASH_LITERAL}?`;
|
|
3386
3399
|
return source2;
|
|
3387
3400
|
};
|
|
@@ -4218,7 +4231,8 @@ var require_async2 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/provider
|
|
|
4218
4231
|
callSuccessCallback(callback, entries);
|
|
4219
4232
|
return;
|
|
4220
4233
|
}
|
|
4221
|
-
|
|
4234
|
+
const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings));
|
|
4235
|
+
rpl(tasks, (rplError, rplEntries) => {
|
|
4222
4236
|
if (rplError !== null) {
|
|
4223
4237
|
callFailureCallback(callback, rplError);
|
|
4224
4238
|
return;
|
|
@@ -4254,7 +4268,7 @@ var require_async2 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/provider
|
|
|
4254
4268
|
callFailureCallback(callback, readdirError);
|
|
4255
4269
|
return;
|
|
4256
4270
|
}
|
|
4257
|
-
|
|
4271
|
+
const tasks = names.map((name) => {
|
|
4258
4272
|
const path14 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
4259
4273
|
return (done) => {
|
|
4260
4274
|
fsStat.stat(path14, settings.fsStatSettings, (error, stats) => {
|
|
@@ -4271,7 +4285,8 @@ var require_async2 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/provider
|
|
|
4271
4285
|
done(null, entry);
|
|
4272
4286
|
});
|
|
4273
4287
|
};
|
|
4274
|
-
})
|
|
4288
|
+
});
|
|
4289
|
+
rpl(tasks, (rplError, entries) => {
|
|
4275
4290
|
if (rplError !== null) {
|
|
4276
4291
|
callFailureCallback(callback, rplError);
|
|
4277
4292
|
return;
|
|
@@ -5171,7 +5186,8 @@ var require_deep = __commonJS({ "node_modules/fast-glob/out/providers/filters/de
|
|
|
5171
5186
|
_getEntryLevel(basePath, entryPath) {
|
|
5172
5187
|
const entryPathDepth = entryPath.split("/").length;
|
|
5173
5188
|
if (basePath === "") return entryPathDepth;
|
|
5174
|
-
|
|
5189
|
+
const basePathDepth = basePath.split("/").length;
|
|
5190
|
+
return entryPathDepth - basePathDepth;
|
|
5175
5191
|
}
|
|
5176
5192
|
_isSkippedSymbolicLink(entry) {
|
|
5177
5193
|
return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
|
|
@@ -5659,10 +5675,12 @@ var require_constants4 = __commonJS({ "node_modules/semver/internal/constants.js
|
|
|
5659
5675
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
5660
5676
|
var MAX_LENGTH = 256;
|
|
5661
5677
|
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
5678
|
+
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
5679
|
+
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
5662
5680
|
module$2.exports = {
|
|
5663
5681
|
MAX_LENGTH,
|
|
5664
|
-
MAX_SAFE_COMPONENT_LENGTH
|
|
5665
|
-
MAX_SAFE_BUILD_LENGTH
|
|
5682
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
5683
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
5666
5684
|
MAX_SAFE_INTEGER,
|
|
5667
5685
|
RELEASE_TYPES: [
|
|
5668
5686
|
"major",
|
|
@@ -7536,7 +7554,8 @@ var require_src = __commonJS({ "node_modules/editorconfig/src/index.js"(exports$
|
|
|
7536
7554
|
var glob = section[0];
|
|
7537
7555
|
var options22 = section[1];
|
|
7538
7556
|
if (!glob) return;
|
|
7539
|
-
|
|
7557
|
+
var fullGlob = buildFullGlob(pathPrefix, glob);
|
|
7558
|
+
if (!fnmatch(filepath, fullGlob)) return;
|
|
7540
7559
|
matches = extendProps(matches, options22);
|
|
7541
7560
|
});
|
|
7542
7561
|
return matches;
|
|
@@ -7628,7 +7647,9 @@ var require_src = __commonJS({ "node_modules/editorconfig/src/index.js"(exports$
|
|
|
7628
7647
|
function parseSync(_filepath, _options) {
|
|
7629
7648
|
if (_options === void 0) _options = {};
|
|
7630
7649
|
var _a = opts(_filepath, _options), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
7631
|
-
|
|
7650
|
+
var filepaths = getConfigFileNames(resolvedFilePath, processedOptions);
|
|
7651
|
+
var files = readConfigFilesSync(filepaths);
|
|
7652
|
+
return parseFromConfigs(getConfigsForFiles(files), resolvedFilePath, processedOptions);
|
|
7632
7653
|
}
|
|
7633
7654
|
exports$1.parseSync = parseSync;
|
|
7634
7655
|
} });
|
|
@@ -8851,8 +8872,10 @@ var require_lib2 = __commonJS({ "node_modules/@babel/code-frame/lib/index.js"(ex
|
|
|
8851
8872
|
if (lineDiff2) for (let i = 0; i <= lineDiff2; i++) {
|
|
8852
8873
|
const lineNumber = i + startLine;
|
|
8853
8874
|
if (!startColumn) markerLines[lineNumber] = true;
|
|
8854
|
-
else if (i === 0)
|
|
8855
|
-
|
|
8875
|
+
else if (i === 0) {
|
|
8876
|
+
const sourceLength = source2[lineNumber - 1].length;
|
|
8877
|
+
markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
|
|
8878
|
+
} else if (i === lineDiff2) markerLines[lineNumber] = [0, endColumn];
|
|
8856
8879
|
else markerLines[lineNumber] = [0, source2[lineNumber - i].length];
|
|
8857
8880
|
}
|
|
8858
8881
|
else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [startColumn, 0];
|
|
@@ -8867,7 +8890,8 @@ var require_lib2 = __commonJS({ "node_modules/@babel/code-frame/lib/index.js"(ex
|
|
|
8867
8890
|
function codeFrameColumns3(rawLines, loc, opts = {}) {
|
|
8868
8891
|
const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
|
|
8869
8892
|
const defs = getDefs(shouldHighlight);
|
|
8870
|
-
const
|
|
8893
|
+
const lines = rawLines.split(NEWLINE);
|
|
8894
|
+
const { start, end, markerLines } = getMarkerLines(loc, lines, opts);
|
|
8871
8895
|
const hasColumns = loc.start && typeof loc.start.column === "number";
|
|
8872
8896
|
const numberMaxWidth = String(end).length;
|
|
8873
8897
|
let frame = (shouldHighlight ? highlight(rawLines) : rawLines).split(NEWLINE, end).slice(start, end).map((line3, index2) => {
|
|
@@ -9060,7 +9084,8 @@ var require_ignore = __commonJS({ "node_modules/ignore/index.js"(exports$1, modu
|
|
|
9060
9084
|
}],
|
|
9061
9085
|
[/\\\/\\\*\\\*(?=\\\/|$)/g, (_, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+"],
|
|
9062
9086
|
[/(^|[^\\]+)(\\\*)+(?=.+)/g, (_, p1, p2) => {
|
|
9063
|
-
|
|
9087
|
+
const unescaped = p2.replace(/\\\*/g, "[^\\/]*");
|
|
9088
|
+
return p1 + unescaped;
|
|
9064
9089
|
}],
|
|
9065
9090
|
[/\\\\\\(?=[$.|*+(){^])/g, () => ESCAPE],
|
|
9066
9091
|
[/\\\\/g, () => ESCAPE],
|
|
@@ -9492,7 +9517,8 @@ function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, ne
|
|
|
9492
9517
|
else {
|
|
9493
9518
|
const { callback } = optionsObj;
|
|
9494
9519
|
diffLines(oldStr, newStr, Object.assign(Object.assign({}, optionsObj), { callback: (diff) => {
|
|
9495
|
-
|
|
9520
|
+
const patch = diffLinesResultToPatch(diff);
|
|
9521
|
+
callback(patch);
|
|
9496
9522
|
} }));
|
|
9497
9523
|
}
|
|
9498
9524
|
function diffLinesResultToPatch(diff) {
|
|
@@ -10385,8 +10411,10 @@ function clearEditorconfigCache() {
|
|
|
10385
10411
|
editorconfigCache.clear();
|
|
10386
10412
|
}
|
|
10387
10413
|
async function loadEditorconfigInternal(file, { shouldCache }) {
|
|
10388
|
-
const
|
|
10389
|
-
|
|
10414
|
+
const directory = path.default.dirname(file);
|
|
10415
|
+
const root2 = await findProjectRoot(directory, { shouldCache });
|
|
10416
|
+
const editorConfig = await import_editorconfig.default.parse(file, { root: root2 });
|
|
10417
|
+
return editorconfig_to_prettier_default(editorConfig);
|
|
10390
10418
|
}
|
|
10391
10419
|
function loadEditorconfig(file, { shouldCache }) {
|
|
10392
10420
|
file = path.default.resolve(file);
|
|
@@ -11893,7 +11921,7 @@ async function loadConfigFromPackageYaml(file) {
|
|
|
11893
11921
|
var parseYaml;
|
|
11894
11922
|
async function loadYaml(file) {
|
|
11895
11923
|
const content = await read_file_default(file);
|
|
11896
|
-
if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await Promise.resolve().then(() => require("./yaml-
|
|
11924
|
+
if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await Promise.resolve().then(() => require("./yaml-B2qeXFgu.cjs")));
|
|
11897
11925
|
try {
|
|
11898
11926
|
return parseYaml(content);
|
|
11899
11927
|
} catch (error) {
|
|
@@ -12365,7 +12393,8 @@ function getFileProtocolModuleFormat(url3, _context, ignoreErrors) {
|
|
|
12365
12393
|
const format3 = extensionFormatMap[value];
|
|
12366
12394
|
if (format3) return format3;
|
|
12367
12395
|
if (ignoreErrors) return;
|
|
12368
|
-
|
|
12396
|
+
const filepath = (0, url.fileURLToPath)(url3);
|
|
12397
|
+
throw new ERR_UNKNOWN_FILE_EXTENSION(value, filepath);
|
|
12369
12398
|
}
|
|
12370
12399
|
function getHttpProtocolModuleFormat() {}
|
|
12371
12400
|
function defaultGetFormatWithoutErrors(url3, context) {
|
|
@@ -12505,7 +12534,8 @@ function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
|
12505
12534
|
return new ERR_PACKAGE_PATH_NOT_EXPORTED((0, url.fileURLToPath)(new url.URL(".", packageJsonUrl)), subpath, base && (0, url.fileURLToPath)(base));
|
|
12506
12535
|
}
|
|
12507
12536
|
function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
12508
|
-
|
|
12537
|
+
const reason = `request is not a valid match in pattern "${match}" for the "${internal ? "imports" : "exports"}" resolution of ${(0, url.fileURLToPath)(packageJsonUrl)}`;
|
|
12538
|
+
throw new ERR_INVALID_MODULE_SPECIFIER(request, reason, base && (0, url.fileURLToPath)(base));
|
|
12509
12539
|
}
|
|
12510
12540
|
function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
12511
12541
|
target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
|
|
@@ -12520,14 +12550,18 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
12520
12550
|
new url.URL(target);
|
|
12521
12551
|
isURL2 = true;
|
|
12522
12552
|
} catch {}
|
|
12523
|
-
if (!isURL2)
|
|
12553
|
+
if (!isURL2) {
|
|
12554
|
+
const exportTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target + subpath;
|
|
12555
|
+
return packageResolve(exportTarget, packageJsonUrl, conditions);
|
|
12556
|
+
}
|
|
12524
12557
|
}
|
|
12525
12558
|
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
12526
12559
|
}
|
|
12527
12560
|
if (invalidSegmentRegEx.exec(target.slice(2)) !== null) if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
|
|
12528
12561
|
if (!isPathMap) {
|
|
12529
12562
|
const request = pattern ? match.replace("*", () => subpath) : match + subpath;
|
|
12530
|
-
|
|
12563
|
+
const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
|
|
12564
|
+
emitInvalidSegmentDeprecation(resolvedTarget, request, match, packageJsonUrl, internal, base, true);
|
|
12531
12565
|
}
|
|
12532
12566
|
} else throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
12533
12567
|
const resolved = new url.URL(target, packageJsonUrl);
|
|
@@ -12538,7 +12572,10 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
12538
12572
|
if (invalidSegmentRegEx.exec(subpath) !== null) {
|
|
12539
12573
|
const request = pattern ? match.replace("*", () => subpath) : match + subpath;
|
|
12540
12574
|
if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) {
|
|
12541
|
-
if (!isPathMap)
|
|
12575
|
+
if (!isPathMap) {
|
|
12576
|
+
const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
|
|
12577
|
+
emitInvalidSegmentDeprecation(resolvedTarget, request, match, packageJsonUrl, internal, base, false);
|
|
12578
|
+
}
|
|
12542
12579
|
} else throwInvalidSubpath(request, match, packageJsonUrl, internal, base);
|
|
12543
12580
|
}
|
|
12544
12581
|
if (pattern) return new url.URL(RegExpPrototypeSymbolReplace.call(patternRegEx, resolved.href, () => subpath));
|
|
@@ -12714,9 +12751,10 @@ function parsePackageName(specifier, base) {
|
|
|
12714
12751
|
const packageName = separatorIndex === -1 ? specifier : specifier.slice(0, separatorIndex);
|
|
12715
12752
|
if (invalidPackageNameRegEx.exec(packageName) !== null) validPackageName = false;
|
|
12716
12753
|
if (!validPackageName) throw new ERR_INVALID_MODULE_SPECIFIER(specifier, "is not a valid package name", (0, url.fileURLToPath)(base));
|
|
12754
|
+
const packageSubpath = "." + (separatorIndex === -1 ? "" : specifier.slice(separatorIndex));
|
|
12717
12755
|
return {
|
|
12718
12756
|
packageName,
|
|
12719
|
-
packageSubpath
|
|
12757
|
+
packageSubpath,
|
|
12720
12758
|
isScoped
|
|
12721
12759
|
};
|
|
12722
12760
|
}
|
|
@@ -12907,7 +12945,8 @@ function getSearchFunction(stopDirectory) {
|
|
|
12907
12945
|
}
|
|
12908
12946
|
function searchPrettierConfig(startDirectory, options8 = {}) {
|
|
12909
12947
|
startDirectory = startDirectory ? path.default.resolve(startDirectory) : process.cwd();
|
|
12910
|
-
|
|
12948
|
+
const stopDirectory = mockable_default.getPrettierConfigSearchStopDirectory();
|
|
12949
|
+
return getSearchFunction(stopDirectory)(startDirectory, { cache: options8.shouldCache });
|
|
12911
12950
|
}
|
|
12912
12951
|
function clearCache() {
|
|
12913
12952
|
clearPrettierConfigCache();
|
|
@@ -12921,7 +12960,10 @@ function loadEditorconfig2(file, options8) {
|
|
|
12921
12960
|
async function loadPrettierConfig2(file, options8) {
|
|
12922
12961
|
const shouldCache = options8.useCache;
|
|
12923
12962
|
let configFile = options8.config;
|
|
12924
|
-
if (!configFile)
|
|
12963
|
+
if (!configFile) {
|
|
12964
|
+
const directory = file ? path.default.dirname(path.default.resolve(file)) : void 0;
|
|
12965
|
+
configFile = await searchPrettierConfig(directory, { shouldCache });
|
|
12966
|
+
}
|
|
12925
12967
|
if (!configFile) return;
|
|
12926
12968
|
configFile = toPath(configFile);
|
|
12927
12969
|
return {
|
|
@@ -12945,7 +12987,8 @@ async function resolveConfig(fileUrlOrPath, options8) {
|
|
|
12945
12987
|
return merged;
|
|
12946
12988
|
}
|
|
12947
12989
|
async function resolveConfigFile(fileUrlOrPath) {
|
|
12948
|
-
|
|
12990
|
+
const directory = fileUrlOrPath ? path.default.dirname(path.default.resolve(toPath(fileUrlOrPath))) : void 0;
|
|
12991
|
+
return await searchPrettierConfig(directory, { shouldCache: false }) ?? null;
|
|
12949
12992
|
}
|
|
12950
12993
|
function mergeOverrides(configResult, filePath) {
|
|
12951
12994
|
const { config, configFile } = configResult || {};
|
|
@@ -13093,14 +13136,14 @@ function traverseDoc(doc2, onEnter, onExit, shouldTraverseConditionalGroups) {
|
|
|
13093
13136
|
case DOC_TYPE_ARRAY:
|
|
13094
13137
|
case DOC_TYPE_FILL: {
|
|
13095
13138
|
const parts = docType === DOC_TYPE_ARRAY ? doc3 : doc3.parts;
|
|
13096
|
-
for (let
|
|
13139
|
+
for (let ic = parts.length, i = ic - 1; i >= 0; --i) docsStack.push(parts[i]);
|
|
13097
13140
|
break;
|
|
13098
13141
|
}
|
|
13099
13142
|
case DOC_TYPE_IF_BREAK:
|
|
13100
13143
|
docsStack.push(doc3.flatContents, doc3.breakContents);
|
|
13101
13144
|
break;
|
|
13102
13145
|
case DOC_TYPE_GROUP:
|
|
13103
|
-
if (shouldTraverseConditionalGroups && doc3.expandedStates) for (let
|
|
13146
|
+
if (shouldTraverseConditionalGroups && doc3.expandedStates) for (let ic = doc3.expandedStates.length, i = ic - 1; i >= 0; --i) docsStack.push(doc3.expandedStates[i]);
|
|
13104
13147
|
else docsStack.push(doc3.contents);
|
|
13105
13148
|
break;
|
|
13106
13149
|
case DOC_TYPE_ALIGN:
|
|
@@ -13724,10 +13767,11 @@ function printDocToString(doc2, options8) {
|
|
|
13724
13767
|
});
|
|
13725
13768
|
break;
|
|
13726
13769
|
} else {
|
|
13770
|
+
const state = doc3.expandedStates[i];
|
|
13727
13771
|
const cmd = {
|
|
13728
13772
|
ind,
|
|
13729
13773
|
mode: MODE_FLAT,
|
|
13730
|
-
doc:
|
|
13774
|
+
doc: state
|
|
13731
13775
|
};
|
|
13732
13776
|
if (fits(cmd, cmds, rem, hasLineSuffix, groupModeMap)) {
|
|
13733
13777
|
cmds.push(cmd);
|
|
@@ -14174,7 +14218,8 @@ function skipNewline(text, startIndex, options8) {
|
|
|
14174
14218
|
var skip_newline_default = skipNewline;
|
|
14175
14219
|
function hasNewline(text, startIndex, options8 = {}) {
|
|
14176
14220
|
const idx = skipSpaces(text, options8.backwards ? startIndex - 1 : startIndex, options8);
|
|
14177
|
-
|
|
14221
|
+
const idx2 = skip_newline_default(text, idx, options8);
|
|
14222
|
+
return idx !== idx2;
|
|
14178
14223
|
}
|
|
14179
14224
|
var has_newline_default = hasNewline;
|
|
14180
14225
|
function isNonEmptyArray(object) {
|
|
@@ -14416,15 +14461,18 @@ function printTrailingComment(path14, options8, previousComment) {
|
|
|
14416
14461
|
const printed = printComment(path14, options8);
|
|
14417
14462
|
const { printer: printer$1, originalText, locStart } = options8;
|
|
14418
14463
|
const isBlock = (_a = printer$1.isBlockComment) == null ? void 0 : _a.call(printer$1, comment);
|
|
14419
|
-
if ((previousComment == null ? void 0 : previousComment.hasLineSuffix) && !(previousComment == null ? void 0 : previousComment.isBlock) || has_newline_default(originalText, locStart(comment), { backwards: true }))
|
|
14420
|
-
|
|
14421
|
-
|
|
14422
|
-
|
|
14423
|
-
|
|
14424
|
-
|
|
14425
|
-
|
|
14426
|
-
|
|
14427
|
-
|
|
14464
|
+
if ((previousComment == null ? void 0 : previousComment.hasLineSuffix) && !(previousComment == null ? void 0 : previousComment.isBlock) || has_newline_default(originalText, locStart(comment), { backwards: true })) {
|
|
14465
|
+
const isLineBeforeEmpty = is_previous_line_empty_default(originalText, locStart(comment));
|
|
14466
|
+
return {
|
|
14467
|
+
doc: lineSuffix([
|
|
14468
|
+
hardline,
|
|
14469
|
+
isLineBeforeEmpty ? hardline : "",
|
|
14470
|
+
printed
|
|
14471
|
+
]),
|
|
14472
|
+
isBlock,
|
|
14473
|
+
hasLineSuffix: true
|
|
14474
|
+
};
|
|
14475
|
+
}
|
|
14428
14476
|
if (!isBlock || (previousComment == null ? void 0 : previousComment.hasLineSuffix)) return {
|
|
14429
14477
|
doc: [lineSuffix([" ", printed]), breakParent],
|
|
14430
14478
|
isBlock,
|
|
@@ -14849,10 +14897,11 @@ function normalizeOptions(options8, optionInfos, { logger = false, isCLI = false
|
|
|
14849
14897
|
schemas: schemas2
|
|
14850
14898
|
});
|
|
14851
14899
|
} : Array.isArray(passThrough) ? (key2, value) => !passThrough.includes(key2) ? void 0 : { [key2]: value } : (key2, value) => ({ [key2]: value });
|
|
14852
|
-
const
|
|
14900
|
+
const schemas = optionInfosToSchemas(optionInfos, {
|
|
14853
14901
|
isCLI,
|
|
14854
14902
|
FlagSchema
|
|
14855
|
-
})
|
|
14903
|
+
});
|
|
14904
|
+
const normalizer = new Normalizer(schemas, {
|
|
14856
14905
|
logger,
|
|
14857
14906
|
unknown,
|
|
14858
14907
|
descriptor
|
|
@@ -14952,16 +15001,19 @@ function getParserPluginByParserName(plugins, parserName) {
|
|
|
14952
15001
|
if (!parserName) throw new Error("parserName is required.");
|
|
14953
15002
|
const plugin = array_find_last_default(false, plugins, (plugin2) => plugin2.parsers && Object.prototype.hasOwnProperty.call(plugin2.parsers, parserName));
|
|
14954
15003
|
if (plugin) return plugin;
|
|
14955
|
-
|
|
15004
|
+
let message = `Couldn't resolve parser "${parserName}".`;
|
|
15005
|
+
throw new ConfigError(message);
|
|
14956
15006
|
}
|
|
14957
15007
|
function getPrinterPluginByAstFormat(plugins, astFormat) {
|
|
14958
15008
|
if (!astFormat) throw new Error("astFormat is required.");
|
|
14959
15009
|
const plugin = array_find_last_default(false, plugins, (plugin2) => plugin2.printers && Object.prototype.hasOwnProperty.call(plugin2.printers, astFormat));
|
|
14960
15010
|
if (plugin) return plugin;
|
|
14961
|
-
|
|
15011
|
+
let message = `Couldn't find plugin for AST format "${astFormat}".`;
|
|
15012
|
+
throw new ConfigError(message);
|
|
14962
15013
|
}
|
|
14963
15014
|
function resolveParser({ plugins, parser }) {
|
|
14964
|
-
|
|
15015
|
+
const plugin = getParserPluginByParserName(plugins, parser);
|
|
15016
|
+
return initParser(plugin, parser);
|
|
14965
15017
|
}
|
|
14966
15018
|
function initParser(plugin, parserName) {
|
|
14967
15019
|
const parserOrParserInitFunction = plugin.parsers[parserName];
|
|
@@ -15089,7 +15141,8 @@ async function textToDoc(text, partialNextOptions, parentOptions, printAstToDoc2
|
|
|
15089
15141
|
rangeEnd: void 0
|
|
15090
15142
|
}, { passThrough: true });
|
|
15091
15143
|
const { ast } = await parse_default(text, options8);
|
|
15092
|
-
|
|
15144
|
+
const doc2 = await printAstToDoc2(ast, options8);
|
|
15145
|
+
return stripTrailingHardline(doc2);
|
|
15093
15146
|
}
|
|
15094
15147
|
function printIgnored(path14, options8) {
|
|
15095
15148
|
const { originalText, [Symbol.for("comments")]: comments, locStart, locEnd, [Symbol.for("printedComments")]: printedComments } = options8;
|
|
@@ -15434,7 +15487,8 @@ async function coreFormat(originalText, opts, addAlignmentSize = 0) {
|
|
|
15434
15487
|
};
|
|
15435
15488
|
const oldCursorNodeCharArray = oldCursorRegionText.split("");
|
|
15436
15489
|
oldCursorNodeCharArray.splice(cursorOffsetRelativeToOldCursorRegionStart, 0, CURSOR);
|
|
15437
|
-
const
|
|
15490
|
+
const newCursorNodeCharArray = newCursorRegionText.split("");
|
|
15491
|
+
const cursorNodeDiff = diffArrays(oldCursorNodeCharArray, newCursorNodeCharArray);
|
|
15438
15492
|
let cursorOffset = newCursorRegionStart;
|
|
15439
15493
|
for (const entry of cursorNodeDiff) if (entry.removed) {
|
|
15440
15494
|
if (entry.value.includes(CURSOR)) break;
|
|
@@ -15565,10 +15619,12 @@ async function parse6(originalText, originalOptions, devOptions) {
|
|
|
15565
15619
|
}
|
|
15566
15620
|
async function formatAst(ast, options8) {
|
|
15567
15621
|
options8 = await normalize_format_options_default(options8);
|
|
15568
|
-
|
|
15622
|
+
const doc2 = await printAstToDoc(ast, options8);
|
|
15623
|
+
return printDocToString(doc2, options8);
|
|
15569
15624
|
}
|
|
15570
15625
|
async function formatDoc(doc2, options8) {
|
|
15571
|
-
const
|
|
15626
|
+
const text = printDocToDebug(doc2);
|
|
15627
|
+
const { formatted } = await formatWithCursor(text, {
|
|
15572
15628
|
...options8,
|
|
15573
15629
|
parser: "__js_expression"
|
|
15574
15630
|
});
|
|
@@ -16364,11 +16420,11 @@ var languages = [
|
|
|
16364
16420
|
];
|
|
16365
16421
|
var { parsers, printers } = createParsersAndPrinters([
|
|
16366
16422
|
{
|
|
16367
|
-
importPlugin: () => Promise.resolve().then(() => require("./acorn-
|
|
16423
|
+
importPlugin: () => Promise.resolve().then(() => require("./acorn-Cg_eXN51.cjs")),
|
|
16368
16424
|
parsers: ["acorn", "espree"]
|
|
16369
16425
|
},
|
|
16370
16426
|
{
|
|
16371
|
-
importPlugin: () => Promise.resolve().then(() => require("./angular-
|
|
16427
|
+
importPlugin: () => Promise.resolve().then(() => require("./angular-nBly58h0.cjs")),
|
|
16372
16428
|
parsers: [
|
|
16373
16429
|
"__ng_action",
|
|
16374
16430
|
"__ng_binding",
|
|
@@ -16377,7 +16433,7 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
16377
16433
|
]
|
|
16378
16434
|
},
|
|
16379
16435
|
{
|
|
16380
|
-
importPlugin: () => Promise.resolve().then(() => require("./babel-
|
|
16436
|
+
importPlugin: () => Promise.resolve().then(() => require("./babel-5qXjvTGO.cjs")),
|
|
16381
16437
|
parsers: [
|
|
16382
16438
|
"babel",
|
|
16383
16439
|
"babel-flow",
|
|
@@ -16396,25 +16452,25 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
16396
16452
|
]
|
|
16397
16453
|
},
|
|
16398
16454
|
{
|
|
16399
|
-
importPlugin: () => Promise.resolve().then(() => require("./estree-
|
|
16455
|
+
importPlugin: () => Promise.resolve().then(() => require("./estree-DyiFjXDy.cjs")),
|
|
16400
16456
|
printers: ["estree", "estree-json"]
|
|
16401
16457
|
},
|
|
16402
16458
|
{
|
|
16403
|
-
importPlugin: () => Promise.resolve().then(() => require("./flow-
|
|
16459
|
+
importPlugin: () => Promise.resolve().then(() => require("./flow-DdtBrX0O.cjs")),
|
|
16404
16460
|
parsers: ["flow"]
|
|
16405
16461
|
},
|
|
16406
16462
|
{
|
|
16407
|
-
importPlugin: () => Promise.resolve().then(() => require("./glimmer-
|
|
16463
|
+
importPlugin: () => Promise.resolve().then(() => require("./glimmer-BuCRLjbI.cjs")),
|
|
16408
16464
|
parsers: ["glimmer"],
|
|
16409
16465
|
printers: ["glimmer"]
|
|
16410
16466
|
},
|
|
16411
16467
|
{
|
|
16412
|
-
importPlugin: () => Promise.resolve().then(() => require("./graphql-
|
|
16468
|
+
importPlugin: () => Promise.resolve().then(() => require("./graphql-TN0hv-fx.cjs")),
|
|
16413
16469
|
parsers: ["graphql"],
|
|
16414
16470
|
printers: ["graphql"]
|
|
16415
16471
|
},
|
|
16416
16472
|
{
|
|
16417
|
-
importPlugin: () => Promise.resolve().then(() => require("./html-
|
|
16473
|
+
importPlugin: () => Promise.resolve().then(() => require("./html-1W4-2_9J.cjs")),
|
|
16418
16474
|
parsers: [
|
|
16419
16475
|
"html",
|
|
16420
16476
|
"angular",
|
|
@@ -16425,7 +16481,7 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
16425
16481
|
printers: ["html"]
|
|
16426
16482
|
},
|
|
16427
16483
|
{
|
|
16428
|
-
importPlugin: () => Promise.resolve().then(() => require("./markdown-
|
|
16484
|
+
importPlugin: () => Promise.resolve().then(() => require("./markdown-Bltb-uzO.cjs")),
|
|
16429
16485
|
parsers: [
|
|
16430
16486
|
"markdown",
|
|
16431
16487
|
"mdx",
|
|
@@ -16434,11 +16490,11 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
16434
16490
|
printers: ["mdast"]
|
|
16435
16491
|
},
|
|
16436
16492
|
{
|
|
16437
|
-
importPlugin: () => Promise.resolve().then(() => require("./meriyah-
|
|
16493
|
+
importPlugin: () => Promise.resolve().then(() => require("./meriyah-CdG8HPS2.cjs")),
|
|
16438
16494
|
parsers: ["meriyah"]
|
|
16439
16495
|
},
|
|
16440
16496
|
{
|
|
16441
|
-
importPlugin: () => Promise.resolve().then(() => require("./postcss-
|
|
16497
|
+
importPlugin: () => Promise.resolve().then(() => require("./postcss-B7n9zUIy.cjs")),
|
|
16442
16498
|
parsers: [
|
|
16443
16499
|
"css",
|
|
16444
16500
|
"less",
|
|
@@ -16447,11 +16503,11 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
16447
16503
|
printers: ["postcss"]
|
|
16448
16504
|
},
|
|
16449
16505
|
{
|
|
16450
|
-
importPlugin: () => Promise.resolve().then(() => require("./typescript-
|
|
16506
|
+
importPlugin: () => Promise.resolve().then(() => require("./typescript-PxlX-TH7.cjs")),
|
|
16451
16507
|
parsers: ["typescript"]
|
|
16452
16508
|
},
|
|
16453
16509
|
{
|
|
16454
|
-
importPlugin: () => Promise.resolve().then(() => require("./yaml-
|
|
16510
|
+
importPlugin: () => Promise.resolve().then(() => require("./yaml-B2qeXFgu.cjs")),
|
|
16455
16511
|
parsers: ["yaml"],
|
|
16456
16512
|
printers: ["yaml"]
|
|
16457
16513
|
}
|
|
@@ -16665,12 +16721,13 @@ function hasSpaces(text, startIndex, options8 = {}) {
|
|
|
16665
16721
|
var has_spaces_default = hasSpaces;
|
|
16666
16722
|
function makeString(rawText, enclosingQuote, unescapeUnnecessaryEscapes) {
|
|
16667
16723
|
const otherQuote = enclosingQuote === "\"" ? "'" : "\"";
|
|
16668
|
-
|
|
16724
|
+
const raw = string_replace_all_default(false, rawText, /\\(.)|(["'])/gsu, (match, escaped, quote) => {
|
|
16669
16725
|
if (escaped === otherQuote) return escaped;
|
|
16670
16726
|
if (quote === enclosingQuote) return "\\" + quote;
|
|
16671
16727
|
if (quote) return quote;
|
|
16672
16728
|
return unescapeUnnecessaryEscapes && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(escaped) ? escaped : "\\" + escaped;
|
|
16673
|
-
})
|
|
16729
|
+
});
|
|
16730
|
+
return enclosingQuote + raw + enclosingQuote;
|
|
16674
16731
|
}
|
|
16675
16732
|
var make_string_default = makeString;
|
|
16676
16733
|
function legacyGetNextNonSpaceNonCommentCharacterIndex(text, node, locEnd) {
|