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

@bonniernews/local-esi

Package Overview
Dependencies
Maintainers
5
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.0.4 to 0.0.5

8

index.js

@@ -273,2 +273,9 @@ "use strict";

text = text.replace(/\$set_redirect\(\s*'(.+?)'\s*\)/ig, (_, location) => {
if (shouldWrite()) {
context.res.redirect(location);
}
return "";
});
text = text.replace(/\$set_response_code\(\s*(\d{3})\s*\)/ig, (_, responseCode) => {

@@ -281,3 +288,2 @@ if (shouldWrite()) {

text = text.replace(/\$set_response_code\(\s*(\d{3})\s*,\s*(')((.*?)\2\s*\))?/ig, (_, responseCode, _2, _3, content) => {

@@ -284,0 +290,0 @@ if (!shouldWrite()) return "";

2

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