@opentapd/tplugin-cli 0.36.1-alpha.2 → 0.37.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/create.js +4 -4
  2. package/package.json +3 -3
package/lib/create.js CHANGED
@@ -135,8 +135,9 @@ async function getEntranceOpts() {
135
135
  async function create(params) {
136
136
  const { data } = await tapdsdk.request({ url: '/open_user_app/create_app', method: 'POST', params });
137
137
  if (!data || !data.status) {
138
- spinner.fail('创建插件失败');
139
- return ;
138
+ const error = new Error(data);
139
+ error.title = '创建插件失败';
140
+ throw error;
140
141
  }
141
142
 
142
143
  const { data: { code } } = data;
@@ -234,7 +235,7 @@ async function cloneRepo(res, code) {
234
235
  return;
235
236
  }
236
237
 
237
-
238
+
238
239
  const params = {
239
240
  code,
240
241
  };
@@ -331,4 +332,3 @@ async function selectEntrances() {
331
332
  }))),
332
333
  };
333
334
  }
334
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentapd/tplugin-cli",
3
- "version": "0.36.1-alpha.2",
3
+ "version": "0.37.0",
4
4
  "description": "tplugin-cli",
5
5
  "bin": {
6
6
  "tplugin-cli": "index.js"
@@ -26,7 +26,7 @@
26
26
  "author": "",
27
27
  "license": "ISC",
28
28
  "dependencies": {
29
- "@opentapd/tplugin-core": "^1.23.1-alpha.0",
29
+ "@opentapd/tplugin-core": "^1.24.0",
30
30
  "address": "^1.2.2",
31
31
  "archiver": "^5.3.1",
32
32
  "axios": "^0.21.1",
@@ -78,5 +78,5 @@
78
78
  "node": ">=14.13.0"
79
79
  },
80
80
  "main": "index.js",
81
- "gitHead": "dc332135b382bc497e3291397bcd38f7603bee3a"
81
+ "gitHead": "83b093e6d956776ddb0662d66cb49f04489c8027"
82
82
  }