From c1ce89359a7b54ec97b54ce577e5534c180c5c4b Mon Sep 17 00:00:00 2001 From: HumairAK Date: Mon, 18 Jul 2016 06:49:16 -0400 Subject: Various fixes, see changelog for details. --- node_modules/express-handlebars/lib/utils.js | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 node_modules/express-handlebars/lib/utils.js (limited to 'node_modules/express-handlebars/lib/utils.js') diff --git a/node_modules/express-handlebars/lib/utils.js b/node_modules/express-handlebars/lib/utils.js new file mode 100644 index 0000000..a16da39 --- /dev/null +++ b/node_modules/express-handlebars/lib/utils.js @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2014, Yahoo Inc. All rights reserved. + * Copyrights licensed under the New BSD License. + * See the accompanying LICENSE file for terms. + */ + +'use strict'; + +exports.assign = Object.assign || require('object.assign'); +exports.passError = passError; +exports.passValue = passValue; + +// ----------------------------------------------------------------------------- + +function passError(callback) { + return function (reason) { + setImmediate(function () { + callback(reason); + }); + }; +} + +function passValue(callback) { + return function (value) { + setImmediate(function () { + callback(null, value); + }); + }; +} -- cgit v1.2.3