@shopware-ag/shopware-cli 0.6.32 → 0.6.34
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.js +5 -0
- package/package.json +10 -9
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": "@shopware-ag/shopware-cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.34",
|
|
4
4
|
"description": "Shopware CLI helps Shopware developers manage extensions",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"postinstall": "node install.js",
|
|
@@ -26,55 +26,56 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"axios": "^1.8.2",
|
|
28
28
|
"jszip": "^3.10.1",
|
|
29
|
+
"proxy-agent": "^6.5.0",
|
|
29
30
|
"tar": "^7.4.3"
|
|
30
31
|
},
|
|
31
32
|
"archives": {
|
|
32
33
|
"darwin-arm64": {
|
|
33
34
|
"name": "shopware-cli_Darwin_arm64.tar.gz",
|
|
34
|
-
"url": "https://github.com/shopware/shopware-cli/releases/download/0.6.
|
|
35
|
+
"url": "https://github.com/shopware/shopware-cli/releases/download/0.6.34/shopware-cli_Darwin_arm64.tar.gz",
|
|
35
36
|
"bins": [
|
|
36
37
|
"shopware-cli"
|
|
37
38
|
],
|
|
38
39
|
"format": "tar.gz",
|
|
39
40
|
"checksum": {
|
|
40
41
|
"algorithm": "sha256",
|
|
41
|
-
"digest": "
|
|
42
|
+
"digest": "bbe7700a971cf052d3eb3c51a57e3fd579e396320bcbe1ba6a6bd05aaf21d1f5"
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
"darwin-x64": {
|
|
45
46
|
"name": "shopware-cli_Darwin_x86_64.tar.gz",
|
|
46
|
-
"url": "https://github.com/shopware/shopware-cli/releases/download/0.6.
|
|
47
|
+
"url": "https://github.com/shopware/shopware-cli/releases/download/0.6.34/shopware-cli_Darwin_x86_64.tar.gz",
|
|
47
48
|
"bins": [
|
|
48
49
|
"shopware-cli"
|
|
49
50
|
],
|
|
50
51
|
"format": "tar.gz",
|
|
51
52
|
"checksum": {
|
|
52
53
|
"algorithm": "sha256",
|
|
53
|
-
"digest": "
|
|
54
|
+
"digest": "7c768ed50d727fe108deb452b3a49f5b5127a3c0e4da61a8cf91cd8c07815e84"
|
|
54
55
|
}
|
|
55
56
|
},
|
|
56
57
|
"linux-arm64": {
|
|
57
58
|
"name": "shopware-cli_Linux_arm64.tar.gz",
|
|
58
|
-
"url": "https://github.com/shopware/shopware-cli/releases/download/0.6.
|
|
59
|
+
"url": "https://github.com/shopware/shopware-cli/releases/download/0.6.34/shopware-cli_Linux_arm64.tar.gz",
|
|
59
60
|
"bins": [
|
|
60
61
|
"shopware-cli"
|
|
61
62
|
],
|
|
62
63
|
"format": "tar.gz",
|
|
63
64
|
"checksum": {
|
|
64
65
|
"algorithm": "sha256",
|
|
65
|
-
"digest": "
|
|
66
|
+
"digest": "44153eb9d29af2bcac6fb8d48eb5e32508f08a52b1dfaa17909f012ad73b5a37"
|
|
66
67
|
}
|
|
67
68
|
},
|
|
68
69
|
"linux-x64": {
|
|
69
70
|
"name": "shopware-cli_Linux_x86_64.tar.gz",
|
|
70
|
-
"url": "https://github.com/shopware/shopware-cli/releases/download/0.6.
|
|
71
|
+
"url": "https://github.com/shopware/shopware-cli/releases/download/0.6.34/shopware-cli_Linux_x86_64.tar.gz",
|
|
71
72
|
"bins": [
|
|
72
73
|
"shopware-cli"
|
|
73
74
|
],
|
|
74
75
|
"format": "tar.gz",
|
|
75
76
|
"checksum": {
|
|
76
77
|
"algorithm": "sha256",
|
|
77
|
-
"digest": "
|
|
78
|
+
"digest": "25acf85d9db159e4e5baa8a03fc81c2b8f8aba0ea66ccf3c09cf314ecd9713ea"
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
}
|