mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 21:23:24 +01:00
16 lines
527 B
JavaScript
16 lines
527 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.convertBigIntToString = void 0;
|
|
require("missing-native-js-functions");
|
|
function convertBigIntToString(obj) {
|
|
if (typeof obj === "bigint")
|
|
obj = obj.toString();
|
|
if (typeof obj === "object") {
|
|
obj.keys().forEach((key) => {
|
|
obj[key] = convertBigIntToString(obj[key]);
|
|
});
|
|
}
|
|
return obj;
|
|
}
|
|
exports.convertBigIntToString = convertBigIntToString;
|
|
//# sourceMappingURL=convertBigIntToString.js.map
|