(raw: string)
| 1017 | const decodeJsonObjectString = Schema.decodeUnknownOption(JsonObjectFromString); |
| 1018 | |
| 1019 | const parseJsonContent = (raw: string): Record<string, unknown> | undefined => { |
| 1020 | if (raw === "{}") return undefined; |
| 1021 | const parsed = decodeJsonObjectString(raw); |
| 1022 | return Option.isSome(parsed) ? parsed.value : undefined; |
| 1023 | }; |
| 1024 | |
| 1025 | // --------------------------------------------------------------------------- |
| 1026 | // Server factory |
no outgoing calls
no test coverage detected