You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
* Make JsonRpcPayload's `params` field optional
Currently jsonrpc.js uses `params: params || []` in the
`toPayload` function, so this type update makes the `params` field
optional to match.
* Fix JsonRpcResponse type
Update `id` to accept `string | number` - this now matches the
`isValidResponse` function in `jsonrpc.js`.
Update `error` to accept an object with optional `code`, `data`,
and non-optional `message` fields to more closely match the
[JSON RPC spec](https://www.jsonrpc.org/specification#error_object)
and the `ErrorResponse` function in `errors.js`.
* Remove errant spaces
* Add PR #443 to CHANGELOG
Co-authored-by: jdevcs <86780488+jdevcs@users.noreply.github.com>
0 commit comments