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

@bonniernews/local-esi

Package Overview
Dependencies
Maintainers
8
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 1.2.3 to 1.2.4

CHANGELOG.md

8

lib/expression/evaluate.js

@@ -118,4 +118,4 @@ /* eslint-disable camelcase */

if (node.operator === "%") return left % right;
if (node.operator === "has") return left.indexOf(right) > -1;
if (node.operator === "has_i") return left.toLowerCase().indexOf(right.toLowerCase()) > -1;
if (node.operator === "has") return castString(left).indexOf(castString(right)) > -1;
if (node.operator === "has_i") return castString(left).toLowerCase().indexOf(castString(right).toLowerCase()) > -1;
if (node.operator === "matches") {

@@ -207,1 +207,5 @@ if (!left) {

}
function castString(any) {
return typeof any === "undefined" ? "" : String(any);
}
{
"name": "@bonniernews/local-esi",
"version": "1.2.3",
"version": "1.2.4",
"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