
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@rapyuta-robotics/api-clients
Advanced tools
Mock API server
You can use this package to intercept your network requests and mock the response.
This package also exports few types which can be used in your project.
In your project's directory,
run yarn add @rapyuta-robotics/api-clients
To start the mock server/requests interception:
import { mockServer } from '@rapyuta-robotics/api-clients/test';
run mockServer.listen()
To stop the mock server/requests interception:
run mockServer.close()
Testing example
import { Factories } from '@rapyuta-robotics/api-clients'; import { mockApi, MockRoutes, expectApiCall } from '@rapyuta-robotics/api-clients/test';
// Configure the API. const map = Factories.MAPS({ id: 0 }); mockApi({ route: MockRoutes.MAPS, payload: [map] });
// Test the API. expectApiCall({ method: 'GET', route: MockRoutes.MAPS });
To add types to your project
import { ContainerState } from '@rapyuta-robotics/api-clients';
Reference
You can refer src/factories/types.ts
for all the exported types
You can refer src/factories/index.ts
for all the exported factory methods
Start development:
yarn link
to create the symlinkyarn start
to watch this package's file changes and rebuild automaticallyyarn link @rapyuta-robotics/api-clients
to establish the symlinkimport { helloWorld } from '@rapyuta-robotics/api-clients'
Stop development:
yarn unlink @rapyuta-robotics/api-clients
to disband the symlink (NOTE: you need to do this before step (3), otherwise the unlink will fail. In the case that you mistakenly run (3) before (1), run yarn link
in this package's 📦 directory and restart from (1))yarn install --force
to ensure that it's using the correct remote version of @rapyuta-robotics/api-clients
yarn unlink
to cancel the symlinkA new version will be published to NPM everytime a new release is created
The workflow shall be:
RR_NPM_TOKEN
in organization's secrets. Contact michael.orr@rapyuta-robotics.com when such case occurs.tsup
for bundling and hot-bundling on code changes (see: https://github.com/egoist/tsup)FAQs
Mock API server
The npm package @rapyuta-robotics/api-clients receives a total of 38 weekly downloads. As such, @rapyuta-robotics/api-clients popularity was classified as not popular.
We found that @rapyuta-robotics/api-clients demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.