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.7.3 to 0.7.4

12

lib/esiExpressionParser.js

@@ -43,2 +43,14 @@ "use strict";

const callExpressionWithoutArgsMatch = str.match(/^\$(\w+?)\(\)$/);
if (callExpressionWithoutArgsMatch) {
return {
type: "CallExpression",
callee: {
type: "Identifier",
name: callExpressionWithoutArgsMatch[1]
},
arguments: []
};
}
const variableAccessMatch = str.match(/^\$\((.+?)\)/);

@@ -45,0 +57,0 @@ if (variableAccessMatch) {

2

lib/ESIListener.js

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

function removeReservedCharacters(original) {
if (!original) {
if (!original || typeof original !== "string") {
return original;

@@ -336,0 +336,0 @@ }

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

},
time() {
return Date.now();
},
CallExpression(node) {

@@ -36,0 +39,0 @@ return getFunc(node.callee.name)(node.arguments);

{
"name": "@bonniernews/local-esi",
"version": "0.7.3",
"version": "0.7.4",
"description": "Local Edge Side Includes parser",

@@ -22,2 +22,3 @@ "main": "index.js",

"atlas-html-stream": "^1.2.0",
"chronokinesis": "^2.0.1",
"request": "^2.88.0"

@@ -24,0 +25,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