@alwaysmeticulous/downloading-helpers
Advanced tools
Comparing version 2.130.0 to 2.130.1
@@ -7,3 +7,2 @@ "use strict"; | ||
exports.fetchAsset = void 0; | ||
const fs_1 = require("fs"); | ||
const promises_1 = require("fs/promises"); | ||
@@ -16,2 +15,3 @@ const path_1 = require("path"); | ||
const snippets_1 = require("../config/snippets"); | ||
const download_file_1 = require("../file-downloads/download-file"); | ||
const local_data_utils_1 = require("../file-downloads/local-data.utils"); | ||
@@ -54,4 +54,3 @@ const ASSETS_FOLDER_NAME = "assets"; | ||
} | ||
const contentStream = (await client.get(urlToDownloadFrom, { responseType: "stream" })).data; | ||
await contentStream.pipe((0, fs_1.createWriteStream)(filePath)); | ||
await (0, download_file_1.downloadFile)(urlToDownloadFrom, filePath); | ||
if (entry) { | ||
@@ -58,0 +57,0 @@ logger.debug(`${urlToDownloadFrom} updated`); |
{ | ||
"name": "@alwaysmeticulous/downloading-helpers", | ||
"version": "2.130.0", | ||
"version": "2.130.1", | ||
"description": "Helper utilities for downloading files & scripts required to execute replays", | ||
@@ -54,3 +54,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "019e72e5b6c922abe5e94763b3434b8e25a27979" | ||
"gitHead": "8b328c1fe477d2cf7d967b3ad17dcb1423dc2063" | ||
} |
Sorry, the diff of this file is not supported yet
8
45829
541