@approval-tests/approvals 7.5.13 → 7.5.14
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/lib/Logs/LogUtils.js +5 -3
- package/package.json +2 -2
package/lib/Logs/LogUtils.js
CHANGED
|
@@ -30,8 +30,8 @@ class LogUtils {
|
|
|
30
30
|
}
|
|
31
31
|
static downloadApproveAllScriptIfMissing() {
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
void this.downloadFile(`approve_all.py`);
|
|
34
|
+
void this.downloadFile(`remove_abandoned_files.py`);
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
static downloadFile(script) {
|
|
@@ -40,7 +40,9 @@ class LogUtils {
|
|
|
40
40
|
const scriptPath = path_1.default.join(this.APPROVAL_TEMP_DIRECTORY, script);
|
|
41
41
|
if (!fs_1.default.existsSync(scriptPath)) {
|
|
42
42
|
const githubUrl = "https://raw.githubusercontent.com/approvals/ApprovalTests.CommonScripts/refs/heads/main/";
|
|
43
|
-
const response = yield axios_1.default.get(`${githubUrl}${script}
|
|
43
|
+
const response = yield axios_1.default.get(`${githubUrl}${script}`, {
|
|
44
|
+
timeout: 3000,
|
|
45
|
+
});
|
|
44
46
|
fs_1.default.writeFileSync(scriptPath, response.data);
|
|
45
47
|
fs_1.default.chmodSync(scriptPath, 0o755);
|
|
46
48
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"description": "Approval Tests Library - Capturing Human Intelligence",
|
|
7
|
-
"version": "7.5.
|
|
7
|
+
"version": "7.5.14",
|
|
8
8
|
"homepage": "http://approvaltests.com",
|
|
9
9
|
"author": {
|
|
10
10
|
"name": "Jason Jarrett",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"callsite": "^1.0.0",
|
|
60
60
|
"diff": "^9.0.0",
|
|
61
61
|
"event-stream": "^4.0.1",
|
|
62
|
-
"glob": "^
|
|
62
|
+
"glob": "^14.0.3",
|
|
63
63
|
"js-yaml": "^5.1.0",
|
|
64
64
|
"lodash": "^4.17.21",
|
|
65
65
|
"magic-bytes.js": "^1.13.1",
|