@ts-morph/common
Advanced tools
Comparing version 0.7.5 to 0.8.0
@@ -1,2 +0,2 @@ | ||
import * as ts from "typescript"; | ||
import * as ts from "./typescript"; | ||
@@ -196,2 +196,12 @@ export interface CompilerOptionsFromTsConfigOptions { | ||
isKnownTypesPackageName?: ts.LanguageServiceHost["isKnownTypesPackageName"]; | ||
/** | ||
* Set this to true to not load the typescript lib files. | ||
* @default false | ||
*/ | ||
skipLoadingLibFiles?: boolean; | ||
/** | ||
* Specify this to use a custom folder to load the lib files from. | ||
* @remarks skipLoadingLibFiles cannot be explicitly false if this is set. | ||
*/ | ||
libFolderPath?: string; | ||
} | ||
@@ -259,3 +269,3 @@ | ||
/** @inheritdoc */ | ||
getSourceFileVersion(sourceFile: ts.SourceFile): any; | ||
getSourceFileVersion(sourceFile: ts.SourceFile): string; | ||
private getNextSourceFileVersion; | ||
@@ -315,2 +325,8 @@ private updateSourceFile; | ||
/** | ||
* Adds a lib file whose existence is virtual to the cache. | ||
* @param filePath - File path to get. | ||
* @param scriptKind - Script kind of the source file. | ||
*/ | ||
addLibFileToCacheByText(filePath: StandardizedFilePath, fileText: string, scriptKind: ScriptKind | undefined): ts.SourceFile; | ||
/** | ||
* Gets the source file version of the specified source file. | ||
@@ -621,10 +637,2 @@ * @param sourceFile - Source file to inspect. | ||
export interface InMemoryFileSystemHostOptions { | ||
/** | ||
* Set this to true to not load the /node_modules/typescript/lib files on construction. | ||
* @default false | ||
*/ | ||
skipLoadingLibFiles?: boolean; | ||
} | ||
/** An implementation of a file system that exists in memory only. */ | ||
@@ -634,5 +642,4 @@ export declare class InMemoryFileSystemHost implements FileSystemHost { | ||
* Constructor. | ||
* @param options - Options for creating the file system. | ||
*/ | ||
constructor(options?: InMemoryFileSystemHostOptions); | ||
constructor(); | ||
/** @inheritdoc */ | ||
@@ -968,2 +975,4 @@ isCaseSensitive(): boolean; | ||
static stripBom(text: string): string; | ||
static stripQuotes(text: string): string; | ||
static isQuoted(text: string): boolean; | ||
static isNullOrWhitespace(str: string | undefined): str is undefined; | ||
@@ -995,3 +1004,3 @@ static isNullOrEmpty(str: string | undefined): str is undefined; | ||
import { CompilerOptions, DiagnosticCategory, EditorSettings, EmitHint, LanguageVariant, ModuleKind, ModuleResolutionKind, NewLineKind, ObjectFlags, ScriptKind, ScriptTarget, SymbolFlags, SyntaxKind, TypeFlags, TypeFormatFlags } from "typescript"; | ||
export { ts, CompilerOptions, DiagnosticCategory, EditorSettings, EmitHint, LanguageVariant, ModuleKind, ModuleResolutionKind, NewLineKind, ObjectFlags, ScriptKind, ScriptTarget, SymbolFlags, SyntaxKind, TypeFlags, TypeFormatFlags }; | ||
import { CompilerOptions, DiagnosticCategory, EditorSettings, EmitHint, LanguageVariant, ModuleKind, ModuleResolutionKind, NewLineKind, NodeFlags, ObjectFlags, ScriptKind, ScriptTarget, SymbolFlags, SyntaxKind, TypeFlags, TypeFormatFlags } from "./typescript"; | ||
export { ts, CompilerOptions, DiagnosticCategory, EditorSettings, EmitHint, LanguageVariant, ModuleKind, ModuleResolutionKind, NewLineKind, NodeFlags, ObjectFlags, ScriptKind, ScriptTarget, SymbolFlags, SyntaxKind, TypeFlags, TypeFormatFlags }; |
{ | ||
"name": "@ts-morph/common", | ||
"version": "0.7.5", | ||
"version": "0.8.0", | ||
"description": "Common functionality for ts-morph packages.", | ||
@@ -17,3 +17,3 @@ "main": "dist/ts-morph-common.js", | ||
"test:debug": "yarn test --inspect-brk", | ||
"rollup": "rollup --config" | ||
"rollup": "rollup --config && ts-node scripts/bundleLocalTs.ts" | ||
}, | ||
@@ -25,4 +25,3 @@ "dependencies": { | ||
"mkdirp": "^1.0.4", | ||
"multimatch": "^5.0.0", | ||
"typescript": "~4.1.3" | ||
"multimatch": "^5.0.0" | ||
}, | ||
@@ -48,3 +47,4 @@ "devDependencies": { | ||
"ts-node": "^9.1.1", | ||
"ttypescript": "^1.5.12" | ||
"ttypescript": "^1.5.12", | ||
"typescript": "~4.2.2" | ||
}, | ||
@@ -51,0 +51,0 @@ "publishConfig": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10629407
5
8
15183
20
1
1
- Removedtypescript@~4.1.3
- Removedtypescript@4.1.6(transitive)