mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
1 line
358 B
JavaScript
1 line
358 B
JavaScript
var path=require("path"),Promise=require(path.join(__dirname,"lib","npo.src.js"));module.exports.deferred=function(){var o={};return o.promise=new Promise(function(resolve,reject){o.resolve=resolve,o.reject=reject}),o},module.exports.resolved=function(val){return Promise.resolve(val)},module.exports.rejected=function(reason){return Promise.reject(reason)}; |