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.
splitio-react
Advanced tools
This package assumes you would import splitio use CDN (recommended in docs https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK).
<script src="//cdn.split.io/sdk/split-10.8.2.min.js"></script>
yarn add splitio-react
import { SplitIOProvider } from 'splitio-react';
const App = () => (
<SplitIOProvider
splitKey={'CUSTOMER_ID'}
authorizationKey={'SPLIT_IO_API_KEY'}
attributes={{
attrA,
attrB,
attrC,
...otherAttrs
}}
splits={[SPLIT_NAMES]}
>
<Main />
</SplitIOProvider>
)
import { useSplitTreatment } from 'splitio-react';
const SplitView = () => {
const treatmentValue = useSplitTreatment('SPLIT_NAME');
const client = useSplitClient();
useEffect(() => {
if (treatmentValue === 'on') {
client.track('traffic type', 'event');
}
}, [treatmentValue]);
return treatmentValue === 'on' ? <div>On</div> : <div>Off</div>
};
FAQs
react split-io wrapper library
The npm package splitio-react receives a total of 61 weekly downloads. As such, splitio-react popularity was classified as not popular.
We found that splitio-react demonstrated a not healthy version release cadence and project activity because the last version was released 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.
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.