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

typescript-parser

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-parser - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

1

node-parser/identifier-parser.js

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

typescript_1.SyntaxKind.VariableDeclaration,
typescript_1.SyntaxKind.ElementAccessExpression,
typescript_1.SyntaxKind.BinaryExpression,

@@ -28,0 +27,0 @@ ];

2

package.json

@@ -1,1 +0,1 @@

{"name":"typescript-parser","version":"2.2.1","description":"Parser for typescript (and javascript) files, that compiles those files and generates a human understandable AST.","main":"index.js","typings":"index.d.ts","scripts":{"build":"npm run clean && tsc -p ./config/tsconfig.build.json","clean":"del-cli ./build ./coverage","develop":"npm run clean && tsc -p .","lint":"tslint -c tslint.json 'src/**/*.ts'","test":"npm run lint && npm run clean && jest -c ./jest.json","test:watch":"npm run clean && jest -c ./jest.json --watch --no-coverage","typedoc":"del-cli ./docs && typedoc --ignoreCompilerErrors --out ./docs --mode file --tsconfig ./config/tsconfig.build.json ./src/","semantic-release":"semantic-release"},"repository":{"type":"git","url":"https://github.com/TypeScript-Heroes/node-typescript-parser.git"},"keywords":["typescript","parser","AST","parsing"],"author":"Christoph Bühler <christoph.buehler@bluewin.ch>","license":"MIT","bugs":{"url":"https://github.com/TypeScript-Heroes/node-typescript-parser/issues"},"homepage":"https://github.com/TypeScript-Heroes/node-typescript-parser#readme","devDependencies":{"@types/jest":"^21.1.0","@types/mock-fs":"^3.6.30","@types/node":"^8.0.31","del-cli":"^1.1.0","jest":"^21.2.0","mock-fs":"^4.4.1","semantic-release":"^9.0.0","ts-jest":"^21.0.0","tslint":"^5.5.0","tslint-config-airbnb":"^5.2.1","tsutils":"^2.9.0","typedoc":"^0.8.0"},"dependencies":{"coveralls":"^2.13.3","lodash":"^4.17.4","tslib":"^1.7.1","typescript":"^2.5.3"}}
{"name":"typescript-parser","version":"2.2.2","description":"Parser for typescript (and javascript) files, that compiles those files and generates a human understandable AST.","main":"index.js","typings":"index.d.ts","scripts":{"build":"npm run clean && tsc -p ./config/tsconfig.build.json","clean":"del-cli ./build ./coverage","develop":"npm run clean && tsc -p .","lint":"tslint -c ./tslint.json -p ./config/tsconfig.build.json 'src/**/*.ts'","test":"npm run lint && npm run clean && jest -c ./jest.json","test:watch":"npm run clean && jest -c ./jest.json --watch --no-coverage","typedoc":"del-cli ./docs && typedoc --ignoreCompilerErrors --out ./docs --mode file --tsconfig ./config/tsconfig.build.json ./src/","semantic-release":"semantic-release"},"repository":{"type":"git","url":"https://github.com/TypeScript-Heroes/node-typescript-parser.git"},"keywords":["typescript","parser","AST","parsing"],"author":"Christoph Bühler <christoph.buehler@bluewin.ch>","license":"MIT","bugs":{"url":"https://github.com/TypeScript-Heroes/node-typescript-parser/issues"},"homepage":"https://github.com/TypeScript-Heroes/node-typescript-parser#readme","devDependencies":{"@types/jest":"^21.1.0","@types/mock-fs":"^3.6.30","@types/node":"^8.0.31","del-cli":"^1.1.0","jest":"^21.2.0","mock-fs":"^4.4.1","semantic-release":"^9.0.0","ts-jest":"^21.0.0","tslint":"^5.5.0","tslint-config-airbnb":"^5.2.1","tsutils":"^2.9.0","typedoc":"^0.8.0"},"dependencies":{"coveralls":"^2.13.3","lodash":"^4.17.4","tslib":"^1.7.1","typescript":"^2.5.3"}}

@@ -27,3 +27,2 @@ import { Identifier, Node, SyntaxKind } from 'typescript';

SyntaxKind.VariableDeclaration,
SyntaxKind.ElementAccessExpression,
SyntaxKind.BinaryExpression,

@@ -41,3 +40,3 @@ ];

* Checks for the node identifier to be the last of the identifier list.
*
*
* @param {Node} node

@@ -62,3 +61,3 @@ * @returns {boolean}

* Checks if the identifier is on the lefthand side of a property access.
*
*
* @param {Node} node

@@ -82,3 +81,3 @@ * @returns {boolean}

* Parses an identifier into a usage of a resource if the predicates are true.
*
*
* @export

@@ -85,0 +84,0 @@ * @param {Resource} resource

@@ -59,9 +59,9 @@ import { readFileSync } from 'fs';

return await this.parseTypescript(
createSourceFile(
'inline.tsx',
source,
ScriptTarget.ES2015,
true,
scriptKind),
'/');
createSourceFile(
'inline.tsx',
source,
ScriptTarget.ES2015,
true,
scriptKind),
'/');
}

@@ -113,7 +113,9 @@

}
return createSourceFile(o,
readFileSync(o).toString(),
ScriptTarget.ES2015,
true,
scriptKind);
return createSourceFile(
o,
readFileSync(o).toString(),
ScriptTarget.ES2015,
true,
scriptKind,
);
})

@@ -120,0 +122,0 @@ .map(o => this.parseTypescript(o, rootPath));

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