mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
[npm] package.json latest vue version incorrect (#159315)
[npm] package.json latest vue version incorrect. FIxes #158850
This commit is contained in:
committed by
GitHub
parent
29ee89a281
commit
c1dd46c2f4
@@ -314,9 +314,10 @@ export class PackageJSONContribution implements IJSONContribution {
|
||||
headers: { agent: USER_AGENT }
|
||||
});
|
||||
const obj = JSON.parse(success.responseText);
|
||||
const version = obj['dist-tags']?.latest || Object.keys(obj.versions).pop() || '';
|
||||
return {
|
||||
description: obj.description || '',
|
||||
version: Object.keys(obj.versions).pop(),
|
||||
version,
|
||||
homepage: obj.homepage || ''
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user