@rehearsal/service
Advanced tools
Comparing version 0.0.37 to 0.0.38
@@ -0,3 +1,3 @@ | ||
import { LanguageServiceHost } from 'typescript'; | ||
import type { CompilerOptions, IScriptSnapshot } from 'typescript'; | ||
import { LanguageServiceHost } from 'typescript'; | ||
/** | ||
@@ -4,0 +4,0 @@ * ServiceHost represents the layer between the LanguageServer and the permanent storage. |
@@ -0,3 +1,3 @@ | ||
import { RehearsalServiceHost } from './rehearsal-service-host'; | ||
import type { CompilerOptions, DiagnosticWithLocation, LanguageService, SourceFile } from 'typescript'; | ||
import { RehearsalServiceHost } from './rehearsal-service-host'; | ||
/** | ||
@@ -36,2 +36,6 @@ * Service represents the list of helper functions wrapped over compiled program context. | ||
/** | ||
* Gets a list of suggested diagnostic objects | ||
*/ | ||
getSuggestionDiagnostics(fileName: string): DiagnosticWithLocation[]; | ||
/** | ||
* Provides a path to a module file by its name | ||
@@ -38,0 +42,0 @@ */ |
@@ -56,2 +56,8 @@ "use strict"; | ||
/** | ||
* Gets a list of suggested diagnostic objects | ||
*/ | ||
getSuggestionDiagnostics(fileName) { | ||
return this.service.getSuggestionDiagnostics(fileName); | ||
} | ||
/** | ||
* Provides a path to a module file by its name | ||
@@ -58,0 +64,0 @@ */ |
{ | ||
"name": "@rehearsal/service", | ||
"version": "0.0.37", | ||
"version": "0.0.38", | ||
"description": "Rehearsal Service", | ||
@@ -23,13 +23,4 @@ "keywords": [ | ||
], | ||
"scripts": { | ||
"build": "tsc -b", | ||
"lint": "npm-run-all lint:*", | ||
"lint:eslint": "eslint --fix . --ext .ts", | ||
"lint:tsc-src": "tsc --noEmit", | ||
"prepare": "pnpm build", | ||
"test": "vitest --run", | ||
"test:watch": "vitest --coverage --watch" | ||
}, | ||
"dependencies": { | ||
"@rehearsal/reporter": "workspace:*", | ||
"@rehearsal/reporter": "0.0.38", | ||
"winston": "^3.6.0" | ||
@@ -50,3 +41,10 @@ }, | ||
}, | ||
"gitHead": "ac6c24607565fb4dadec860ff690a3025118bc7d" | ||
} | ||
"scripts": { | ||
"build": "tsc -b", | ||
"lint": "npm-run-all lint:*", | ||
"lint:eslint": "eslint --fix . --ext .ts", | ||
"lint:tsc-src": "tsc --noEmit", | ||
"test": "vitest --run", | ||
"test:watch": "vitest --coverage --watch" | ||
} | ||
} |
@@ -0,3 +1,3 @@ | ||
import { getDefaultLibFilePath, LanguageServiceHost, ScriptSnapshot, sys } from 'typescript'; | ||
import type { CompilerOptions, IScriptSnapshot, MapLike } from 'typescript'; | ||
import { getDefaultLibFilePath, LanguageServiceHost, ScriptSnapshot, sys } from 'typescript'; | ||
@@ -4,0 +4,0 @@ /** |
@@ -0,1 +1,4 @@ | ||
import { createLanguageService, resolveModuleName, ScriptSnapshot, sys } from 'typescript'; | ||
import { RehearsalServiceHost } from './rehearsal-service-host'; | ||
import type { | ||
@@ -8,6 +11,3 @@ CompilerOptions, | ||
} from 'typescript'; | ||
import { createLanguageService, resolveModuleName, ScriptSnapshot, sys } from 'typescript'; | ||
import { RehearsalServiceHost } from './rehearsal-service-host'; | ||
/** | ||
@@ -75,2 +75,9 @@ * Service represents the list of helper functions wrapped over compiled program context. | ||
/** | ||
* Gets a list of suggested diagnostic objects | ||
*/ | ||
getSuggestionDiagnostics(fileName: string): DiagnosticWithLocation[] { | ||
return this.service.getSuggestionDiagnostics(fileName); | ||
} | ||
/** | ||
* Provides a path to a module file by its name | ||
@@ -77,0 +84,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
65607
403
+ Added@rehearsal/reporter@0.0.38(transitive)
Updated@rehearsal/reporter@0.0.38