Skip to content

Commit

Permalink
Very it's not an array
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Nov 1, 2023
1 parent 3192559 commit 77f28d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function getPublishedVersions(packageJson, version, tag) {
throw new Error('Could not get published versions\n' + err);
}
const output = JSON.parse(versionsProcess.stdout);
if (typeof output === 'object') {
if (typeof output === 'object' && !Array.isArray(output)) {
if (output.error?.code === 'E404') {
return [];
}
Expand Down

0 comments on commit 77f28d9

Please sign in to comment.