Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « p-try « node_modules - github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: db858da29252b8f5772d6ec4df23577718211c19 (plain)
1
2
3
4
5
6
7
8
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;