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

16 lines (15 loc) 537 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stringifyObjectKeys = stringifyObjectKeys; exports.stringify = stringify; function stringifyObjectKeys(object) { var stringified = {}; for (var _i = 0, _a = Object.entries(object); _i < _a.length; _i++) { var _b = _a[_i], key = _b[0], value = _b[1]; stringified[key] = typeof value === 'object' ? stringify(value) : value; } return stringified; } function stringify(value) { return JSON.stringify(value, null, 2); }