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

clarity-pattern-parser

Package Overview
Dependencies
Maintainers
0
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clarity-pattern-parser - npm Package Compare versions

Comparing version 11.0.12 to 11.0.14

2

package.json
{
"name": "clarity-pattern-parser",
"version": "11.0.12",
"version": "11.0.14",
"description": "Parsing Library for Typescript and Javascript.",

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

@@ -175,6 +175,6 @@ import { Sequence } from "../patterns/Sequence";

const digit = new Regex("digit", "\\d");
const digits = new Optional("digits", new Repeat("digits", digit, { min: 0 }));
const digits = new Optional("optional-digits", new Repeat("digits", digit, { min: 0 }));
const expected = new Context("digits", digits, [digit]);
const expected = new Context("optional-digits", digits, [digit]);
debugger;
expect(pattern.isEqual(expected)).toBeTruthy();

@@ -181,0 +181,0 @@ });

@@ -343,3 +343,3 @@ import { Node } from "../ast/Node";

const pattern = this._buildPattern(patternNode);
const finalPattern = isOptional ? new Optional(pattern.name, pattern) : pattern;
const finalPattern = isOptional ? new Optional(`optional-${pattern.name}`, pattern) : pattern;

@@ -414,3 +414,3 @@ if (isNot) {

return isOptional ? new Optional(name, new Repeat(name, pattern, options)) : new Repeat(name, pattern, options);
return isOptional ? new Optional(name, new Repeat(`inner-optional-${name}`, pattern, options)) : new Repeat(name, pattern, options);
}

@@ -417,0 +417,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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