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

java-parser

Package Overview
Dependencies
Maintainers
6
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

java-parser - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

6

package.json
{
"name": "java-parser",
"version": "2.0.2",
"version": "2.0.3",
"description": "Java Parser in JavaScript",

@@ -14,7 +14,7 @@ "main": "src/index.js",

"scripts": {
"test": "npm-run-all clone-samples test:execute",
"test": "yarn run clone-samples && yarn run test:execute",
"test:execute": "mocha \"test/**/*-spec.js\"",
"clone-samples": "node ./scripts/clone-samples"
},
"gitHead": "2e731c6dcec31dc9e58ec1721eef821f7fc031ee"
"gitHead": "d1d1e419bdabb3eb8ba0d94cb0eb3f85166d22e8"
}

@@ -565,5 +565,24 @@ "use strict";

$.RULE("pattern", () => {
$.SUBRULE($.typePattern);
$.SUBRULE($.primaryPattern);
$.OPTION(() => {
$.CONSUME(t.AndAnd);
$.SUBRULE($.binaryExpression);
});
});
$.RULE("primaryPattern", () => {
$.OR([
{
ALT: () => {
$.CONSUME(t.LBrace);
$.SUBRULE($.pattern);
$.CONSUME(t.RBrace);
}
},
{
ALT: () => $.SUBRULE($.typePattern)
}
]);
});
$.RULE("typePattern", () => {

@@ -570,0 +589,0 @@ $.SUBRULE($.localVariableDeclaration);

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

);
FRAGMENT("EscapeSequence", "\\\\[btnfr\"'\\\\]|{{OctalEscape}}");
FRAGMENT("EscapeSequence", "\\\\[bstnfr\"'\\\\]|{{OctalEscape}}");
// Not using InputCharacter terminology there because CR and LF are already captured in EscapeSequence

@@ -55,0 +55,0 @@ FRAGMENT(

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