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

1 line
861 B
Plaintext

{"version":3,"file":"promise-finally.js","sourceRoot":"","sources":["../src/promise-finally.ts"],"names":[],"mappings":";AAAA,IAAO,OAAO,WAAW,aAAa,CAAC,CAAA;AAEvC,wBAAwC,KAAU,EAAE,EAAY;IAC9D,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;SAC1B,IAAI,CACH,UAAA,KAAK,IAAI,OAAA,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAM,OAAA,KAAK,EAAL,CAAK,CAAC,EAAvC,CAAuC,EAChD,UAAA,MAAM,IAAI,OAAA,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAM,OAAA,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAtB,CAAsB,CAAC,EAAxD,CAAwD,CACnE,CAAA;AACL,CAAC;AAND;gCAMC,CAAA","sourcesContent":["import Promise = require('any-promise')\n\nexport default function promiseFinally (value: any, cb: Function) {\n return Promise.resolve(value)\n .then(\n value => Promise.resolve(cb()).then(() => value),\n reason => Promise.resolve(cb()).then(() => Promise.reject(reason))\n )\n}\n"]}