@opentapd/tplugin-cli 0.36.1-alpha.2 → 0.36.1-alpha.3
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/create.js +4 -4
- package/package.json +2 -2
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
|
-
|
|
139
|
-
|
|
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.
|
|
3
|
+
"version": "0.36.1-alpha.3",
|
|
4
4
|
"description": "tplugin-cli",
|
|
5
5
|
"bin": {
|
|
6
6
|
"tplugin-cli": "index.js"
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"node": ">=14.13.0"
|
|
79
79
|
},
|
|
80
80
|
"main": "index.js",
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "205a61451b01f75d02bedfc4b395be615bfc10c3"
|
|
82
82
|
}
|