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

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 +4 -1
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -284049,6 +284049,10 @@ async function downloadFeatureZip(repo, featureName, version, owner = 'prefapp')
284049
284049
  try {
284050
284050
  const ref = `${featureName}-v${version}`;
284051
284051
  const octokit = await github_0.getOctokitForOrg(owner);
284052
+ const zipballExtractPath = catalog_common.features.tarballs.getFeaturesExtractPath(featureName, version, { createIfNotExists: true });
284053
+ if (external_fs_.existsSync(zipballExtractPath)) {
284054
+ return zipballExtractPath;
284055
+ }
284052
284056
  const response = await octokit.request('GET /repos/{owner}/{repo}/zipball/{ref}', {
284053
284057
  request: {
284054
284058
  parseSuccessResponseBody: false,
@@ -284057,7 +284061,6 @@ async function downloadFeatureZip(repo, featureName, version, owner = 'prefapp')
284057
284061
  repo,
284058
284062
  ref,
284059
284063
  });
284060
- const zipballExtractPath = catalog_common.features.tarballs.getFeaturesExtractPath(featureName, version, { createIfNotExists: true });
284061
284064
  const randomZipTmpPath = `/tmp/${catalog_common.generic.randomString(20)}.zip`;
284062
284065
  if (external_fs_.existsSync(randomZipTmpPath)) {
284063
284066
  external_fs_.unlinkSync(randomZipTmpPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.41.1-snapshot-1",
3
+ "version": "1.41.1-snapshot-2",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",