Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@equinor/fusion-framework-module-app-config
Advanced tools
Fusion module for application config
📦 Module for providing application with config as an service
- http is not required if
IHttpClient
is provided- service-discovery is not required if
IHttpClient
is configure with keyappConfig
in http module
This module should be implemented by the framework and provided by the application framework.
case 1: No reference modules are provided (Framework)
The IAppConfigConfigurator
will not have any default IHttpClient
case 2: HttpModule
and ServiceDiscoveryModule
are provided (App)
Before the configurator is created, the module will check ref modules if http has configured a client,
then if not, try to resolve client from service discovery. The client will be assigned to the IAppConfigConfigurator
case 1: No IHttpClient
is provided (Framework)
HttpModule
IHttpClient
ServiceDiscoveryModule
for clientIAppConfigProvider
which is provided to IAppConfigProvider
;case 2: IHttpClient
is provided (App)
The module will create an IAppConfigProvider
which is provided to IAppConfigProvider
;
🤙🏻 when working within the Fusion eco system none of these configs should be necessary.
import { appConfigModuleKey } from '@equinor/fusion-framework-module-app-config'
modules.http.configureClient(
appConfigModuleKey,
{
baseUri: 'https://foo.bar',
defaultScopes: ['foobar/.default'],
},
(client) => {
client.requestHandler.setHeader('x-api-version', '1.0.0-beta.2');
client.requestHandler.add('logger', console.log);
client.responseHandler.add('logger', console.log);
}
);
config.appConfig.generateUrl = (appKey: string, tag?: string) => {
return `/api/apps/${appKey}/config${tag ? `?tag=${tag}` : ''}`;
}
config.appConfig.selector = async(result: Response): Promise<AppConfig<TEnvironment>> => {
const data = await result.json();
/** custom logic for extracting and normalizing data to valid app config */
return normalizeAppConfigResponseData(data);
}
☢️ Boss mode only, really understand framework before even attempt
class MyCustomClient implements IHttpClient {}
config.appConfig.httpClient = new MyCustomClient
FAQs
Fusion module for application config
The npm package @equinor/fusion-framework-module-app-config receives a total of 0 weekly downloads. As such, @equinor/fusion-framework-module-app-config popularity was classified as not popular.
We found that @equinor/fusion-framework-module-app-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.