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.2.2 to 0.4.0

15

lib/ts-morph-common.d.ts

@@ -210,3 +210,3 @@ import * as ts from "typescript";

/**
* Adds or gets a source file from a file path.
* Asynchronously adds or gets a source file from a file path.
* @param filePath - File path to get.

@@ -218,2 +218,11 @@ * @param opts - Options for adding or getting the file.

scriptKind: ScriptKind | undefined;
}): Promise<ts.SourceFile | undefined>;
/**
* Synchronously adds or gets a source file from a file path.
* @param filePath - File path to get.
* @param opts - Options for adding or getting the file.
*/
addOrGetSourceFileFromFilePathSync(filePath: StandardizedFilePath, opts: {
markInProject: boolean;
scriptKind: ScriptKind | undefined;
}): ts.SourceFile | undefined;

@@ -589,5 +598,9 @@ /**

private deleteSuppressNotFoundSync;
fileExists(filePath: StandardizedFilePath): false | Promise<boolean>;
fileExistsSync(filePath: StandardizedFilePath): boolean;
private _fileDeletedInMemory;
directoryExistsSync(dirPath: StandardizedFilePath): boolean;
readFileSync(filePath: StandardizedFilePath, encoding: string | undefined): string;
readFile(filePath: StandardizedFilePath, encoding: string | undefined): Promise<string>;
private _verifyCanReadFile;
readDirSync(dirPath: StandardizedFilePath): StandardizedFilePath[];

@@ -594,0 +607,0 @@ glob(patterns: ReadonlyArray<string>): AsyncGenerator<StandardizedFilePath, void, unknown>;

32

package.json
{
"name": "@ts-morph/common",
"version": "0.2.2",
"version": "0.4.0",
"description": "Common functionality for ts-morph packages.",

@@ -14,3 +14,3 @@ "main": "dist/ts-morph-common.js",

"createLibFile": "ts-node scripts/createLibFile.ts",
"test": "cross-env TS_NODE_COMPILER=\"ttypescript\" TS_NODE_TRANSPILE_ONLY=\"true\" mocha --opts mocha.opts",
"test": "cross-env TS_NODE_COMPILER=\"ttypescript\" TS_NODE_TRANSPILE_ONLY=\"true\" mocha",
"test:ci": "yarn test",

@@ -22,28 +22,28 @@ "test:debug": "yarn test --inspect-brk",

"@dsherret/to-absolute-glob": "^2.0.2",
"fast-glob": "^3.1.0",
"fast-glob": "^3.1.1",
"fs-extra": "^8.1.0",
"is-negated-glob": "^1.0.0",
"multimatch": "^4.0.0",
"typescript": "~3.7.2"
"typescript": "~3.8.2"
},
"devDependencies": {
"@ts-morph/scripts": "~0.2.0",
"@types/chai": "^4.2.4",
"@types/chai": "^4.2.9",
"@types/fs-extra": "^8.0.1",
"@types/is-negated-glob": "^1.0.0",
"@types/mocha": "^5.2.7",
"@types/mocha": "^7.0.1",
"@types/multimatch": "^4.0.0",
"@types/node": "^12.12.6",
"@types/ts-nameof": "^4.0.0",
"@types/node": "^13.7.1",
"@types/ts-nameof": "^4.2.1",
"chai": "^4.2.0",
"cross-env": "^6.0.3",
"cross-env": "^7.0.0",
"dts-minify": "^0.2.0",
"mocha": "^6.2.2",
"rimraf": "^3.0.0",
"rollup": "^1.26.3",
"rollup-plugin-typescript2": "^0.25.2",
"mocha": "^7.0.1",
"rimraf": "^3.0.2",
"rollup": "^1.31.1",
"rollup-plugin-typescript2": "^0.26.0",
"ts-morph": "npm:ts-morph@5.0.0",
"ts-nameof": "^4.1.0",
"ts-node": "^8.4.1",
"ttypescript": "^1.5.8"
"ts-nameof": "^4.2.2",
"ts-node": "^8.6.2",
"ttypescript": "^1.5.10"
},

@@ -50,0 +50,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