@bonniernews/local-esi
Advanced tools
Comparing version 0.7.3 to 0.7.4
@@ -43,2 +43,14 @@ "use strict"; | ||
const callExpressionWithoutArgsMatch = str.match(/^\$(\w+?)\(\)$/); | ||
if (callExpressionWithoutArgsMatch) { | ||
return { | ||
type: "CallExpression", | ||
callee: { | ||
type: "Identifier", | ||
name: callExpressionWithoutArgsMatch[1] | ||
}, | ||
arguments: [] | ||
}; | ||
} | ||
const variableAccessMatch = str.match(/^\$\((.+?)\)/); | ||
@@ -45,0 +57,0 @@ if (variableAccessMatch) { |
@@ -333,3 +333,3 @@ "use strict"; | ||
function removeReservedCharacters(original) { | ||
if (!original) { | ||
if (!original || typeof original !== "string") { | ||
return original; | ||
@@ -336,0 +336,0 @@ } |
@@ -34,2 +34,5 @@ "use strict"; | ||
}, | ||
time() { | ||
return Date.now(); | ||
}, | ||
CallExpression(node) { | ||
@@ -36,0 +39,0 @@ return getFunc(node.callee.name)(node.arguments); |
{ | ||
"name": "@bonniernews/local-esi", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "Local Edge Side Includes parser", | ||
@@ -22,2 +22,3 @@ "main": "index.js", | ||
"atlas-html-stream": "^1.2.0", | ||
"chronokinesis": "^2.0.1", | ||
"request": "^2.88.0" | ||
@@ -24,0 +25,0 @@ }, |
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
23478
665
3
+ Addedchronokinesis@^2.0.1
+ Addedchronokinesis@2.0.1(transitive)