volar-service-prettyhtml 0.0.14 → 0.0.16
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/out/index.d.ts +1 -1
- package/out/index.js +2 -5
- package/package.json +2 -2
package/out/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Service } from '@volar/language-service';
|
|
2
|
-
import prettyhtml from '@starptech/prettyhtml';
|
|
2
|
+
import * as prettyhtml from '@starptech/prettyhtml';
|
|
3
3
|
export declare function create(configs: NonNullable<Parameters<typeof prettyhtml>[1]>): Service;
|
|
4
4
|
export default create;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/out/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.create = void 0;
|
|
7
|
-
const
|
|
4
|
+
const prettyhtml = require("@starptech/prettyhtml");
|
|
8
5
|
function create(configs) {
|
|
9
6
|
return () => {
|
|
10
7
|
return {
|
|
@@ -12,7 +9,7 @@ function create(configs) {
|
|
|
12
9
|
if (document.languageId !== 'html')
|
|
13
10
|
return;
|
|
14
11
|
const oldRangeText = document.getText(range);
|
|
15
|
-
const newRangeText = (
|
|
12
|
+
const newRangeText = prettyhtml(oldRangeText, {
|
|
16
13
|
...configs,
|
|
17
14
|
tabWidth: options.tabSize,
|
|
18
15
|
useTabs: !options.insertSpaces,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "volar-service-prettyhtml",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "Integrate prettyhtml into Volar",
|
|
5
5
|
"homepage": "https://github.com/volarjs/services/tree/master/packages/prettyhtml",
|
|
6
6
|
"bugs": "https://github.com/volarjs/services/issues",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"optional": true
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "fdcd47eb5dc865999ac7ac610f8e0dfb458aca04"
|
|
39
39
|
}
|