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

koa-ejs

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-ejs - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

6

History.md
4.1.0 / 2017-06-27
==================
* feat: Make `viewExt` option support `include` directive (#38)
* correct the demo in the Readme
4.0.1 / 2017-06-25

@@ -3,0 +9,0 @@ ==================

@@ -82,2 +82,12 @@ /*!

const tpl = await fs.readFile(viewPath, 'utf8');
// override `ejs` node_module `resolveInclude` function
const parentResolveInclude = ejs.resolveInclude;
ejs.resolveInclude = function(name, filename, isDir) {
if (!path.extname(name)) {
name += settings.viewExt;
}
return parentResolveInclude(name, filename, isDir);
}
const fn = ejs.compile(tpl, {

@@ -84,0 +94,0 @@ filename: viewPath,

2

package.json
{
"name": "koa-ejs",
"version": "4.0.1",
"version": "4.1.0",
"description": "ejs render middleware for koa",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,2 +17,3 @@ koa-ejs

const render = require('koa-ejs');
const path = require('path');

@@ -19,0 +20,0 @@ const app = new Koa();

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