Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@boostxyz/widgets
Advanced tools
pnpm install -r
pnpm run test --watch
pnpm run dev
flowchart TD
%% Define subgraphs
subgraph s1["core"]
n1["RewardKitProvider"]
n11["<Proxy>"]
end
subgraph s2["components"]
n2["<ClaimWidget>"]
n9["<ClaimWidgetRenderer>"]
n10["renders"]
end
subgraph s3["locales"]
n6["I18nProvider"]
n8["<I18n />"]
end
%% Define connections
n2 --> n10
n10 --> n9
n1 --> n3["exposes"]
n3 --> n4["RewardKitProvider"]
s3 --- s1
s2 --> n5["extends"]
n5 --> n11
n4 --> s2
%% Define node styles
n2@{ shape: rounded}
n9@{ shape: rounded}
n10@{ shape: text}
n6@{ shape: rounded}
n3@{ shape: text}
n4@{ shape: rounded}
n5@{ shape: text}
Include our provider up in the render hierarchy:
<RewardKitProvider>{children}</RewardKitProvider>
<RewardKitProvider>
<ClaimWidget />
</RewardKitProvider>
<RewardKitProvider>
<ClaimWidget>
{({
t,
onClaimStart,
boostId,
chainId,
id,
locale,
onClaimError,
onClaimSuccess,
rewards,
startClaim,
}) => <Button onClick={startClaim}>{t('claim.button')}</Button>}
</ClaimWidget>
</RewardKitProvider>
import * as React from 'react';
import { useRewardKit } from '@boostxyz/widgets/RewardKitProvider';
const App = ({
id,
children,
className,
...rest
}: AppProps): JSX.Element => {
const {
claimReward,
clearId,
error,
id,
isLoading,
rewards,
setId,
} = useRewardKit();
return (
<div className={className} {...rest}>
{children}
<button onClick={() => claimReward('something')}>
<span>{JSON.stringify(rewards)}</span>
</div>
);
};
export { App };
export type { AppProps };
FAQs
- 🛠️ Test-driven - 🌎 I18n-ready - 🤲 WAI-ARIA compliant
The npm package @boostxyz/widgets receives a total of 125 weekly downloads. As such, @boostxyz/widgets popularity was classified as not popular.
We found that @boostxyz/widgets 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
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.