diff options
author | Daniel Imms <2193314+Tyriar@users.noreply.github.com> | 2022-08-03 13:27:18 +0300 |
---|---|---|
committer | Daniel Imms <2193314+Tyriar@users.noreply.github.com> | 2022-08-03 13:32:24 +0300 |
commit | 4bace4b5745698f1d8fb351b92de31c6074fa5dc (patch) | |
tree | 1af79e6ed3d1e7c097b7ea7365ba91ce1bf0d0b2 | |
parent | 67a1aa5cad1c711b054e7990da0191ac9938d8a1 (diff) |
Ignore bad canvas addon versions
-rw-r--r-- | scripts/update-xterm.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/update-xterm.js b/scripts/update-xterm.js index ac11b9e3217..bc574935902 100644 --- a/scripts/update-xterm.js +++ b/scripts/update-xterm.js @@ -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 => ![ + '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]); }); }); |