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
1
Versions
194
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 4.0.0 to 4.0.1

2

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

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

@@ -287,2 +287,12 @@ /** @jest-environment node */

});
test("Do not match on first partial token.", () => {
const expression = generateExpression(["FlagX", "FlagY", "FlagZ"]);
const result = TextSuggester.suggest("l", expression);
expect(result.options).toBe(null);
expect(result.error?.startIndex).toBe(0);
expect(result.error?.endIndex).toBe(0);
expect(result.error?.text).toBe("l");
});
});

@@ -190,3 +190,3 @@ import Node from "./ast/Node";

options = options?.filter((option: any) => {
return option.indexOf(this.text) > -1;
return option.indexOf(this.text) === 0;
});

@@ -193,0 +193,0 @@

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