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

engine-cache

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

engine-cache - npm Package Compare versions

Comparing version 0.19.2 to 0.19.3

6

index.js

@@ -220,3 +220,3 @@ 'use strict';

var helpers = mergeHelpers(engine, options);
var compiled = compile ? compile(str, helpers) : null;
var compiled = compile ? compile.call(engine, str, helpers) : null;

@@ -249,6 +249,6 @@ return function(locals, cb) {

if (typeof cb !== 'function') {
return renderSync(str, data);
return renderSync.call(engine, str, data);
}
render(str, data, function(err, str) {
render.call(engine, str, data, function(err, str) {
if (err) {

@@ -255,0 +255,0 @@ cb(err);

{
"name": "engine-cache",
"description": "express.js inspired template-engine manager.",
"version": "0.19.2",
"version": "0.19.3",
"homepage": "https://github.com/jonschlinkert/engine-cache",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

@@ -111,2 +111,4 @@ # engine-cache [![NPM version](https://img.shields.io/npm/v/engine-cache.svg?style=flat)](https://www.npmjs.com/package/engine-cache) [![NPM monthly downloads](https://img.shields.io/npm/dm/engine-cache.svg?style=flat)](https://npmjs.org/package/engine-cache) [![NPM total downloads](https://img.shields.io/npm/dt/engine-cache.svg?style=flat)](https://npmjs.org/package/engine-cache) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/engine-cache.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/engine-cache) [![Windows Build Status](https://img.shields.io/appveyor/ci/jonschlinkert/engine-cache.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/jonschlinkert/engine-cache)

**v0.19.0** ensure the string is only rendered once by passing the compiled function to the `render` method
**v0.18.0** the `.load` method was renamed to `.setHelpers`

@@ -136,3 +138,3 @@

| --- | --- |
| 108 | [jonschlinkert](https://github.com/jonschlinkert) |
| 113 | [jonschlinkert](https://github.com/jonschlinkert) |
| 44 | [doowb](https://github.com/doowb) |

@@ -142,8 +144,8 @@

_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
To generate the readme and API documentation with [verb](https://github.com/verbose/verb):
To generate the readme, run the following command:
```sh
$ npm install -g verb verb-generate-readme && verb
$ npm install -g verbose/verb#dev verb-generate-readme && verb
```

@@ -156,3 +158,3 @@

```sh
$ npm install -d && npm test
$ npm install && npm test
```

@@ -174,2 +176,2 @@

_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.1, on January 16, 2017._
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.2, on February 20, 2017._
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