@equinor/fusion-framework-module-http
Advanced tools
Comparing version 0.1.0-alpha.7 to 0.1.0-alpha.9
@@ -12,2 +12,5 @@ import { HttpRequestHandler } from './client'; | ||
} | ||
hasClient(name) { | ||
return Object.keys(this._clients).includes(name); | ||
} | ||
configureClient(name, args) { | ||
@@ -14,0 +17,0 @@ const argFn = typeof args === 'string' ? (x) => (x.uri = String(args)) : args; |
@@ -22,2 +22,3 @@ import { HttpRequestHandler, HttpRequestInit, IHttpClient } from './client'; | ||
configureClient<T extends TClient>(name: string, onCreate: (client: T) => void): HttpClientConfigurator<TClient>; | ||
hasClient(name: string): boolean; | ||
} | ||
@@ -30,4 +31,5 @@ export declare class HttpClientConfigurator<TClient extends IHttpClient> implements IHttpClientConfigurator<TClient> { | ||
constructor(client: HttpClientConstructor<TClient>); | ||
hasClient(name: string): boolean; | ||
configureClient<T extends TClient>(name: string, args: string | HttpClientOptions<T> | HttpClientOptions<T>['onCreate']): HttpClientConfigurator<TClient>; | ||
} | ||
export default HttpClientConfigurator; |
{ | ||
"name": "@equinor/fusion-framework-module-http", | ||
"version": "0.1.0-alpha.7", | ||
"version": "0.1.0-alpha.9", | ||
"description": "", | ||
@@ -24,3 +24,3 @@ "main": "./dist/esm/index.js", | ||
"dependencies": { | ||
"@equinor/fusion-framework-module": "^0.1.0-alpha.7" | ||
"@equinor/fusion-framework-module": "^0.1.0-alpha.9" | ||
}, | ||
@@ -35,3 +35,3 @@ "types": "index.d.ts", | ||
}, | ||
"gitHead": "207608e4f11f66119db73a722325048e12487a0e" | ||
"gitHead": "b12e2a8caae0b987080b7cab2aa09e9423393e54" | ||
} |
@@ -39,2 +39,4 @@ import { HttpRequestHandler, HttpRequestInit, IHttpClient } from './client'; | ||
): HttpClientConfigurator<TClient>; | ||
hasClient(name: string): boolean; | ||
} | ||
@@ -61,2 +63,6 @@ | ||
hasClient(name: string): boolean { | ||
return Object.keys(this._clients).includes(name); | ||
} | ||
configureClient<T extends TClient>( | ||
@@ -63,0 +69,0 @@ name: string, |
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
87928
679