@firestartr/cli 1.43.2-snapshot-8 → 1.43.2-snapshot-9

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 -3
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -165787,7 +165787,7 @@ const Comparator = __nccwpck_require__(14435)
165787
165787
  const Range = __nccwpck_require__(34189)
165788
165788
  const satisfies = __nccwpck_require__(74432)
165789
165789
  const toComparators = __nccwpck_require__(90453)
165790
- const maxSatisfying = __nccwpck_require__(46253)
165790
+ const maxSatisfying = __nccwpck_require__(49939)
165791
165791
  const minSatisfying = __nccwpck_require__(59276)
165792
165792
  const minVersion = __nccwpck_require__(97241)
165793
165793
  const validRange = __nccwpck_require__(65493)
@@ -166213,7 +166213,7 @@ module.exports = ltr
166213
166213
 
166214
166214
  /***/ }),
166215
166215
 
166216
- /***/ 46253:
166216
+ /***/ 49939:
166217
166217
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
166218
166218
 
166219
166219
  const SemVer = __nccwpck_require__(87048)
@@ -284162,9 +284162,12 @@ var adm_zip = __nccwpck_require__(7993);
284162
284162
  var adm_zip_default = /*#__PURE__*/__nccwpck_require__.n(adm_zip);
284163
284163
  // EXTERNAL MODULE: external "node:stream"
284164
284164
  var external_node_stream_ = __nccwpck_require__(84492);
284165
+ ;// CONCATENATED MODULE: external "node:stream/promises"
284166
+ const external_node_stream_promises_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream/promises");
284165
284167
  ;// CONCATENATED MODULE: ../features_preparer/src/zip.ts
284166
284168
 
284167
284169
 
284170
+
284168
284171
  async function downloadZipBall(url, filePath) {
284169
284172
  try {
284170
284173
  const zipResponse = await fetch(url);
@@ -284173,7 +284176,8 @@ async function downloadZipBall(url, filePath) {
284173
284176
  }
284174
284177
  const webStream = zipResponse.body;
284175
284178
  const stream = external_node_stream_.Readable.fromWeb(webStream);
284176
- await (0,promises_namespaceObject.writeFile)(filePath, stream);
284179
+ const writableStream = external_fs_.createWriteStream(filePath);
284180
+ await (0,external_node_stream_promises_namespaceObject.pipeline)(stream, writableStream);
284177
284181
  }
284178
284182
  catch (err) {
284179
284183
  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-8",
3
+ "version": "1.43.2-snapshot-9",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",