updated npm modules

This commit is contained in:
2019-05-20 20:43:45 -05:00
parent 2319197b81
commit f166b72b7d
1113 changed files with 8758 additions and 12227 deletions
+6 -2
View File
@@ -1,5 +1,9 @@
'use strict';
module.exports = (callback, ...args) => new Promise(resolve => {
resolve(callback(...args));
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;