Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new CancelablePromise((resolve) => {
imgur.getAlbumInfo(getFileGroup(url))
.then((json: any) => {
const images = json.data.images.map((i: any) => i.link);
helpers.next = null;
helpers.count = helpers.count + filterPathsToJustPlayable(IF.any, images, true).length;
resolve({
data: filterPathsToJustPlayable(filter, images, true),
helpers: helpers,
})
})
.catch((err: any) => {
console.error(err.message);
resolve(null);
});
});
}