aliyun-cli-npm 3.3.17 → 5.0.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.
Files changed (2) hide show
  1. package/lib/downloader.js +8 -10
  2. package/package.json +1 -1
package/lib/downloader.js CHANGED
@@ -7,8 +7,6 @@ const { promisify } = require('util');
7
7
  const pipeline = promisify(require('stream').pipeline);
8
8
  const { getPlatformInfo } = require('./platform');
9
9
 
10
- const VERSION = '3.3.17';
11
-
12
10
  const DOWNLOAD_SOURCES = [
13
11
  {
14
12
  name: 'Aliyun CDN',
@@ -24,20 +22,20 @@ const DOWNLOAD_SOURCES = [
24
22
  name: 'GitHub Releases',
25
23
  priority: 2,
26
24
  urls: {
27
- 'windows-amd64': `https://github.com/aliyun/aliyun-cli/releases/download/v${VERSION}/aliyun-cli-windows-amd64.zip`,
28
- 'mac-amd64': `https://github.com/aliyun/aliyun-cli/releases/download/v${VERSION}/aliyun-cli-macosx-amd64.tgz`,
29
- 'mac-arm64': `https://github.com/aliyun/aliyun-cli/releases/download/v${VERSION}/aliyun-cli-macosx-arm64.tgz`,
30
- 'linux-amd64': `https://github.com/aliyun/aliyun-cli/releases/download/v${VERSION}/aliyun-cli-linux-amd64.tgz`
25
+ 'windows-amd64': 'https://github.com/aliyun/aliyun-cli/releases/latest/download/aliyun-cli-windows-amd64.zip',
26
+ 'mac-amd64': 'https://github.com/aliyun/aliyun-cli/releases/latest/download/aliyun-cli-macosx-amd64.tgz',
27
+ 'mac-arm64': 'https://github.com/aliyun/aliyun-cli/releases/latest/download/aliyun-cli-macosx-arm64.tgz',
28
+ 'linux-amd64': 'https://github.com/aliyun/aliyun-cli/releases/latest/download/aliyun-cli-linux-amd64.tgz'
31
29
  }
32
30
  },
33
31
  {
34
32
  name: 'GitHub Mirror',
35
33
  priority: 3,
36
34
  urls: {
37
- 'windows-amd64': `https://ghproxy.com/https://github.com/aliyun/aliyun-cli/releases/download/v${VERSION}/aliyun-cli-windows-amd64.zip`,
38
- 'mac-amd64': `https://ghproxy.com/https://github.com/aliyun/aliyun-cli/releases/download/v${VERSION}/aliyun-cli-macosx-amd64.tgz`,
39
- 'mac-arm64': `https://ghproxy.com/https://github.com/aliyun/aliyun-cli/releases/download/v${VERSION}/aliyun-cli-macosx-arm64.tgz`,
40
- 'linux-amd64': `https://ghproxy.com/https://github.com/aliyun/aliyun-cli/releases/download/v${VERSION}/aliyun-cli-linux-amd64.tgz`
35
+ 'windows-amd64': 'https://ghproxy.com/https://github.com/aliyun/aliyun-cli/releases/latest/download/aliyun-cli-windows-amd64.zip',
36
+ 'mac-amd64': 'https://ghproxy.com/https://github.com/aliyun/aliyun-cli/releases/latest/download/aliyun-cli-macosx-amd64.tgz',
37
+ 'mac-arm64': 'https://ghproxy.com/https://github.com/aliyun/aliyun-cli/releases/latest/download/aliyun-cli-macosx-arm64.tgz',
38
+ 'linux-amd64': 'https://ghproxy.com/https://github.com/aliyun/aliyun-cli/releases/latest/download/aliyun-cli-linux-amd64.tgz'
41
39
  }
42
40
  }
43
41
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aliyun-cli-npm",
3
- "version": "3.3.17",
3
+ "version": "5.0.0",
4
4
  "description": "阿里云CLI统一入口 - 支持按需下载,轻量高效的npm封装包",
5
5
  "main": "lib/main.js",
6
6
  "bin": {