(type: string, value: CompositeValue, context: IDataSourceRuntimeContext)
| 69 | } |
| 70 | |
| 71 | export const getRuntimeValueFromConfig = (type: string, value: CompositeValue, context: IDataSourceRuntimeContext) => { |
| 72 | if (value === undefined) { |
| 73 | return undefined |
| 74 | } |
| 75 | |
| 76 | if (isJSExpression(value) || isJSFunction(value)) { |
| 77 | return getRuntimeBaseValue(type, getRuntimeJsValue(value, context)) |
| 78 | } |
| 79 | |
| 80 | return value |
| 81 | } |
| 82 | |
| 83 | export const buildJsonObj = (params: JSONObject | JSExpression, context: IDataSourceRuntimeContext) => { |
| 84 | if (isJSExpression(params)) { |
no test coverage detected