
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@exodus/asset-json-rpc
Advanced tools
import createApi from '@exodus/asset-json-rpc'
const api = createApi(url)
const api = createApi(url, { headers: { FOO: 'BAR' } }) // custom headers
// JSON-RPC
// request: { method: 'hello', params: [], id: 1, jsonrpc: '2.0' }
// response: { result: 'world', id: 1, jsonrpc: '2.0' }
// response with error: { error: { code: 100, message: 'danger', data: {a : 1} }, id: 1, jsonrpc: '2.0' }
const result = await api.post({ method: 'hello' }) // params can be omited
// result -> 'world'
// error -> throw new Error('danger') with properties { code: 100, data: { a: 1 } }
api.post({ method: 'hello', params: [1] }) // pass params
api.post({ method: 'hello', params: [1], id: 2, jsonrpc: '2.0' }) // can override id etc
Handle Errors
const api = createApi(url)
.middlewares([
(next) => async (url, options) => {
const res = await next(url, options)
let retry, message
if ([500].includes(res.status)) {
message = `${res.status} ${res.statusText}`
retry = true
} else {
return res
}
throw new ApiError(message, { retry })
}
])
FAQs
For all assets
The npm package @exodus/asset-json-rpc receives a total of 1,951 weekly downloads. As such, @exodus/asset-json-rpc popularity was classified as popular.
We found that @exodus/asset-json-rpc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 104 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.