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.0 to 0.7.1

9

lib/ESIListener.js

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

return writeToResult(handleProcessingInstructions(text), next);
return writeToResult(handleProcessingInstructions.bind(null, text), next); //handleProcessingInstructions may cause an (expected) error and we're not sure writeToResult will actually write so we pass a function that it can call if it should write
} catch (err) {

@@ -311,2 +311,6 @@ return next(err);

if (text.match(/\$substr\((.*?)\)/ig)) {
throw new Error("$substr invoked without start index parameter");
}
text = removeReservedCharacters(text);

@@ -392,2 +396,5 @@

function writeToResult(chunk, next) {
if (typeof chunk === "function" && (context.inReplacement || shouldWrite())) {
chunk = chunk();
}
if (context.inReplacement) {

@@ -394,0 +401,0 @@ context.replacement += chunk;

2

package.json
{
"name": "@bonniernews/local-esi",
"version": "0.7.0",
"version": "0.7.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