(raw: string)
| 1099 | const decodeJsonObjectString = Schema.decodeUnknownOption(JsonObjectFromString); |
| 1100 | |
| 1101 | const parseJsonContent = (raw: string): Record<string, unknown> | undefined => { |
| 1102 | if (raw === "{}") return undefined; |
| 1103 | const parsed = decodeJsonObjectString(raw); |
| 1104 | return Option.isSome(parsed) ? parsed.value : undefined; |
| 1105 | }; |
| 1106 | |
| 1107 | // --------------------------------------------------------------------------- |
| 1108 | // Server factory |
no outgoing calls
no test coverage detected