@so1ve/prettier-plugin-toml 3.8.1 → 3.9.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/dist/index.js +14 -21
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -26,11 +26,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
//#endregion
|
|
27
27
|
|
|
28
28
|
//#region ../../node_modules/.pnpm/@taplo+lib@0.5.0/node_modules/@taplo/lib/dist/index.js
|
|
29
|
-
var require_dist = __commonJS({ "../../node_modules/.pnpm/@taplo+lib@0.5.0/node_modules/@taplo/lib/dist/index.js"(exports, module) {
|
|
29
|
+
var require_dist = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@taplo+lib@0.5.0/node_modules/@taplo/lib/dist/index.js": ((exports, module) => {
|
|
30
30
|
(function(Z, U) {
|
|
31
31
|
typeof exports == "object" && typeof module < "u" ? U(exports) : typeof define == "function" && define.amd ? define(["exports"], U) : (Z = typeof globalThis < "u" ? globalThis : Z || self, U(Z.taplo = {}));
|
|
32
|
-
})(
|
|
33
|
-
"use strict";
|
|
32
|
+
})(exports, function(Z) {
|
|
34
33
|
var U = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, X = { exports: {} };
|
|
35
34
|
(function(I, A) {
|
|
36
35
|
(function(g, C) {
|
|
@@ -359,7 +358,7 @@ ${I.stack}` : C;
|
|
|
359
358
|
h.__wbindgen_free(C, E, 1);
|
|
360
359
|
}
|
|
361
360
|
}, I.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
362
|
-
const A = new Error();
|
|
361
|
+
const A = /* @__PURE__ */ new Error();
|
|
363
362
|
return Q(A);
|
|
364
363
|
}, I.wbg.__wbg_stack_658279fe44541cf6 = function(A, g) {
|
|
365
364
|
const C = B(g).stack, E = j(C, h.__wbindgen_malloc, h.__wbindgen_realloc), S = N;
|
|
@@ -483,7 +482,7 @@ ${I.stack}` : C;
|
|
|
483
482
|
const g = B(A).toISOString();
|
|
484
483
|
return Q(g);
|
|
485
484
|
}, I.wbg.__wbg_new_87d841e70661f6e9 = function() {
|
|
486
|
-
const A = new Object();
|
|
485
|
+
const A = /* @__PURE__ */ new Object();
|
|
487
486
|
return Q(A);
|
|
488
487
|
}, I.wbg.__wbg_iterator_364187e1ee96b750 = function() {
|
|
489
488
|
return Q(Symbol.iterator);
|
|
@@ -783,18 +782,21 @@ ${I.stack}` : C;
|
|
|
783
782
|
}
|
|
784
783
|
Z.Taplo = M;
|
|
785
784
|
});
|
|
786
|
-
} });
|
|
785
|
+
}) });
|
|
787
786
|
|
|
788
787
|
//#endregion
|
|
789
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-toml@2.0.
|
|
788
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-toml@2.0.6_prettier@3.6.2/node_modules/prettier-plugin-toml/lib/languages.js
|
|
789
|
+
var import_dist = /* @__PURE__ */ __toESM(require_dist(), 1);
|
|
790
790
|
const languages = [{
|
|
791
791
|
"name": "TOML",
|
|
792
792
|
"aceMode": "toml",
|
|
793
|
-
"since": "0.1.0",
|
|
794
793
|
"parsers": ["toml"],
|
|
795
794
|
"linguistLanguageId": 365,
|
|
796
795
|
"vscodeLanguageIds": ["toml"],
|
|
797
796
|
"extensions": [".toml"],
|
|
797
|
+
"tmScope": "source.toml",
|
|
798
|
+
"codemirrorMode": "toml",
|
|
799
|
+
"codemirrorMimeType": "text/x-toml",
|
|
798
800
|
"filenames": [
|
|
799
801
|
"Cargo.lock",
|
|
800
802
|
"Cargo.toml.orig",
|
|
@@ -803,14 +805,11 @@ const languages = [{
|
|
|
803
805
|
"pdm.lock",
|
|
804
806
|
"poetry.lock",
|
|
805
807
|
"uv.lock"
|
|
806
|
-
]
|
|
807
|
-
"tmScope": "source.toml",
|
|
808
|
-
"codemirrorMode": "toml",
|
|
809
|
-
"codemirrorMimeType": "text/x-toml"
|
|
808
|
+
]
|
|
810
809
|
}];
|
|
811
810
|
|
|
812
811
|
//#endregion
|
|
813
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-toml@2.0.
|
|
812
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-toml@2.0.6_prettier@3.6.2/node_modules/prettier-plugin-toml/lib/options.js
|
|
814
813
|
const prettierOptionsDefinitions = {
|
|
815
814
|
alignEntries: {
|
|
816
815
|
name: "alignEntries",
|
|
@@ -892,8 +891,7 @@ const prettierOptionsDefinitions = {
|
|
|
892
891
|
};
|
|
893
892
|
|
|
894
893
|
//#endregion
|
|
895
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-toml@2.0.
|
|
896
|
-
var import_dist = __toESM(require_dist(), 1);
|
|
894
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-toml@2.0.6_prettier@3.6.2/node_modules/prettier-plugin-toml/lib/index.js
|
|
897
895
|
const PLUGIN_NAME = "toml";
|
|
898
896
|
let taploIns;
|
|
899
897
|
async function format(code, options) {
|
|
@@ -920,11 +918,6 @@ const TomlPlugin = {
|
|
|
920
918
|
printers: { [PLUGIN_NAME]: { print: ({ node }) => node } },
|
|
921
919
|
options: prettierOptionsDefinitions
|
|
922
920
|
};
|
|
923
|
-
var lib_default = TomlPlugin;
|
|
924
|
-
|
|
925
|
-
//#endregion
|
|
926
|
-
//#region src/index.ts
|
|
927
|
-
var src_default = lib_default;
|
|
928
921
|
|
|
929
922
|
//#endregion
|
|
930
|
-
module.exports =
|
|
923
|
+
module.exports = TomlPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@so1ve/prettier-plugin-toml",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"author": "Ray <i@mk1.io> (https://github.com/so1ve)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Ray <i@mk1.io> (https://github.com/so1ve)"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"prettier-plugin-toml": "^2.0.
|
|
33
|
+
"prettier-plugin-toml": "^2.0.6"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"prettier": "^3"
|