live-fns: (vs marketplace) add "not found" status #113

pull/115/head
Amio 2018-08-16 22:47:45 +08:00
rodzic bb0c50f799
commit f53c67683d
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -7,6 +7,13 @@ module.exports = async (topic, pkg) => {
const { results } = await queryVSM(pkg).then(res => res.data)
const extension = results[0].extensions[0]
if (!extension) {
return {
subject: 'VS Marketplace',
status: 'not found'
}
}
switch (topic) {
case 'v':
const version = extension.versions[0].version