@go-task/cli 3.45.3 → 3.45.5

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.
Files changed (3) hide show
  1. package/README.md +6 -1
  2. package/lib.js +5 -0
  3. package/package.json +14 -13
package/README.md CHANGED
@@ -19,7 +19,12 @@
19
19
  <tr>
20
20
  <td align="center" valign="middle">
21
21
  <a target="_blank" href="https://devowl.io">
22
- <img src="https://devowl.io/wp-content/uploads/meta/favicon.webp" height="100px" title="devowl.io" />
22
+ <img src="website/src/public/img/devowl.io.svg" height="100px" width="200px" title="devowl.io" />
23
+ </a>
24
+ </td>
25
+ <td align="center" valign="middle">
26
+ <a target="_blank" href="https://magic.dev/">
27
+ <img src="website/src/public/img/magic.png" height="100px" width="200px" title="Magic" />
23
28
  </a>
24
29
  </td>
25
30
  </tr>
package/lib.js CHANGED
@@ -6,8 +6,11 @@ const path = require("path");
6
6
  const JSZip = require("jszip");
7
7
  const tar = require("tar");
8
8
  const axios = require("axios");
9
+ const { ProxyAgent } = require("proxy-agent");
9
10
  const { spawnSync } = require("child_process");
10
11
 
12
+ const agent = new ProxyAgent();
13
+
11
14
  const getArchive = () => {
12
15
  let target = `${process.platform}-${process.arch}`;
13
16
  const archive = archives[target];
@@ -180,6 +183,8 @@ const download = async (url, filename) => {
180
183
  url: url,
181
184
  responseType: "stream",
182
185
  timeout: 300000, // 5min
186
+ httpAgent: agent,
187
+ httpsAgent: agent,
183
188
  });
184
189
 
185
190
  const writer = fs.createWriteStream(filename);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-task/cli",
3
- "version": "3.45.3",
3
+ "version": "3.45.5",
4
4
  "description": "A task runner / simpler Make alternative written in Go",
5
5
  "scripts": {
6
6
  "postinstall": "node install.js",
@@ -28,79 +28,80 @@
28
28
  "dependencies": {
29
29
  "axios": "^1.8.2",
30
30
  "jszip": "^3.10.1",
31
+ "proxy-agent": "^6.5.0",
31
32
  "tar": "^7.4.3"
32
33
  },
33
34
  "archives": {
34
35
  "darwin-arm64": {
35
36
  "name": "task_darwin_arm64.tar.gz",
36
- "url": "https://github.com/go-task/task/releases/download/v3.45.3/task_darwin_arm64.tar.gz",
37
+ "url": "https://github.com/go-task/task/releases/download/v3.45.5/task_darwin_arm64.tar.gz",
37
38
  "bins": [
38
39
  "task"
39
40
  ],
40
41
  "format": "tar.gz",
41
42
  "checksum": {
42
43
  "algorithm": "sha256",
43
- "digest": "1c621045b7c6da164e25d0c458d17339d01386cbeec67e79a98ae9528bdfe044"
44
+ "digest": "c76ec08ad1e64b012884f3be0084b149882cb6d77741c2d94f2aebf34805703c"
44
45
  }
45
46
  },
46
47
  "darwin-x64": {
47
48
  "name": "task_darwin_amd64.tar.gz",
48
- "url": "https://github.com/go-task/task/releases/download/v3.45.3/task_darwin_amd64.tar.gz",
49
+ "url": "https://github.com/go-task/task/releases/download/v3.45.5/task_darwin_amd64.tar.gz",
49
50
  "bins": [
50
51
  "task"
51
52
  ],
52
53
  "format": "tar.gz",
53
54
  "checksum": {
54
55
  "algorithm": "sha256",
55
- "digest": "ec181efc611e17bca76687b43444e22724983bba25ad602c3cd068419e642da6"
56
+ "digest": "5a06e2266b4c4a679c48582922ec06a25f81365b5f65298ef11dcafb9d379c2b"
56
57
  }
57
58
  },
58
59
  "linux-arm64": {
59
60
  "name": "task_linux_arm64.tar.gz",
60
- "url": "https://github.com/go-task/task/releases/download/v3.45.3/task_linux_arm64.tar.gz",
61
+ "url": "https://github.com/go-task/task/releases/download/v3.45.5/task_linux_arm64.tar.gz",
61
62
  "bins": [
62
63
  "task"
63
64
  ],
64
65
  "format": "tar.gz",
65
66
  "checksum": {
66
67
  "algorithm": "sha256",
67
- "digest": "cb5e6b62a4ae7acbe69c99ba344eb8e68e37f25905600e4694518fe75e412276"
68
+ "digest": "f15170659a8f538b976967e281537031693643ee63fc41c2cfcac63efcdf25e7"
68
69
  }
69
70
  },
70
71
  "linux-x64": {
71
72
  "name": "task_linux_amd64.tar.gz",
72
- "url": "https://github.com/go-task/task/releases/download/v3.45.3/task_linux_amd64.tar.gz",
73
+ "url": "https://github.com/go-task/task/releases/download/v3.45.5/task_linux_amd64.tar.gz",
73
74
  "bins": [
74
75
  "task"
75
76
  ],
76
77
  "format": "tar.gz",
77
78
  "checksum": {
78
79
  "algorithm": "sha256",
79
- "digest": "2c39d989ba8ab6ed37c025e9094e37240360fa2d69158504fc7a7486c88dc26f"
80
+ "digest": "e547ea2a47f5240657fdc89ea776baa90d628a1f2748242eaa7478fd92bffd40"
80
81
  }
81
82
  },
82
83
  "win32-arm64": {
83
84
  "name": "task_windows_arm64.zip",
84
- "url": "https://github.com/go-task/task/releases/download/v3.45.3/task_windows_arm64.zip",
85
+ "url": "https://github.com/go-task/task/releases/download/v3.45.5/task_windows_arm64.zip",
85
86
  "bins": [
86
87
  "task.exe"
87
88
  ],
88
89
  "format": "zip",
89
90
  "checksum": {
90
91
  "algorithm": "sha256",
91
- "digest": "24677c660078d1651e6151ed3e4433af28925a84c051ae148368e44d584b6c4e"
92
+ "digest": "2a9b3bec36c188ed0bae5c1e65f7518cea8cca763b9c56268886c548ef5cecf4"
92
93
  }
93
94
  },
94
95
  "win32-x64": {
95
96
  "name": "task_windows_amd64.zip",
96
- "url": "https://github.com/go-task/task/releases/download/v3.45.3/task_windows_amd64.zip",
97
+ "url": "https://github.com/go-task/task/releases/download/v3.45.5/task_windows_amd64.zip",
97
98
  "bins": [
98
99
  "task.exe"
99
100
  ],
100
101
  "format": "zip",
101
102
  "checksum": {
102
103
  "algorithm": "sha256",
103
- "digest": "dec53fd819593c9bce9fdc2fd0ad037a38b7bc7fa431d78d141cbb77123553b4"
104
+ "digest": "462687c285a07450de17f2af696d12c3c9536651e3d0085e483d56ab6cd0db4f"
104
105
  }
105
106
  }
106
107
  }