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.
@rarible/action
Advanced tools
Action is almost like async function, but actions can be divided into steps. It gives more control over action execution.
Action is almost like async function, but actions can be divided into steps. It gives more control over action execution.
This way frontend applications can allow users to see what step is currently executing. Also, it's possible to even control when next step should be started.
Action can be created using ActionBuilder:
import { ActionBuilder } from "@rarible/action"
const action = ActionBuilder
.create({ id: "first-step" as const, run: (input: string) => firstStep(input) })
.thenStep({ id: "second-step" as const, run: input => secondStep(input) })
This creates and action, which can be executed:
const result = await action("pass the input data here")
Here, result will be the result of secondStep async function.
You can run steps individually:
//First, start action, get Execution
const exec = action.start("pass the input data here")
//then run steps
await exec.run(0)
await exec.run(1)
//then get the result
const result = await exec.result
FAQs
Action is almost like async function, but actions can be divided into steps. It gives more control over action execution.
The npm package @rarible/action receives a total of 100 weekly downloads. As such, @rarible/action popularity was classified as not popular.
We found that @rarible/action demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
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.