UNPKG

graphql-amqp-subscriptions

Version:
19 lines 496 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Common = void 0; class Common { static convertMessage(message) { let response = null; if (message) { try { response = JSON.parse(message.content.toString()); } catch { response = message.content.toString(); } } return response; } } exports.Common = Common; //# sourceMappingURL=common.js.map