Description
Enable user-defined error serialization and deserialization through toError and fromError functions in js-rpc. Add optional replacer and reviver parameters to further customize the (de)serialization process, thereby enhancing security by allowing application-specific rules for sensitive data filtering.
Requirements
- User-Driven: User should be able to define toError and fromError functions.
- Optional Parameters: Introduce replacer and reviver for added customization.
- Application-Specific: Allow injectable rules for data filtering.
- PK Conformance: Compatibility with existing Polykey workflows.
Tasks
Acceptance Criteria
Description
Enable user-defined error serialization and deserialization through toError and fromError functions in js-rpc. Add optional replacer and reviver parameters to further customize the (de)serialization process, thereby enhancing security by allowing application-specific rules for sensitive data filtering.
Requirements
Tasks
Acceptance Criteria