Socket
Socket
Sign inDemoInstall

express-hbs

Package Overview
Dependencies
3
Maintainers
30
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.1 to 2.4.2

13

lib/resolver.js
'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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc