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

@bonniernews/local-esi

Package Overview
Dependencies
Maintainers
6
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bonniernews/local-esi - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

17

index.js

@@ -342,2 +342,5 @@ "use strict";

if (arrayMatch) {
if (!context.assigns[arrayMatch[1]]) {
return "";
}
return context.assigns[arrayMatch[1]][arrayMatch[2]];

@@ -478,4 +481,14 @@ }

if (node.operator === "has_i") return left.toLowerCase().indexOf(right.toLowerCase()) > -1;
if (node.operator === "matches") return left.match(right);
if (node.operator === "matches_i") return left.match(new RegExp(right, "i"));
if (node.operator === "matches") {
if (!left) {
return null;
}
return left.match(right);
}
if (node.operator === "matches_i") {
if (!left) {
return null;
}
return left.match(new RegExp(right, "i"));
}

@@ -482,0 +495,0 @@ throw new Error(`Uknown BinaryExpression operator ${node.operator}`);

2

package.json
{
"name": "@bonniernews/local-esi",
"version": "0.5.0",
"version": "0.5.1",
"description": "Local Edge Side Includes parser",

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

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