Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ts-morph/common

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ts-morph/common - npm Package Compare versions

Comparing version 0.7.5 to 0.8.0

dist/typescript.js

37

lib/ts-morph-common.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc