Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getDeps(): DepsType {
if (__NODE__) {
return {
apolloContext: ApolloContextToken.optional,
logger: LoggerToken.optional,
schema: GraphQLSchemaToken.optional,
endpoint: GraphQLEndpointToken.optional,
getApolloClient: ApolloClientToken,
getDataFromTree: GetDataFromTreeToken.optional,
bodyParserConfig: ApolloBodyParserConfigToken.optional,
defaultOptionsConfig: ApolloDefaultOptionsConfigToken.optional,
};
}
// $FlowFixMe
return {
getApolloClient: ApolloClientToken,
};
}