( raw: string | undefined, )
| 1534 | }; |
| 1535 | |
| 1536 | const parseOptionalJsonObject = ( |
| 1537 | raw: string | undefined, |
| 1538 | ): Effect.Effect<Record<string, unknown> | undefined, Error> => |
| 1539 | raw === undefined |
| 1540 | ? Effect.succeed(undefined) |
| 1541 | : parseJsonObjectInput(raw).pipe( |
| 1542 | Effect.mapError((error) => new Error(`Invalid --content JSON: ${error.message}`)), |
| 1543 | ); |
| 1544 | |
| 1545 | const ownMessage = (value: unknown): string => { |
| 1546 | if (typeof value === "string") return value.trim(); |
no test coverage detected