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

ts-morph

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-morph - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

azure-pipelines.yml

4

dist/compiler/ast/jsx/JsxText.js

@@ -14,3 +14,5 @@ "use strict";

JsxText.prototype.containsOnlyWhiteSpaces = function () {
return this.compilerNode.containsOnlyWhiteSpaces;
// containsOnlyWhiteSpaces was renamed to containsOnlyTriviaWhiteSpaces in ts 3.4
var compilerNode = this.compilerNode; // any for laziness since this branch is not going to be maintained
return compilerNode.containsOnlyWhiteSpaces || compilerNode.containsOnlyTriviaWhiteSpaces || false;
};

@@ -17,0 +19,0 @@ return JsxText;

@@ -667,5 +667,5 @@ "use strict";

SourceFile.prototype.fixMissingImports = function (formatSettings, userPreferences) {
var e_2, _a;
if (formatSettings === void 0) { formatSettings = {}; }
if (userPreferences === void 0) { userPreferences = {}; }
var e_2, _a;
var combinedCodeFix = this._context.languageService.getCombinedCodeFix(this, "fixMissingImport", formatSettings, userPreferences);

@@ -672,0 +672,0 @@ var sourceFile = this;

@@ -575,2 +575,3 @@ "use strict";

var result = block(function () {
var e_4, _a;
var nodes = [];

@@ -580,3 +581,2 @@ for (var _i = 0; _i < arguments.length; _i++) {

}
var e_4, _a;
try {

@@ -583,0 +583,0 @@ for (var nodes_1 = tslib_1.__values(nodes), nodes_1_1 = nodes_1.next(); !nodes_1_1.done; nodes_1_1 = nodes_1.next()) {

@@ -167,2 +167,5 @@ "use strict";

};
DefaultFileSystemHost.prototype.realpathSync = function (path) {
return this.fs.realpathSync(path);
};
DefaultFileSystemHost.prototype.getCurrentDirectory = function () {

@@ -169,0 +172,0 @@ return utils_1.FileUtils.standardizeSlashes(nodePath.resolve());

@@ -377,4 +377,4 @@ "use strict";

Directory.prototype.emitSync = function (options) {
var e_5, _a;
if (options === void 0) { options = {}; }
var e_5, _a;
var fileSystemWrapper = this._context.fileSystemWrapper;

@@ -381,0 +381,0 @@ var outputFilePaths = [];

@@ -384,2 +384,10 @@ "use strict";

};
FileSystemWrapper.prototype.realpathSync = function (path) {
var realpath;
if (this.fileSystem.realpathSync)
realpath = this.fileSystem.realpathSync(path);
else
realpath = path;
return this.getStandardizedAbsolutePath(realpath);
};
FileSystemWrapper.prototype.getAndClearOperationsForDir = function (dir) {

@@ -386,0 +394,0 @@ var e_9, _a;

@@ -652,4 +652,4 @@ "use strict";

Project.prototype.applyFileTextChanges = function (fileTextChanges, options) {
var e_10, _a;
if (options === void 0) { options = {}; }
var e_10, _a;
try {

@@ -656,0 +656,0 @@ for (var fileTextChanges_1 = tslib_1.__values(fileTextChanges), fileTextChanges_1_1 = fileTextChanges_1.next(); !fileTextChanges_1_1.done; fileTextChanges_1_1 = fileTextChanges_1.next()) {

@@ -6,3 +6,3 @@ "use strict";

/* tslint:disable:align */
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getEntries) {
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getEntries, realpath) {
return public_1.ts.matchFiles.apply(this, arguments);

@@ -9,0 +9,0 @@ }

@@ -22,3 +22,3 @@ "use strict";

return getFileSystemEntries(path, fileSystemWrapper);
}),
}, function (path) { return fileSystemWrapper.realpathSync(path); }),
directories: directories

@@ -25,0 +25,0 @@ };

{
"name": "ts-morph",
"version": "1.3.2",
"version": "1.3.3",
"description": "TypeScript compiler wrapper for static analysis and code manipulation.",

@@ -79,3 +79,3 @@ "main": "dist/main.js",

"tslib": "^1.9.0",
"typescript": ">=3.0.1 <3.4.0"
"typescript": ">=3.0.1 <3.5.0"
},

@@ -115,3 +115,4 @@ "devDependencies": {

"typescript-3.2.4": "npm:typescript@3.2.4",
"typescript-3.3.1": "npm:typescript@3.3.1"
"typescript-3.3.1": "npm:typescript@3.3.1",
"typescript-3.4.1": "npm:typescript@3.4.1"
},

@@ -118,0 +119,0 @@ "standard-version": {

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