oxfmt 0.58.0 → 0.59.0
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/configuration_schema.json +3 -3
- package/dist/{acorn-CZllRq2x.js → acorn-Dxp-n4ed.js} +136 -43
- package/dist/{angular-CsoDKqo4.js → angular-Clx-wbm6.js} +253 -90
- package/dist/{apis-DLO0lBDu.js → apis-D299uPBa.js} +4 -4
- package/dist/{babel-DZD6u90w.js → babel-7tfAjQas.js} +178 -69
- package/dist/{bindings-DTiEua0g.js → bindings-CjOHPMBU.js} +26 -26
- package/dist/{chunk-DSjvVL_1-DX2STy_I.js → chunk-DSjvVL_1-Do0Iorfu.js} +1 -1
- package/dist/cli-worker.d.ts +18 -24
- package/dist/cli-worker.js +1 -1
- package/dist/cli.js +2 -2
- package/dist/{dist-YOS4M6hk.js → dist-Byfj_1s9.js} +14 -14
- package/dist/{estree-ChnhgzGg.js → estree-CyQu6pff.js} +1982 -1861
- package/dist/{flow-C6LkWPPl.js → flow-BH5imzwC.js} +2014 -1999
- package/dist/{glimmer-YnkKK2a7.js → glimmer-B5hfTXAX.js} +107 -42
- package/dist/{graphql-BNiwkZTo.js → graphql-DQB_nHt9.js} +80 -15
- package/dist/{html-DMHXIbrM.js → html--849eFzc.js} +257 -155
- package/dist/index.d.ts +7 -3
- package/dist/index.js +3 -3
- package/dist/{jiti-Bb1dT6Cw-B61jQmj-.js → jiti-Bb1dT6Cw-cY1yrK9n.js} +2 -2
- package/dist/{markdown-BjyDFyaO.js → markdown-B1lBrqaF.js} +3778 -3745
- package/dist/{meriyah-zDNCk2o1.js → meriyah-B5wbO5kj.js} +264 -213
- package/dist/{migrate-prettier-BmSsy164.js → migrate-prettier-CbxtU9AG.js} +1 -1
- package/dist/{plugin-B4cguZ1l.js → plugin-D1B0s0iv.js} +3 -3
- package/dist/{postcss-CwPwODg8.js → postcss-DuOoF7OX.js} +1129 -1050
- package/dist/{prettier-BByt4AhK.js → prettier-CEZwFZsY.js} +18 -19
- package/dist/{sorter-BZkvDMjt-B8ihSEiX.js → sorter-BZkvDMjt-DFTeIPU-.js} +7 -7
- package/dist/{sorter-BcGkkjyR.js → sorter-Cm0Z2eGI.js} +1 -1
- package/dist/{typescript-Bq_S3kyC.js → typescript-Cvdwz3-D.js} +120 -47
- package/dist/{v3-D-mr2VVh-p01OHBjH.js → v3-D-mr2VVh-C_WUxELf.js} +6 -5
- package/dist/{v4-C-HWEQJm-BbuYNtSW.js → v4-C-HWEQJm-C0ut0NwJ.js} +108 -30
- package/dist/{yaml-DlyuuZmC.js → yaml-Dd4aShtG.js} +138 -49
- package/package.json +20 -20
|
@@ -13,7 +13,7 @@ import * as util2 from "util";
|
|
|
13
13
|
import { format, inspect } from "util";
|
|
14
14
|
import assert2, { ok, strictEqual } from "assert";
|
|
15
15
|
import v8 from "v8";
|
|
16
|
-
//#region ../../node_modules/.pnpm/prettier@3.9.
|
|
16
|
+
//#region ../../node_modules/.pnpm/prettier@3.9.5/node_modules/prettier/doc.mjs
|
|
17
17
|
var doc_exports = /* @__PURE__ */ __exportAll({
|
|
18
18
|
builders: () => builders,
|
|
19
19
|
default: () => public_exports$1,
|
|
@@ -1361,7 +1361,7 @@ var init_doc = __esmMin((() => {
|
|
|
1361
1361
|
};
|
|
1362
1362
|
}));
|
|
1363
1363
|
//#endregion
|
|
1364
|
-
//#region ../../node_modules/.pnpm/prettier@3.9.
|
|
1364
|
+
//#region ../../node_modules/.pnpm/prettier@3.9.5/node_modules/prettier/index.mjs
|
|
1365
1365
|
var prettier_exports = /* @__PURE__ */ __exportAll({
|
|
1366
1366
|
__debug: () => debugApis,
|
|
1367
1367
|
__internal: () => sharedWithCli,
|
|
@@ -3089,7 +3089,7 @@ async function loadConfigFromPackageYaml(file) {
|
|
|
3089
3089
|
}
|
|
3090
3090
|
async function loadYaml(file) {
|
|
3091
3091
|
const content = await read_file_default(file);
|
|
3092
|
-
if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-
|
|
3092
|
+
if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-Dd4aShtG.js"));
|
|
3093
3093
|
try {
|
|
3094
3094
|
return parseYaml(content);
|
|
3095
3095
|
} catch (error) {
|
|
@@ -4202,11 +4202,11 @@ function attachComments(ast, options7) {
|
|
|
4202
4202
|
isLastComment
|
|
4203
4203
|
];
|
|
4204
4204
|
if (attachPropertiesToComment) {
|
|
4205
|
-
comment.placement = placement;
|
|
4206
4205
|
comment.enclosingNode = enclosingNode;
|
|
4207
4206
|
comment.precedingNode = precedingNode;
|
|
4208
4207
|
comment.followingNode = followingNode;
|
|
4209
4208
|
}
|
|
4209
|
+
comment.placement = placement;
|
|
4210
4210
|
if (placement === "ownLine") if (handleOwnLineComment(...args)) {} else if (followingNode) addLeadingComment(followingNode, comment);
|
|
4211
4211
|
else if (precedingNode) addTrailingComment(precedingNode, comment);
|
|
4212
4212
|
else if (enclosingNode) addDanglingComment(enclosingNode, comment);
|
|
@@ -4231,7 +4231,6 @@ function attachComments(ast, options7) {
|
|
|
4231
4231
|
delete comment.precedingNode;
|
|
4232
4232
|
delete comment.enclosingNode;
|
|
4233
4233
|
delete comment.followingNode;
|
|
4234
|
-
delete comment.placement;
|
|
4235
4234
|
}
|
|
4236
4235
|
}
|
|
4237
4236
|
function isOwnLineComment(text, options7, decoratedComments, commentIndex) {
|
|
@@ -11197,11 +11196,11 @@ var init_prettier = __esmMin((() => {
|
|
|
11197
11196
|
init_utilities();
|
|
11198
11197
|
plugins = /* @__PURE__ */ toLazyLoadPlugins({
|
|
11199
11198
|
name: "acorn",
|
|
11200
|
-
load: () => import("./acorn-
|
|
11199
|
+
load: () => import("./acorn-Dxp-n4ed.js"),
|
|
11201
11200
|
parsers: ["acorn", "espree"]
|
|
11202
11201
|
}, {
|
|
11203
11202
|
name: "angular",
|
|
11204
|
-
load: () => import("./angular-
|
|
11203
|
+
load: () => import("./angular-Clx-wbm6.js"),
|
|
11205
11204
|
parsers: [
|
|
11206
11205
|
"__ng_action",
|
|
11207
11206
|
"__ng_binding",
|
|
@@ -11210,7 +11209,7 @@ var init_prettier = __esmMin((() => {
|
|
|
11210
11209
|
]
|
|
11211
11210
|
}, {
|
|
11212
11211
|
name: "babel",
|
|
11213
|
-
load: () => import("./babel-
|
|
11212
|
+
load: () => import("./babel-7tfAjQas.js"),
|
|
11214
11213
|
parsers: [
|
|
11215
11214
|
"__babel_estree",
|
|
11216
11215
|
"__js_expression",
|
|
@@ -11229,30 +11228,30 @@ var init_prettier = __esmMin((() => {
|
|
|
11229
11228
|
]
|
|
11230
11229
|
}, {
|
|
11231
11230
|
name: "estree",
|
|
11232
|
-
load: () => import("./estree-
|
|
11231
|
+
load: () => import("./estree-CyQu6pff.js"),
|
|
11233
11232
|
options: options_default4,
|
|
11234
11233
|
languages: [...languages_evaluate_default6, ...languages_evaluate_default5],
|
|
11235
11234
|
printers: ["estree", "estree-json"]
|
|
11236
11235
|
}, {
|
|
11237
11236
|
name: "flow",
|
|
11238
|
-
load: () => import("./flow-
|
|
11237
|
+
load: () => import("./flow-BH5imzwC.js"),
|
|
11239
11238
|
parsers: ["flow"]
|
|
11240
11239
|
}, {
|
|
11241
11240
|
name: "glimmer",
|
|
11242
|
-
load: () => import("./glimmer-
|
|
11241
|
+
load: () => import("./glimmer-B5hfTXAX.js"),
|
|
11243
11242
|
languages: languages_evaluate_default3,
|
|
11244
11243
|
parsers: ["glimmer"],
|
|
11245
11244
|
printers: ["glimmer"]
|
|
11246
11245
|
}, {
|
|
11247
11246
|
name: "graphql",
|
|
11248
|
-
load: () => import("./graphql-
|
|
11247
|
+
load: () => import("./graphql-DQB_nHt9.js"),
|
|
11249
11248
|
options: options_default2,
|
|
11250
11249
|
languages: languages_evaluate_default2,
|
|
11251
11250
|
parsers: ["graphql"],
|
|
11252
11251
|
printers: ["graphql"]
|
|
11253
11252
|
}, {
|
|
11254
11253
|
name: "html",
|
|
11255
|
-
load: () => import("./html
|
|
11254
|
+
load: () => import("./html--849eFzc.js"),
|
|
11256
11255
|
options: options_default3,
|
|
11257
11256
|
languages: languages_evaluate_default4,
|
|
11258
11257
|
parsers: [
|
|
@@ -11265,7 +11264,7 @@ var init_prettier = __esmMin((() => {
|
|
|
11265
11264
|
printers: ["html"]
|
|
11266
11265
|
}, {
|
|
11267
11266
|
name: "markdown",
|
|
11268
|
-
load: () => import("./markdown-
|
|
11267
|
+
load: () => import("./markdown-B1lBrqaF.js"),
|
|
11269
11268
|
options: options_default5,
|
|
11270
11269
|
languages: languages_evaluate_default7,
|
|
11271
11270
|
parsers: [
|
|
@@ -11276,11 +11275,11 @@ var init_prettier = __esmMin((() => {
|
|
|
11276
11275
|
printers: ["mdast"]
|
|
11277
11276
|
}, {
|
|
11278
11277
|
name: "meriyah",
|
|
11279
|
-
load: () => import("./meriyah-
|
|
11278
|
+
load: () => import("./meriyah-B5wbO5kj.js"),
|
|
11280
11279
|
parsers: ["meriyah"]
|
|
11281
11280
|
}, {
|
|
11282
11281
|
name: "postcss",
|
|
11283
|
-
load: () => import("./postcss-
|
|
11282
|
+
load: () => import("./postcss-DuOoF7OX.js"),
|
|
11284
11283
|
options: options_default,
|
|
11285
11284
|
languages: languages_evaluate_default,
|
|
11286
11285
|
parsers: [
|
|
@@ -11291,11 +11290,11 @@ var init_prettier = __esmMin((() => {
|
|
|
11291
11290
|
printers: ["postcss"]
|
|
11292
11291
|
}, {
|
|
11293
11292
|
name: "typescript",
|
|
11294
|
-
load: () => import("./typescript-
|
|
11293
|
+
load: () => import("./typescript-Cvdwz3-D.js"),
|
|
11295
11294
|
parsers: ["typescript"]
|
|
11296
11295
|
}, {
|
|
11297
11296
|
name: "yaml",
|
|
11298
|
-
load: () => import("./yaml-
|
|
11297
|
+
load: () => import("./yaml-Dd4aShtG.js"),
|
|
11299
11298
|
options: options_default6,
|
|
11300
11299
|
languages: languages_evaluate_default8,
|
|
11301
11300
|
parsers: ["yaml"],
|
|
@@ -16141,7 +16140,7 @@ ${codeblock}`, options7);
|
|
|
16141
16140
|
slash = path10.sep === "\\" ? (filePath) => method_replace_all_default(0, filePath, "\\", "/") : (filePath) => filePath;
|
|
16142
16141
|
object_omit_default = omit;
|
|
16143
16142
|
get_file_info_default = getFileInfo;
|
|
16144
|
-
version_evaluate_default = "3.9.
|
|
16143
|
+
version_evaluate_default = "3.9.5";
|
|
16145
16144
|
public_exports = {};
|
|
16146
16145
|
__export(public_exports, {
|
|
16147
16146
|
addDanglingComment: () => addDanglingComment,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-
|
|
1
|
+
import { i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-Do0Iorfu.js";
|
|
2
2
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
import { dirname, resolve } from "path";
|
|
5
5
|
import { readdirSync, statSync } from "fs";
|
|
6
6
|
import fs from "node:fs";
|
|
7
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.
|
|
7
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.1_prettie_98ae334cd105e01916eac934f27a76de/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
|
|
8
8
|
function expiringMap(duration) {
|
|
9
9
|
let map = /* @__PURE__ */ new Map();
|
|
10
10
|
return {
|
|
@@ -4199,7 +4199,7 @@ function resolveCssFrom(base, id) {
|
|
|
4199
4199
|
return cssResolver.resolveSync({}, base, id) || id;
|
|
4200
4200
|
}
|
|
4201
4201
|
//#endregion
|
|
4202
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.
|
|
4202
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.1_prettie_98ae334cd105e01916eac934f27a76de/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs
|
|
4203
4203
|
function isNodeLike(value) {
|
|
4204
4204
|
return typeof (value === null || value === void 0 ? void 0 : value.type) === "string";
|
|
4205
4205
|
}
|
|
@@ -4278,7 +4278,7 @@ function cacheForDirs(cache, inputDir, value, targetDir, makeKey = (dir) => dir)
|
|
|
4278
4278
|
}
|
|
4279
4279
|
}
|
|
4280
4280
|
//#endregion
|
|
4281
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.
|
|
4281
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.1_prettie_98ae334cd105e01916eac934f27a76de/node_modules/prettier-plugin-tailwindcss/dist/sorter-BZkvDMjt.mjs
|
|
4282
4282
|
let seen = /* @__PURE__ */ new Set();
|
|
4283
4283
|
function warn(key, arg, ...args) {
|
|
4284
4284
|
if (seen.has(key)) return;
|
|
@@ -4377,14 +4377,14 @@ async function getTailwindConfig(options) {
|
|
|
4377
4377
|
if (!stylesheet && !(mod === null || mod === void 0 ? void 0 : mod.__unstable__loadDesignSystem)) jsConfig = jsConfig ?? findClosestJsConfig(inputDir);
|
|
4378
4378
|
if (jsConfig) {
|
|
4379
4379
|
if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
|
|
4380
|
-
const { loadV3 } = await import("./v3-D-mr2VVh-
|
|
4380
|
+
const { loadV3 } = await import("./v3-D-mr2VVh-C_WUxELf.js");
|
|
4381
4381
|
return loadV3(pkgDir, jsConfig);
|
|
4382
4382
|
});
|
|
4383
4383
|
error("explicit-stylesheet-and-config-together", base, `You have specified a Tailwind CSS stylesheet and a Tailwind CSS config at the same time. Use stylesheetPath unless you are using v3. Preferring the stylesheet.`);
|
|
4384
4384
|
}
|
|
4385
4385
|
if (mod && !mod.__unstable__loadDesignSystem) {
|
|
4386
4386
|
if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
|
|
4387
|
-
const { loadV3 } = await import("./v3-D-mr2VVh-
|
|
4387
|
+
const { loadV3 } = await import("./v3-D-mr2VVh-C_WUxELf.js");
|
|
4388
4388
|
return loadV3(pkgDir, jsConfig);
|
|
4389
4389
|
});
|
|
4390
4390
|
mod = null;
|
|
@@ -4392,7 +4392,7 @@ async function getTailwindConfig(options) {
|
|
|
4392
4392
|
}
|
|
4393
4393
|
if (mod && mod.__unstable__loadDesignSystem && pkgDir) stylesheet ?? (stylesheet = `${pkgDir}/theme.css`);
|
|
4394
4394
|
return pathToApiMap.remember(`${pkgDir}:${stylesheet}`, async () => {
|
|
4395
|
-
const { loadV4 } = await import("./v4-C-HWEQJm-
|
|
4395
|
+
const { loadV4 } = await import("./v4-C-HWEQJm-C0ut0NwJ.js");
|
|
4396
4396
|
return loadV4(mod, stylesheet);
|
|
4397
4397
|
});
|
|
4398
4398
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-
|
|
1
|
+
import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-DFTeIPU-.js";
|
|
2
2
|
export { createSorter, getTailwindConfig };
|