Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: π Ensure undefined is not serialzed (#21)
* fix: π Ensure undefined is not serialzed Prior to this change, messages that 'undefined' are attempted to be serialized - this would cause the following exception to be raised: ```bash TypeError: Cannot read properties of undefined (reading 'type') ``` After this change, a simple non-null assertion is made to ensure the type of the value is not accessed if the value is undefined * refactor: β»οΈ Return early if falsy * Update src/serializers/JSONSerializer/index.ts Co-authored-by: Peter McIntyre <[email protected]> --------- Co-authored-by: Peter McIntyre <[email protected]>
- Loading branch information