Serialize JavaScript to a superset of JSON that includes regular expressions and functions.
Repo yahoo/serialize-javascript, read from GitHub 1 d ago. yahoo has not joined Take My Repo.
Concise methods ({ m() {} }), including async, generator and computed-key methods, are now serialized correctly when their bodies contain a nested arrow function or function declaration. Previously these were emitted unchanged, producing invalid output that failed to deserialize (#118). Class expressions continue to be emitted as-is.
This repo now has a security policy. Please report vulnerabilities privately through GitHub's private vulnerability reporting rather than public issues.
Full Changelog: v7.1.3...v7.1.4
See: GHSA-m5mm-p8h7-m29v
</script at the end of a serialized function body by @redonkulus in #235ignoreFunctionWith ignoreFunction: true, function values are now omitted the same way JSON.stringify omits them, without deleting them from the input object. Functions inside arrays are emitted as null (previously this produced Array.prototype.slice.call(...) output).
Full Changelog: v7.1.2...v7.1.3
See: GHSA-gfhx-hw2g-v5hg
</script payload across function bodies by @okuryu in #226Full Changelog: v7.1.0...v7.1.1
Full Changelog: v7.0.7...v7.1.0
Full Changelog: v7.0.6...v7.0.7