api2cli 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2420,7 +2420,7 @@ Examples:
|
|
|
2420
2420
|
process.exit(1);
|
|
2421
2421
|
}
|
|
2422
2422
|
const data = await res.json();
|
|
2423
|
-
const githubUrl = data.githubRepo || data.
|
|
2423
|
+
const githubUrl = data.data?.githubRepo || data.githubRepo;
|
|
2424
2424
|
if (!githubUrl) {
|
|
2425
2425
|
console.error(`${import_picocolors3.default.red("\u2717")} No GitHub repo found for ${source}.`);
|
|
2426
2426
|
process.exit(1);
|