@firestartr/cli 1.43.2-snapshot-5 → 1.43.2-snapshot-6

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
@@ -284110,12 +284110,16 @@ function renderFeature(featureName, version, featureOwner, renderPath = '/tmp',
284110
284110
  // EXTERNAL MODULE: ../../node_modules/adm-zip/adm-zip.js
284111
284111
  var adm_zip = __nccwpck_require__(7993);
284112
284112
  var adm_zip_default = /*#__PURE__*/__nccwpck_require__.n(adm_zip);
284113
+ // EXTERNAL MODULE: external "node:stream"
284114
+ var external_node_stream_ = __nccwpck_require__(84492);
284113
284115
  ;// CONCATENATED MODULE: ../features_preparer/src/installer.ts
284114
284116
 
284115
284117
 
284116
284118
 
284117
284119
 
284118
284120
 
284121
+
284122
+
284119
284123
  //const IS_COMMIT_REF = new RegExp(/\b[0-9a-f]{40}/g);
284120
284124
  const IS_SEMVER_REF = new RegExp(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([\da-zA-Z-]+(?:\.[\da-zA-Z-]+)*))?(?:\+([\da-zA-Z-]+(?:\.[\da-zA-Z-]+)*))?$/);
284121
284125
  async function getFeatureConfig(featureName, version, featureOwner, // -> cr
@@ -284185,10 +284189,9 @@ async function downloadZipBall(url, filePath) {
284185
284189
  if (!zipResponse.ok) {
284186
284190
  throw new Error(`Failed to download ZIP: ${zipResponse.statusText}`);
284187
284191
  }
284188
- const zipBuffer = await zipResponse.text();
284189
- external_fs_.writeFileSync(filePath, zipBuffer);
284190
- const stats = external_fs_.statfsSync(filePath);
284191
- console.dir(stats);
284192
+ const webStream = zipResponse.body;
284193
+ const stream = external_node_stream_.Readable.fromWeb(webStream);
284194
+ await (0,promises_namespaceObject.writeFile)(filePath, stream);
284192
284195
  }
284193
284196
  catch (err) {
284194
284197
  throw new Error(`Downloading feature's zip: ${err.message}`);
@@ -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.43.2-snapshot-5",
3
+ "version": "1.43.2-snapshot-6",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",