(raw: string)
| 651 | const decodeJsonObjectString = Schema.decodeUnknownOption(JsonObjectFromString); |
| 652 | |
| 653 | const parseJsonContent = (raw: string): Record<string, unknown> | undefined => { |
| 654 | if (raw === "{}") return undefined; |
| 655 | const parsed = decodeJsonObjectString(raw); |
| 656 | return Option.isSome(parsed) ? parsed.value : undefined; |
| 657 | }; |
| 658 | |
| 659 | // --------------------------------------------------------------------------- |
| 660 | // Server factory |
no outgoing calls
no test coverage detected