增加了AppVersion
Publish to npm / publish (push) Failing after 12s

This commit is contained in:
2026-04-23 20:16:38 +08:00
parent fe77c0ee1a
commit a2f57bc419
+2 -1
View File
@@ -27,6 +27,7 @@ export type {
} from './types' } from './types'
declare const SimApiVersion: string; declare const SimApiVersion: string;
declare const AppVersion: string;
// ── Helper: Fetch with Timeout ──────────────────────────────────────── // ── Helper: Fetch with Timeout ────────────────────────────────────────
function fetchWithTimeout( function fetchWithTimeout(
@@ -203,7 +204,7 @@ export class SimApiCore {
*/ */
async getVersion(endpointName?: string): Promise<SimApiVersions> { async getVersion(endpointName?: string): Promise<SimApiVersions> {
const versions: SimApiVersions = { const versions: SimApiVersions = {
uiApp: '0.0.0-develop', uiApp: typeof AppVersion === 'undefined' ? "0.0.0-develop" : AppVersion,
uiSimApi: typeof SimApiVersion === 'undefined' ? "0.0.0-develop" : SimApiVersion, uiSimApi: typeof SimApiVersion === 'undefined' ? "0.0.0-develop" : SimApiVersion,
apiApp: '0.0.0', apiApp: '0.0.0',
apiSimApi: '0.0.0', apiSimApi: '0.0.0',