# MIT licensed # Copyright (c) 2013-2021 Th3Whit3Wolf , et al. API_URL = 'https://open-vsx.org/api/%s/%s' async def get_version(name, conf, *, cache, **kwargs): name = conf.get('openvsx') or name splitName = name.split('.') publisher = splitName[0] extension = splitName[1] data = await cache.get_json(API_URL % (publisher, extension)) version = data['version'] return version