(raw: string)
| 1069 | const decodeJsonObjectString = Schema.decodeUnknownOption(JsonObjectFromString); |
| 1070 | |
| 1071 | const parseJsonContent = (raw: string): Record<string, unknown> | undefined => { |
| 1072 | if (raw === "{}") return undefined; |
| 1073 | const parsed = decodeJsonObjectString(raw); |
| 1074 | return Option.isSome(parsed) ? parsed.value : undefined; |
| 1075 | }; |
| 1076 | |
| 1077 | // --------------------------------------------------------------------------- |
| 1078 | // Server factory |
no outgoing calls
no test coverage detected