vona-cli 1.0.467 → 1.0.472
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/dist/play.js +4 -1
- package/package.json +3 -3
package/dist/play.js
CHANGED
|
@@ -23,7 +23,10 @@ export async function playAttach(projectPath, args) {
|
|
|
23
23
|
const message = `error: ${result.status}, ${result.statusText}`;
|
|
24
24
|
throw new Error(message);
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const resText = await result.text();
|
|
27
|
+
const res = resText ? JSON.parse(resText) : undefined;
|
|
28
|
+
if (!res)
|
|
29
|
+
return;
|
|
27
30
|
if (res.code !== 0)
|
|
28
31
|
throw new Error(res.message);
|
|
29
32
|
if (res.data !== undefined) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona-cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.472",
|
|
5
5
|
"description": "vona cli",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cabloy/cli": "^3.0.
|
|
32
|
+
"@cabloy/cli": "^3.0.88",
|
|
33
33
|
"@cabloy/process-helper": "^2.0.25",
|
|
34
34
|
"fs-extra": "^11.2.0",
|
|
35
35
|
"semver": "^7.6.2",
|
|
36
|
-
"vona-cli-set-api": "^1.0.
|
|
36
|
+
"vona-cli-set-api": "^1.0.469"
|
|
37
37
|
},
|
|
38
38
|
"gitHead": "0eab9dc4a5622caffe89e7b1b3f02c08ccbc4c4b",
|
|
39
39
|
"scripts": {
|