@myndzi/app-framework
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -28,8 +28,2 @@ 'use strict'; | ||
function makePromise(arg) { | ||
if (typeof arg.then === 'function') { | ||
return arg; | ||
} | ||
if (typeof arg === 'function') { | ||
return Promise.promisify(arg)(); | ||
} | ||
if (typeof stream.once === 'function') { | ||
@@ -42,2 +36,8 @@ return new Promise(function (resolve, reject) { | ||
} | ||
if (typeof arg.then === 'function') { | ||
return arg; | ||
} | ||
if (typeof arg === 'function') { | ||
return Promise.promisify(arg)(); | ||
} | ||
if (arg instanceof Error) { | ||
@@ -44,0 +44,0 @@ return Promise.reject(arg); |
{ | ||
"name": "@myndzi/app-framework", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "Config and logging framework for Node.js applications", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |