Comparing version 0.1.3 to 0.1.4
@@ -74,2 +74,5 @@ | ||
return this._handleSet(attributes); | ||
case "echo": | ||
interpolate.apply(this); | ||
return this._handleEcho(attributes, variables); | ||
case "include": | ||
@@ -156,2 +159,10 @@ interpolate.apply(this); | ||
_handleEcho: function(attributes, variables) { | ||
if (attributes.length == 1 && attributes[0].name === "var") { | ||
return {output: variables[attributes[0].value]}; | ||
} | ||
return {error: "Directive #echo did not contain a 'var' attribute"}; | ||
}, | ||
_handleInclude: function(attributes, currentFile) { | ||
@@ -158,0 +169,0 @@ if (attributes.length !== 1) { |
{ | ||
"name": "ssi", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Server Side Includes for NodeJS", | ||
@@ -5,0 +5,0 @@ "author": "Glenn Nelson <glenn@hexcoder.us> (glenn@hexcoder.us)", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
23135
27
555
1
13