@alwaysmeticulous/downloading-helpers 2.63.0 → 2.65.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.
- package/dist/scripts/replays.js +2 -3
- package/package.json +5 -6
package/dist/scripts/replays.js
CHANGED
|
@@ -8,7 +8,7 @@ const promises_1 = require("fs/promises");
|
|
|
8
8
|
const path_1 = require("path");
|
|
9
9
|
const client_1 = require("@alwaysmeticulous/client");
|
|
10
10
|
const common_1 = require("@alwaysmeticulous/common");
|
|
11
|
-
const
|
|
11
|
+
const extract_zip_1 = __importDefault(require("extract-zip"));
|
|
12
12
|
const loglevel_1 = __importDefault(require("loglevel"));
|
|
13
13
|
const download_file_1 = require("../file-downloads/download-file");
|
|
14
14
|
const local_data_utils_1 = require("../file-downloads/local-data.utils");
|
|
@@ -48,8 +48,7 @@ const getOrFetchReplayArchive = async (client, replayId) => {
|
|
|
48
48
|
process.exit(1);
|
|
49
49
|
}
|
|
50
50
|
await (0, download_file_1.downloadFile)(downloadUrlData.dowloadUrl, replayArchiveFile);
|
|
51
|
-
|
|
52
|
-
zipFile.extractAllTo(replayDir, /*overwrite=*/ true);
|
|
51
|
+
await (0, extract_zip_1.default)(replayArchiveFile, { dir: replayDir });
|
|
53
52
|
await (0, promises_1.rm)(replayArchiveFile);
|
|
54
53
|
logger.debug(`Extracted replay archive in ${replayDir}`);
|
|
55
54
|
return { fileName: replayDir };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/downloading-helpers",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.65.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,17 +20,16 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alwaysmeticulous/api": "^2.63.0",
|
|
23
|
-
"@alwaysmeticulous/client": "^2.
|
|
24
|
-
"@alwaysmeticulous/common": "^2.
|
|
25
|
-
"adm-zip": "^0.5.9",
|
|
23
|
+
"@alwaysmeticulous/client": "^2.64.0",
|
|
24
|
+
"@alwaysmeticulous/common": "^2.64.0",
|
|
26
25
|
"axios": "^1.2.6",
|
|
27
26
|
"axios-retry": "^3.5.0",
|
|
27
|
+
"extract-zip": "^2.0.1",
|
|
28
28
|
"loglevel": "^1.8.0",
|
|
29
29
|
"luxon": "^3.2.1",
|
|
30
30
|
"proper-lockfile": "^4.1.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/adm-zip": "^0.5.0",
|
|
34
33
|
"@types/luxon": "^3.2.0",
|
|
35
34
|
"@types/proper-lockfile": "^4.1.2"
|
|
36
35
|
},
|
|
@@ -51,5 +50,5 @@
|
|
|
51
50
|
"bugs": {
|
|
52
51
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
53
52
|
},
|
|
54
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "2dc5cb5f92df04a2f80abf6950bb5ffadb57b2cd"
|
|
55
54
|
}
|