ccjk 9.3.23 → 9.3.25
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/chunks/package.mjs
CHANGED
|
@@ -127,10 +127,12 @@ class CloudApiClient {
|
|
|
127
127
|
clearTimeout(timeoutId);
|
|
128
128
|
const data = await response.json();
|
|
129
129
|
if (!response.ok) {
|
|
130
|
+
const errorMsg = typeof data.error === "object" && data.error !== null ? data.error.message || JSON.stringify(data.error) : data.error || `HTTP ${response.status}: ${response.statusText}`;
|
|
131
|
+
const errorCode = typeof data.error === "object" && data.error !== null ? data.error.code || data.code : data.code;
|
|
130
132
|
return {
|
|
131
133
|
success: false,
|
|
132
|
-
error:
|
|
133
|
-
code:
|
|
134
|
+
error: errorMsg,
|
|
135
|
+
code: errorCode || `HTTP_${response.status}`
|
|
134
136
|
};
|
|
135
137
|
}
|
|
136
138
|
return {
|
|
@@ -377,8 +379,8 @@ class ProviderRegistryService {
|
|
|
377
379
|
const response = await this.client.get(
|
|
378
380
|
`/providers/${encodeURIComponent(normalizedCode)}`
|
|
379
381
|
);
|
|
380
|
-
if (response.success && response.data
|
|
381
|
-
return response.data
|
|
382
|
+
if (response.success && response.data) {
|
|
383
|
+
return response.data;
|
|
382
384
|
}
|
|
383
385
|
} catch {
|
|
384
386
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccjk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "9.3.
|
|
4
|
+
"version": "9.3.25",
|
|
5
5
|
"packageManager": "pnpm@10.17.1",
|
|
6
6
|
"description": "CCJK v9.0.0 - Revolutionary AI Development Platform with Enterprise Security, Streaming Cloud Sync, CRDT Conflict Resolution, and Unified V3 Architecture",
|
|
7
7
|
"author": {
|