This commit is contained in:
Joao Moreno
2016-01-27 11:52:15 +01:00
parent 82d9cc4250
commit 3a8d9f1db6
@@ -283,6 +283,10 @@ class DataSource implements IDataSource<IExtensionEntry> {
getId(entry: IExtensionEntry): string {
const extension = entry.extension;
if (!extension) {
throw new Error(`Not an extension entry. Found ${ Object.keys(entry).slice(5) },... instead.`);
}
if (extension.galleryInformation) {
return `${ extension.galleryInformation.id }-${ extension.version }`;
}