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

Function jsonText

apps/local/src/db/v1-v2-migration.ts:760–763  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

758): string => client.clientId || values.get(oauthClientPlanKey(client)) || "";
759
760const jsonText = (value: unknown): string | null => {
761 if (value == null) return null;
762 return typeof value === "string" ? value : JSON.stringify(value);
763};
764
765const requiredJsonText = (value: unknown): string => jsonText(value) ?? JSON.stringify({});
766

Callers 2

requiredJsonTextFunction · 0.85
insertPlanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected