Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix home grown JSON serialization #663

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Conversation

carlgieringer
Copy link
Contributor

decircular didn't handle custom toJSON (like moment uses)

@carlgieringer carlgieringer force-pushed the features/circular-json-3 branch 2 times, most recently from cdd222d to 8be44f5 Compare March 18, 2024 04:40
@carlgieringer carlgieringer changed the title Replace decircular with safe-stringify Fix home grown JSON serialization Mar 18, 2024
Copy link

Changed-files coverage summary


=============================== Coverage summary ===============================
Statements   : 51.94% ( 147/283 )
Branches     : 36.44% ( 43/118 )
Functions    : 43.42% ( 33/76 )
Lines        : 53.41% ( 141/264 )
================================================================================

Signed-off-by: Carl Gieringer <78054+carlgieringer@users.noreply.github.com>
@carlgieringer carlgieringer force-pushed the features/circular-json-3 branch from 8be44f5 to f5daf4a Compare March 18, 2024 04:53
@carlgieringer carlgieringer merged commit 2a46f04 into master Mar 18, 2024
5 checks passed
@carlgieringer carlgieringer deleted the features/circular-json-3 branch March 18, 2024 05:03
@@ -91,7 +91,7 @@ const makeJsonLogArguments = function (logLevel, logLevelNumber, ...args) {
logRecord["data"] = data;
}

const logRecordJson = toJson(logRecord, jsonStringifyReplacer);
const logRecordJson = JSON.stringify(logRecord, jsonStringifyReplacer);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should have stayd as toJson to support circularity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant