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

@bonniernews/local-esi

Package Overview
Dependencies
Maintainers
9
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 2.0.1 to 2.0.2

5

CHANGELOG.md

@@ -11,2 +11,7 @@ Changelog

## [2.0.2] - 2021-12-20
### Fixed
- Tweak performance by using for loop instead of forEach
## [2.0.1] - 2021-12-17

@@ -13,0 +18,0 @@

4

lib/ESIEvaluator.js

@@ -181,3 +181,3 @@ /* eslint-disable no-use-before-define */

context.items.forEach((value) => {
for (let value of context.items) {
if (Array.isArray(value)) value = `[${value.map((v) => typeof v === "string" ? `'${v}'` : v).join(",")}]`;

@@ -187,3 +187,3 @@ buffered = buffered.concat([ {

}, { name: "esi:assign" } ], foreachChunks);
});
}

@@ -190,0 +190,0 @@ const localContext = context.subContext();

@@ -216,5 +216,5 @@ /* eslint-disable prefer-template */

node.elements.forEach((a) => {
for (const a of node.elements) {
node.loc.source += a.loc.source;
});
}

@@ -258,5 +258,5 @@ node.loc.source += elm.loc.source;

node.arguments.forEach((a) => {
for (const a of node.arguments) {
node.loc.source += a.loc.source;
});
}

@@ -314,5 +314,5 @@ node.loc.source += arg.loc.source;

node.properties.forEach((a) => {
for (const a of node.properties) {
node.loc.source += a.loc.source;
});
}

@@ -319,0 +319,0 @@ node.loc.source += prop.loc.source;

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

@@ -25,3 +25,3 @@ "main": "index.js",

"chronokinesis": "^3.1.2",
"eslint": "^8.4.1",
"eslint": "^8.5.0",
"eslint-config-exp": "0.0.9",

@@ -28,0 +28,0 @@ "got": "^11.8.3",

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