@seayoo-web/finder 2.2.1 → 2.2.2
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/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -160,10 +160,10 @@ async function deploy(option) {
|
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
if (status !== 200) {
|
|
163
|
-
throw
|
|
163
|
+
throw `部署接口错误,Server: ${targetServer},Status: ${status},Response: ${JSON.stringify(data)}`.red;
|
|
164
164
|
}
|
|
165
165
|
if (!data || typeof data !== "object" || "err" in data && data.err || !("data" in data) || typeof data.data !== "string") {
|
|
166
|
-
throw `部署接口响应错误。 ${JSON.stringify(data)}`.red;
|
|
166
|
+
throw `部署接口响应错误。Server: ${targetServer},Response: ${JSON.stringify(data)}`.red;
|
|
167
167
|
}
|
|
168
168
|
const url = data.data;
|
|
169
169
|
if (debug) {
|
|
@@ -194,10 +194,10 @@ async function upload(option) {
|
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
196
|
if (status !== 200) {
|
|
197
|
-
throw
|
|
197
|
+
throw `上传接口错误,Server: ${targetServer},Status: ${status}`.red;
|
|
198
198
|
}
|
|
199
199
|
if (!data || typeof data !== "object" || "err" in data && data.err || !("data" in data) || typeof data.data !== "string") {
|
|
200
|
-
throw
|
|
200
|
+
throw `上传接口响应错误,Server: ${targetServer},Response: ${JSON.stringify(data)}`.red;
|
|
201
201
|
}
|
|
202
202
|
return { previewUrl: `https://${pure(target)}` };
|
|
203
203
|
}
|