UNPKG

663 BJavaScriptView Raw
1/*
2 whenx v1.1.7
3 https://github.com/cdll/whenx
4 Released under the MIT License.
5*/var whenx=function(){var a=(a,b={})=>new Promise((c,d)=>{var e=wx[a](Object.assign(b,{success:a=>c(a),fail:a=>d(a),complete:b.complete}));if(b.progress)if("function"==typeof b.progress){Function.call(b.progress,e)}else console.warn(`[whenx]progress must be a function to call with task but not: ${typeof b.progress}`)}),b=function(b={}){for(let c in wx)b[c]="function"==typeof wx[c]?b=>a.call(this,c,b):wx[c];return b}(),c=b,d={default:c,__moduleExports:c},e=d;return e.whenx=d,e.thenx={default:a,__moduleExports:a},e._version_="1.1.7",e}();
6//# sourceMappingURL=whenx.min.js.map