UNPKG

@eventstore/opentelemetry

Version:

[![license][license-badge]][license-badge-url] [![Github action CI workflow][ci-badge]][ci-badge-url]

14 lines 593 B
"use strict"; /* eslint-disable @typescript-eslint/ban-types */ /* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty(exports, "__esModule", { value: true }); exports.isJSONEventData = exports.hasConvertGrpcEventMethod = void 0; function hasConvertGrpcEventMethod(obj) { return typeof obj.convertGrpcEvent === "function"; } exports.hasConvertGrpcEventMethod = hasConvertGrpcEventMethod; function isJSONEventData(event) { return event.contentType === "application/json"; } exports.isJSONEventData = isJSONEventData; //# sourceMappingURL=utils.js.map