@lastbrain/ai-ui-core 1.0.23 → 1.0.24

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;AAkGlB,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"}
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 ? mapping.internal : mapping.external;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lastbrain/ai-ui-core",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "Framework-agnostic core library for LastBrain AI UI Kit",
5
5
  "private": false,
6
6
  "type": "module",
@@ -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 ? mapping.internal : mapping.external;
101
+ isInternalApp && !isPublicApi && !isExternalProxy
102
+ ? mapping.internal
103
+ : mapping.external;
102
104
  return `${baseUrl}${finalEndpoint}`;
103
105
  }
104
106