@firestartr/cli 1.45.0-snapshot-6 → 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.
Files changed (2) hide show
  1. package/build/index.js +10 -10
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -273948,11 +273948,13 @@ async function getClaimsByName(name, cwd = '.') {
273948
273948
  cwd: cwd,
273949
273949
  });
273950
273950
  const entradas = [];
273951
+ const chunks = [];
273951
273952
  handler.stdout.on('data', (data) => {
273952
- const fileNameList = data
273953
- .toString('utf-8')
273954
- .split(/\n/)
273955
- .filter((l) => l !== '');
273953
+ chunks.push(data.toString('utf-8'));
273954
+ });
273955
+ handler.on('close', () => {
273956
+ const dataFinal = chunks.join('');
273957
+ const fileNameList = dataFinal.split(/\n/).filter((line) => line !== '');
273956
273958
  for (const fileName of fileNameList) {
273957
273959
  // only yaml files
273958
273960
  if (!fileName.match(/\.yml$|\.yaml$/)) {
@@ -273964,8 +273966,6 @@ async function getClaimsByName(name, cwd = '.') {
273964
273966
  }
273965
273967
  entradas.push(external_path_.join(cwd, fileName));
273966
273968
  }
273967
- });
273968
- handler.on('close', () => {
273969
273969
  return Promise.all(entradas.map((entrada) => {
273970
273970
  return loadRawClaim(entrada);
273971
273971
  }))
@@ -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 octokit = await github_0.getOctokitForOrg(owner);
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, removing it.`);
275845
- external_fs_.rmSync(zipballExtractPath, { recursive: true });
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.45.0-snapshot-6",
3
+ "version": "1.45.0-snapshot-8",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",