@equinor/fusion-framework-module-http
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -6,2 +6,11 @@ # Change Log | ||
## 2.0.8 (2022-09-27) | ||
### Bug Fixes | ||
* update registering of configuration ([20942ce](https://github.com/equinor/fusion-framework/commit/20942ce1c7a853ea3b55c031a242646e378db8c9)) | ||
## 2.0.7 (2022-09-20) | ||
@@ -8,0 +17,0 @@ |
@@ -8,4 +8,4 @@ import { HttpClientMsal } from './lib/client'; | ||
export declare const module: HttpModule; | ||
export declare const configureHttp: (configure: (config: ModuleConfigType<HttpModule>, ref?: any) => void) => IModuleConfigurator<HttpModule>; | ||
export declare const configureHttpClient: (name: string, args: HttpClientOptions) => IModuleConfigurator<HttpModule>; | ||
export declare const configureHttp: <TRef = unknown>(configure: (config: ModuleConfigType<HttpModule>, ref?: TRef | undefined) => void) => IModuleConfigurator<HttpModule, TRef>; | ||
export declare const configureHttpClient: <TRef = unknown>(name: string, args: HttpClientOptions) => IModuleConfigurator<HttpModule, TRef>; | ||
declare module '@equinor/fusion-framework-module' { | ||
@@ -12,0 +12,0 @@ interface Modules { |
{ | ||
"name": "@equinor/fusion-framework-module-http", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "", | ||
@@ -45,3 +45,3 @@ "main": "dist/esm/index.js", | ||
"dependencies": { | ||
"@equinor/fusion-framework-module": "^1.2.0", | ||
"@equinor/fusion-framework-module": "^1.2.1", | ||
"rxjs": "^7.5.6" | ||
@@ -52,3 +52,3 @@ }, | ||
}, | ||
"gitHead": "2cd29e53f0f29582cdf98b18699d6aa0f171f7fe" | ||
"gitHead": "6948015d0a835b16e75699fcd0b317e54fa93eef" | ||
} |
@@ -0,1 +1,2 @@ | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import { HttpClientMsal } from './lib/client'; | ||
@@ -28,6 +29,6 @@ import { IHttpClientConfigurator, HttpClientConfigurator, HttpClientOptions } from './configurator'; | ||
export const configureHttp = ( | ||
export const configureHttp = <TRef = unknown>( | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
configure: (config: ModuleConfigType<HttpModule>, ref?: any) => void | ||
): IModuleConfigurator<HttpModule> => ({ | ||
configure: (config: ModuleConfigType<HttpModule>, ref?: TRef) => void | ||
): IModuleConfigurator<HttpModule, TRef> => ({ | ||
module, | ||
@@ -37,6 +38,6 @@ configure, | ||
export const configureHttpClient = ( | ||
export const configureHttpClient = <TRef = unknown>( | ||
name: string, | ||
args: HttpClientOptions | ||
): IModuleConfigurator<HttpModule> => ({ | ||
): IModuleConfigurator<HttpModule, TRef> => ({ | ||
module, | ||
@@ -43,0 +44,0 @@ configure: (config: ModuleConfigType<HttpModule>) => { |
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
134374
1154