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.
@surix/data-util
Advanced tools
This library implements a set of utilities and wrappers that make it easier to work with data objects from the Surix API (e.g. entities).
These wrappers are used by the official client libraries to abstract away the raw Surix API data from the developer.
EntityWrapper
classimport { EntityWrapper } from '@surix/data-util';
const raw = getRawEntityFromApi();
const wrapped = new EntityWrapper(raw);
const code = wrapped.value('address.country.code', 'KE');
// using raw entity, to avoid getting 'undefined' errors, we have to check whether each field exists
const codeFromRaw = raw.data.address
&& raw.data.address.value.country
&& raw.data.address.country.value.code
&& raw.data.address.country.value.code.value || 'KE';
FAQs
Utilities for making it easy to work with Surix entities
We found that @surix/data-util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
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.