Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
An unofficial library for interacting with the Yandex VOT API, which supports working with JavaScript, TypeScript, and also has built-in parted types for Typebox.
The library supports working with worker servers, to do this, you need to create a VOTWorkerClient
client and specify the domain of the worker server, for example vot-worker.toil.cc
.
Installation for Bun:
bun add vot.js
Installation for NPM:
npm install vot.js
To start working with the API, you need to create a VOT Client. This can be done using the line provided below.
Standard Client:
const client = new VOTClient();
const videoData = await client.getVideoData("https://youtu.be/LK6nLR1bzpI");
const result = await client.translateVideo({ videoData });
Proxying via vot-worker:
const client = new VOTWorkerClient({
host: "vot.toil.cc",
});
You can see more code examples here
To build, you must have:
Don't forget to install the dependencies:
bun install
This build option should be used in most cases if your changes do not affect the .proto
file.
bun build:bun
If you want to build the library by updating the proto files, then you need to install protoc 3+ and add it to the Path.
Building from Linux (maybe on MacOS it will work too):
bun rebuild:linux
Building from Windows:
bun rebuild:win
You can use this build option if you only want to build types for TypeScript:
bun build:declaration
You can use this build option if you only want to build types for TypeBox:
bun build:typebox
You can use this build option if you only want to convert the .proto
file to .ts
(this will not update the file in the /dist folder):
Building from Linux (maybe on MacOS it will work too):
bun build:proto-linux
Building from Windows:
bun build:proto-win
The library has minimal test coverage to check its performance.
Run the tests:
bun test
FAQs
Unoffical library for interacting with the Yandex VOT API
We found that vot.js 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.