Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ejs

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ejs - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

test/fixtures/comments.ejs

5

History.md
0.8.1 / 2012-08-11
==================
* fix comments. Closes #62 [Nate Silva]
0.8.0 / 2012-07-25

@@ -3,0 +8,0 @@ ==================

5

lib/ejs.js

@@ -166,3 +166,6 @@

if (js.substr(0, 1) == ':') js = filtered(js);
if (js) buf.push(prefix, js, postfix);
if (js) {
if (js.lastIndexOf('//') > js.lastIndexOf('\n')) js += '\n';
buf.push(prefix, js, postfix);
}
i += end - start + close.length - 1;

@@ -169,0 +172,0 @@

2

package.json
{
"name": "ejs",
"description": "Embedded JavaScript templates",
"version": "0.8.0",
"version": "0.8.1",
"author": "TJ Holowaychuk <tj@vision-media.ca>",

@@ -6,0 +6,0 @@ "keywords": ["template", "engine", "ejs"],

@@ -187,2 +187,9 @@ /**

})
})
})
describe('comments', function() {
it('should fully render with comments removed', function() {
ejs.render(fixture('comments.ejs'))
.should.equal(fixture('comments.html'));
})
})
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc