Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@adt/json-rpc
Advanced tools
Base JsonRpc classes. Represents all elements from JSON-RPC 2.0 specification http://www.jsonrpc.org/specification
Base JsonRpc classes. Represents all elements from JSON-RPC 2.0 specification http://www.jsonrpc.org/specification
Values that can be omitted, by default are set to undefined.
Specification says, that params in request can be ommited, but omitting property in object is not a good practice. Therefore, request and event object "params" property always exists, but can be set to value "undefined". When params property is undefined it will not be serialized.
npm install @adt/json-rpc or yarn add @adt/json-rpc
import { JsoRpcEvent, JsonRpcRequest } from "@adt/json-rpc"
const byeEvent = JsonRpcEvent({
method: "Bye",
params:{
name: "Joe"
}
});
console.log(byeEvent.serialize());
const helloRequest = JsonRpcRequest({
method: "Hello",
params: {
name: "Joe";
}
});
console.log(helloRequest.serialize());
const helloRequestWithExplicitId = JsonRpcRequest({
id: 1,
method: "Hello",
params: {
name: "Joe";
}
});
console.log(helloRequestWithExplicitId.serialize());
For more use cases please look at test specs.
TODO :)
TODO :)
FAQs
Base JsonRpc classes. Represents all elements from JSON-RPC 2.0 specification http://www.jsonrpc.org/specification
The npm package @adt/json-rpc receives a total of 0 weekly downloads. As such, @adt/json-rpc popularity was classified as not popular.
We found that @adt/json-rpc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.