oxfmt 0.25.0 → 0.27.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/README.md +13 -2
- package/configuration_schema.json +4 -4
- package/dist/{acorn-T0n7CAjY.js → acorn-1eXwhSm3.js} +2 -2
- package/dist/acorn-B3s22XVH.js +3 -0
- package/dist/angular-Demm-HnE.js +3 -0
- package/dist/{angular-Gc5dpRT2.js → angular-cPIPFXzo.js} +9 -2
- package/dist/babel-BnYuG5RT.js +3 -0
- package/dist/{babel-fws1PA0B.js → babel-Ds1ilLK4.js} +1 -1
- package/dist/{bindings-DYx1RpVq.js → bindings-C0v1PUQP.js} +26 -26
- package/dist/cli-worker.d.ts +9 -10
- package/dist/cli-worker.js +1 -1
- package/dist/cli.js +6 -6
- package/dist/{dist-D7KmJMm5.js → dist--xku3Vyh.js} +608 -634
- package/dist/{estree-De2vQ5tK.js → estree-BHX6cYnM.js} +0 -2
- package/dist/flow-DSDrgZjz.js +3 -0
- package/dist/{flow-aAQN4RY4.js → flow-upegUFFJ.js} +0 -2
- package/dist/glimmer-CiQ8731-.js +3 -0
- package/dist/{glimmer-CSqT-tND.js → glimmer-CpvVy7zT.js} +0 -4
- package/dist/{html-izYVfIHI.js → html-CM5VwdIC.js} +1 -1
- package/dist/{html-BBMVAc8X.js → html-DfTbHn3r.js} +4 -6
- package/dist/index-i2LOdg4Y.d.ts +577 -0
- package/dist/index.d.ts +90 -1
- package/dist/index.js +10 -10
- package/dist/{init-BQYL9OnU.js → init-BlnymtNS.js} +1 -1
- package/dist/{markdown-DABqEb_P.js → markdown-XDdiHWR8.js} +3 -7
- package/dist/meriyah-HN0R1Vrs.js +3 -0
- package/dist/{migrate-prettier-U-FENV6b.js → migrate-prettier-DqmeJLCZ.js} +14 -10
- package/dist/{postcss--Cr0pe2N.js → postcss-B18KV238.js} +0 -2
- package/dist/{postcss-DvcG8_nz.js → postcss-CxtPsweC.js} +1 -1
- package/dist/{prettier-CGXSpcFw.js → prettier-BvPMcj5n.js} +172 -172
- package/dist/{prettier-DP_0xrbJ.js → prettier-Djjg2awD.js} +1 -1
- package/dist/{prettier-CPchlMSc.js → prettier-mQmaOZ_H.js} +24 -48
- package/dist/typescript-CIlbIYjH.js +3 -0
- package/package.json +18 -11
- package/dist/acorn-Brmq34Aq.js +0 -3
- package/dist/angular-Dka1HNDm.js +0 -3
- package/dist/babel-nZcctAia.js +0 -3
- package/dist/flow-BYCXmncj.js +0 -3
- package/dist/glimmer-Bd1WF-Jp.js +0 -3
- package/dist/index-DnOJUxBl.d.ts +0 -134
- package/dist/meriyah-C5Ztw13E.js +0 -3
- package/dist/typescript-HZ8R57sp.js +0 -3
- /package/dist/{graphql-BHIFTFgx.js → graphql-CMJOaAWJ.js} +0 -0
- /package/dist/{meriyah-sy3r0xoW.js → meriyah-DTpKkx5-.js} +0 -0
- /package/dist/{shared-CGfq9wr5.js → shared-BhroZgjV.js} +0 -0
- /package/dist/{typescript-rDRI3qQx.js → typescript-CYBlFpU0.js} +0 -0
- /package/dist/{yaml-Cv_-UuqV.js → yaml-BkUom8Ag.js} +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<
|
|
2
|
+
<br>
|
|
3
|
+
<br>
|
|
4
|
+
<a href="https://oxc.rs" target="_blank" rel="noopener noreferrer">
|
|
5
|
+
<picture>
|
|
6
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://oxc.rs/oxc-light.svg">
|
|
7
|
+
<source media="(prefers-color-scheme: light)" srcset="https://oxc.rs/oxc-dark.svg">
|
|
8
|
+
<img alt="Oxc logo" src="https://oxc.rs/oxc-dark.svg" height="60">
|
|
9
|
+
</picture>
|
|
10
|
+
</a>
|
|
11
|
+
<br>
|
|
12
|
+
<br>
|
|
13
|
+
<br>
|
|
3
14
|
</p>
|
|
4
15
|
|
|
5
16
|
<div align="center">
|
|
@@ -39,7 +50,7 @@ The Oxidation Compiler is creating a suite of high-performance tools for JavaScr
|
|
|
39
50
|
|
|
40
51
|
This is the formatter for oxc.
|
|
41
52
|
|
|
42
|
-
See [usage instructions](https://oxc.rs/docs/guide/usage/formatter
|
|
53
|
+
See [usage instructions](https://oxc.rs/docs/guide/usage/formatter).
|
|
43
54
|
|
|
44
55
|
Run
|
|
45
56
|
|
|
@@ -730,7 +730,7 @@
|
|
|
730
730
|
"type": "object",
|
|
731
731
|
"properties": {
|
|
732
732
|
"attributes": {
|
|
733
|
-
"description": "List of
|
|
733
|
+
"description": "List of additional attributes to sort beyond `class` and `className` (exact match).\n\nNOTE: Regex patterns are not yet supported.\n\n- Default: `[]`\n- Example: `[\"myClassProp\", \":class\"]`",
|
|
734
734
|
"type": [
|
|
735
735
|
"array",
|
|
736
736
|
"null"
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
"items": {
|
|
739
739
|
"type": "string"
|
|
740
740
|
},
|
|
741
|
-
"markdownDescription": "List of
|
|
741
|
+
"markdownDescription": "List of additional attributes to sort beyond `class` and `className` (exact match).\n\nNOTE: Regex patterns are not yet supported.\n\n- Default: `[]`\n- Example: `[\"myClassProp\", \":class\"]`"
|
|
742
742
|
},
|
|
743
743
|
"config": {
|
|
744
744
|
"description": "Path to your Tailwind CSS configuration file (v3).\n\nNOTE: Paths are resolved relative to the Oxfmt configuration file.\n\n- Default: Automatically find `\"tailwind.config.js\"`",
|
|
@@ -749,7 +749,7 @@
|
|
|
749
749
|
"markdownDescription": "Path to your Tailwind CSS configuration file (v3).\n\nNOTE: Paths are resolved relative to the Oxfmt configuration file.\n\n- Default: Automatically find `\"tailwind.config.js\"`"
|
|
750
750
|
},
|
|
751
751
|
"functions": {
|
|
752
|
-
"description": "List of custom function
|
|
752
|
+
"description": "List of custom function names whose arguments should be sorted (exact match).\n\nNOTE: Regex patterns are not yet supported.\n\n- Default: `[]`\n- Example: `[\"clsx\", \"cn\", \"cva\", \"tw\"]`",
|
|
753
753
|
"type": [
|
|
754
754
|
"array",
|
|
755
755
|
"null"
|
|
@@ -757,7 +757,7 @@
|
|
|
757
757
|
"items": {
|
|
758
758
|
"type": "string"
|
|
759
759
|
},
|
|
760
|
-
"markdownDescription": "List of custom function
|
|
760
|
+
"markdownDescription": "List of custom function names whose arguments should be sorted (exact match).\n\nNOTE: Regex patterns are not yet supported.\n\n- Default: `[]`\n- Example: `[\"clsx\", \"cn\", \"cva\", \"tw\"]`"
|
|
761
761
|
},
|
|
762
762
|
"preserveDuplicates": {
|
|
763
763
|
"description": "Preserve duplicate classes.\n\n- Default: `false`",
|
|
@@ -1169,7 +1169,7 @@ var Di = [
|
|
|
1169
1169
|
5: Me,
|
|
1170
1170
|
"5module": Me + " export import",
|
|
1171
1171
|
6: Me + " const class extends export import super"
|
|
1172
|
-
}, ji = /^in(stanceof)?$/, Ui =
|
|
1172
|
+
}, ji = /^in(stanceof)?$/, Ui = new RegExp("[" + mt + "]"), Gi = new RegExp("[" + mt + Mi + "]");
|
|
1173
1173
|
function je(e, t) {
|
|
1174
1174
|
for (var i = 65536, s = 0; s < t.length; s += 2) {
|
|
1175
1175
|
if (i += t[s], i > e) return !1;
|
|
@@ -1347,7 +1347,7 @@ var yt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, k = /(?:\s|\/\/.*|\/\*
|
|
|
1347
1347
|
return Ki.call(e) === "[object Array]";
|
|
1348
1348
|
}), pt = Object.create(null);
|
|
1349
1349
|
function H(e) {
|
|
1350
|
-
return pt[e] || (pt[e] =
|
|
1350
|
+
return pt[e] || (pt[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
1351
1351
|
}
|
|
1352
1352
|
function q(e) {
|
|
1353
1353
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
@@ -51,6 +51,7 @@ function un(t) {
|
|
|
51
51
|
function ue(t) {
|
|
52
52
|
return t.type === "TSNonNullExpression" && !un(t) ? ue(t.expression) : (t.type === "OptionalCallExpression" || t.type === "OptionalMemberExpression") && !un(t);
|
|
53
53
|
}
|
|
54
|
+
new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
|
|
54
55
|
var fn;
|
|
55
56
|
(function(t) {
|
|
56
57
|
t[t.Emulated = 0] = "Emulated", t[t.None = 2] = "None", t[t.ShadowDom = 3] = "ShadowDom", t[t.ExperimentalIsolatedShadowDom = 4] = "ExperimentalIsolatedShadowDom";
|
|
@@ -1949,7 +1950,13 @@ var er = Qi + zt + "?([^{]*)";
|
|
|
1949
1950
|
new RegExp(`${Yi}(${er})`, "gim");
|
|
1950
1951
|
var tr = ms + "-no-combinator";
|
|
1951
1952
|
new RegExp(`${tr}(?![^(]*\\))`, "g");
|
|
1952
|
-
|
|
1953
|
+
var gs = "%COMMENT%";
|
|
1954
|
+
new RegExp(gs, "g");
|
|
1955
|
+
new RegExp(`(\\s*(?:${gs}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`, "g");
|
|
1956
|
+
var nr = "%COMMA_IN_PLACEHOLDER%", sr = "%SEMI_IN_PLACEHOLDER%", ir = "%COLON_IN_PLACEHOLDER%";
|
|
1957
|
+
new RegExp(nr, "g");
|
|
1958
|
+
new RegExp(sr, "g");
|
|
1959
|
+
new RegExp(ir, "g");
|
|
1953
1960
|
var f;
|
|
1954
1961
|
(function(t) {
|
|
1955
1962
|
t[t.ListEnd = 0] = "ListEnd", t[t.Statement = 1] = "Statement", t[t.Variable = 2] = "Variable", t[t.ElementStart = 3] = "ElementStart", t[t.Element = 4] = "Element", t[t.Template = 5] = "Template", t[t.ElementEnd = 6] = "ElementEnd", t[t.ContainerStart = 7] = "ContainerStart", t[t.Container = 8] = "Container", t[t.ContainerEnd = 9] = "ContainerEnd", t[t.DisableBindings = 10] = "DisableBindings", t[t.ConditionalCreate = 11] = "ConditionalCreate", t[t.ConditionalBranchCreate = 12] = "ConditionalBranchCreate", t[t.Conditional = 13] = "Conditional", t[t.EnableBindings = 14] = "EnableBindings", t[t.Text = 15] = "Text", t[t.Listener = 16] = "Listener", t[t.InterpolateText = 17] = "InterpolateText", t[t.Binding = 18] = "Binding", t[t.Property = 19] = "Property", t[t.StyleProp = 20] = "StyleProp", t[t.ClassProp = 21] = "ClassProp", t[t.StyleMap = 22] = "StyleMap", t[t.ClassMap = 23] = "ClassMap", t[t.Advance = 24] = "Advance", t[t.Pipe = 25] = "Pipe", t[t.Attribute = 26] = "Attribute", t[t.ExtractedAttribute = 27] = "ExtractedAttribute", t[t.Defer = 28] = "Defer", t[t.DeferOn = 29] = "DeferOn", t[t.DeferWhen = 30] = "DeferWhen", t[t.I18nMessage = 31] = "I18nMessage", t[t.DomProperty = 32] = "DomProperty", t[t.Namespace = 33] = "Namespace", t[t.ProjectionDef = 34] = "ProjectionDef", t[t.Projection = 35] = "Projection", t[t.RepeaterCreate = 36] = "RepeaterCreate", t[t.Repeater = 37] = "Repeater", t[t.TwoWayProperty = 38] = "TwoWayProperty", t[t.TwoWayListener = 39] = "TwoWayListener", t[t.DeclareLet = 40] = "DeclareLet", t[t.StoreLet = 41] = "StoreLet", t[t.I18nStart = 42] = "I18nStart", t[t.I18n = 43] = "I18n", t[t.I18nEnd = 44] = "I18nEnd", t[t.I18nExpression = 45] = "I18nExpression", t[t.I18nApply = 46] = "I18nApply", t[t.IcuStart = 47] = "IcuStart", t[t.IcuEnd = 48] = "IcuEnd", t[t.IcuPlaceholder = 49] = "IcuPlaceholder", t[t.I18nContext = 50] = "I18nContext", t[t.I18nAttributes = 51] = "I18nAttributes", t[t.SourceLocation = 52] = "SourceLocation", t[t.Animation = 53] = "Animation", t[t.AnimationString = 54] = "AnimationString", t[t.AnimationBinding = 55] = "AnimationBinding", t[t.AnimationListener = 56] = "AnimationListener", t[t.Control = 57] = "Control", t[t.ControlCreate = 58] = "ControlCreate";
|
|
@@ -2116,7 +2123,7 @@ var Kn;
|
|
|
2116
2123
|
})(Kn || (Kn = {}));
|
|
2117
2124
|
var xs = ` \f
|
|
2118
2125
|
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`;
|
|
2119
|
-
|
|
2126
|
+
new RegExp(`[^${xs}]`);
|
|
2120
2127
|
new RegExp(`[${xs}]{2,}`, "g");
|
|
2121
2128
|
var h;
|
|
2122
2129
|
(function(t) {
|
|
@@ -910,7 +910,7 @@ function $e(a) {
|
|
|
910
910
|
function Gt(a) {
|
|
911
911
|
return dt[a];
|
|
912
912
|
}
|
|
913
|
-
var bt = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", Xt = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Pi =
|
|
913
|
+
var bt = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", Xt = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Pi = new RegExp("[" + bt + "]"), gi = new RegExp("[" + bt + Xt + "]");
|
|
914
914
|
bt = Xt = null;
|
|
915
915
|
var Yt = [
|
|
916
916
|
0,
|
|
@@ -58,7 +58,7 @@ function requireNative() {
|
|
|
58
58
|
try {
|
|
59
59
|
const binding = require("@oxfmt/android-arm64");
|
|
60
60
|
const bindingPackageVersion = require("@oxfmt/android-arm64/package.json").version;
|
|
61
|
-
if (bindingPackageVersion !== "0.
|
|
61
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
62
62
|
return binding;
|
|
63
63
|
} catch (e) {
|
|
64
64
|
loadErrors.push(e);
|
|
@@ -72,7 +72,7 @@ function requireNative() {
|
|
|
72
72
|
try {
|
|
73
73
|
const binding = require("@oxfmt/android-arm-eabi");
|
|
74
74
|
const bindingPackageVersion = require("@oxfmt/android-arm-eabi/package.json").version;
|
|
75
|
-
if (bindingPackageVersion !== "0.
|
|
75
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
76
76
|
return binding;
|
|
77
77
|
} catch (e) {
|
|
78
78
|
loadErrors.push(e);
|
|
@@ -87,7 +87,7 @@ function requireNative() {
|
|
|
87
87
|
try {
|
|
88
88
|
const binding = require("@oxfmt/win32-x64-gnu");
|
|
89
89
|
const bindingPackageVersion = require("@oxfmt/win32-x64-gnu/package.json").version;
|
|
90
|
-
if (bindingPackageVersion !== "0.
|
|
90
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
91
91
|
return binding;
|
|
92
92
|
} catch (e) {
|
|
93
93
|
loadErrors.push(e);
|
|
@@ -101,7 +101,7 @@ function requireNative() {
|
|
|
101
101
|
try {
|
|
102
102
|
const binding = require("@oxfmt/win32-x64");
|
|
103
103
|
const bindingPackageVersion = require("@oxfmt/win32-x64/package.json").version;
|
|
104
|
-
if (bindingPackageVersion !== "0.
|
|
104
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
105
105
|
return binding;
|
|
106
106
|
} catch (e) {
|
|
107
107
|
loadErrors.push(e);
|
|
@@ -116,7 +116,7 @@ function requireNative() {
|
|
|
116
116
|
try {
|
|
117
117
|
const binding = require("@oxfmt/win32-ia32");
|
|
118
118
|
const bindingPackageVersion = require("@oxfmt/win32-ia32/package.json").version;
|
|
119
|
-
if (bindingPackageVersion !== "0.
|
|
119
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
120
120
|
return binding;
|
|
121
121
|
} catch (e) {
|
|
122
122
|
loadErrors.push(e);
|
|
@@ -130,7 +130,7 @@ function requireNative() {
|
|
|
130
130
|
try {
|
|
131
131
|
const binding = require("@oxfmt/win32-arm64");
|
|
132
132
|
const bindingPackageVersion = require("@oxfmt/win32-arm64/package.json").version;
|
|
133
|
-
if (bindingPackageVersion !== "0.
|
|
133
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
134
134
|
return binding;
|
|
135
135
|
} catch (e) {
|
|
136
136
|
loadErrors.push(e);
|
|
@@ -145,7 +145,7 @@ function requireNative() {
|
|
|
145
145
|
try {
|
|
146
146
|
const binding = require("@oxfmt/darwin-universal");
|
|
147
147
|
const bindingPackageVersion = require("@oxfmt/darwin-universal/package.json").version;
|
|
148
|
-
if (bindingPackageVersion !== "0.
|
|
148
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
149
149
|
return binding;
|
|
150
150
|
} catch (e) {
|
|
151
151
|
loadErrors.push(e);
|
|
@@ -159,7 +159,7 @@ function requireNative() {
|
|
|
159
159
|
try {
|
|
160
160
|
const binding = require("@oxfmt/darwin-x64");
|
|
161
161
|
const bindingPackageVersion = require("@oxfmt/darwin-x64/package.json").version;
|
|
162
|
-
if (bindingPackageVersion !== "0.
|
|
162
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
163
163
|
return binding;
|
|
164
164
|
} catch (e) {
|
|
165
165
|
loadErrors.push(e);
|
|
@@ -173,7 +173,7 @@ function requireNative() {
|
|
|
173
173
|
try {
|
|
174
174
|
const binding = require("@oxfmt/darwin-arm64");
|
|
175
175
|
const bindingPackageVersion = require("@oxfmt/darwin-arm64/package.json").version;
|
|
176
|
-
if (bindingPackageVersion !== "0.
|
|
176
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
177
177
|
return binding;
|
|
178
178
|
} catch (e) {
|
|
179
179
|
loadErrors.push(e);
|
|
@@ -188,7 +188,7 @@ function requireNative() {
|
|
|
188
188
|
try {
|
|
189
189
|
const binding = require("@oxfmt/freebsd-x64");
|
|
190
190
|
const bindingPackageVersion = require("@oxfmt/freebsd-x64/package.json").version;
|
|
191
|
-
if (bindingPackageVersion !== "0.
|
|
191
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
192
192
|
return binding;
|
|
193
193
|
} catch (e) {
|
|
194
194
|
loadErrors.push(e);
|
|
@@ -202,7 +202,7 @@ function requireNative() {
|
|
|
202
202
|
try {
|
|
203
203
|
const binding = require("@oxfmt/freebsd-arm64");
|
|
204
204
|
const bindingPackageVersion = require("@oxfmt/freebsd-arm64/package.json").version;
|
|
205
|
-
if (bindingPackageVersion !== "0.
|
|
205
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
206
206
|
return binding;
|
|
207
207
|
} catch (e) {
|
|
208
208
|
loadErrors.push(e);
|
|
@@ -217,7 +217,7 @@ function requireNative() {
|
|
|
217
217
|
try {
|
|
218
218
|
const binding = require("@oxfmt/linux-x64-musl");
|
|
219
219
|
const bindingPackageVersion = require("@oxfmt/linux-x64-musl/package.json").version;
|
|
220
|
-
if (bindingPackageVersion !== "0.
|
|
220
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
221
221
|
return binding;
|
|
222
222
|
} catch (e) {
|
|
223
223
|
loadErrors.push(e);
|
|
@@ -231,7 +231,7 @@ function requireNative() {
|
|
|
231
231
|
try {
|
|
232
232
|
const binding = require("@oxfmt/linux-x64-gnu");
|
|
233
233
|
const bindingPackageVersion = require("@oxfmt/linux-x64-gnu/package.json").version;
|
|
234
|
-
if (bindingPackageVersion !== "0.
|
|
234
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
235
235
|
return binding;
|
|
236
236
|
} catch (e) {
|
|
237
237
|
loadErrors.push(e);
|
|
@@ -246,7 +246,7 @@ function requireNative() {
|
|
|
246
246
|
try {
|
|
247
247
|
const binding = require("@oxfmt/linux-arm64-musl");
|
|
248
248
|
const bindingPackageVersion = require("@oxfmt/linux-arm64-musl/package.json").version;
|
|
249
|
-
if (bindingPackageVersion !== "0.
|
|
249
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
250
250
|
return binding;
|
|
251
251
|
} catch (e) {
|
|
252
252
|
loadErrors.push(e);
|
|
@@ -260,7 +260,7 @@ function requireNative() {
|
|
|
260
260
|
try {
|
|
261
261
|
const binding = require("@oxfmt/linux-arm64-gnu");
|
|
262
262
|
const bindingPackageVersion = require("@oxfmt/linux-arm64-gnu/package.json").version;
|
|
263
|
-
if (bindingPackageVersion !== "0.
|
|
263
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
264
264
|
return binding;
|
|
265
265
|
} catch (e) {
|
|
266
266
|
loadErrors.push(e);
|
|
@@ -275,7 +275,7 @@ function requireNative() {
|
|
|
275
275
|
try {
|
|
276
276
|
const binding = require("@oxfmt/linux-arm-musleabihf");
|
|
277
277
|
const bindingPackageVersion = require("@oxfmt/linux-arm-musleabihf/package.json").version;
|
|
278
|
-
if (bindingPackageVersion !== "0.
|
|
278
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
279
279
|
return binding;
|
|
280
280
|
} catch (e) {
|
|
281
281
|
loadErrors.push(e);
|
|
@@ -289,7 +289,7 @@ function requireNative() {
|
|
|
289
289
|
try {
|
|
290
290
|
const binding = require("@oxfmt/linux-arm-gnueabihf");
|
|
291
291
|
const bindingPackageVersion = require("@oxfmt/linux-arm-gnueabihf/package.json").version;
|
|
292
|
-
if (bindingPackageVersion !== "0.
|
|
292
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
293
293
|
return binding;
|
|
294
294
|
} catch (e) {
|
|
295
295
|
loadErrors.push(e);
|
|
@@ -304,7 +304,7 @@ function requireNative() {
|
|
|
304
304
|
try {
|
|
305
305
|
const binding = require("@oxfmt/linux-loong64-musl");
|
|
306
306
|
const bindingPackageVersion = require("@oxfmt/linux-loong64-musl/package.json").version;
|
|
307
|
-
if (bindingPackageVersion !== "0.
|
|
307
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
308
308
|
return binding;
|
|
309
309
|
} catch (e) {
|
|
310
310
|
loadErrors.push(e);
|
|
@@ -318,7 +318,7 @@ function requireNative() {
|
|
|
318
318
|
try {
|
|
319
319
|
const binding = require("@oxfmt/linux-loong64-gnu");
|
|
320
320
|
const bindingPackageVersion = require("@oxfmt/linux-loong64-gnu/package.json").version;
|
|
321
|
-
if (bindingPackageVersion !== "0.
|
|
321
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
322
322
|
return binding;
|
|
323
323
|
} catch (e) {
|
|
324
324
|
loadErrors.push(e);
|
|
@@ -333,7 +333,7 @@ function requireNative() {
|
|
|
333
333
|
try {
|
|
334
334
|
const binding = require("@oxfmt/linux-riscv64-musl");
|
|
335
335
|
const bindingPackageVersion = require("@oxfmt/linux-riscv64-musl/package.json").version;
|
|
336
|
-
if (bindingPackageVersion !== "0.
|
|
336
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
337
337
|
return binding;
|
|
338
338
|
} catch (e) {
|
|
339
339
|
loadErrors.push(e);
|
|
@@ -347,7 +347,7 @@ function requireNative() {
|
|
|
347
347
|
try {
|
|
348
348
|
const binding = require("@oxfmt/linux-riscv64-gnu");
|
|
349
349
|
const bindingPackageVersion = require("@oxfmt/linux-riscv64-gnu/package.json").version;
|
|
350
|
-
if (bindingPackageVersion !== "0.
|
|
350
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
351
351
|
return binding;
|
|
352
352
|
} catch (e) {
|
|
353
353
|
loadErrors.push(e);
|
|
@@ -362,7 +362,7 @@ function requireNative() {
|
|
|
362
362
|
try {
|
|
363
363
|
const binding = require("@oxfmt/linux-ppc64-gnu");
|
|
364
364
|
const bindingPackageVersion = require("@oxfmt/linux-ppc64-gnu/package.json").version;
|
|
365
|
-
if (bindingPackageVersion !== "0.
|
|
365
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
366
366
|
return binding;
|
|
367
367
|
} catch (e) {
|
|
368
368
|
loadErrors.push(e);
|
|
@@ -376,7 +376,7 @@ function requireNative() {
|
|
|
376
376
|
try {
|
|
377
377
|
const binding = require("@oxfmt/linux-s390x-gnu");
|
|
378
378
|
const bindingPackageVersion = require("@oxfmt/linux-s390x-gnu/package.json").version;
|
|
379
|
-
if (bindingPackageVersion !== "0.
|
|
379
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
380
380
|
return binding;
|
|
381
381
|
} catch (e) {
|
|
382
382
|
loadErrors.push(e);
|
|
@@ -391,7 +391,7 @@ function requireNative() {
|
|
|
391
391
|
try {
|
|
392
392
|
const binding = require("@oxfmt/openharmony-arm64");
|
|
393
393
|
const bindingPackageVersion = require("@oxfmt/openharmony-arm64/package.json").version;
|
|
394
|
-
if (bindingPackageVersion !== "0.
|
|
394
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
395
395
|
return binding;
|
|
396
396
|
} catch (e) {
|
|
397
397
|
loadErrors.push(e);
|
|
@@ -405,7 +405,7 @@ function requireNative() {
|
|
|
405
405
|
try {
|
|
406
406
|
const binding = require("@oxfmt/openharmony-x64");
|
|
407
407
|
const bindingPackageVersion = require("@oxfmt/openharmony-x64/package.json").version;
|
|
408
|
-
if (bindingPackageVersion !== "0.
|
|
408
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
409
409
|
return binding;
|
|
410
410
|
} catch (e) {
|
|
411
411
|
loadErrors.push(e);
|
|
@@ -419,7 +419,7 @@ function requireNative() {
|
|
|
419
419
|
try {
|
|
420
420
|
const binding = require("@oxfmt/openharmony-arm");
|
|
421
421
|
const bindingPackageVersion = require("@oxfmt/openharmony-arm/package.json").version;
|
|
422
|
-
if (bindingPackageVersion !== "0.
|
|
422
|
+
if (bindingPackageVersion !== "0.27.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.27.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
423
423
|
return binding;
|
|
424
424
|
} catch (e) {
|
|
425
425
|
loadErrors.push(e);
|
package/dist/cli-worker.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Options } from "prettier";
|
|
1
|
+
import { t as Options } from "./index-i2LOdg4Y.js";
|
|
3
2
|
|
|
4
3
|
//#region src-js/libs/prettier.d.ts
|
|
5
|
-
|
|
6
4
|
type FormatEmbeddedCodeParam = {
|
|
7
5
|
code: string;
|
|
8
|
-
|
|
9
|
-
options: Options
|
|
6
|
+
parserName: string;
|
|
7
|
+
options: Options & {
|
|
8
|
+
_tailwindPluginEnabled?: boolean;
|
|
9
|
+
};
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Format xxx-in-js code snippets
|
|
@@ -17,7 +17,7 @@ type FormatEmbeddedCodeParam = {
|
|
|
17
17
|
*/
|
|
18
18
|
declare function formatEmbeddedCode({
|
|
19
19
|
code,
|
|
20
|
-
|
|
20
|
+
parserName,
|
|
21
21
|
options
|
|
22
22
|
}: FormatEmbeddedCodeParam): Promise<string>;
|
|
23
23
|
type FormatFileParam = {
|
|
@@ -25,7 +25,7 @@ type FormatFileParam = {
|
|
|
25
25
|
parserName: string;
|
|
26
26
|
fileName: string;
|
|
27
27
|
options: Options & {
|
|
28
|
-
|
|
28
|
+
_tailwindPluginEnabled?: boolean;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
@@ -42,12 +42,11 @@ declare function formatFile({
|
|
|
42
42
|
interface SortTailwindClassesArgs {
|
|
43
43
|
filepath: string;
|
|
44
44
|
classes: string[];
|
|
45
|
-
options?:
|
|
46
|
-
experimentalTailwindcss?: TailwindcssOptions;
|
|
47
|
-
} & Record<string, unknown>;
|
|
45
|
+
options?: Record<string, unknown>;
|
|
48
46
|
}
|
|
49
47
|
/**
|
|
50
48
|
* Process Tailwind CSS classes found in JSX attributes.
|
|
49
|
+
* Option mapping (`experimentalTailwindcss.xxx` → `tailwindXxx`) is done in Rust side.
|
|
51
50
|
* @param args - Object containing filepath, classes, and options
|
|
52
51
|
* @returns Array of sorted class strings (same order/length as input)
|
|
53
52
|
*/
|
package/dist/cli-worker.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as sortTailwindClasses, n as formatFile, t as formatEmbeddedCode } from "./prettier-mQmaOZ_H.js";
|
|
2
2
|
|
|
3
3
|
export { formatEmbeddedCode, formatFile, sortTailwindClasses };
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as runCli } from "./bindings-
|
|
2
|
-
import {
|
|
1
|
+
import { n as runCli } from "./bindings-C0v1PUQP.js";
|
|
2
|
+
import { r as resolvePlugins } from "./prettier-mQmaOZ_H.js";
|
|
3
3
|
import Tinypool from "tinypool";
|
|
4
4
|
|
|
5
5
|
//#region src-js/cli/worker-proxy.ts
|
|
@@ -12,11 +12,11 @@ async function initExternalFormatter(numThreads) {
|
|
|
12
12
|
});
|
|
13
13
|
return resolvePlugins();
|
|
14
14
|
}
|
|
15
|
-
async function formatEmbeddedCode(options,
|
|
15
|
+
async function formatEmbeddedCode(options, parserName, code) {
|
|
16
16
|
return pool.run({
|
|
17
17
|
options,
|
|
18
18
|
code,
|
|
19
|
-
|
|
19
|
+
parserName
|
|
20
20
|
}, { name: "formatEmbeddedCode" });
|
|
21
21
|
}
|
|
22
22
|
async function formatFile(options, parserName, fileName, code) {
|
|
@@ -42,11 +42,11 @@ async function sortTailwindClasses(filepath, options, classes) {
|
|
|
42
42
|
if (!process.stdout.isTTY) process.stdout._handle?.setBlocking?.(true);
|
|
43
43
|
const [mode, exitCode] = await runCli(args, initExternalFormatter, formatEmbeddedCode, formatFile, sortTailwindClasses);
|
|
44
44
|
if (mode === "init") {
|
|
45
|
-
await import("./init-
|
|
45
|
+
await import("./init-BlnymtNS.js").then((m) => m.runInit());
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
48
|
if (mode === "migrate:prettier") {
|
|
49
|
-
await import("./migrate-prettier-
|
|
49
|
+
await import("./migrate-prettier-DqmeJLCZ.js").then((m) => m.runMigratePrettier());
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
52
|
process.exitCode = exitCode;
|