express-hbs
Advanced tools
Comparing version 2.4.1 to 2.4.2
'use strict'; | ||
var Promise = require('bluebird'); | ||
var generateId = require('./generate-id'); | ||
@@ -31,5 +29,12 @@ | ||
// cache is an object where the keys are cache keys and values are promises. See above. | ||
function done(cache, callback) { | ||
Promise.props(cache).then(function(values) { | ||
callback(null, values); | ||
return Promise.all(Object.values(cache)) | ||
.then(function(values) { | ||
var resolvedCache = {}; | ||
var keys = Object.keys(cache); | ||
values.forEach(function(value, index) { | ||
resolvedCache[keys[index]] = value; | ||
}); | ||
callback(null, resolvedCache); | ||
}).catch(function(error) { | ||
@@ -36,0 +41,0 @@ callback(error); |
{ | ||
"name": "express-hbs", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "Express handlebars template engine complete with multiple layouts, partials and blocks.", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"cookie-parser": "1.4.6", | ||
"eslint": "8.47.0", | ||
"eslint": "8.48.0", | ||
"express": "4.18.2", | ||
@@ -43,3 +43,2 @@ "i18n": "0.15.1", | ||
"dependencies": { | ||
"bluebird": "^3.5.3", | ||
"handlebars": "^4.7.7", | ||
@@ -46,0 +45,0 @@ "lodash": "^4.17.21", |
Sorry, the diff of this file is not supported yet
86241
4
2110
- Removedbluebird@^3.5.3
- Removedbluebird@3.7.2(transitive)