Skip to content
Permalink
Browse files
Ignore bad canvas addon versions
  • Loading branch information
Tyriar committed Aug 3, 2022
1 parent 67a1aa5 commit 4bace4b5745698f1d8fb351b92de31c6074fa5dc
Showing 1 changed file with 11 additions and 1 deletion.
@@ -31,7 +31,17 @@ function getLatestModuleVersion(moduleName) {
if (err) {
reject(err);
}
const versions = JSON.parse(stdout);
let versions = JSON.parse(stdout);
// HACK: Some bad versions were published as v5 which cannot be unpublished, ignore these
if (moduleName === 'xterm-addon-canvas') {
versions = versions.filter(e => ![

This comment has been minimized.

Copy link
@kabeya1

kabeya1 Aug 25, 2022

hello

'0.12.0',
'5.0.0-beta.1',
'5.0.0-beta.2',
'5.0.0-beta.3',
'5.0.0-beta.4',
].includes(e));
}
resolve(versions[versions.length - 1]);
});
});

0 comments on commit 4bace4b

Please sign in to comment.