diff options
Diffstat (limited to 'node_modules/p-try/index.js')
-rw-r--r-- | node_modules/p-try/index.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/p-try/index.js b/node_modules/p-try/index.js new file mode 100644 index 0000000..db858da --- /dev/null +++ b/node_modules/p-try/index.js @@ -0,0 +1,9 @@ +'use strict'; + +const pTry = (fn, ...arguments_) => new Promise(resolve => { + resolve(fn(...arguments_)); +}); + +module.exports = pTry; +// TODO: remove this in the next major version +module.exports.default = pTry; |