Bones/node_modules/promise-finally/dist/promise-finally.js
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00

9 lines
474 B
JavaScript

"use strict";
var Promise = require('any-promise');
function promiseFinally(value, cb) {
return Promise.resolve(value)
.then(function (value) { return Promise.resolve(cb()).then(function () { return value; }); }, function (reason) { return Promise.resolve(cb()).then(function () { return Promise.reject(reason); }); });
}
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = promiseFinally;
//# sourceMappingURL=promise-finally.js.map