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

assemble-render-file

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assemble-render-file - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

14

index.js

@@ -30,3 +30,8 @@ /*!

app.define('renderFile', function(locals) {
app.define('renderFile', function(engine, locals) {
if (typeof engine !== 'string') {
locals = engine;
engine = null;
}
var opts = {};

@@ -54,2 +59,3 @@ if (locals && !locals.isCollection) {

var ctx = utils.merge({}, app.cache.data, locals, file.data);
ctx.engine = engine || ctx.engine;

@@ -59,3 +65,7 @@ // render the file

if (err) return next(err);
next(null, new File(res));
var view = new File(res);
if (typeof engine === 'string') {
delete view.fn;
}
next(null, view);
});

@@ -62,0 +72,0 @@ });

12

package.json
{
"name": "assemble-render-file",
"description": "Assemble plugin for rendering views in a vinyl pipeline.",
"version": "0.1.1",
"version": "0.2.0",
"homepage": "https://github.com/jonschlinkert/assemble-render-file",
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"repository": "jonschlinkert/assemble-render-file",
"bugs": {
"url": "https://github.com/jonschlinkert/assemble-render-file/issues"
},
"bugs": "https://github.com/jonschlinkert/assemble-render-file/issues",
"license": "MIT",

@@ -24,3 +22,3 @@ "files": [

"dependencies": {
"lazy-cache": "^0.2.3",
"lazy-cache": "^0.2.4",
"mixin-deep": "^1.1.3",

@@ -30,3 +28,3 @@ "through2": "^2.0.0"

"devDependencies": {
"assemble": "assemble/assemble#dev",
"assemble-core": "^0.1.8",
"engine-base": "^0.1.2",

@@ -55,2 +53,2 @@ "engine-handlebars": "^0.8.0",

}
}
}
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