Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const configureFlask = (configObject, flask) => {
registerConfigValues(Reflect.get(configObject, 'config') || {}, flask)
if (Reflect.has(configObject, 'parameters')) {
registerParameters(configObject.parameters, flask)
}
if (Reflect.has(configObject, 'services')) {
registerServices(configObject.services, flask)
}
if (Reflect.has(configObject, 'decorators')) {
registerDecorators(GLOBAL_NAMESPACE, configObject.decorators, flask)
}
if (Reflect.has(configObject, 'listeners')) {
registerGlobalListeners(configObject.listeners, flask)
}
}
export const configureFlask = (configObject, flask) => {
registerConfigValues(Reflect.get(configObject, 'config') || {}, flask)
if (Reflect.has(configObject, 'parameters')) {
registerParameters(configObject.parameters, flask)
}
if (Reflect.has(configObject, 'services')) {
registerServices(configObject.services, flask)
}
if (Reflect.has(configObject, 'decorators')) {
registerDecorators(GLOBAL_NAMESPACE, configObject.decorators, flask)
}
if (Reflect.has(configObject, 'listeners')) {
registerGlobalListeners(configObject.listeners, flask)
}
}
export const configureFlask = (configObject, flask) => {
registerConfigValues(Reflect.get(configObject, 'config') || {}, flask)
if (Reflect.has(configObject, 'parameters')) {
registerParameters(configObject.parameters, flask)
}
if (Reflect.has(configObject, 'services')) {
registerServices(configObject.services, flask)
}
if (Reflect.has(configObject, 'decorators')) {
registerDecorators(GLOBAL_NAMESPACE, configObject.decorators, flask)
}
if (Reflect.has(configObject, 'listeners')) {
registerGlobalListeners(configObject.listeners, flask)
}
}
export const configureFlask = (configObject, flask) => {
registerConfigValues(Reflect.get(configObject, 'config') || {}, flask)
if (Reflect.has(configObject, 'parameters')) {
registerParameters(configObject.parameters, flask)
}
if (Reflect.has(configObject, 'services')) {
registerServices(configObject.services, flask)
}
if (Reflect.has(configObject, 'decorators')) {
registerDecorators(GLOBAL_NAMESPACE, configObject.decorators, flask)
}
if (Reflect.has(configObject, 'listeners')) {
registerGlobalListeners(configObject.listeners, flask)
}
}