Socket
Socket
Sign inDemoInstall

ssi

Package Overview
Dependencies
6
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.3 to 0.1.4

test/testEcho.js

11

lib/DirectiveHandler.js

@@ -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) {

2

package.json
{
"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)",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc