@firestartr/cli 1.41.1-snapshot-3 → 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.
Files changed (2) hide show
  1. package/build/index.js +9 -1
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -284050,7 +284050,9 @@ 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)) {
284055
+ console.log(`Zipball extract path ${zipballExtractPath} already exists, removing it.`);
284054
284056
  external_fs_.unlinkSync(zipballExtractPath);
284055
284057
  }
284056
284058
  const response = await octokit.request('GET /repos/{owner}/{repo}/zipball/{ref}', {
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.41.1-snapshot-3",
3
+ "version": "1.41.1-snapshot-4",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",