oxfmt 0.44.0 → 0.46.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 +4 -4
- package/dist/{acorn-BnWlLI9w.js → acorn-K_XpABqm.js} +7 -7
- package/dist/{angular-BS7_jn7o.js → angular-B2OHapHD.js} +1303 -1197
- package/dist/{apis-mHnrEtPz.js → apis-6K9lp4qz.js} +3 -3
- package/dist/{babel-Fkr5EfJ9.js → babel-DA0BK-9N.js} +3 -3
- package/dist/{bindings-D8fqxEoQ.js → bindings-C2_LYpRs.js} +26 -26
- package/dist/{chunk-DSjvVL_1-BYdvZw3N.js → chunk-DSjvVL_1-DvmJ8i3j.js} +1 -1
- package/dist/cli-worker.d.ts +2 -2
- package/dist/cli-worker.js +1 -1
- package/dist/cli.js +33 -22
- package/dist/{dist-D4weCFEt.js → dist-D9mzAGVk.js} +16 -16
- package/dist/{estree-BdH1ynKb.js → estree-CvnLDdmw.js} +2 -2
- package/dist/{flow-JTvJzd2b.js → flow-BthqNux8.js} +1 -1
- package/dist/{glimmer-Dj-rhc3H.js → glimmer-0WQITj6v.js} +1 -1
- package/dist/{graphql-BTqRh-7l.js → graphql-CZVKp936.js} +5 -2
- package/dist/{html-cr_GTtzg.js → html-CC61hPUL.js} +1113 -1011
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/{jiti-Bb1dT6Cw-CnTrJOrf.js → jiti-Bb1dT6Cw-DpVi6yB1.js} +2 -2
- package/dist/{markdown-4I9EsAQD.js → markdown-BkJWkmO_.js} +1 -1
- package/dist/{meriyah-Dyll-d_f.js → meriyah-CIaAh_Jq.js} +1 -1
- package/dist/{migrate-prettier-CpiJRvlG.js → migrate-prettier-nRex0Mh1.js} +1 -1
- package/dist/{postcss-k2aCwkzC.js → postcss-C8WoCp9x.js} +9 -6
- package/dist/{prettier-Dwwk1Fyx.js → prettier-Bmp66eXw.js} +17 -17
- package/dist/{resolve-pWjAK-4f-ColMfOaZ.js → resolve-pWjAK-4f-BnvQ49el.js} +2 -2
- package/dist/{sorter-BZkvDMjt-BJdi7rG8.js → sorter-BZkvDMjt-CgLjPuXI.js} +7 -7
- package/dist/{sorter-DNWmw8Iu.js → sorter-C3ZRVYzK.js} +2 -2
- package/dist/{typescript-G7g7T3yt.js → typescript-Cg8onQ4r.js} +1 -1
- package/dist/{utils-D8dQkKEd-BtAa7w-M.js → utils-D8dQkKEd-CoIwOuFZ.js} +1 -1
- package/dist/{v3-D-mr2VVh-CisVsFM0.js → v3-D-mr2VVh-DA8uo048.js} +6 -7
- package/dist/{v4-C-HWEQJm-CbHL6UrB.js → v4-C-HWEQJm-olIGVWd7.js} +5 -5
- package/dist/{yaml-BID5Twob.js → yaml-CTxkSwZx.js} +25 -10
- package/package.json +20 -20
package/dist/index.d.ts
CHANGED
|
@@ -178,6 +178,7 @@ interface Oxfmtrc {
|
|
|
178
178
|
* For JSX, you can set the `jsxSingleQuote` option.
|
|
179
179
|
*
|
|
180
180
|
* - Default: `false`
|
|
181
|
+
* - Overrides `.editorconfig.quote_type`
|
|
181
182
|
*/
|
|
182
183
|
singleQuote?: boolean;
|
|
183
184
|
/**
|
|
@@ -455,6 +456,7 @@ interface FormatConfig {
|
|
|
455
456
|
* For JSX, you can set the `jsxSingleQuote` option.
|
|
456
457
|
*
|
|
457
458
|
* - Default: `false`
|
|
459
|
+
* - Overrides `.editorconfig.quote_type`
|
|
458
460
|
*/
|
|
459
461
|
singleQuote?: boolean;
|
|
460
462
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as jsTextToDoc$1, t as format$1 } from "./bindings-
|
|
2
|
-
import { a as sortTailwindClasses, i as resolvePlugins, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-
|
|
1
|
+
import { n as jsTextToDoc$1, t as format$1 } from "./bindings-C2_LYpRs.js";
|
|
2
|
+
import { a as sortTailwindClasses, i as resolvePlugins, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-6K9lp4qz.js";
|
|
3
3
|
//#region src-js/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* Define an oxfmt configuration with type inference.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as __toESM, i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-
|
|
1
|
+
import { a as __toESM, i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-DvmJ8i3j.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.
|
|
3
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.3/node_modules/prettier-plugin-tailwindcss/dist/jiti-Bb1dT6Cw.mjs
|
|
4
4
|
var require_jiti = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
5
|
(() => {
|
|
6
6
|
var e = { "./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive": function(e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/markdown.mjs
|
|
2
2
|
var El = Object.create;
|
|
3
3
|
var Ft = Object.defineProperty;
|
|
4
4
|
var Cl = Object.getOwnPropertyDescriptor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/meriyah.mjs
|
|
2
2
|
var q2 = Object.defineProperty;
|
|
3
3
|
var gt = (e, t) => {
|
|
4
4
|
for (var n in t) q2(e, n, {
|
|
@@ -9,7 +9,7 @@ import { readFile } from "node:fs/promises";
|
|
|
9
9
|
async function runMigratePrettier() {
|
|
10
10
|
const cwd = process.cwd();
|
|
11
11
|
if (await hasOxfmtrcFile(cwd)) return exitWithError("Oxfmt configuration file already exists.");
|
|
12
|
-
const { resolveConfigFile, resolveConfig } = await import("./prettier-
|
|
12
|
+
const { resolveConfigFile, resolveConfig } = await import("./prettier-Bmp66eXw.js");
|
|
13
13
|
const prettierConfigPath = await resolveConfigFile(join(cwd, "dummy.js"));
|
|
14
14
|
if (!prettierConfigPath) {
|
|
15
15
|
console.log("No Prettier configuration file found.");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-DrSxFLj_.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/postcss.mjs
|
|
3
3
|
var postcss_exports = /* @__PURE__ */ __exportAll({
|
|
4
4
|
default: () => _l,
|
|
5
5
|
languages: () => Si,
|
|
@@ -2769,10 +2769,10 @@ var ke = w((lr, Oa) => {
|
|
|
2769
2769
|
for (var s in e) this[s] = e[s];
|
|
2770
2770
|
var r = e.spaces;
|
|
2771
2771
|
r = r === void 0 ? {} : r;
|
|
2772
|
-
var n = r.before, i = n === void 0 ? "" : n, o = r.after;
|
|
2772
|
+
var n = r.before, i = n === void 0 ? "" : n, o = r.after, u = o === void 0 ? "" : o;
|
|
2773
2773
|
this.spaces = {
|
|
2774
2774
|
before: i,
|
|
2775
|
-
after:
|
|
2775
|
+
after: u
|
|
2776
2776
|
};
|
|
2777
2777
|
}
|
|
2778
2778
|
return t.prototype.remove = function() {
|
|
@@ -4717,7 +4717,8 @@ var nl = w((rb, sl) => {
|
|
|
4717
4717
|
}
|
|
4718
4718
|
sl.exports = class {
|
|
4719
4719
|
constructor(e, s) {
|
|
4720
|
-
|
|
4720
|
+
let r = { loose: !1 };
|
|
4721
|
+
this.cache = [], this.input = e, this.options = Object.assign({}, r, s), this.position = 0, this.unbalanced = 0, this.root = new yy();
|
|
4721
4722
|
let n = new gy();
|
|
4722
4723
|
this.root.append(n), this.current = n, this.tokens = Ay(e, this.options);
|
|
4723
4724
|
}
|
|
@@ -5813,8 +5814,10 @@ function ts(t, e) {
|
|
|
5813
5814
|
if (e.parser !== "scss") return !1;
|
|
5814
5815
|
let { node: s } = t;
|
|
5815
5816
|
if (s.groups.length === 0) return !1;
|
|
5816
|
-
let r = t.
|
|
5817
|
-
|
|
5817
|
+
let r = t.parent;
|
|
5818
|
+
if (r && r.type === "value-func" && r.value === "if") return !1;
|
|
5819
|
+
let n = t.grandparent;
|
|
5820
|
+
return !Zr(s) && !(n && Zr(n)) ? !1 : !!(t.findAncestor((o) => o.type === "css-decl")?.prop?.startsWith("$") || Zr(n) || n.type === "value-func");
|
|
5818
5821
|
}
|
|
5819
5822
|
function Ze(t) {
|
|
5820
5823
|
return t.type === "value-comment" && t.inline;
|
|
@@ -11,7 +11,7 @@ import process2 from "process";
|
|
|
11
11
|
import assert3, { ok, strictEqual } from "assert";
|
|
12
12
|
import v8 from "v8";
|
|
13
13
|
import { format, inspect } from "util";
|
|
14
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
14
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/doc.mjs
|
|
15
15
|
var doc_exports = /* @__PURE__ */ __exportAll({
|
|
16
16
|
builders: () => builders,
|
|
17
17
|
default: () => public_exports$1,
|
|
@@ -1048,7 +1048,7 @@ var utils = {
|
|
|
1048
1048
|
canBreak
|
|
1049
1049
|
};
|
|
1050
1050
|
//#endregion
|
|
1051
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1051
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/index.mjs
|
|
1052
1052
|
const require = createRequire(import.meta.url);
|
|
1053
1053
|
dirname(fileURLToPath(import.meta.url));
|
|
1054
1054
|
var __create = Object.create;
|
|
@@ -11340,7 +11340,7 @@ async function loadConfigFromPackageYaml(file) {
|
|
|
11340
11340
|
var parseYaml;
|
|
11341
11341
|
async function loadYaml(file) {
|
|
11342
11342
|
const content = await read_file_default(file);
|
|
11343
|
-
if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-
|
|
11343
|
+
if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-CTxkSwZx.js"));
|
|
11344
11344
|
try {
|
|
11345
11345
|
return parseYaml(content);
|
|
11346
11346
|
} catch (error) {
|
|
@@ -15156,7 +15156,7 @@ function createParsersAndPrinters(modules) {
|
|
|
15156
15156
|
};
|
|
15157
15157
|
}
|
|
15158
15158
|
var estreePlugin = createParsersAndPrinters([{
|
|
15159
|
-
importPlugin: () => import("./estree-
|
|
15159
|
+
importPlugin: () => import("./estree-CvnLDdmw.js"),
|
|
15160
15160
|
printers: ["estree", "estree-json"]
|
|
15161
15161
|
}]);
|
|
15162
15162
|
var options7 = {
|
|
@@ -15179,11 +15179,11 @@ var languages = [
|
|
|
15179
15179
|
];
|
|
15180
15180
|
var { parsers, printers } = createParsersAndPrinters([
|
|
15181
15181
|
{
|
|
15182
|
-
importPlugin: () => import("./acorn-
|
|
15182
|
+
importPlugin: () => import("./acorn-K_XpABqm.js"),
|
|
15183
15183
|
parsers: ["acorn", "espree"]
|
|
15184
15184
|
},
|
|
15185
15185
|
{
|
|
15186
|
-
importPlugin: () => import("./angular-
|
|
15186
|
+
importPlugin: () => import("./angular-B2OHapHD.js"),
|
|
15187
15187
|
parsers: [
|
|
15188
15188
|
"__ng_action",
|
|
15189
15189
|
"__ng_binding",
|
|
@@ -15192,7 +15192,7 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
15192
15192
|
]
|
|
15193
15193
|
},
|
|
15194
15194
|
{
|
|
15195
|
-
importPlugin: () => import("./babel-
|
|
15195
|
+
importPlugin: () => import("./babel-DA0BK-9N.js"),
|
|
15196
15196
|
parsers: [
|
|
15197
15197
|
"babel",
|
|
15198
15198
|
"babel-flow",
|
|
@@ -15211,21 +15211,21 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
15211
15211
|
]
|
|
15212
15212
|
},
|
|
15213
15213
|
{
|
|
15214
|
-
importPlugin: () => import("./flow-
|
|
15214
|
+
importPlugin: () => import("./flow-BthqNux8.js"),
|
|
15215
15215
|
parsers: ["flow"]
|
|
15216
15216
|
},
|
|
15217
15217
|
{
|
|
15218
|
-
importPlugin: () => import("./glimmer-
|
|
15218
|
+
importPlugin: () => import("./glimmer-0WQITj6v.js"),
|
|
15219
15219
|
parsers: ["glimmer"],
|
|
15220
15220
|
printers: ["glimmer"]
|
|
15221
15221
|
},
|
|
15222
15222
|
{
|
|
15223
|
-
importPlugin: () => import("./graphql-
|
|
15223
|
+
importPlugin: () => import("./graphql-CZVKp936.js"),
|
|
15224
15224
|
parsers: ["graphql"],
|
|
15225
15225
|
printers: ["graphql"]
|
|
15226
15226
|
},
|
|
15227
15227
|
{
|
|
15228
|
-
importPlugin: () => import("./html-
|
|
15228
|
+
importPlugin: () => import("./html-CC61hPUL.js"),
|
|
15229
15229
|
parsers: [
|
|
15230
15230
|
"html",
|
|
15231
15231
|
"angular",
|
|
@@ -15236,7 +15236,7 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
15236
15236
|
printers: ["html"]
|
|
15237
15237
|
},
|
|
15238
15238
|
{
|
|
15239
|
-
importPlugin: () => import("./markdown-
|
|
15239
|
+
importPlugin: () => import("./markdown-BkJWkmO_.js"),
|
|
15240
15240
|
parsers: [
|
|
15241
15241
|
"markdown",
|
|
15242
15242
|
"mdx",
|
|
@@ -15245,11 +15245,11 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
15245
15245
|
printers: ["mdast"]
|
|
15246
15246
|
},
|
|
15247
15247
|
{
|
|
15248
|
-
importPlugin: () => import("./meriyah-
|
|
15248
|
+
importPlugin: () => import("./meriyah-CIaAh_Jq.js"),
|
|
15249
15249
|
parsers: ["meriyah"]
|
|
15250
15250
|
},
|
|
15251
15251
|
{
|
|
15252
|
-
importPlugin: () => import("./postcss-
|
|
15252
|
+
importPlugin: () => import("./postcss-C8WoCp9x.js"),
|
|
15253
15253
|
parsers: [
|
|
15254
15254
|
"css",
|
|
15255
15255
|
"less",
|
|
@@ -15258,11 +15258,11 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
15258
15258
|
printers: ["postcss"]
|
|
15259
15259
|
},
|
|
15260
15260
|
{
|
|
15261
|
-
importPlugin: () => import("./typescript-
|
|
15261
|
+
importPlugin: () => import("./typescript-Cg8onQ4r.js"),
|
|
15262
15262
|
parsers: ["typescript"]
|
|
15263
15263
|
},
|
|
15264
15264
|
{
|
|
15265
|
-
importPlugin: () => import("./yaml-
|
|
15265
|
+
importPlugin: () => import("./yaml-CTxkSwZx.js"),
|
|
15266
15266
|
parsers: ["yaml"],
|
|
15267
15267
|
printers: ["yaml"]
|
|
15268
15268
|
}
|
|
@@ -15369,7 +15369,7 @@ async function getParser(file, options8) {
|
|
|
15369
15369
|
return infer_parser_default({ plugins }, { physicalFile: file });
|
|
15370
15370
|
}
|
|
15371
15371
|
var get_file_info_default = getFileInfo;
|
|
15372
|
-
var version_evaluate_default = "3.8.
|
|
15372
|
+
var version_evaluate_default = "3.8.3";
|
|
15373
15373
|
var public_exports = {};
|
|
15374
15374
|
__export(public_exports, {
|
|
15375
15375
|
addDanglingComment: () => addDanglingComment,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-
|
|
1
|
+
import { i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-DvmJ8i3j.js";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
3
|
import fs from "node:fs";
|
|
4
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.
|
|
4
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.3/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
|
|
5
5
|
function expiringMap(duration) {
|
|
6
6
|
let map = /* @__PURE__ */ new Map();
|
|
7
7
|
return {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as resolveJsFrom, t as expiringMap } from "./resolve-pWjAK-4f-
|
|
2
|
-
import { n as cacheForDirs, t as bigSign } from "./utils-D8dQkKEd-
|
|
3
|
-
import * as path from "node:path";
|
|
1
|
+
import { a as resolveJsFrom, t as expiringMap } from "./resolve-pWjAK-4f-BnvQ49el.js";
|
|
2
|
+
import { n as cacheForDirs, t as bigSign } from "./utils-D8dQkKEd-CoIwOuFZ.js";
|
|
4
3
|
import { pathToFileURL } from "node:url";
|
|
4
|
+
import * as path from "node:path";
|
|
5
5
|
import { dirname, resolve } from "path";
|
|
6
6
|
import { readdirSync, statSync } from "fs";
|
|
7
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.
|
|
7
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.3/node_modules/prettier-plugin-tailwindcss/dist/sorter-BZkvDMjt.mjs
|
|
8
8
|
let seen = /* @__PURE__ */ new Set();
|
|
9
9
|
function warn(key, arg, ...args) {
|
|
10
10
|
if (seen.has(key)) return;
|
|
@@ -103,14 +103,14 @@ async function getTailwindConfig(options) {
|
|
|
103
103
|
if (!stylesheet && !(mod === null || mod === void 0 ? void 0 : mod.__unstable__loadDesignSystem)) jsConfig = jsConfig ?? findClosestJsConfig(inputDir);
|
|
104
104
|
if (jsConfig) {
|
|
105
105
|
if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
|
|
106
|
-
const { loadV3 } = await import("./v3-D-mr2VVh-
|
|
106
|
+
const { loadV3 } = await import("./v3-D-mr2VVh-DA8uo048.js");
|
|
107
107
|
return loadV3(pkgDir, jsConfig);
|
|
108
108
|
});
|
|
109
109
|
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.`);
|
|
110
110
|
}
|
|
111
111
|
if (mod && !mod.__unstable__loadDesignSystem) {
|
|
112
112
|
if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
|
|
113
|
-
const { loadV3 } = await import("./v3-D-mr2VVh-
|
|
113
|
+
const { loadV3 } = await import("./v3-D-mr2VVh-DA8uo048.js");
|
|
114
114
|
return loadV3(pkgDir, jsConfig);
|
|
115
115
|
});
|
|
116
116
|
mod = null;
|
|
@@ -118,7 +118,7 @@ async function getTailwindConfig(options) {
|
|
|
118
118
|
}
|
|
119
119
|
if (mod && mod.__unstable__loadDesignSystem && pkgDir) stylesheet ?? (stylesheet = `${pkgDir}/theme.css`);
|
|
120
120
|
return pathToApiMap.remember(`${pkgDir}:${stylesheet}`, async () => {
|
|
121
|
-
const { loadV4 } = await import("./v4-C-HWEQJm-
|
|
121
|
+
const { loadV4 } = await import("./v4-C-HWEQJm-olIGVWd7.js");
|
|
122
122
|
return loadV4(mod, stylesheet);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./resolve-pWjAK-4f-
|
|
2
|
-
import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-
|
|
1
|
+
import "./resolve-pWjAK-4f-BnvQ49el.js";
|
|
2
|
+
import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-CgLjPuXI.js";
|
|
3
3
|
export { createSorter, getTailwindConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/typescript.mjs
|
|
2
2
|
var ty = Object.defineProperty;
|
|
3
3
|
var hd = (e, t) => {
|
|
4
4
|
for (var a in t) ty(e, a, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as path from "node:path";
|
|
2
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.3/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs
|
|
3
3
|
function isNodeLike(value) {
|
|
4
4
|
return typeof (value === null || value === void 0 ? void 0 : value.type) === "string";
|
|
5
5
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as __toESM, i as __require, n as __esmMin, t as __commonJSMin } from "./chunk-DSjvVL_1-
|
|
2
|
-
import { t as bigSign } from "./utils-D8dQkKEd-
|
|
3
|
-
import { t as createJiti } from "./jiti-Bb1dT6Cw-
|
|
4
|
-
import * as path from "node:path";
|
|
1
|
+
import { a as __toESM, i as __require, n as __esmMin, t as __commonJSMin } from "./chunk-DSjvVL_1-DvmJ8i3j.js";
|
|
2
|
+
import { t as bigSign } from "./utils-D8dQkKEd-CoIwOuFZ.js";
|
|
3
|
+
import { t as createJiti } from "./jiti-Bb1dT6Cw-DpVi6yB1.js";
|
|
5
4
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
6
|
-
|
|
5
|
+
import * as path from "node:path";
|
|
6
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.3/node_modules/prettier-plugin-tailwindcss/dist/v3-D-mr2VVh.mjs
|
|
7
7
|
var getFilename, __filename;
|
|
8
8
|
var init_esm_shims = __esmMin((() => {
|
|
9
9
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -12029,10 +12029,9 @@ var require_corePlugins = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12029
12029
|
return { "--tw-gradient-from-position": value };
|
|
12030
12030
|
} }, positionOptions);
|
|
12031
12031
|
matchUtilities({ via: (value) => {
|
|
12032
|
-
let transparentToValue = transparentTo(value);
|
|
12033
12032
|
return {
|
|
12034
12033
|
"@defaults gradient-color-stops": {},
|
|
12035
|
-
"--tw-gradient-to": `${
|
|
12034
|
+
"--tw-gradient-to": `${transparentTo(value)} var(--tw-gradient-to-position)`,
|
|
12036
12035
|
"--tw-gradient-stops": `var(--tw-gradient-from), ${(0, _toColorValue.default)(value)} var(--tw-gradient-via-position), var(--tw-gradient-to)`
|
|
12037
12036
|
};
|
|
12038
12037
|
} }, options);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as __exportAll } from "./chunk-DSjvVL_1-
|
|
2
|
-
import { a as resolveJsFrom, i as resolveCssFrom } from "./resolve-pWjAK-4f-
|
|
3
|
-
import { t as createJiti } from "./jiti-Bb1dT6Cw-
|
|
4
|
-
import * as path from "node:path";
|
|
1
|
+
import { r as __exportAll } from "./chunk-DSjvVL_1-DvmJ8i3j.js";
|
|
2
|
+
import { a as resolveJsFrom, i as resolveCssFrom } from "./resolve-pWjAK-4f-BnvQ49el.js";
|
|
3
|
+
import { t as createJiti } from "./jiti-Bb1dT6Cw-DpVi6yB1.js";
|
|
5
4
|
import { pathToFileURL } from "node:url";
|
|
5
|
+
import * as path from "node:path";
|
|
6
6
|
import * as fs from "node:fs/promises";
|
|
7
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.
|
|
7
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.3/node_modules/prettier-plugin-tailwindcss/dist/v4-C-HWEQJm.mjs
|
|
8
8
|
var l$1 = {
|
|
9
9
|
inherit: "inherit",
|
|
10
10
|
current: "currentcolor",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/yaml.mjs
|
|
2
2
|
var ki = Object.create;
|
|
3
3
|
var sn = Object.defineProperty;
|
|
4
4
|
var Pi = Object.getOwnPropertyDescriptor;
|
|
@@ -371,13 +371,16 @@ ${c}${l}${a}`;
|
|
|
371
371
|
if (typeof this.offset == "number") {
|
|
372
372
|
this.range = new xe(this.offset, this.offset + 1);
|
|
373
373
|
let n = e && wn(this.offset, e);
|
|
374
|
-
if (n)
|
|
375
|
-
|
|
376
|
-
end: {
|
|
374
|
+
if (n) {
|
|
375
|
+
let r = {
|
|
377
376
|
line: n.line,
|
|
378
377
|
col: n.col + 1
|
|
379
|
-
}
|
|
380
|
-
|
|
378
|
+
};
|
|
379
|
+
this.linePos = {
|
|
380
|
+
start: n,
|
|
381
|
+
end: r
|
|
382
|
+
};
|
|
383
|
+
}
|
|
381
384
|
delete this.offset;
|
|
382
385
|
} else this.range = this.source.range, this.linePos = this.source.rangeAsLinePos;
|
|
383
386
|
if (this.linePos) {
|
|
@@ -654,7 +657,10 @@ var Qr = ne((jr) => {
|
|
|
654
657
|
if (c < i + a) {
|
|
655
658
|
i > n && (c = i);
|
|
656
659
|
break;
|
|
657
|
-
} else if (!this.error)
|
|
660
|
+
} else if (!this.error) {
|
|
661
|
+
let h = "All collection items must start at the same column";
|
|
662
|
+
this.error = new u.YAMLSyntaxError(this, h);
|
|
663
|
+
}
|
|
658
664
|
}
|
|
659
665
|
if (o.type === u.Type.SEQ_ITEM) {
|
|
660
666
|
if (l !== "-") {
|
|
@@ -664,7 +670,10 @@ var Qr = ne((jr) => {
|
|
|
664
670
|
} else if (l === "-" && !this.error) {
|
|
665
671
|
let h = s[c + 1];
|
|
666
672
|
if (!h || h === `
|
|
667
|
-
` || h === " " || h === " ")
|
|
673
|
+
` || h === " " || h === " ") {
|
|
674
|
+
let d = "A collection cannot be both a mapping and a sequence";
|
|
675
|
+
this.error = new u.YAMLSyntaxError(this, d);
|
|
676
|
+
}
|
|
668
677
|
}
|
|
669
678
|
let g = r({
|
|
670
679
|
atLineStart: f,
|
|
@@ -943,7 +952,10 @@ var Qr = ne((jr) => {
|
|
|
943
952
|
}
|
|
944
953
|
} else if (r[l] !== `
|
|
945
954
|
`) {
|
|
946
|
-
if (m < a)
|
|
955
|
+
if (m < a) {
|
|
956
|
+
let g = "Block scalars with more-indented leading empty lines must use an explicit indentation indicator";
|
|
957
|
+
this.error = new u.YAMLSemanticError(this, g);
|
|
958
|
+
}
|
|
947
959
|
this.blockIndent = m;
|
|
948
960
|
} else m > a && (a = m);
|
|
949
961
|
r[l] === `
|
|
@@ -985,7 +997,10 @@ var Qr = ne((jr) => {
|
|
|
985
997
|
let f = new Ee();
|
|
986
998
|
o = f.parse({ src: s }, o), this.items.push(f);
|
|
987
999
|
}
|
|
988
|
-
if (c = u.Node.endOfIndent(s, o), c <= o + i && (a = s[c], c < o + i || a !== "]" && a !== "}"))
|
|
1000
|
+
if (c = u.Node.endOfIndent(s, o), c <= o + i && (a = s[c], c < o + i || a !== "]" && a !== "}")) {
|
|
1001
|
+
let f = "Insufficient indentation in flow collection";
|
|
1002
|
+
this.error = new u.YAMLSemanticError(this, f);
|
|
1003
|
+
}
|
|
989
1004
|
break;
|
|
990
1005
|
case ",":
|
|
991
1006
|
this.items.push({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxfmt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.0",
|
|
4
4
|
"description": "Formatter for the JavaScript Oxidation Compiler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"formatter",
|
|
@@ -74,24 +74,24 @@
|
|
|
74
74
|
},
|
|
75
75
|
"preferUnplugged": true,
|
|
76
76
|
"optionalDependencies": {
|
|
77
|
-
"@oxfmt/binding-darwin-arm64": "0.
|
|
78
|
-
"@oxfmt/binding-android-arm64": "0.
|
|
79
|
-
"@oxfmt/binding-win32-arm64-msvc": "0.
|
|
80
|
-
"@oxfmt/binding-linux-arm64-gnu": "0.
|
|
81
|
-
"@oxfmt/binding-linux-arm64-musl": "0.
|
|
82
|
-
"@oxfmt/binding-openharmony-arm64": "0.
|
|
83
|
-
"@oxfmt/binding-android-arm-eabi": "0.
|
|
84
|
-
"@oxfmt/binding-linux-arm-gnueabihf": "0.
|
|
85
|
-
"@oxfmt/binding-linux-arm-musleabihf": "0.
|
|
86
|
-
"@oxfmt/binding-win32-ia32-msvc": "0.
|
|
87
|
-
"@oxfmt/binding-linux-ppc64-gnu": "0.
|
|
88
|
-
"@oxfmt/binding-linux-riscv64-gnu": "0.
|
|
89
|
-
"@oxfmt/binding-linux-riscv64-musl": "0.
|
|
90
|
-
"@oxfmt/binding-linux-s390x-gnu": "0.
|
|
91
|
-
"@oxfmt/binding-darwin-x64": "0.
|
|
92
|
-
"@oxfmt/binding-win32-x64-msvc": "0.
|
|
93
|
-
"@oxfmt/binding-freebsd-x64": "0.
|
|
94
|
-
"@oxfmt/binding-linux-x64-gnu": "0.
|
|
95
|
-
"@oxfmt/binding-linux-x64-musl": "0.
|
|
77
|
+
"@oxfmt/binding-darwin-arm64": "0.46.0",
|
|
78
|
+
"@oxfmt/binding-android-arm64": "0.46.0",
|
|
79
|
+
"@oxfmt/binding-win32-arm64-msvc": "0.46.0",
|
|
80
|
+
"@oxfmt/binding-linux-arm64-gnu": "0.46.0",
|
|
81
|
+
"@oxfmt/binding-linux-arm64-musl": "0.46.0",
|
|
82
|
+
"@oxfmt/binding-openharmony-arm64": "0.46.0",
|
|
83
|
+
"@oxfmt/binding-android-arm-eabi": "0.46.0",
|
|
84
|
+
"@oxfmt/binding-linux-arm-gnueabihf": "0.46.0",
|
|
85
|
+
"@oxfmt/binding-linux-arm-musleabihf": "0.46.0",
|
|
86
|
+
"@oxfmt/binding-win32-ia32-msvc": "0.46.0",
|
|
87
|
+
"@oxfmt/binding-linux-ppc64-gnu": "0.46.0",
|
|
88
|
+
"@oxfmt/binding-linux-riscv64-gnu": "0.46.0",
|
|
89
|
+
"@oxfmt/binding-linux-riscv64-musl": "0.46.0",
|
|
90
|
+
"@oxfmt/binding-linux-s390x-gnu": "0.46.0",
|
|
91
|
+
"@oxfmt/binding-darwin-x64": "0.46.0",
|
|
92
|
+
"@oxfmt/binding-win32-x64-msvc": "0.46.0",
|
|
93
|
+
"@oxfmt/binding-freebsd-x64": "0.46.0",
|
|
94
|
+
"@oxfmt/binding-linux-x64-gnu": "0.46.0",
|
|
95
|
+
"@oxfmt/binding-linux-x64-musl": "0.46.0"
|
|
96
96
|
}
|
|
97
97
|
}
|