@meet-im/lxcli 0.0.15 → 0.1.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.
package/dist/core/http.js
CHANGED
|
@@ -96,7 +96,7 @@ export async function request(options) {
|
|
|
96
96
|
logger.debug('Response', { status: response.status, data: responseData });
|
|
97
97
|
if (!response.ok) {
|
|
98
98
|
const errResp = responseData;
|
|
99
|
-
return handleError(errorResult('http', response.status, errResp?.error?.code || response.status, errResp?.error?.message || 'Request failed', errResp?.error?.details));
|
|
99
|
+
return handleError(errorResult('http', response.status, errResp?.error?.code || response.status, errResp?.error?.message || 'Request failed', errResp?.error?.details ?? errResp?.error?.data));
|
|
100
100
|
}
|
|
101
101
|
if (!throwOnError) {
|
|
102
102
|
return { ok: true, status: response.status, data: responseData };
|
package/dist/types/index.d.ts
CHANGED