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.11.1 to 0.12.0

35

lib/ts-morph-common.d.ts

@@ -488,3 +488,3 @@ import * as ts from "./typescript";

*/
readDirSync(dirPath: string): string[];
readDirSync(dirPath: string): RuntimeDirEntry[];
/** Asynchronously reads a file at the specified path. */

@@ -653,3 +653,3 @@ readFile(filePath: string, encoding?: string): Promise<string>;

/** @inheritdoc */
readDirSync(dirPath: string): string[];
readDirSync(dirPath: string): RuntimeDirEntry[];
/** @inheritdoc */

@@ -703,3 +703,3 @@ readFile(filePath: string, encoding?: string): Promise<string>;

/** @inheritdoc */
readDirSync(dirPath: string): string[];
readDirSync(dirPath: string): RuntimeDirEntry[];
/** @inheritdoc */

@@ -752,2 +752,9 @@ readFile(filePath: string, encoding?: string): Promise<string>;

export interface DirEntry {
path: StandardizedFilePath;
isFile: boolean;
isDirectory: boolean;
isSymlink: boolean;
}
/**

@@ -802,3 +809,3 @@ * FileSystemHost wrapper that allows transactionally queuing operations to the file system.

private _verifyCanReadFile;
readDirSync(dirPath: StandardizedFilePath): StandardizedFilePath[];
readDirSync(dirPath: StandardizedFilePath): DirEntry[];
glob(patterns: ReadonlyArray<string>): AsyncGenerator<StandardizedFilePath, void, unknown>;

@@ -831,3 +838,3 @@ globSync(patterns: ReadonlyArray<string>): Generator<StandardizedFilePath, void, unknown>;

/** Loads the lib files that are stored in a separate module. */
/** Gets the TypeScript lib files (.d.ts files). */
export declare function getLibFiles(): {

@@ -899,2 +906,9 @@ fileName: string;

export interface RuntimeDirEntry {
name: string;
isFile: boolean;
isDirectory: boolean;
isSymlink: boolean;
}
export interface RuntimeFileSystem {

@@ -907,7 +921,4 @@ /** Gets if this file system is case sensitive. */

deleteSync(path: string): void;
/**
* Reads all the child directories and files.
* @remarks Should return just the directory and file names.
*/
readDirSync(dirPath: string): string[];
/** Reads all the child directories and files. */
readDirSync(dirPath: string): RuntimeDirEntry[];
/** Asynchronously reads a file at the specified path. */

@@ -1035,2 +1046,6 @@ readFile(filePath: string, encoding?: string): Promise<string>;

export declare function nameof<TObject>(obj: TObject, key: keyof TObject): string;
export declare function nameof<TObject>(key: keyof TObject): string;
export declare class ObjectUtils {

@@ -1037,0 +1052,0 @@ private constructor();

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

@@ -12,7 +12,7 @@ "main": "dist/ts-morph-common.js",

"build": "npm run build:declarations && npm run build:node && npm run build:deno",
"build:node": "rimraf dist && npm run createLibFile && npm run rollup && ts-node scripts/bundleLocalTs.ts",
"build:deno": "rimraf ../../deno/common && rimraf dist-deno && npm run rollup -- --environment BUILD:deno && npm run build:declarations && ts-node scripts/buildDeno.ts",
"build:declarations": "ts-node --compiler ttypescript --project scripts/tsconfig.json --transpile-only scripts/buildDeclarations.ts",
"createLibFile": "ts-node scripts/createLibFile.ts",
"test": "cross-env TS_NODE_COMPILER=\"ttypescript\" TS_NODE_TRANSPILE_ONLY=\"true\" mocha",
"build:node": "rimraf dist && npm run createLibFile && npm run rollup && deno run -A scripts/bundleLocalTs.ts",
"build:deno": "rimraf ../../deno/common && rimraf dist-deno && npm run rollup -- --environment BUILD:deno && npm run build:declarations && deno run -A scripts/buildDeno.ts",
"build:declarations": "deno run -A scripts/buildDeclarations.ts",
"createLibFile": "deno run -A scripts/createLibFile.ts",
"test": "cross-env TS_NODE_TRANSPILE_ONLY=\"true\" mocha",
"test:ci": "npm run test",

@@ -29,3 +29,2 @@ "test:debug": "npm run test --inspect-brk",

"devDependencies": {
"@ts-morph/scripts": "~0.2.0",
"@types/chai": "^4.2.22",

@@ -35,15 +34,11 @@ "@types/mkdirp": "^1.0.2",

"@types/minimatch": "^3.0.5",
"@types/node": "^16.11.6",
"@types/ts-nameof": "^4.2.1",
"@types/node": "^16.11.7",
"chai": "^4.3.4",
"cross-env": "^7.0.3",
"dts-minify": "^0.2.3",
"mocha": "^9.1.3",
"rimraf": "^3.0.2",
"rollup": "^2.58.3",
"rollup-plugin-typescript2": "^0.30.0",
"ts-nameof": "^5.0.0",
"rollup": "^2.60.0",
"rollup-plugin-typescript2": "^0.31.0",
"ts-node": "^10.4.0",
"ttypescript": "^1.5.12",
"typescript": "4.4.4"
"typescript": "4.5.2"
},

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