Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@equinor/fusion-framework-module-service-discovery
Advanced tools
/** configure the client which should fetch service descriptions */
config.http.configureClient('my_service_discovery', {
baseUri: 'https://foo.bar',
defaultScopes: ['321312bab2-3213123bb-321312aa2/.default'],
});
/** key of configured http client, default `service_discovery` */
config.serviceDiscovery.clientKey = 'my_service_discovery'
/** endpoint for fetching services */
config.serviceDiscovery.uri = 'api/services';
/** parse http response to service discovery environment */
config.serviceDiscovery.selector = async (response: Response): Promise<Environment> => {
const services = await response.json() as Service[];
return services.reduce((acc, service) => Object.assign(acc, {[service.key]: service}), {});
}
FAQs
This module is for resolving service endpoints from a service discovery service.
We found that @equinor/fusion-framework-module-service-discovery demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.