(
configSchema: Record<string, PluginConfigSchema> | PluginConfigSchema[]
)
| 6 | export const SECRET_FIELD_VALUE = '**************** POSTHOG SECRET FIELD ****************' |
| 7 | |
| 8 | export function getConfigSchemaArray( |
| 9 | configSchema: Record<string, PluginConfigSchema> | PluginConfigSchema[] |
| 10 | ): PluginConfigSchema[] { |
| 11 | if (Array.isArray(configSchema)) { |
| 12 | return configSchema |
| 13 | } else { |
| 14 | return Object.entries(configSchema) |
| 15 | .map(([key, value]) => ({ key, ...value })) |
| 16 | .sort((a, b) => (a.order || 999999) - (b.order || 999999)) |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | export function getConfigSchemaObject( |
| 21 | configSchema: Record<string, PluginConfigSchema> | PluginConfigSchema[] |
no outgoing calls
no test coverage detected
searching dependent graphs…