增加了AppVersion
Publish to npm / publish (push) Failing after 12s
Publish to npm / publish (push) Failing after 12s
This commit is contained in:
+2
-1
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user