fix config
Publish to npm / publish (push) Failing after 8s
Publish to npm / publish (push) Failing after 8s
This commit is contained in:
+2
-2
@@ -84,7 +84,7 @@ export class SimApiCore {
|
|||||||
logout_url: '/auth/logout',
|
logout_url: '/auth/logout',
|
||||||
login_url: '/auth/login',
|
login_url: '/auth/login',
|
||||||
}
|
}
|
||||||
webConfig: Map<string, Map<string, object>> = new Map();
|
webConfig: Map<string, Record<string, object>> = new Map();
|
||||||
|
|
||||||
private api: SimApiApiConfig = {
|
private api: SimApiApiConfig = {
|
||||||
endpoints: {default: ''},
|
endpoints: {default: ''},
|
||||||
@@ -213,7 +213,7 @@ export class SimApiCore {
|
|||||||
console.log('[DEBUG]', ...args)
|
console.log('[DEBUG]', ...args)
|
||||||
}
|
}
|
||||||
|
|
||||||
async getConfig(reload: boolean = false, endpointName: string = 'default'): Promise<Map<string, object>> {
|
async getConfig(reload: boolean = false, endpointName: string = 'default'): Promise<Record<string, object>> {
|
||||||
if (!this.webConfig.has(endpointName) || reload) {
|
if (!this.webConfig.has(endpointName) || reload) {
|
||||||
const versions: SimApiVersions = {
|
const versions: SimApiVersions = {
|
||||||
uiApp: typeof AppVersion === 'undefined' ? "0.0.0-develop" : AppVersion,
|
uiApp: typeof AppVersion === 'undefined' ? "0.0.0-develop" : AppVersion,
|
||||||
|
|||||||
+1
-1
@@ -77,7 +77,7 @@ export const useSimApi = defineStore('simapi', {
|
|||||||
return this._core.getEndpoint(name)
|
return this._core.getEndpoint(name)
|
||||||
},
|
},
|
||||||
|
|
||||||
async getConfig(reload = false, endpointName?: string): Promise<Map<string, object>> {
|
async getConfig(reload = false, endpointName?: string): Promise<Record<string, object>> {
|
||||||
return this._core.getConfig(reload, endpointName)
|
return this._core.getConfig(reload, endpointName)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user