MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / normalizePluginId

Function normalizePluginId

apps/local/src/db/v1-v2-migration.ts:351–352  ·  view source on GitHub ↗
(pluginId: string, kind: string)

Source from the content-addressed store, hash-verified

349 numberOrNull(value) ?? fallback;
350
351const normalizePluginId = (pluginId: string, kind: string): string =>
352 pluginId === "graphql-greenfield" ? "graphql" : pluginId || kind;
353
354const buildConfig = (kind: string, data: Record<string, unknown>): MigratedSourceConfig => {
355 const cfg = (data.config as Record<string, unknown> | undefined) ?? data;

Callers 1

readV1SnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected