@so1ve/prettier-plugin-toml 3.8.1 → 3.9.1
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 +16 -21
- package/package.json +3 -3
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) {
|
|
@@ -81,8 +80,7 @@ var require_dist = __commonJS({ "../../node_modules/.pnpm/@taplo+lib@0.5.0/node_
|
|
|
81
80
|
});
|
|
82
81
|
};
|
|
83
82
|
}
|
|
84
|
-
|
|
85
|
-
g.Lsp = Y, g.convertEnv = E, g.prepareEnv = C;
|
|
83
|
+
g.Lsp = Object.freeze({ __proto__: null }), g.convertEnv = E, g.prepareEnv = C;
|
|
86
84
|
});
|
|
87
85
|
})(X, X.exports);
|
|
88
86
|
var V = X.exports;
|
|
@@ -293,8 +291,8 @@ ${I.stack}` : C;
|
|
|
293
291
|
try {
|
|
294
292
|
const E = h.__wbindgen_add_to_stack_pointer(-16);
|
|
295
293
|
h.taplowasmlsp_send(E, this.__wbg_ptr, Q(A));
|
|
296
|
-
var g = o()[E / 4 + 0]
|
|
297
|
-
if (
|
|
294
|
+
var g = o()[E / 4 + 0];
|
|
295
|
+
if (o()[E / 4 + 1]) throw R(g);
|
|
298
296
|
} finally {
|
|
299
297
|
h.__wbindgen_add_to_stack_pointer(16);
|
|
300
298
|
}
|
|
@@ -359,8 +357,7 @@ ${I.stack}` : C;
|
|
|
359
357
|
h.__wbindgen_free(C, E, 1);
|
|
360
358
|
}
|
|
361
359
|
}, I.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
362
|
-
|
|
363
|
-
return Q(A);
|
|
360
|
+
return Q(/* @__PURE__ */ new Error());
|
|
364
361
|
}, I.wbg.__wbg_stack_658279fe44541cf6 = function(A, g) {
|
|
365
362
|
const C = B(g).stack, E = j(C, h.__wbindgen_malloc, h.__wbindgen_realloc), S = N;
|
|
366
363
|
o()[A / 4 + 1] = S, o()[A / 4 + 0] = E;
|
|
@@ -483,8 +480,7 @@ ${I.stack}` : C;
|
|
|
483
480
|
const g = B(A).toISOString();
|
|
484
481
|
return Q(g);
|
|
485
482
|
}, I.wbg.__wbg_new_87d841e70661f6e9 = function() {
|
|
486
|
-
|
|
487
|
-
return Q(A);
|
|
483
|
+
return Q(/* @__PURE__ */ new Object());
|
|
488
484
|
}, I.wbg.__wbg_iterator_364187e1ee96b750 = function() {
|
|
489
485
|
return Q(Symbol.iterator);
|
|
490
486
|
}, I.wbg.__wbg_new_1d93771b84541aa5 = function(A, g) {
|
|
@@ -783,18 +779,21 @@ ${I.stack}` : C;
|
|
|
783
779
|
}
|
|
784
780
|
Z.Taplo = M;
|
|
785
781
|
});
|
|
786
|
-
} });
|
|
782
|
+
}) });
|
|
787
783
|
|
|
788
784
|
//#endregion
|
|
789
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-toml@2.0.
|
|
785
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-toml@2.0.6_prettier@3.6.2/node_modules/prettier-plugin-toml/lib/languages.js
|
|
786
|
+
var import_dist = /* @__PURE__ */ __toESM(require_dist(), 1);
|
|
790
787
|
const languages = [{
|
|
791
788
|
"name": "TOML",
|
|
792
789
|
"aceMode": "toml",
|
|
793
|
-
"since": "0.1.0",
|
|
794
790
|
"parsers": ["toml"],
|
|
795
791
|
"linguistLanguageId": 365,
|
|
796
792
|
"vscodeLanguageIds": ["toml"],
|
|
797
793
|
"extensions": [".toml"],
|
|
794
|
+
"tmScope": "source.toml",
|
|
795
|
+
"codemirrorMode": "toml",
|
|
796
|
+
"codemirrorMimeType": "text/x-toml",
|
|
798
797
|
"filenames": [
|
|
799
798
|
"Cargo.lock",
|
|
800
799
|
"Cargo.toml.orig",
|
|
@@ -803,14 +802,11 @@ const languages = [{
|
|
|
803
802
|
"pdm.lock",
|
|
804
803
|
"poetry.lock",
|
|
805
804
|
"uv.lock"
|
|
806
|
-
]
|
|
807
|
-
"tmScope": "source.toml",
|
|
808
|
-
"codemirrorMode": "toml",
|
|
809
|
-
"codemirrorMimeType": "text/x-toml"
|
|
805
|
+
]
|
|
810
806
|
}];
|
|
811
807
|
|
|
812
808
|
//#endregion
|
|
813
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-toml@2.0.
|
|
809
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-toml@2.0.6_prettier@3.6.2/node_modules/prettier-plugin-toml/lib/options.js
|
|
814
810
|
const prettierOptionsDefinitions = {
|
|
815
811
|
alignEntries: {
|
|
816
812
|
name: "alignEntries",
|
|
@@ -892,8 +888,7 @@ const prettierOptionsDefinitions = {
|
|
|
892
888
|
};
|
|
893
889
|
|
|
894
890
|
//#endregion
|
|
895
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-toml@2.0.
|
|
896
|
-
var import_dist = __toESM(require_dist(), 1);
|
|
891
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-toml@2.0.6_prettier@3.6.2/node_modules/prettier-plugin-toml/lib/index.js
|
|
897
892
|
const PLUGIN_NAME = "toml";
|
|
898
893
|
let taploIns;
|
|
899
894
|
async function format(code, options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@so1ve/prettier-plugin-toml",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.1",
|
|
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,10 +30,10 @@
|
|
|
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
|
-
"prettier": "^3"
|
|
36
|
+
"prettier": "^3.6.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "tsdown",
|