Skip to content

Commit

Permalink
Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Nov 1, 2023
1 parent 92eb782 commit fbc51ae
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bin/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ function getPublishedVersions(packageJson, version, tag) {
throw new Error('Could not get published versions\n' + err);
}
const output = JSON.parse(versionsProcess.stdout);
console.log('output', output);
console.log('typeof output', typeof output);
if (typeof output === 'object' && !Array.isArray(output)) {
if (output.error?.code === 'E404') {
return [];
Expand All @@ -139,9 +137,7 @@ function getPublishedVersions(packageJson, version, tag) {
if (!output || Array.isArray(output) && output.length === 0) {
return [];
}
console.log('output', output);
const versionsJson = asArray(output);
console.log('versionsJson', versionsJson);
if (tag) {
return versionsJson.filter(v => !v.search(new RegExp(`${version}-${tag}.[0-9]+`)));
}
Expand Down

0 comments on commit fbc51ae

Please sign in to comment.