@poap-xyz/drops
Advanced tools
Comparing version 0.7.2 to 0.7.3
@@ -130,3 +130,2 @@ (function (global, factory) { | ||
static getDropImageFromCompass(response) { | ||
var _a; | ||
const defaultImage = { | ||
@@ -136,6 +135,9 @@ crop: response.image_url, | ||
}; | ||
return (((_a = response.drop_image) === null || _a === void 0 ? void 0 : _a.gateways.reduce((images, gateway) => ({ | ||
if (!response.drop_image) { | ||
return defaultImage; | ||
} | ||
return response.drop_image.gateways.reduce((images, gateway) => ({ | ||
...images, | ||
[gateway.type.toLowerCase()]: gateway.url, | ||
}), defaultImage)) || defaultImage); | ||
}), defaultImage); | ||
} | ||
@@ -142,0 +144,0 @@ static fromProvider(response) { |
{ | ||
"name": "@poap-xyz/drops", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "Drops module for the poap.js library", | ||
@@ -32,5 +32,5 @@ "main": "dist/cjs/index.cjs", | ||
"dependencies": { | ||
"@poap-xyz/providers": "0.7.2", | ||
"@poap-xyz/utils": "0.7.2" | ||
"@poap-xyz/providers": "0.7.3", | ||
"@poap-xyz/utils": "0.7.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
196181
46
1977
+ Added@poap-xyz/providers@0.7.3(transitive)
+ Added@poap-xyz/utils@0.7.3(transitive)
- Removed@poap-xyz/providers@0.7.2(transitive)
- Removed@poap-xyz/utils@0.7.2(transitive)
Updated@poap-xyz/providers@0.7.3
Updated@poap-xyz/utils@0.7.3