MCPcopy Index your code
hub / github.com/callstack/agent-device / parseRemoteConfigProfile

Function parseRemoteConfigProfile

src/cli/connection/cloud-profile.ts:99–110  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

97}
98
99function 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
112function buildCloudClientId(options: {
113 stateDir: string;

Callers 1

parseConnectionProfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected