@alwaysmeticulous/downloading-helpers 2.133.0 → 2.135.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.
|
@@ -17,7 +17,11 @@ const downloadFile = async (fileUrl, path) => {
|
|
|
17
17
|
// Using the same timeout as the standard client in meticulous-sdk/packages/client/src/client.ts
|
|
18
18
|
const client = axios_1.default.create({ timeout: 60000 });
|
|
19
19
|
(0, axios_retry_1.default)(client, { retries: 3, shouldResetTimeout: true });
|
|
20
|
-
const tmpFile = (0, tmp_1.fileSync)(
|
|
20
|
+
const tmpFile = (0, tmp_1.fileSync)(
|
|
21
|
+
// Create the temporary file in the same directory. This is needed because cloud-replay
|
|
22
|
+
// has the default temporary directory in a different file system which causes the rename
|
|
23
|
+
// below to fail if we don't set this.
|
|
24
|
+
{ dir: path.substring(0, path.lastIndexOf("/")) });
|
|
21
25
|
const writer = (0, fs_1.createWriteStream)(tmpFile.name);
|
|
22
26
|
await client
|
|
23
27
|
.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,2BAAmD;AACnD,0CAAiC;AACjC,mCAAkC;AAClC,+BAAiC;AACjC,kDAA0B;AAC1B,8DAAqC;AACrC,8DAAkC;AAClC,6BAA+B;AAE/B,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,EAAE,OAAO,EAAE,KAAM,EAAE,CAAC,CAAC;IACjD,IAAA,qBAAU,EAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAA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CAAC;AACjC,CAAC,CAAC;AAxBW,QAAA,YAAY,gBAwBvB;AAEF;;;;;GAKG;AACI,MAAM,sBAAsB,GAIV,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE;IAChE,MAAM,IAAA,oBAAY,EAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACtC,MAAM,OAAO,GAAa,EAAE,CAAC;IAE7B,IAAI;QACF,MAAM,IAAA,qBAAO,EAAC,QAAQ,EAAE;YACtB,GAAG,EAAE,WAAW;YAChB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;SACjD,CAAC,CAAC;KACJ;YAAS;QACR,MAAM,IAAA,aAAE,EAAC,QAAQ,CAAC,CAAC;KACpB;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAlBW,QAAA,sBAAsB,0BAkBjC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/downloading-helpers",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.135.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.133.0",
|
|
23
|
-
"@alwaysmeticulous/client": "^2.
|
|
24
|
-
"@alwaysmeticulous/common": "^2.
|
|
23
|
+
"@alwaysmeticulous/client": "^2.134.0",
|
|
24
|
+
"@alwaysmeticulous/common": "^2.134.0",
|
|
25
25
|
"axios": "^1.2.6",
|
|
26
26
|
"axios-retry": "^4.1.0",
|
|
27
27
|
"extract-zip": "^2.0.1",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"bugs": {
|
|
54
54
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "aa789f2e68159768aa71f8416fa9f846f10b32e0"
|
|
57
57
|
}
|