Socket
Socket
Sign inDemoInstall

@ts-morph/common

Package Overview
Dependencies
Maintainers
1
Versions
41
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.15.0 to 0.16.0

44

lib/ts-morph-common.d.ts

@@ -328,8 +328,2 @@ import * as ts from "./typescript";

/**
* 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.

@@ -761,2 +755,8 @@ * @param sourceFile - Source file to inspect.

export interface TransactionalFileSystemOptions {
fileSystem: FileSystemHost;
skipLoadingLibFiles: boolean | undefined;
libFolderPath: string | undefined;
}
/**

@@ -766,5 +766,6 @@ * FileSystemHost wrapper that allows transactionally queuing operations to the file system.

export declare class TransactionalFileSystem {
private readonly fileSystem;
private readonly directories;
private readonly pathCasingMaintainer;
private readonly fileSystem;
private readonly libFileMap;
/**

@@ -774,3 +775,3 @@ * Constructor.

*/
constructor(fileSystem: FileSystemHost);
constructor(options: TransactionalFileSystemOptions);
queueFileDelete(filePath: StandardizedFilePath): void;

@@ -806,3 +807,3 @@ removeFileDelete(filePath: StandardizedFilePath): void;

private deleteSuppressNotFoundSync;
fileExists(filePath: StandardizedFilePath): false | Promise<boolean>;
fileExists(filePath: StandardizedFilePath): boolean | Promise<boolean>;
fileExistsSync(filePath: StandardizedFilePath): boolean;

@@ -842,2 +843,5 @@ private _fileDeletedInMemory;

private removeMkDirOperationsForDir;
private libFileExists;
private readLibFile;
private throwIfLibFile;
}

@@ -851,2 +855,7 @@

export declare function getLibFolderPath(options: {
libFolderPath?: string;
skipLoadingLibFiles?: boolean;
}): string;
/** The folder to use to "store" the in memory lib files. */

@@ -923,2 +932,7 @@ export declare const libFolderInMemoryPath: StandardizedFilePath;

export interface RuntimeFileInfo {
isFile(): boolean;
isDirectory(): boolean;
}
export interface RuntimeFileSystem {

@@ -953,10 +967,6 @@ /** Gets if this file system is case sensitive. */

copySync(srcPath: string, destPath: string): void;
/** Asynchronously checks if a file exists. */
fileExists(filePath: string): Promise<boolean>;
/** Synchronously checks if a file exists. */
fileExistsSync(filePath: string): boolean;
/** Asynchronously checks if a directory exists. */
directoryExists(dirPath: string): Promise<boolean>;
/** Synchronously checks if a directory exists. */
directoryExistsSync(dirPath: string): boolean;
/** Asynchronously gets the path's stat information. */
stat(path: string): Promise<RuntimeFileInfo>;
/** Synchronously gets the path's stat information. */
statSync(path: string): RuntimeFileInfo;
/** See https://nodejs.org/api/fs.html#fs_fs_realpathsync_path_options */

@@ -963,0 +973,0 @@ realpathSync(path: string): string;

{
"name": "@ts-morph/common",
"version": "0.15.0",
"version": "0.16.0",
"description": "Common functionality for ts-morph packages.",

@@ -24,9 +24,9 @@ "main": "dist/ts-morph-common.js",

"mkdirp": "^1.0.4",
"minimatch": "^5.0.1",
"minimatch": "^5.1.0",
"path-browserify": "^1.0.1"
},
"devDependencies": {
"@types/chai": "^4.3.0",
"@types/chai": "^4.3.1",
"@types/mkdirp": "^1.0.2",
"@types/mocha": "^9.1.0",
"@types/mocha": "^9.1.1",
"@types/minimatch": "^3.0.5",

@@ -36,8 +36,8 @@ "@types/node": "^16.11.7",

"cross-env": "^7.0.3",
"mocha": "^9.2.1",
"mocha": "^10.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.69.0",
"rollup-plugin-typescript2": "^0.31.2",
"ts-node": "^10.6.0",
"typescript": "4.7.2"
"rollup": "^2.75.5",
"rollup-plugin-typescript2": "^0.32.0",
"ts-node": "^10.8.1",
"typescript": "4.7.3"
},

@@ -44,0 +44,0 @@ "publishConfig": {

Sorry, the diff of this file is too big to display

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