UNPKG

@f5i23q999d/cow-sdk

Version:

<p align="center"> <img width="400" src="https://github.com/cowprotocol/cow-sdk/raw/main/docs/images/CoW.png" /> </p>

16 lines 560 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.jsonWithBigintReplacer = void 0; const jsonWithBigintReplacer = (_key, value) => { // Handle BigInt if (typeof value === 'bigint') { return value.toString(); } // Handle BigNumber (if you're using ethers.BigNumber) if (typeof value === 'object' && value !== null && '_isBigNumber' in value) { return value.toString(); } return value; }; exports.jsonWithBigintReplacer = jsonWithBigintReplacer; //# sourceMappingURL=serialize.js.map