(raw: string)
| 1061 | const decodeJsonObjectString = Schema.decodeUnknownOption(JsonObjectFromString); |
| 1062 | |
| 1063 | const parseJsonContent = (raw: string): Record<string, unknown> | undefined => { |
| 1064 | if (raw === "{}") return undefined; |
| 1065 | const parsed = decodeJsonObjectString(raw); |
| 1066 | return Option.isSome(parsed) ? parsed.value : undefined; |
| 1067 | }; |
| 1068 | |
| 1069 | // --------------------------------------------------------------------------- |
| 1070 | // Server factory |
no outgoing calls
no test coverage detected