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