Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@atem-connection/image-tools
Advanced tools
This library is intended to be used as optional optimisations for atem-connection NPM Github. It provides some image utilities with compiled (rust) implementations, which can be used instead of the javascript implementations used elsewhere.
import { Atem } from 'atem-connection'
import * as fs from 'fs'
import { encodeImageForAtem } from '@atem-connection/image-tools'
const conn = new Atem()
const file = fs.readFileSync('./testframe.rgba')
const encodedImage = encodeImageForAtem(1920, 1080, file, 'rgba')
conn.uploadStill(0, encodedImage, 'Test image', '').then(() => {
console.log('Uploaded!')
})
// Or the less efficient method, with 'atem-connection' performing the colour conversion:
conn.uploadStill(1, file, 'Test image', '').then(() => {
console.log('Uploaded!')
})
yarn build
yarn link
to link this into atem-connection
To rebuild the native component you can run yarn build:rs
. If you are changing the exposed api, you should instead run yarn build
, so that typescript can check the new typings.
There are some rust unit tests, which can be run with yarn unit:rs
, or you can run all the unit tests with yarn unit
(make sure to rebuild the module first!).
You can run yarn build:js
to rebuild the typescript code, optionally with the --watch
parameter to re-run upon saving a file.
There are some unit tests, which can be run with yarn unit:js
. This command calls into jest, so any jest arguments can also be used
FAQs
Native tools for atem-connection
The npm package @atem-connection/image-tools receives a total of 2 weekly downloads. As such, @atem-connection/image-tools popularity was classified as not popular.
We found that @atem-connection/image-tools demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.