@alwaysmeticulous/downloading-helpers 2.71.0 → 2.72.0
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.
|
@@ -11,8 +11,9 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
11
11
|
const axios_retry_1 = __importDefault(require("axios-retry"));
|
|
12
12
|
const promisifiedFinished = (0, util_1.promisify)(stream_1.finished);
|
|
13
13
|
const downloadFile = async (fileUrl, path) => {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
// Using the same timeout as the standard client in meticulous-sdk/packages/client/src/client.ts
|
|
15
|
+
const client = axios_1.default.create({ timeout: 60000 });
|
|
16
|
+
(0, axios_retry_1.default)(client, { retries: 3, shouldResetTimeout: true });
|
|
16
17
|
const writer = (0, fs_1.createWriteStream)(path);
|
|
17
18
|
return client
|
|
18
19
|
.request({ method: "GET", url: fileUrl, responseType: "stream" })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-file.js","sourceRoot":"","sources":["../../src/file-downloads/download-file.ts"],"names":[],"mappings":";;;;;;AAAA,2BAAuC;AACvC,mCAAkC;AAClC,+BAAiC;AACjC,kDAA0B;AAC1B,8DAAqC;AAErC,MAAM,mBAAmB,GAAG,IAAA,gBAAS,EAAC,iBAAQ,CAAC,CAAC;AAEzC,MAAM,YAAY,GAGJ,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAC3C,MAAM,MAAM,GAAG,eAAK,CAAC,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"download-file.js","sourceRoot":"","sources":["../../src/file-downloads/download-file.ts"],"names":[],"mappings":";;;;;;AAAA,2BAAuC;AACvC,mCAAkC;AAClC,+BAAiC;AACjC,kDAA0B;AAC1B,8DAAqC;AAErC,MAAM,mBAAmB,GAAG,IAAA,gBAAS,EAAC,iBAAQ,CAAC,CAAC;AAEzC,MAAM,YAAY,GAGJ,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAC3C,gGAAgG;IAChG,MAAM,MAAM,GAAG,eAAK,CAAC,MAAM,CAAC,EAAC,OAAO,EAAE,KAAM,EAAC,CAAC,CAAC;IAC/C,IAAA,qBAAU,EAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC;IAE7D,MAAM,MAAM,GAAG,IAAA,sBAAiB,EAAC,IAAI,CAAC,CAAC;IAEvC,OAAO,MAAM;SACV,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC;SAChE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;QACvB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC3B,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAhBW,QAAA,YAAY,gBAgBvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/downloading-helpers",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.72.0",
|
|
4
4
|
"description": "Helper utilities for downloading files & scripts required to execute replays",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alwaysmeticulous/api": "^2.71.0",
|
|
23
|
-
"@alwaysmeticulous/client": "^2.
|
|
24
|
-
"@alwaysmeticulous/common": "^2.
|
|
23
|
+
"@alwaysmeticulous/client": "^2.72.0",
|
|
24
|
+
"@alwaysmeticulous/common": "^2.72.0",
|
|
25
25
|
"axios": "^1.2.6",
|
|
26
26
|
"axios-retry": "^3.5.0",
|
|
27
27
|
"extract-zip": "^2.0.1",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"bugs": {
|
|
51
51
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "f39fc34ba27a6f530d670b5282a9bc3afca63e9f"
|
|
54
54
|
}
|