@graphql-mesh/transport-grpc
Version:
15 lines (14 loc) • 501 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const long_1 = tslib_1.__importDefault(require("long"));
function patchLongJs() {
const originalLongFromValue = long_1.default.fromValue.bind(long_1.default);
long_1.default.fromValue = (value) => {
if (typeof value === 'bigint') {
return long_1.default.fromValue(value.toString());
}
return originalLongFromValue(value);
};
}
patchLongJs();
;