@equinor/fusion-framework-module-service-discovery
Advanced tools
Comparing version 0.1.0-alpha.10 to 0.1.0-alpha.11
export class ServiceDiscoveryConfigurator { | ||
clientKey = 'service_discovery'; | ||
uri = '/_discovery/environments/current'; | ||
baseUrl = ''; | ||
} | ||
//# sourceMappingURL=configurator.js.map |
@@ -8,10 +8,6 @@ import { ServiceDiscoveryConfigurator } from './configurator'; | ||
postConfigure: (config) => { | ||
const { clientKey, baseUrl } = config.serviceDiscovery; | ||
if (config.http.hasClient(clientKey) && baseUrl) { | ||
console.warn(`http is already configure for key [${clientKey}], overriding existing endpoint`); | ||
config.http.configureClient(clientKey, baseUrl); | ||
const { clientKey } = config.serviceDiscovery; | ||
if (!config.http.hasClient(clientKey)) { | ||
console.warn(`missing http config for [${clientKey}]`); | ||
} | ||
else { | ||
config.http.configureClient(clientKey, baseUrl); | ||
} | ||
}, | ||
@@ -18,0 +14,0 @@ }; |
export interface IServiceDiscoveryConfigurator { | ||
clientKey: string; | ||
uri: string; | ||
baseUrl: string; | ||
} | ||
@@ -9,3 +8,2 @@ export declare class ServiceDiscoveryConfigurator implements IServiceDiscoveryConfigurator { | ||
uri: string; | ||
baseUrl: string; | ||
} |
{ | ||
"name": "@equinor/fusion-framework-module-service-discovery", | ||
"version": "0.1.0-alpha.10", | ||
"version": "0.1.0-alpha.11", | ||
"description": "", | ||
@@ -24,4 +24,4 @@ "main": "./dist/esm/index.js", | ||
"dependencies": { | ||
"@equinor/fusion-framework-module": "^0.1.0-alpha.10", | ||
"@equinor/fusion-framework-module-http": "^0.1.0-alpha.10" | ||
"@equinor/fusion-framework-module": "^0.1.0-alpha.11", | ||
"@equinor/fusion-framework-module-http": "^0.1.0-alpha.11" | ||
}, | ||
@@ -36,3 +36,3 @@ "types": "index.d.ts", | ||
}, | ||
"gitHead": "7a8db468f01ac70310a38f529a4e9afc112d39af" | ||
"gitHead": "aa21f8cf7a5470f9a41739e945af3b1ac63bc857" | ||
} |
@@ -6,3 +6,2 @@ export interface IServiceDiscoveryConfigurator { | ||
uri: string; | ||
baseUrl: string; | ||
} | ||
@@ -13,3 +12,2 @@ | ||
uri = '/_discovery/environments/current'; | ||
baseUrl = ''; | ||
} |
@@ -23,10 +23,5 @@ import { IServiceDiscoveryConfigurator, ServiceDiscoveryConfigurator } from './configurator'; | ||
postConfigure: (config) => { | ||
const { clientKey, baseUrl } = config.serviceDiscovery; | ||
if (config.http.hasClient(clientKey) && baseUrl) { | ||
console.warn( | ||
`http is already configure for key [${clientKey}], overriding existing endpoint` | ||
); | ||
config.http.configureClient(clientKey, baseUrl); | ||
} else { | ||
config.http.configureClient(clientKey, baseUrl); | ||
const { clientKey } = config.serviceDiscovery; | ||
if (!config.http.hasClient(clientKey)) { | ||
console.warn(`missing http config for [${clientKey}]`); | ||
} | ||
@@ -33,0 +28,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65644
254