@lastbrain/ai-ui-core 1.0.23 → 1.0.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createClient.d.ts","sourceRoot":"","sources":["../../src/client/createClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,eAAe,EACf,QAAQ,EACT,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"createClient.d.ts","sourceRoot":"","sources":["../../src/client/createClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,eAAe,EACf,QAAQ,EACT,MAAM,UAAU,CAAC;AAoGlB,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY;qBAsBnB,OAAO,CAAC,QAAQ,EAAE,CAAC;wBAqCd,aAAa,KAAG,OAAO,CAAC,cAAc,CAAC;yBAoCtC,cAAc,KAAG,OAAO,CAAC,eAAe,CAAC;iBAqDjD,cAAc,KAAG,OAAO,CAAC,eAAe,CAAC;qBAkBvC,OAAO,CAAC,QAAQ,CAAC;EAyB9C"}
|
|
@@ -62,7 +62,9 @@ function buildUrl(baseUrl, endpoint) {
|
|
|
62
62
|
if (mapping) {
|
|
63
63
|
// For public API or external proxy, use external routes (without /auth/ prefix)
|
|
64
64
|
// Only internal app uses internal routes (with /auth/ prefix)
|
|
65
|
-
const finalEndpoint = isInternalApp && !isPublicApi && !isExternalProxy
|
|
65
|
+
const finalEndpoint = isInternalApp && !isPublicApi && !isExternalProxy
|
|
66
|
+
? mapping.internal
|
|
67
|
+
: mapping.external;
|
|
66
68
|
return `${baseUrl}${finalEndpoint}`;
|
|
67
69
|
}
|
|
68
70
|
// Fallback for unmapped endpoints
|
package/package.json
CHANGED
|
@@ -98,7 +98,9 @@ function buildUrl(baseUrl: string, endpoint: string): string {
|
|
|
98
98
|
// For public API or external proxy, use external routes (without /auth/ prefix)
|
|
99
99
|
// Only internal app uses internal routes (with /auth/ prefix)
|
|
100
100
|
const finalEndpoint =
|
|
101
|
-
isInternalApp && !isPublicApi && !isExternalProxy
|
|
101
|
+
isInternalApp && !isPublicApi && !isExternalProxy
|
|
102
|
+
? mapping.internal
|
|
103
|
+
: mapping.external;
|
|
102
104
|
return `${baseUrl}${finalEndpoint}`;
|
|
103
105
|
}
|
|
104
106
|
|