1 files changed, 16 insertions, 0 deletions
diff --git a/dist/util/convertBigIntToString.js b/dist/util/convertBigIntToString.js
new file mode 100644
index 00000000..a72b5a57
--- /dev/null
+++ b/dist/util/convertBigIntToString.js
@@ -0,0 +1,16 @@
+"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
\ No newline at end of file
|