bluefeather
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -20,3 +20,2 @@ 'use strict'; | ||
const multipleArguments = typeof options.multipleArguments === 'boolean' ? options.multipleArguments : false; | ||
const context = options.context || null; | ||
@@ -41,3 +40,3 @@ return (...args) => { | ||
nodeFunction.apply(context, args.concat([callback])); | ||
nodeFunction(...args.concat([callback])); | ||
}); | ||
@@ -44,0 +43,0 @@ }; |
@@ -64,3 +64,3 @@ { | ||
}, | ||
"version": "2.1.0" | ||
"version": "2.2.0" | ||
} |
@@ -47,7 +47,5 @@ # Bluefeather | ||
/** | ||
* @property context Invokes `nodeFunction` using `context` as the calling object. | ||
* @property multipleArguments Makes the resulting promise fulfill with an array of the callback's success value(s). | ||
*/ | ||
type PromisifyOptionsType = {| | ||
context?: any, | ||
multipleArguments?: boolean | ||
@@ -54,0 +52,0 @@ |}; |
@@ -8,3 +8,2 @@ // @flow | ||
type PromisifyOptionsType = {| | ||
context?: any, | ||
multipleArguments?: boolean | ||
@@ -21,3 +20,2 @@ |}; | ||
const multipleArguments = typeof options.multipleArguments === 'boolean' ? options.multipleArguments : false; | ||
const context = options.context || null; | ||
@@ -42,3 +40,5 @@ return (...args: Array<any>): Promise<any> => { | ||
nodeFunction.apply(context, args.concat([callback])); | ||
nodeFunction( | ||
...args.concat([callback]) | ||
); | ||
}); | ||
@@ -45,0 +45,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15770
156
62