@equinor/fusion-framework-module-service-discovery
Advanced tools
Comparing version 1.0.7 to 2.0.0
@@ -6,2 +6,15 @@ # Change Log | ||
## 2.0.0 (2022-09-26) | ||
### ⚠ BREAKING CHANGES | ||
* **module-service-discovery:** order of arguments for configuring client in service discovery | ||
### Bug Fixes | ||
* **module-service-discovery:** change order of arguments ([a1240c6](https://github.com/equinor/fusion-framework/commit/a1240c6360da5e919623bc31a51ced4c5ce1c2e3)) | ||
## 1.0.7 (2022-09-20) | ||
@@ -8,0 +21,0 @@ |
@@ -26,3 +26,3 @@ import { configureHttpClient } from '@equinor/fusion-framework-module-http'; | ||
} | ||
async configureClient(config, serviceName) { | ||
async configureClient(serviceName, config) { | ||
const { key, alias } = typeof serviceName === 'string' | ||
@@ -29,0 +29,0 @@ ? { key: serviceName, alias: serviceName } |
@@ -9,6 +9,6 @@ import { IServiceDiscoveryClient } from './client'; | ||
createClient(name: string, opt?: Omit<HttpClientOptions, 'baseUri' | 'defaultScopes' | 'ctor'>): Promise<IHttpClient>; | ||
configureClient(config: ModulesConfigurator<[HttpModule]>, serviceName: string | { | ||
configureClient(serviceName: string | { | ||
key: string; | ||
alias: string; | ||
}): Promise<void>; | ||
}, config: ModulesConfigurator<[HttpModule]>): Promise<void>; | ||
} | ||
@@ -22,6 +22,6 @@ export declare class ServiceDiscoveryProvider implements IServiceDiscoveryProvider { | ||
createClient(name: string, opt?: Omit<HttpClientOptions, 'baseUri' | 'defaultScopes' | 'ctor'>): Promise<IHttpClient>; | ||
configureClient(config: ModulesConfigurator<[HttpModule]>, serviceName: string | { | ||
configureClient(serviceName: string | { | ||
key: string; | ||
alias: string; | ||
}): Promise<void>; | ||
}, config: ModulesConfigurator<[HttpModule]>): Promise<void>; | ||
} |
{ | ||
"name": "@equinor/fusion-framework-module-service-discovery", | ||
"version": "1.0.7", | ||
"version": "2.0.0", | ||
"description": "", | ||
@@ -32,3 +32,3 @@ "main": "dist/esm/index.js", | ||
}, | ||
"gitHead": "2cd29e53f0f29582cdf98b18699d6aa0f171f7fe" | ||
"gitHead": "1229a13067401b03c90943213c5fab8bf2098547" | ||
} |
@@ -30,4 +30,4 @@ import { configureHttpClient } from '@equinor/fusion-framework-module-http'; | ||
configureClient( | ||
serviceName: string | { key: string; alias: string }, | ||
config: ModulesConfigurator<[HttpModule]>, | ||
serviceName: string | { key: string; alias: string } | ||
): Promise<void>; | ||
@@ -66,4 +66,4 @@ } | ||
public async configureClient( | ||
serviceName: string | { key: string; alias: string }, | ||
config: ModulesConfigurator<[HttpModule]>, | ||
serviceName: string | { key: string; alias: string } | ||
): Promise<void> { | ||
@@ -70,0 +70,0 @@ const { key, alias } = |
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
98805