@firestartr/cli 1.41.1-snapshot-2 → 1.41.1-snapshot-4

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
@@ -284050,8 +284050,10 @@ async function downloadFeatureZip(repo, featureName, version, owner = 'prefapp')
284050
284050
  const ref = `${featureName}-v${version}`;
284051
284051
  const octokit = await github_0.getOctokitForOrg(owner);
284052
284052
  const zipballExtractPath = catalog_common.features.tarballs.getFeaturesExtractPath(featureName, version, { createIfNotExists: true });
284053
+ console.log(`Zipball extract path: ${zipballExtractPath}`);
284053
284054
  if (external_fs_.existsSync(zipballExtractPath)) {
284054
- return zipballExtractPath;
284055
+ console.log(`Zipball extract path ${zipballExtractPath} already exists, removing it.`);
284056
+ external_fs_.unlinkSync(zipballExtractPath);
284055
284057
  }
284056
284058
  const response = await octokit.request('GET /repos/{owner}/{repo}/zipball/{ref}', {
284057
284059
  request: {
@@ -284062,16 +284064,22 @@ async function downloadFeatureZip(repo, featureName, version, owner = 'prefapp')
284062
284064
  ref,
284063
284065
  });
284064
284066
  const randomZipTmpPath = `/tmp/${catalog_common.generic.randomString(20)}.zip`;
284067
+ console.log(`Downloading feature ${featureName} version ${version} to ${randomZipTmpPath}`);
284065
284068
  if (external_fs_.existsSync(randomZipTmpPath)) {
284069
+ console.log(`Temporary zip file ${randomZipTmpPath} already exists, removing it.`);
284066
284070
  external_fs_.unlinkSync(randomZipTmpPath);
284067
284071
  }
284068
284072
  const randomExtractPath = `/tmp/${catalog_common.generic.randomString(20)}`;
284069
- console.dir(response, { depth: null });
284073
+ console.log(`Extracting feature ${featureName} version ${version} to ${randomExtractPath}`);
284070
284074
  await (0,external_node_stream_promises_namespaceObject.pipeline)(response.data, external_fs_.createWriteStream(randomZipTmpPath));
284071
284075
  const zip = new (adm_zip_default())(randomZipTmpPath);
284072
284076
  const mainEntry = zip.getEntries()[0].entryName;
284077
+ console.log(`Main entry in zip: ${mainEntry}`);
284078
+ console.log(`Extracting zip to ${randomExtractPath}`);
284073
284079
  zip.extractAllTo(randomExtractPath, true);
284080
+ console.log(`Renaming main entry ${mainEntry} to ${zipballExtractPath}`);
284074
284081
  external_fs_.renameSync(`${randomExtractPath}/${mainEntry}`, zipballExtractPath);
284082
+ console.log(`Removing temporary zip file ${randomZipTmpPath}`);
284075
284083
  external_fs_.unlinkSync(randomZipTmpPath);
284076
284084
  return zipballExtractPath;
284077
284085
  }
@@ -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: Record<string, never> | {
431
+ author: {
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: Record<string, never> | {
454
+ } | Record<string, never>;
455
+ committer: {
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
+ } | Record<string, never>;
479
479
  parents: {
480
480
  sha: string;
481
481
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.41.1-snapshot-2",
3
+ "version": "1.41.1-snapshot-4",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",