@wagq/wa-cli 0.6.0 → 0.6.1

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/README.md CHANGED
@@ -3,11 +3,15 @@
3
3
  使用方式 全局安装后 可使用 wa [命令]
4
4
 
5
5
  - 初始化项目
6
- wa init
6
+ ```bash
7
+ wa init
8
+ ```
7
9
 
8
10
  - 启动本地服务
9
- wa server [path]
10
- 参数
11
+ ```bash
12
+ wa server [path]
13
+ ```
14
+ 可选参数
11
15
  -P 指定端口
12
16
 
13
17
  - 转换 xlsx 文件为多语言配置
@@ -17,3 +21,8 @@
17
21
  - path 文件路径
18
22
  - name 被转换目标文件名称
19
23
  - ext 转换后文件扩展名 json 或 ts
24
+
25
+ - 同步远端低代码配置
26
+ ```bash
27
+ wa daml
28
+ ```
package/lib/daml/async.js CHANGED
@@ -97,6 +97,8 @@ const getFiles = async () => {
97
97
  catch(err) {
98
98
  log.error("解析daml失败,请检查请求是否过期或无法访问")
99
99
  }
100
+ }).catch(err => {
101
+ log.error("请求daml失败,请检查daml是否过期或无法访问")
100
102
  });
101
103
  };
102
104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wagq/wa-cli",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "wa的脚手架",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,21 +0,0 @@
1
- module.exports = () => fetch("https://kuai.haier.net/api/assembler/page/getPageDaml", {
2
- "headers": {
3
- "accept": "application/json, text/plain, */*",
4
- "accept-language": "zh,ja;q=0.9,zh-CN;q=0.8,en;q=0.7,ko;q=0.6,vi;q=0.5,zh-TW;q=0.4",
5
- "access-token": "eyJhbGciOiJSUzI1NiJ9.eyJhY2NvdW50TnVtYmVyIjoiQTIwMDIwMzciLCJ1YyI6IjEiLCJpbnN0YW5jZUlkIjoxMjY5OTc5NTQ1MzE5NTQ3OTMxLCJsb2dpbk5hbWUiOiJBMjAwMjAzNyIsImRvbWFpbiI6IklETSIsInRlbmFudElkIjoxLCJpZCI6MjUwMzI1MTE0Mzg3LCJsb2dpblNvdXJjZSI6IjYiLCJqdGkiOiIxOTE4NWU0YS0xMzg5LTQ0ZDMtODc4Mi04YWRlZmE3MTUwNjkiLCJuYmYiOjE3NDM5ODkxMTcsImV4cCI6MTc0NDA0MTYwMH0.ixuwyhyc5ERDugwHjZOzwr99-W1mU0Np5DXnNUKtS9UEzhurx7Van-EBH9Lst4hQ3L5OxIFQoB1csg3pwBwoRgOTPt_Tc0adrBf7ls4_iW0E9GDoYSa6A9ZvVpky3HSh1Pf8BS3Ze3ZmES6uMn6Kw2U5uh-ODNQ3iSPauib70qlVTNJowSGuBO9I5-oL2RHY8UB6lTZ8PqB3Y2gPUGhA28S2E7ndu8gpcYi4KA0FBr4BrT3CJzVwExX3-c84lb639oJmRBaOlLPj98WMJZO_5-sulirtzW-EA5GoDwbiKNk91E7RvsD06-uBGhfurMH9xxPEYI6Ujacbgd1y6MhNJA",
6
- "appid": "1838489793203609601",
7
- "branchid": "1909063264443768834",
8
- "content-type": "application/json",
9
- "sec-ch-ua": "\"Chromium\";v=\"134\", \"Not:A-Brand\";v=\"24\", \"Google Chrome\";v=\"134\"",
10
- "sec-ch-ua-mobile": "?0",
11
- "sec-ch-ua-platform": "\"Windows\"",
12
- "sec-fetch-dest": "empty",
13
- "sec-fetch-mode": "cors",
14
- "sec-fetch-site": "same-origin",
15
- "cookie": "_tea_utm_cache_1229=undefined; JSESSIONID=4E1AD8E2D965470470347AD152208693",
16
- "Referer": "https://kuai.haier.net/mate?appId=1838489793203609601&pageId=1909063270470983681&branchId=1909063264443768834",
17
- "Referrer-Policy": "strict-origin-when-cross-origin"
18
- },
19
- "body": "{\"pageId\":\"1909063270470983681\",\"appId\":\"1838489793203609601\"}",
20
- "method": "POST"
21
- });