(raw: string)
| 559 | const decodeJsonObjectString = Schema.decodeUnknownOption(JsonObjectFromString); |
| 560 | |
| 561 | const parseJsonContent = (raw: string): Record<string, unknown> | undefined => { |
| 562 | if (raw === "{}") return undefined; |
| 563 | const parsed = decodeJsonObjectString(raw); |
| 564 | return Option.isSome(parsed) ? parsed.value : undefined; |
| 565 | }; |
| 566 | |
| 567 | // --------------------------------------------------------------------------- |
| 568 | // Server factory |
no outgoing calls
no test coverage detected