@firestartr/cli 1.45.0-snapshot-7 → 1.45.0-snapshot-8
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/build/index.js
CHANGED
@@ -275837,13 +275837,13 @@ async function prepareFeature(featureName, version, repo = 'features', owner = '
|
|
275837
275837
|
}
|
275838
275838
|
async function downloadFeatureZip(repo, featureName, reference, owner = 'prefapp') {
|
275839
275839
|
try {
|
275840
|
-
const
|
275841
|
-
const zipballExtractPath = catalog_common.features.tarballs.getFeaturesExtractPath(featureName, reference, { createIfNotExists: true });
|
275840
|
+
const zipballExtractPath = catalog_common.features.tarballs.getFeaturesExtractPath(featureName, reference);
|
275842
275841
|
console.log(`Zipball extract path: ${zipballExtractPath}`);
|
275843
275842
|
if (external_fs_.existsSync(zipballExtractPath)) {
|
275844
|
-
console.log(`Zipball extract path ${zipballExtractPath} already exists,
|
275845
|
-
|
275843
|
+
console.log(`Zipball extract path ${zipballExtractPath} already exists, reusing it.`);
|
275844
|
+
return zipballExtractPath;
|
275846
275845
|
}
|
275846
|
+
const octokit = await github_0.getOctokitForOrg(owner);
|
275847
275847
|
const response = await octokit.request('GET /repos/{owner}/{repo}/zipball/{reference}', {
|
275848
275848
|
request: {
|
275849
275849
|
parseSuccessResponseBody: false,
|
@@ -428,7 +428,7 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
428
428
|
verified_at: string;
|
429
429
|
};
|
430
430
|
};
|
431
|
-
author: {
|
431
|
+
author: Record<string, never> | {
|
432
432
|
name?: string;
|
433
433
|
email?: string;
|
434
434
|
login: string;
|
@@ -451,8 +451,8 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
451
451
|
site_admin: boolean;
|
452
452
|
starred_at?: string;
|
453
453
|
user_view_type?: string;
|
454
|
-
}
|
455
|
-
committer: {
|
454
|
+
};
|
455
|
+
committer: Record<string, never> | {
|
456
456
|
name?: string;
|
457
457
|
email?: string;
|
458
458
|
login: string;
|
@@ -475,7 +475,7 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
475
475
|
site_admin: boolean;
|
476
476
|
starred_at?: string;
|
477
477
|
user_view_type?: string;
|
478
|
-
}
|
478
|
+
};
|
479
479
|
parents: {
|
480
480
|
sha: string;
|
481
481
|
url: string;
|