1 parent fe77c0e commit a2f57bcCopy full SHA for a2f57bc
1 file changed
src/simapi.core.ts
@@ -27,6 +27,7 @@ export type {
27
} from './types'
28
29
declare const SimApiVersion: string;
30
+declare const AppVersion: string;
31
// ── Helper: Fetch with Timeout ────────────────────────────────────────
32
33
function fetchWithTimeout(
@@ -203,7 +204,7 @@ export class SimApiCore {
203
204
*/
205
async getVersion(endpointName?: string): Promise<SimApiVersions> {
206
const versions: SimApiVersions = {
- uiApp: '0.0.0-develop',
207
+ uiApp: typeof AppVersion === 'undefined' ? "0.0.0-develop" : AppVersion,
208
uiSimApi: typeof SimApiVersion === 'undefined' ? "0.0.0-develop" : SimApiVersion,
209
apiApp: '0.0.0',
210
apiSimApi: '0.0.0',
0 commit comments