@bonniernews/local-esi
Advanced tools
Comparing version 0.6.0 to 0.6.1
12
index.js
@@ -341,3 +341,3 @@ "use strict"; | ||
const expressionResult = evaluateExpression(variableAccess, context); | ||
if (expressionResult === null) { | ||
if (expressionResult === undefined) { | ||
return ""; | ||
@@ -354,2 +354,6 @@ } | ||
function removeReservedCharacters(original) { | ||
if (!original) { | ||
return original; | ||
} | ||
let text = original.replace(/\\["]/g, "\""); | ||
@@ -481,3 +485,3 @@ | ||
if (!left) { | ||
return null; | ||
return; | ||
} | ||
@@ -488,3 +492,3 @@ return left.match(right); | ||
if (!left) { | ||
return null; | ||
return; | ||
} | ||
@@ -499,3 +503,3 @@ return left.match(new RegExp(right, "i")); | ||
if (!object) return null; | ||
if (!object) return; | ||
@@ -502,0 +506,0 @@ return getFunc(node.property.type)(node.property, object); |
{ | ||
"name": "@bonniernews/local-esi", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Local Edge Side Includes parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
21579
618