chia-agent 14.3.4 → 14.3.6-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/logger.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [14.3.5]
|
|
4
|
+
### Fixed
|
|
5
|
+
- Fixed an issue where it exhausts heap when logging an object with circular references
|
|
6
|
+
|
|
3
7
|
## [14.3.4]
|
|
4
8
|
### Breaking change
|
|
5
9
|
- Changed `daemon.connect()` API signature from `connect(url?, timeoutMs?)` to `connect(url?, options?)`
|
package/logger.js
CHANGED
|
@@ -163,7 +163,7 @@ function stringify(obj, indent) {
|
|
|
163
163
|
return `${obj}`;
|
|
164
164
|
}
|
|
165
165
|
else if (typeof obj === "bigint") {
|
|
166
|
-
return `${obj}`;
|
|
166
|
+
return `${obj}n`;
|
|
167
167
|
}
|
|
168
168
|
else if (typeof obj === "symbol") {
|
|
169
169
|
return obj.toString();
|
|
@@ -175,7 +175,7 @@ function stringify(obj, indent) {
|
|
|
175
175
|
return "[Function]";
|
|
176
176
|
}
|
|
177
177
|
const seen = new WeakSet();
|
|
178
|
-
return JSON.stringify(obj, (
|
|
178
|
+
return JSON.stringify(obj, (k, v) => {
|
|
179
179
|
if (typeof v === "object" && v !== null) {
|
|
180
180
|
if (seen.has(v)) {
|
|
181
181
|
return undefined;
|