@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.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { File, ResolvedFile } from "./index-
|
|
1
|
+
import { File, ResolvedFile } from "./index-CWX6_-da.cjs";
|
|
2
2
|
import { Logger } from "./logger-OWS6fqk0.cjs";
|
|
3
|
-
import { PluginManager } from "./PluginManager-
|
|
3
|
+
import { PluginManager } from "./PluginManager-a3RiDAFC.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/mocks/index.d.ts
|
|
6
6
|
declare const mockedLogger: Logger;
|
package/dist/mocks.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { File, ResolvedFile } from "./index-
|
|
1
|
+
import { File, ResolvedFile } from "./index-CGJ3tdk-.js";
|
|
2
2
|
import { Logger } from "./logger-B-4AXUmB.js";
|
|
3
|
-
import { PluginManager } from "./PluginManager-
|
|
3
|
+
import { PluginManager } from "./PluginManager-BSUDeUfP.js";
|
|
4
4
|
|
|
5
5
|
//#region src/mocks/index.d.ts
|
|
6
6
|
declare const mockedLogger: Logger;
|
package/dist/mocks.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __export as __export$2 } from "./chunk-kPDogv7o.js";
|
|
2
|
-
import "./fs-
|
|
2
|
+
import "./fs-BNC5Fj6t.js";
|
|
3
3
|
import "./write-O9QWtBJ_.js";
|
|
4
|
-
import { camelCase, pascalCase } from "./transformers-
|
|
5
|
-
import { createFile, getSource } from "./FileManager-
|
|
6
|
-
import { r9 } from "./typescript-
|
|
4
|
+
import { camelCase, pascalCase } from "./transformers-BllSzdDt.js";
|
|
5
|
+
import { createFile, getSource } from "./FileManager-B0V0rX5Z.js";
|
|
6
|
+
import { r9 } from "./typescript-C8iCxnaF.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { builtinModules, createRequire } from "module";
|
|
9
9
|
import * as url from "url";
|
|
@@ -124,14 +124,14 @@ function traverseDoc$1(doc, onEnter, onExit, shouldTraverseConditionalGroups) {
|
|
|
124
124
|
case DOC_TYPE_ARRAY$1:
|
|
125
125
|
case DOC_TYPE_FILL$1: {
|
|
126
126
|
const parts = docType === DOC_TYPE_ARRAY$1 ? doc2 : doc2.parts;
|
|
127
|
-
for (let
|
|
127
|
+
for (let ic = parts.length, i = ic - 1; i >= 0; --i) docsStack.push(parts[i]);
|
|
128
128
|
break;
|
|
129
129
|
}
|
|
130
130
|
case DOC_TYPE_IF_BREAK$1:
|
|
131
131
|
docsStack.push(doc2.flatContents, doc2.breakContents);
|
|
132
132
|
break;
|
|
133
133
|
case DOC_TYPE_GROUP$1:
|
|
134
|
-
if (shouldTraverseConditionalGroups && doc2.expandedStates) for (let
|
|
134
|
+
if (shouldTraverseConditionalGroups && doc2.expandedStates) for (let ic = doc2.expandedStates.length, i = ic - 1; i >= 0; --i) docsStack.push(doc2.expandedStates[i]);
|
|
135
135
|
else docsStack.push(doc2.contents);
|
|
136
136
|
break;
|
|
137
137
|
case DOC_TYPE_ALIGN$1:
|
|
@@ -796,10 +796,11 @@ function printDocToString$1(doc, options) {
|
|
|
796
796
|
});
|
|
797
797
|
break;
|
|
798
798
|
} else {
|
|
799
|
+
const state = doc2.expandedStates[i];
|
|
799
800
|
const cmd = {
|
|
800
801
|
ind,
|
|
801
802
|
mode: MODE_FLAT$1,
|
|
802
|
-
doc:
|
|
803
|
+
doc: state
|
|
803
804
|
};
|
|
804
805
|
if (fits$1(cmd, cmds, rem, hasLineSuffix, groupModeMap)) {
|
|
805
806
|
cmds.push(cmd);
|
|
@@ -1019,7 +1020,8 @@ var public_default = public_exports$1;
|
|
|
1019
1020
|
//#endregion
|
|
1020
1021
|
//#region ../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/index.mjs
|
|
1021
1022
|
const require = createRequire(import.meta.url);
|
|
1022
|
-
|
|
1023
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
1024
|
+
dirname(__filename);
|
|
1023
1025
|
var __create = Object.create;
|
|
1024
1026
|
var __defProp = Object.defineProperty;
|
|
1025
1027
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1995,7 +1997,7 @@ var require_parse = __commonJS({ "node_modules/braces/lib/parse.js"(exports, mod
|
|
|
1995
1997
|
}
|
|
1996
1998
|
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
1997
1999
|
depth++;
|
|
1998
|
-
|
|
2000
|
+
const brace = {
|
|
1999
2001
|
type: "brace",
|
|
2000
2002
|
open: true,
|
|
2001
2003
|
close: false,
|
|
@@ -2004,7 +2006,8 @@ var require_parse = __commonJS({ "node_modules/braces/lib/parse.js"(exports, mod
|
|
|
2004
2006
|
commas: 0,
|
|
2005
2007
|
ranges: 0,
|
|
2006
2008
|
nodes: []
|
|
2007
|
-
}
|
|
2009
|
+
};
|
|
2010
|
+
block = push2(brace);
|
|
2008
2011
|
stack2.push(block);
|
|
2009
2012
|
push2({
|
|
2010
2013
|
type: "open",
|
|
@@ -2160,6 +2163,12 @@ var require_constants2 = __commonJS({ "node_modules/micromatch/node_modules/pico
|
|
|
2160
2163
|
var END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
|
|
2161
2164
|
var START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
|
|
2162
2165
|
var DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
|
|
2166
|
+
var NO_DOT = `(?!${DOT_LITERAL})`;
|
|
2167
|
+
var NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
|
|
2168
|
+
var NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
|
|
2169
|
+
var NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
|
|
2170
|
+
var QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
|
|
2171
|
+
var STAR = `${QMARK}*?`;
|
|
2163
2172
|
var POSIX_CHARS = {
|
|
2164
2173
|
DOT_LITERAL,
|
|
2165
2174
|
PLUS_LITERAL,
|
|
@@ -2169,12 +2178,12 @@ var require_constants2 = __commonJS({ "node_modules/micromatch/node_modules/pico
|
|
|
2169
2178
|
QMARK,
|
|
2170
2179
|
END_ANCHOR,
|
|
2171
2180
|
DOTS_SLASH,
|
|
2172
|
-
NO_DOT
|
|
2173
|
-
NO_DOTS
|
|
2174
|
-
NO_DOT_SLASH
|
|
2175
|
-
NO_DOTS_SLASH
|
|
2176
|
-
QMARK_NO_DOT
|
|
2177
|
-
STAR
|
|
2181
|
+
NO_DOT,
|
|
2182
|
+
NO_DOTS,
|
|
2183
|
+
NO_DOT_SLASH,
|
|
2184
|
+
NO_DOTS_SLASH,
|
|
2185
|
+
QMARK_NO_DOT,
|
|
2186
|
+
STAR,
|
|
2178
2187
|
START_ANCHOR
|
|
2179
2188
|
};
|
|
2180
2189
|
var WINDOWS_CHARS = {
|
|
@@ -2336,7 +2345,9 @@ var require_utils2 = __commonJS({ "node_modules/micromatch/node_modules/picomatc
|
|
|
2336
2345
|
return output;
|
|
2337
2346
|
};
|
|
2338
2347
|
exports.wrapOutput = (input, state = {}, options8 = {}) => {
|
|
2339
|
-
|
|
2348
|
+
const prepend = options8.contains ? "" : "^";
|
|
2349
|
+
const append = options8.contains ? "" : "$";
|
|
2350
|
+
let output = `${prepend}(?:${input})${append}`;
|
|
2340
2351
|
if (state.negated === true) output = `(?:^(?!${output}).*$)`;
|
|
2341
2352
|
return output;
|
|
2342
2353
|
};
|
|
@@ -2848,7 +2859,8 @@ var require_parse2 = __commonJS({ "node_modules/micromatch/node_modules/picomatc
|
|
|
2848
2859
|
if (inner.includes(":")) {
|
|
2849
2860
|
const idx = prev.value.lastIndexOf("[");
|
|
2850
2861
|
const pre = prev.value.slice(0, idx);
|
|
2851
|
-
const
|
|
2862
|
+
const rest2 = prev.value.slice(idx + 2);
|
|
2863
|
+
const posix = POSIX_REGEX_SOURCE[rest2];
|
|
2852
2864
|
if (posix) {
|
|
2853
2865
|
prev.value = pre + posix;
|
|
2854
2866
|
state.backtrack = true;
|
|
@@ -3374,7 +3386,8 @@ var require_parse2 = __commonJS({ "node_modules/micromatch/node_modules/picomatc
|
|
|
3374
3386
|
}
|
|
3375
3387
|
}
|
|
3376
3388
|
};
|
|
3377
|
-
|
|
3389
|
+
const output = utils$1.removePrefix(input, state);
|
|
3390
|
+
let source2 = create(output);
|
|
3378
3391
|
if (source2 && opts.strictSlashes !== true) source2 += `${SLASH_LITERAL}?`;
|
|
3379
3392
|
return source2;
|
|
3380
3393
|
};
|
|
@@ -4211,7 +4224,8 @@ var require_async2 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/provider
|
|
|
4211
4224
|
callSuccessCallback(callback, entries);
|
|
4212
4225
|
return;
|
|
4213
4226
|
}
|
|
4214
|
-
|
|
4227
|
+
const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings));
|
|
4228
|
+
rpl(tasks, (rplError, rplEntries) => {
|
|
4215
4229
|
if (rplError !== null) {
|
|
4216
4230
|
callFailureCallback(callback, rplError);
|
|
4217
4231
|
return;
|
|
@@ -4247,7 +4261,7 @@ var require_async2 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/provider
|
|
|
4247
4261
|
callFailureCallback(callback, readdirError);
|
|
4248
4262
|
return;
|
|
4249
4263
|
}
|
|
4250
|
-
|
|
4264
|
+
const tasks = names.map((name) => {
|
|
4251
4265
|
const path14 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
4252
4266
|
return (done) => {
|
|
4253
4267
|
fsStat.stat(path14, settings.fsStatSettings, (error, stats) => {
|
|
@@ -4264,7 +4278,8 @@ var require_async2 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/provider
|
|
|
4264
4278
|
done(null, entry);
|
|
4265
4279
|
});
|
|
4266
4280
|
};
|
|
4267
|
-
})
|
|
4281
|
+
});
|
|
4282
|
+
rpl(tasks, (rplError, entries) => {
|
|
4268
4283
|
if (rplError !== null) {
|
|
4269
4284
|
callFailureCallback(callback, rplError);
|
|
4270
4285
|
return;
|
|
@@ -5164,7 +5179,8 @@ var require_deep = __commonJS({ "node_modules/fast-glob/out/providers/filters/de
|
|
|
5164
5179
|
_getEntryLevel(basePath, entryPath) {
|
|
5165
5180
|
const entryPathDepth = entryPath.split("/").length;
|
|
5166
5181
|
if (basePath === "") return entryPathDepth;
|
|
5167
|
-
|
|
5182
|
+
const basePathDepth = basePath.split("/").length;
|
|
5183
|
+
return entryPathDepth - basePathDepth;
|
|
5168
5184
|
}
|
|
5169
5185
|
_isSkippedSymbolicLink(entry) {
|
|
5170
5186
|
return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
|
|
@@ -5652,10 +5668,12 @@ var require_constants4 = __commonJS({ "node_modules/semver/internal/constants.js
|
|
|
5652
5668
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
5653
5669
|
var MAX_LENGTH = 256;
|
|
5654
5670
|
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
5671
|
+
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
5672
|
+
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
5655
5673
|
module.exports = {
|
|
5656
5674
|
MAX_LENGTH,
|
|
5657
|
-
MAX_SAFE_COMPONENT_LENGTH
|
|
5658
|
-
MAX_SAFE_BUILD_LENGTH
|
|
5675
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
5676
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
5659
5677
|
MAX_SAFE_INTEGER,
|
|
5660
5678
|
RELEASE_TYPES: [
|
|
5661
5679
|
"major",
|
|
@@ -7529,7 +7547,8 @@ var require_src = __commonJS({ "node_modules/editorconfig/src/index.js"(exports)
|
|
|
7529
7547
|
var glob = section[0];
|
|
7530
7548
|
var options22 = section[1];
|
|
7531
7549
|
if (!glob) return;
|
|
7532
|
-
|
|
7550
|
+
var fullGlob = buildFullGlob(pathPrefix, glob);
|
|
7551
|
+
if (!fnmatch(filepath, fullGlob)) return;
|
|
7533
7552
|
matches = extendProps(matches, options22);
|
|
7534
7553
|
});
|
|
7535
7554
|
return matches;
|
|
@@ -7621,7 +7640,9 @@ var require_src = __commonJS({ "node_modules/editorconfig/src/index.js"(exports)
|
|
|
7621
7640
|
function parseSync(_filepath, _options) {
|
|
7622
7641
|
if (_options === void 0) _options = {};
|
|
7623
7642
|
var _a = opts(_filepath, _options), resolvedFilePath = _a[0], processedOptions = _a[1];
|
|
7624
|
-
|
|
7643
|
+
var filepaths = getConfigFileNames(resolvedFilePath, processedOptions);
|
|
7644
|
+
var files = readConfigFilesSync(filepaths);
|
|
7645
|
+
return parseFromConfigs(getConfigsForFiles(files), resolvedFilePath, processedOptions);
|
|
7625
7646
|
}
|
|
7626
7647
|
exports.parseSync = parseSync;
|
|
7627
7648
|
} });
|
|
@@ -8844,8 +8865,10 @@ var require_lib2 = __commonJS({ "node_modules/@babel/code-frame/lib/index.js"(ex
|
|
|
8844
8865
|
if (lineDiff2) for (let i = 0; i <= lineDiff2; i++) {
|
|
8845
8866
|
const lineNumber = i + startLine;
|
|
8846
8867
|
if (!startColumn) markerLines[lineNumber] = true;
|
|
8847
|
-
else if (i === 0)
|
|
8848
|
-
|
|
8868
|
+
else if (i === 0) {
|
|
8869
|
+
const sourceLength = source2[lineNumber - 1].length;
|
|
8870
|
+
markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
|
|
8871
|
+
} else if (i === lineDiff2) markerLines[lineNumber] = [0, endColumn];
|
|
8849
8872
|
else markerLines[lineNumber] = [0, source2[lineNumber - i].length];
|
|
8850
8873
|
}
|
|
8851
8874
|
else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [startColumn, 0];
|
|
@@ -8860,7 +8883,8 @@ var require_lib2 = __commonJS({ "node_modules/@babel/code-frame/lib/index.js"(ex
|
|
|
8860
8883
|
function codeFrameColumns3(rawLines, loc, opts = {}) {
|
|
8861
8884
|
const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
|
|
8862
8885
|
const defs = getDefs(shouldHighlight);
|
|
8863
|
-
const
|
|
8886
|
+
const lines = rawLines.split(NEWLINE);
|
|
8887
|
+
const { start, end, markerLines } = getMarkerLines(loc, lines, opts);
|
|
8864
8888
|
const hasColumns = loc.start && typeof loc.start.column === "number";
|
|
8865
8889
|
const numberMaxWidth = String(end).length;
|
|
8866
8890
|
let frame = (shouldHighlight ? highlight(rawLines) : rawLines).split(NEWLINE, end).slice(start, end).map((line3, index2) => {
|
|
@@ -9053,7 +9077,8 @@ var require_ignore = __commonJS({ "node_modules/ignore/index.js"(exports, module
|
|
|
9053
9077
|
}],
|
|
9054
9078
|
[/\\\/\\\*\\\*(?=\\\/|$)/g, (_, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+"],
|
|
9055
9079
|
[/(^|[^\\]+)(\\\*)+(?=.+)/g, (_, p1, p2) => {
|
|
9056
|
-
|
|
9080
|
+
const unescaped = p2.replace(/\\\*/g, "[^\\/]*");
|
|
9081
|
+
return p1 + unescaped;
|
|
9057
9082
|
}],
|
|
9058
9083
|
[/\\\\\\(?=[$.|*+(){^])/g, () => ESCAPE],
|
|
9059
9084
|
[/\\\\/g, () => ESCAPE],
|
|
@@ -9485,7 +9510,8 @@ function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, ne
|
|
|
9485
9510
|
else {
|
|
9486
9511
|
const { callback } = optionsObj;
|
|
9487
9512
|
diffLines(oldStr, newStr, Object.assign(Object.assign({}, optionsObj), { callback: (diff) => {
|
|
9488
|
-
|
|
9513
|
+
const patch = diffLinesResultToPatch(diff);
|
|
9514
|
+
callback(patch);
|
|
9489
9515
|
} }));
|
|
9490
9516
|
}
|
|
9491
9517
|
function diffLinesResultToPatch(diff) {
|
|
@@ -10378,8 +10404,10 @@ function clearEditorconfigCache() {
|
|
|
10378
10404
|
editorconfigCache.clear();
|
|
10379
10405
|
}
|
|
10380
10406
|
async function loadEditorconfigInternal(file, { shouldCache }) {
|
|
10381
|
-
const
|
|
10382
|
-
|
|
10407
|
+
const directory = path10.dirname(file);
|
|
10408
|
+
const root2 = await findProjectRoot(directory, { shouldCache });
|
|
10409
|
+
const editorConfig = await import_editorconfig.default.parse(file, { root: root2 });
|
|
10410
|
+
return editorconfig_to_prettier_default(editorConfig);
|
|
10383
10411
|
}
|
|
10384
10412
|
function loadEditorconfig(file, { shouldCache }) {
|
|
10385
10413
|
file = path10.resolve(file);
|
|
@@ -11886,7 +11914,7 @@ async function loadConfigFromPackageYaml(file) {
|
|
|
11886
11914
|
var parseYaml;
|
|
11887
11915
|
async function loadYaml(file) {
|
|
11888
11916
|
const content = await read_file_default(file);
|
|
11889
|
-
if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-
|
|
11917
|
+
if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-Bi_nSoU_.js"));
|
|
11890
11918
|
try {
|
|
11891
11919
|
return parseYaml(content);
|
|
11892
11920
|
} catch (error) {
|
|
@@ -12358,7 +12386,8 @@ function getFileProtocolModuleFormat(url3, _context, ignoreErrors) {
|
|
|
12358
12386
|
const format3 = extensionFormatMap[value];
|
|
12359
12387
|
if (format3) return format3;
|
|
12360
12388
|
if (ignoreErrors) return;
|
|
12361
|
-
|
|
12389
|
+
const filepath = fileURLToPath(url3);
|
|
12390
|
+
throw new ERR_UNKNOWN_FILE_EXTENSION(value, filepath);
|
|
12362
12391
|
}
|
|
12363
12392
|
function getHttpProtocolModuleFormat() {}
|
|
12364
12393
|
function defaultGetFormatWithoutErrors(url3, context) {
|
|
@@ -12498,7 +12527,8 @@ function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
|
12498
12527
|
return new ERR_PACKAGE_PATH_NOT_EXPORTED(fileURLToPath(new URL$1(".", packageJsonUrl)), subpath, base && fileURLToPath(base));
|
|
12499
12528
|
}
|
|
12500
12529
|
function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
12501
|
-
|
|
12530
|
+
const reason = `request is not a valid match in pattern "${match}" for the "${internal ? "imports" : "exports"}" resolution of ${fileURLToPath(packageJsonUrl)}`;
|
|
12531
|
+
throw new ERR_INVALID_MODULE_SPECIFIER(request, reason, base && fileURLToPath(base));
|
|
12502
12532
|
}
|
|
12503
12533
|
function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
12504
12534
|
target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
|
|
@@ -12513,14 +12543,18 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
12513
12543
|
new URL$1(target);
|
|
12514
12544
|
isURL2 = true;
|
|
12515
12545
|
} catch {}
|
|
12516
|
-
if (!isURL2)
|
|
12546
|
+
if (!isURL2) {
|
|
12547
|
+
const exportTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target + subpath;
|
|
12548
|
+
return packageResolve(exportTarget, packageJsonUrl, conditions);
|
|
12549
|
+
}
|
|
12517
12550
|
}
|
|
12518
12551
|
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
12519
12552
|
}
|
|
12520
12553
|
if (invalidSegmentRegEx.exec(target.slice(2)) !== null) if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
|
|
12521
12554
|
if (!isPathMap) {
|
|
12522
12555
|
const request = pattern ? match.replace("*", () => subpath) : match + subpath;
|
|
12523
|
-
|
|
12556
|
+
const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
|
|
12557
|
+
emitInvalidSegmentDeprecation(resolvedTarget, request, match, packageJsonUrl, internal, base, true);
|
|
12524
12558
|
}
|
|
12525
12559
|
} else throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
12526
12560
|
const resolved = new URL$1(target, packageJsonUrl);
|
|
@@ -12531,7 +12565,10 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
12531
12565
|
if (invalidSegmentRegEx.exec(subpath) !== null) {
|
|
12532
12566
|
const request = pattern ? match.replace("*", () => subpath) : match + subpath;
|
|
12533
12567
|
if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) {
|
|
12534
|
-
if (!isPathMap)
|
|
12568
|
+
if (!isPathMap) {
|
|
12569
|
+
const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
|
|
12570
|
+
emitInvalidSegmentDeprecation(resolvedTarget, request, match, packageJsonUrl, internal, base, false);
|
|
12571
|
+
}
|
|
12535
12572
|
} else throwInvalidSubpath(request, match, packageJsonUrl, internal, base);
|
|
12536
12573
|
}
|
|
12537
12574
|
if (pattern) return new URL$1(RegExpPrototypeSymbolReplace.call(patternRegEx, resolved.href, () => subpath));
|
|
@@ -12707,9 +12744,10 @@ function parsePackageName(specifier, base) {
|
|
|
12707
12744
|
const packageName = separatorIndex === -1 ? specifier : specifier.slice(0, separatorIndex);
|
|
12708
12745
|
if (invalidPackageNameRegEx.exec(packageName) !== null) validPackageName = false;
|
|
12709
12746
|
if (!validPackageName) throw new ERR_INVALID_MODULE_SPECIFIER(specifier, "is not a valid package name", fileURLToPath(base));
|
|
12747
|
+
const packageSubpath = "." + (separatorIndex === -1 ? "" : specifier.slice(separatorIndex));
|
|
12710
12748
|
return {
|
|
12711
12749
|
packageName,
|
|
12712
|
-
packageSubpath
|
|
12750
|
+
packageSubpath,
|
|
12713
12751
|
isScoped
|
|
12714
12752
|
};
|
|
12715
12753
|
}
|
|
@@ -12900,7 +12938,8 @@ function getSearchFunction(stopDirectory) {
|
|
|
12900
12938
|
}
|
|
12901
12939
|
function searchPrettierConfig(startDirectory, options8 = {}) {
|
|
12902
12940
|
startDirectory = startDirectory ? path10.resolve(startDirectory) : process.cwd();
|
|
12903
|
-
|
|
12941
|
+
const stopDirectory = mockable_default.getPrettierConfigSearchStopDirectory();
|
|
12942
|
+
return getSearchFunction(stopDirectory)(startDirectory, { cache: options8.shouldCache });
|
|
12904
12943
|
}
|
|
12905
12944
|
function clearCache() {
|
|
12906
12945
|
clearPrettierConfigCache();
|
|
@@ -12914,7 +12953,10 @@ function loadEditorconfig2(file, options8) {
|
|
|
12914
12953
|
async function loadPrettierConfig2(file, options8) {
|
|
12915
12954
|
const shouldCache = options8.useCache;
|
|
12916
12955
|
let configFile = options8.config;
|
|
12917
|
-
if (!configFile)
|
|
12956
|
+
if (!configFile) {
|
|
12957
|
+
const directory = file ? path10.dirname(path10.resolve(file)) : void 0;
|
|
12958
|
+
configFile = await searchPrettierConfig(directory, { shouldCache });
|
|
12959
|
+
}
|
|
12918
12960
|
if (!configFile) return;
|
|
12919
12961
|
configFile = toPath(configFile);
|
|
12920
12962
|
return {
|
|
@@ -12938,7 +12980,8 @@ async function resolveConfig(fileUrlOrPath, options8) {
|
|
|
12938
12980
|
return merged;
|
|
12939
12981
|
}
|
|
12940
12982
|
async function resolveConfigFile(fileUrlOrPath) {
|
|
12941
|
-
|
|
12983
|
+
const directory = fileUrlOrPath ? path10.dirname(path10.resolve(toPath(fileUrlOrPath))) : void 0;
|
|
12984
|
+
return await searchPrettierConfig(directory, { shouldCache: false }) ?? null;
|
|
12942
12985
|
}
|
|
12943
12986
|
function mergeOverrides(configResult, filePath) {
|
|
12944
12987
|
const { config, configFile } = configResult || {};
|
|
@@ -13086,14 +13129,14 @@ function traverseDoc(doc2, onEnter, onExit, shouldTraverseConditionalGroups) {
|
|
|
13086
13129
|
case DOC_TYPE_ARRAY:
|
|
13087
13130
|
case DOC_TYPE_FILL: {
|
|
13088
13131
|
const parts = docType === DOC_TYPE_ARRAY ? doc3 : doc3.parts;
|
|
13089
|
-
for (let
|
|
13132
|
+
for (let ic = parts.length, i = ic - 1; i >= 0; --i) docsStack.push(parts[i]);
|
|
13090
13133
|
break;
|
|
13091
13134
|
}
|
|
13092
13135
|
case DOC_TYPE_IF_BREAK:
|
|
13093
13136
|
docsStack.push(doc3.flatContents, doc3.breakContents);
|
|
13094
13137
|
break;
|
|
13095
13138
|
case DOC_TYPE_GROUP:
|
|
13096
|
-
if (shouldTraverseConditionalGroups && doc3.expandedStates) for (let
|
|
13139
|
+
if (shouldTraverseConditionalGroups && doc3.expandedStates) for (let ic = doc3.expandedStates.length, i = ic - 1; i >= 0; --i) docsStack.push(doc3.expandedStates[i]);
|
|
13097
13140
|
else docsStack.push(doc3.contents);
|
|
13098
13141
|
break;
|
|
13099
13142
|
case DOC_TYPE_ALIGN:
|
|
@@ -13717,10 +13760,11 @@ function printDocToString(doc2, options8) {
|
|
|
13717
13760
|
});
|
|
13718
13761
|
break;
|
|
13719
13762
|
} else {
|
|
13763
|
+
const state = doc3.expandedStates[i];
|
|
13720
13764
|
const cmd = {
|
|
13721
13765
|
ind,
|
|
13722
13766
|
mode: MODE_FLAT,
|
|
13723
|
-
doc:
|
|
13767
|
+
doc: state
|
|
13724
13768
|
};
|
|
13725
13769
|
if (fits(cmd, cmds, rem, hasLineSuffix, groupModeMap)) {
|
|
13726
13770
|
cmds.push(cmd);
|
|
@@ -14167,7 +14211,8 @@ function skipNewline(text, startIndex, options8) {
|
|
|
14167
14211
|
var skip_newline_default = skipNewline;
|
|
14168
14212
|
function hasNewline(text, startIndex, options8 = {}) {
|
|
14169
14213
|
const idx = skipSpaces(text, options8.backwards ? startIndex - 1 : startIndex, options8);
|
|
14170
|
-
|
|
14214
|
+
const idx2 = skip_newline_default(text, idx, options8);
|
|
14215
|
+
return idx !== idx2;
|
|
14171
14216
|
}
|
|
14172
14217
|
var has_newline_default = hasNewline;
|
|
14173
14218
|
function isNonEmptyArray(object) {
|
|
@@ -14409,15 +14454,18 @@ function printTrailingComment(path14, options8, previousComment) {
|
|
|
14409
14454
|
const printed = printComment(path14, options8);
|
|
14410
14455
|
const { printer: printer$1, originalText, locStart } = options8;
|
|
14411
14456
|
const isBlock = (_a = printer$1.isBlockComment) == null ? void 0 : _a.call(printer$1, comment);
|
|
14412
|
-
if ((previousComment == null ? void 0 : previousComment.hasLineSuffix) && !(previousComment == null ? void 0 : previousComment.isBlock) || has_newline_default(originalText, locStart(comment), { backwards: true }))
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14416
|
-
|
|
14417
|
-
|
|
14418
|
-
|
|
14419
|
-
|
|
14420
|
-
|
|
14457
|
+
if ((previousComment == null ? void 0 : previousComment.hasLineSuffix) && !(previousComment == null ? void 0 : previousComment.isBlock) || has_newline_default(originalText, locStart(comment), { backwards: true })) {
|
|
14458
|
+
const isLineBeforeEmpty = is_previous_line_empty_default(originalText, locStart(comment));
|
|
14459
|
+
return {
|
|
14460
|
+
doc: lineSuffix([
|
|
14461
|
+
hardline,
|
|
14462
|
+
isLineBeforeEmpty ? hardline : "",
|
|
14463
|
+
printed
|
|
14464
|
+
]),
|
|
14465
|
+
isBlock,
|
|
14466
|
+
hasLineSuffix: true
|
|
14467
|
+
};
|
|
14468
|
+
}
|
|
14421
14469
|
if (!isBlock || (previousComment == null ? void 0 : previousComment.hasLineSuffix)) return {
|
|
14422
14470
|
doc: [lineSuffix([" ", printed]), breakParent],
|
|
14423
14471
|
isBlock,
|
|
@@ -14842,10 +14890,11 @@ function normalizeOptions(options8, optionInfos, { logger = false, isCLI = false
|
|
|
14842
14890
|
schemas: schemas2
|
|
14843
14891
|
});
|
|
14844
14892
|
} : Array.isArray(passThrough) ? (key2, value) => !passThrough.includes(key2) ? void 0 : { [key2]: value } : (key2, value) => ({ [key2]: value });
|
|
14845
|
-
const
|
|
14893
|
+
const schemas = optionInfosToSchemas(optionInfos, {
|
|
14846
14894
|
isCLI,
|
|
14847
14895
|
FlagSchema
|
|
14848
|
-
})
|
|
14896
|
+
});
|
|
14897
|
+
const normalizer = new Normalizer(schemas, {
|
|
14849
14898
|
logger,
|
|
14850
14899
|
unknown,
|
|
14851
14900
|
descriptor
|
|
@@ -14945,16 +14994,19 @@ function getParserPluginByParserName(plugins, parserName) {
|
|
|
14945
14994
|
if (!parserName) throw new Error("parserName is required.");
|
|
14946
14995
|
const plugin = array_find_last_default(false, plugins, (plugin2) => plugin2.parsers && Object.prototype.hasOwnProperty.call(plugin2.parsers, parserName));
|
|
14947
14996
|
if (plugin) return plugin;
|
|
14948
|
-
|
|
14997
|
+
let message = `Couldn't resolve parser "${parserName}".`;
|
|
14998
|
+
throw new ConfigError(message);
|
|
14949
14999
|
}
|
|
14950
15000
|
function getPrinterPluginByAstFormat(plugins, astFormat) {
|
|
14951
15001
|
if (!astFormat) throw new Error("astFormat is required.");
|
|
14952
15002
|
const plugin = array_find_last_default(false, plugins, (plugin2) => plugin2.printers && Object.prototype.hasOwnProperty.call(plugin2.printers, astFormat));
|
|
14953
15003
|
if (plugin) return plugin;
|
|
14954
|
-
|
|
15004
|
+
let message = `Couldn't find plugin for AST format "${astFormat}".`;
|
|
15005
|
+
throw new ConfigError(message);
|
|
14955
15006
|
}
|
|
14956
15007
|
function resolveParser({ plugins, parser }) {
|
|
14957
|
-
|
|
15008
|
+
const plugin = getParserPluginByParserName(plugins, parser);
|
|
15009
|
+
return initParser(plugin, parser);
|
|
14958
15010
|
}
|
|
14959
15011
|
function initParser(plugin, parserName) {
|
|
14960
15012
|
const parserOrParserInitFunction = plugin.parsers[parserName];
|
|
@@ -15082,7 +15134,8 @@ async function textToDoc(text, partialNextOptions, parentOptions, printAstToDoc2
|
|
|
15082
15134
|
rangeEnd: void 0
|
|
15083
15135
|
}, { passThrough: true });
|
|
15084
15136
|
const { ast } = await parse_default(text, options8);
|
|
15085
|
-
|
|
15137
|
+
const doc2 = await printAstToDoc2(ast, options8);
|
|
15138
|
+
return stripTrailingHardline(doc2);
|
|
15086
15139
|
}
|
|
15087
15140
|
function printIgnored(path14, options8) {
|
|
15088
15141
|
const { originalText, [Symbol.for("comments")]: comments, locStart, locEnd, [Symbol.for("printedComments")]: printedComments } = options8;
|
|
@@ -15427,7 +15480,8 @@ async function coreFormat(originalText, opts, addAlignmentSize = 0) {
|
|
|
15427
15480
|
};
|
|
15428
15481
|
const oldCursorNodeCharArray = oldCursorRegionText.split("");
|
|
15429
15482
|
oldCursorNodeCharArray.splice(cursorOffsetRelativeToOldCursorRegionStart, 0, CURSOR);
|
|
15430
|
-
const
|
|
15483
|
+
const newCursorNodeCharArray = newCursorRegionText.split("");
|
|
15484
|
+
const cursorNodeDiff = diffArrays(oldCursorNodeCharArray, newCursorNodeCharArray);
|
|
15431
15485
|
let cursorOffset = newCursorRegionStart;
|
|
15432
15486
|
for (const entry of cursorNodeDiff) if (entry.removed) {
|
|
15433
15487
|
if (entry.value.includes(CURSOR)) break;
|
|
@@ -15558,10 +15612,12 @@ async function parse6(originalText, originalOptions, devOptions) {
|
|
|
15558
15612
|
}
|
|
15559
15613
|
async function formatAst(ast, options8) {
|
|
15560
15614
|
options8 = await normalize_format_options_default(options8);
|
|
15561
|
-
|
|
15615
|
+
const doc2 = await printAstToDoc(ast, options8);
|
|
15616
|
+
return printDocToString(doc2, options8);
|
|
15562
15617
|
}
|
|
15563
15618
|
async function formatDoc(doc2, options8) {
|
|
15564
|
-
const
|
|
15619
|
+
const text = printDocToDebug(doc2);
|
|
15620
|
+
const { formatted } = await formatWithCursor(text, {
|
|
15565
15621
|
...options8,
|
|
15566
15622
|
parser: "__js_expression"
|
|
15567
15623
|
});
|
|
@@ -16357,11 +16413,11 @@ var languages = [
|
|
|
16357
16413
|
];
|
|
16358
16414
|
var { parsers, printers } = createParsersAndPrinters([
|
|
16359
16415
|
{
|
|
16360
|
-
importPlugin: () => import("./acorn-
|
|
16416
|
+
importPlugin: () => import("./acorn-Z0oy0vSt.js"),
|
|
16361
16417
|
parsers: ["acorn", "espree"]
|
|
16362
16418
|
},
|
|
16363
16419
|
{
|
|
16364
|
-
importPlugin: () => import("./angular-
|
|
16420
|
+
importPlugin: () => import("./angular-BUlb_iaU.js"),
|
|
16365
16421
|
parsers: [
|
|
16366
16422
|
"__ng_action",
|
|
16367
16423
|
"__ng_binding",
|
|
@@ -16370,7 +16426,7 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
16370
16426
|
]
|
|
16371
16427
|
},
|
|
16372
16428
|
{
|
|
16373
|
-
importPlugin: () => import("./babel-
|
|
16429
|
+
importPlugin: () => import("./babel-DfXTN9QX.js"),
|
|
16374
16430
|
parsers: [
|
|
16375
16431
|
"babel",
|
|
16376
16432
|
"babel-flow",
|
|
@@ -16389,25 +16445,25 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
16389
16445
|
]
|
|
16390
16446
|
},
|
|
16391
16447
|
{
|
|
16392
|
-
importPlugin: () => import("./estree-
|
|
16448
|
+
importPlugin: () => import("./estree-Bt3vRtV3.js"),
|
|
16393
16449
|
printers: ["estree", "estree-json"]
|
|
16394
16450
|
},
|
|
16395
16451
|
{
|
|
16396
|
-
importPlugin: () => import("./flow-
|
|
16452
|
+
importPlugin: () => import("./flow-Bb8_yYns.js"),
|
|
16397
16453
|
parsers: ["flow"]
|
|
16398
16454
|
},
|
|
16399
16455
|
{
|
|
16400
|
-
importPlugin: () => import("./glimmer-
|
|
16456
|
+
importPlugin: () => import("./glimmer-By8WZPkK.js"),
|
|
16401
16457
|
parsers: ["glimmer"],
|
|
16402
16458
|
printers: ["glimmer"]
|
|
16403
16459
|
},
|
|
16404
16460
|
{
|
|
16405
|
-
importPlugin: () => import("./graphql-
|
|
16461
|
+
importPlugin: () => import("./graphql-DsrNefXx.js"),
|
|
16406
16462
|
parsers: ["graphql"],
|
|
16407
16463
|
printers: ["graphql"]
|
|
16408
16464
|
},
|
|
16409
16465
|
{
|
|
16410
|
-
importPlugin: () => import("./html-
|
|
16466
|
+
importPlugin: () => import("./html-Y5KDc150.js"),
|
|
16411
16467
|
parsers: [
|
|
16412
16468
|
"html",
|
|
16413
16469
|
"angular",
|
|
@@ -16418,7 +16474,7 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
16418
16474
|
printers: ["html"]
|
|
16419
16475
|
},
|
|
16420
16476
|
{
|
|
16421
|
-
importPlugin: () => import("./markdown-
|
|
16477
|
+
importPlugin: () => import("./markdown-Drl4Cbq5.js"),
|
|
16422
16478
|
parsers: [
|
|
16423
16479
|
"markdown",
|
|
16424
16480
|
"mdx",
|
|
@@ -16427,11 +16483,11 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
16427
16483
|
printers: ["mdast"]
|
|
16428
16484
|
},
|
|
16429
16485
|
{
|
|
16430
|
-
importPlugin: () => import("./meriyah-
|
|
16486
|
+
importPlugin: () => import("./meriyah-Cz9whwp-.js"),
|
|
16431
16487
|
parsers: ["meriyah"]
|
|
16432
16488
|
},
|
|
16433
16489
|
{
|
|
16434
|
-
importPlugin: () => import("./postcss-
|
|
16490
|
+
importPlugin: () => import("./postcss-Dfx_9buT.js"),
|
|
16435
16491
|
parsers: [
|
|
16436
16492
|
"css",
|
|
16437
16493
|
"less",
|
|
@@ -16440,11 +16496,11 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
16440
16496
|
printers: ["postcss"]
|
|
16441
16497
|
},
|
|
16442
16498
|
{
|
|
16443
|
-
importPlugin: () => import("./typescript-
|
|
16499
|
+
importPlugin: () => import("./typescript-BY9-7pw9.js"),
|
|
16444
16500
|
parsers: ["typescript"]
|
|
16445
16501
|
},
|
|
16446
16502
|
{
|
|
16447
|
-
importPlugin: () => import("./yaml-
|
|
16503
|
+
importPlugin: () => import("./yaml-Bi_nSoU_.js"),
|
|
16448
16504
|
parsers: ["yaml"],
|
|
16449
16505
|
printers: ["yaml"]
|
|
16450
16506
|
}
|
|
@@ -16658,12 +16714,13 @@ function hasSpaces(text, startIndex, options8 = {}) {
|
|
|
16658
16714
|
var has_spaces_default = hasSpaces;
|
|
16659
16715
|
function makeString(rawText, enclosingQuote, unescapeUnnecessaryEscapes) {
|
|
16660
16716
|
const otherQuote = enclosingQuote === "\"" ? "'" : "\"";
|
|
16661
|
-
|
|
16717
|
+
const raw = string_replace_all_default(false, rawText, /\\(.)|(["'])/gsu, (match, escaped, quote) => {
|
|
16662
16718
|
if (escaped === otherQuote) return escaped;
|
|
16663
16719
|
if (quote === enclosingQuote) return "\\" + quote;
|
|
16664
16720
|
if (quote) return quote;
|
|
16665
16721
|
return unescapeUnnecessaryEscapes && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(escaped) ? escaped : "\\" + escaped;
|
|
16666
|
-
})
|
|
16722
|
+
});
|
|
16723
|
+
return enclosingQuote + raw + enclosingQuote;
|
|
16667
16724
|
}
|
|
16668
16725
|
var make_string_default = makeString;
|
|
16669
16726
|
function legacyGetNextNonSpaceNonCommentCharacterIndex(text, node, locEnd) {
|