(raw: string)
| 1080 | const decodeJsonObjectString = Schema.decodeUnknownOption(JsonObjectFromString); |
| 1081 | |
| 1082 | const parseJsonContent = (raw: string): Record<string, unknown> | undefined => { |
| 1083 | if (raw === "{}") return undefined; |
| 1084 | const parsed = decodeJsonObjectString(raw); |
| 1085 | return Option.isSome(parsed) ? parsed.value : undefined; |
| 1086 | }; |
| 1087 | |
| 1088 | // --------------------------------------------------------------------------- |
| 1089 | // Server factory |
no outgoing calls
no test coverage detected