New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More →

typescript-parser

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-parser - npm Package Compare versions

Comparing version

to
1.3.1

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

const resource = this.parsedResources[key];
if (this.doesExportResource(resource, resourceToCheck)) {
if (resource instanceof File_1.File && this.doesExportResource(resource, resourceToCheck)) {
resources.push(resource.filePath);

@@ -222,0 +222,0 @@ }

{
"name": "typescript-parser",
"version": "1.3.0",
"version": "1.3.1",
"description": "Parser for typescript (and javascript) files, that compiles those files and generates a human understandable AST.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -284,4 +284,4 @@ import { difference, differenceWith, intersection, isEqual } from 'lodash';

.forEach((key) => {
const resource = this.parsedResources[key] as File;
if (this.doesExportResource(resource, resourceToCheck)) {
const resource = this.parsedResources[key];
if (resource instanceof File && this.doesExportResource(resource, resourceToCheck)) {
resources.push(resource.filePath);

@@ -288,0 +288,0 @@ }