@bonniernews/local-esi
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -105,3 +105,3 @@ "use strict"; | ||
} | ||
const listener = ESIListener(ListenerContext(context.req)); | ||
const listener = ESIListener(ListenerContext(context.req, context.res)); | ||
transformHtml(fetchResult, listener, (parseError, parsedResult) => { | ||
@@ -108,0 +108,0 @@ writeToResult(parsedResult, next); |
{ | ||
"name": "@bonniernews/local-esi", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Local Edge Side Includes parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,8 +19,5 @@ Local-ESI | ||
localEsi(html, req, (esiErr, esializedHtml) => { | ||
if (esiErr) return next(esiErr); | ||
res.send(esializedHtml); | ||
}); | ||
localEsi(html, req, res, next); | ||
}); | ||
}; | ||
``` |
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
17523
23