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

Function readReplayShellEnvSource

src/replay/vars.ts:107–116  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

105}
106
107export function readReplayShellEnvSource(raw: unknown): NodeJS.ProcessEnv {
108 if (raw && typeof raw === 'object' && !Array.isArray(raw)) {
109 const result: NodeJS.ProcessEnv = {};
110 for (const [key, value] of Object.entries(raw)) {
111 if (typeof value === 'string') result[key] = value;
112 }
113 return result;
114 }
115 return process.env;
116}
117
118export function resolveReplayString(
119 raw: string,

Callers 2

readReplayCompatEnvFunction · 0.90
runReplayScriptFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected