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

template

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

template - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

13

index.js

@@ -1876,3 +1876,2 @@ /*!

var cloned = cloneDeep(template);
var content = template.fn;

@@ -1891,7 +1890,7 @@

if (typeof cb !== 'function') {
cloned.content = this.renderBase(engine, content, locals, cb);
template.content = this.renderBase(engine, content, locals, cb);
// handle post-render middleware routes
this.handle('postRender', cloned, handleError(template, 'postRender'));
return cloned.content;
this.handle('postRender', template, handleError(template, 'postRender'));
return template.content;
}

@@ -1906,5 +1905,5 @@

if (err) return cb.call(self, err);
cloned.content = content;
self.handle('postRender', cloned, handleError(template, 'postRender'));
return cb.call(self, null, cloned.content);
template.content = content;
self.handle('postRender', template, handleError(template, 'postRender'));
return cb.call(self, null, template.content);
});

@@ -1911,0 +1910,0 @@ };

{
"name": "template",
"description": "Render templates from any engine. Make custom template types, use layouts on pages, partials or any custom template type, custom delimiters, helpers, middleware, routes, loaders, and lots more. Powers Assemble v0.6.0, Verb v0.3.0 and your application.",
"version": "0.10.1",
"version": "0.10.2",
"homepage": "https://github.com/jonschlinkert/template",

@@ -6,0 +6,0 @@ "author": {

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