(raw: string)
| 1040 | const decodeJsonObjectString = Schema.decodeUnknownOption(JsonObjectFromString); |
| 1041 | |
| 1042 | const parseJsonContent = (raw: string): Record<string, unknown> | undefined => { |
| 1043 | if (raw === "{}") return undefined; |
| 1044 | const parsed = decodeJsonObjectString(raw); |
| 1045 | return Option.isSome(parsed) ? parsed.value : undefined; |
| 1046 | }; |
| 1047 | |
| 1048 | // --------------------------------------------------------------------------- |
| 1049 | // Server factory |
no outgoing calls
no test coverage detected