@firestartr/cli 1.43.2-snapshot-4 → 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.
Files changed (2) hide show
  1. package/build/index.js +7 -2
  2. package/package.json +1 -1
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,8 +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);
284192
+ const webStream = zipResponse.body;
284193
+ const stream = external_node_stream_.Readable.fromWeb(webStream);
284194
+ await (0,promises_namespaceObject.writeFile)(filePath, stream);
284190
284195
  }
284191
284196
  catch (err) {
284192
284197
  throw new Error(`Downloading feature's zip: ${err.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.43.2-snapshot-4",
3
+ "version": "1.43.2-snapshot-6",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",