UNPKG

apollo-link-sentry

Version:

[Apollo Link](https://www.apollographql.com/docs/react/api/link/introduction) to enrich [Sentry](https://sentry.io) events with [GraphQL](https://graphql.org) data

11 lines (10 loc) 324 B
export function stringifyObjectKeys(object) { const stringified = {}; for (const [key, value] of Object.entries(object)) { stringified[key] = typeof value === 'object' ? stringify(value) : value; } return stringified; } export function stringify(value) { return JSON.stringify(value, null, 2); }