@volar/kit 1.10.1 → 1.10.2

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.
@@ -4,3 +4,4 @@ export declare function createFormatter(config: Config, compilerOptions?: import
4
4
  formatCode: (content: string, languageId: string, options: FormattingOptions) => Promise<string>;
5
5
  settings: any;
6
6
  };
7
+ //# sourceMappingURL=createFormatter.d.ts.map
@@ -6,3 +6,4 @@ export declare function createLinter(config: Config, host: TypeScriptLanguageHos
6
6
  logErrors: (fileName: string, diagnostics: Diagnostic[], rootPath?: string) => void;
7
7
  settings: any;
8
8
  };
9
+ //# sourceMappingURL=createLinter.d.ts.map
@@ -14,3 +14,4 @@ export declare function createProject(sourceTsconfigPath: string, extraFileExten
14
14
  fileCreated(fileName: string): void;
15
15
  reload(): void;
16
16
  };
17
+ //# sourceMappingURL=createProject.d.ts.map
@@ -1,7 +1,30 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.createProject = exports.createInferredProject = void 0;
4
- const path = require("typesafe-path/posix");
27
+ const path = __importStar(require("typesafe-path/posix"));
5
28
  const utils_1 = require("./utils");
6
29
  function createInferredProject(rootPath, getScriptFileNames, compilerOptions = utils_1.defaultCompilerOptions) {
7
30
  return createProjectBase(rootPath, () => ({
package/out/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from '@volar/language-service';
2
2
  export * from './createFormatter';
3
3
  export * from './createLinter';
4
4
  export * from './createProject';
5
+ //# sourceMappingURL=index.d.ts.map
package/out/utils.d.ts CHANGED
@@ -7,3 +7,4 @@ export declare const uriToFileName: (uri: string) => string;
7
7
  export declare const fileNameToUri: (fileName: string) => string;
8
8
  export declare function getConfiguration(settings: any, section: string): any;
9
9
  export declare const fs: FileSystem;
10
+ //# sourceMappingURL=utils.d.ts.map
package/out/utils.js CHANGED
@@ -1,9 +1,32 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.fs = exports.getConfiguration = exports.fileNameToUri = exports.uriToFileName = exports.asPosix = exports.defaultCompilerOptions = void 0;
4
27
  const vscode_uri_1 = require("vscode-uri");
5
28
  const language_service_1 = require("@volar/language-service");
6
- const _fs = require("fs");
29
+ const _fs = __importStar(require("fs"));
7
30
  exports.defaultCompilerOptions = {
8
31
  allowJs: true,
9
32
  allowSyntheticDefaultImports: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/kit",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -13,7 +13,7 @@
13
13
  "directory": "packages/kit"
14
14
  },
15
15
  "dependencies": {
16
- "@volar/language-service": "1.10.1",
16
+ "@volar/language-service": "1.10.2",
17
17
  "typesafe-path": "^0.2.2",
18
18
  "vscode-languageserver-textdocument": "^1.0.8",
19
19
  "vscode-uri": "^3.0.7"
@@ -21,5 +21,5 @@
21
21
  "peerDependencies": {
22
22
  "typescript": "*"
23
23
  },
24
- "gitHead": "65775648936d786847511f3d8bdd8a3d1dca2e4e"
24
+ "gitHead": "15d5e9129c034ef839f6b4646e495b5e80890764"
25
25
  }