We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07225d0 commit 707b98dCopy full SHA for 707b98d
src/commands/cli/artifacts/compare.ts
@@ -31,9 +31,9 @@ async function getOwnerAndRepo(plugin: string): Promise<{ owner: string; repo: s
31
const result = await exec(`npm view ${plugin} repository.url --json`);
32
try {
33
const [owner, repo] = (
34
- result.stdout.startsWith('"')
+ result.stdout.includes('"')
35
? // it returned json (a string in quotes ex: "git+https://github.com/salesforcecli/plugin-org.git")
36
- (JSON.parse(result.stdout) as string)
+ (JSON.parse(result.stdout.trim()) as string)
37
: // it returned non-json (just the string) https://github.com/npm/cli/issues/7537
38
result.stdout
39
)
0 commit comments