@bonniernews/local-esi
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -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 @@ |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52807