Skip to content

Commit

Permalink
Ignore bad canvas addon versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Aug 3, 2022
1 parent 67a1aa5 commit 4bace4b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/update-xterm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 was marked as spam.

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]);
});
});
Expand Down

0 comments on commit 4bace4b

Please sign in to comment.