(value: unknown)
| 97 | } |
| 98 | |
| 99 | function parseRemoteConfigProfile(value: unknown): RemoteConfigProfile { |
| 100 | if (!value || typeof value !== 'object' || Array.isArray(value)) { |
| 101 | throw new AppError( |
| 102 | 'COMMAND_FAILED', |
| 103 | 'Cloud connection profile remoteConfigProfile is invalid.', |
| 104 | ); |
| 105 | } |
| 106 | if (Object.keys(value).length === 0) { |
| 107 | throw new AppError('COMMAND_FAILED', 'Cloud connection profile remoteConfigProfile is empty.'); |
| 108 | } |
| 109 | return value as RemoteConfigProfile; |
| 110 | } |
| 111 | |
| 112 | function buildCloudClientId(options: { |
| 113 | stateDir: string; |
no outgoing calls
no test coverage detected