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.
@xyo-network/api-address-verifier-apollo
Advanced tools
Apollo api with react codegen components for ethereum address verification
cd
into the api-address-verifier-apollo
directory.yarn
yarn dev
yarn add @xyo-network/api-address-verifier-apollo @xyo-network/tool-storybook-react
import {
VerifyType,
withVerifyAddress,
VerifyAddressProvider,
withMyVerifiedAddresses,
VerifiedAddress,
} from '@xyo-network/api-address-verifier-apollo'
import {
SignButton,
ISigningValues,
} from '@xyo-network/tool-storybook-react/dist/lib/Signing'
const SIGNING_DATA = 'I <3 XYO'
export const VerifyAddresses = withVerifyAddress()(({ mutate }) => {
const onSuccess = async ({ address, signature, error }: ISigningValues) => {
try {
if (error) throw error
await mutate({
variables: {
type: VerifyType.Sign,
data: SIGNING_DATA,
address,
signature,
},
})
} catch (e) {
// handle err
}
}
return <SignButton data={SIGNING_DATA} onSuccess={onSuccess} />
})
export const MyVerifiedAddresses = withMyVerifiedAddresses()(({ data }) => {
return <YourAddressListComponent verifiedAddresses={data.verifiedAddresses} />
})
export default () => {
return (
<VerifyAddressProvider
getRequestContext={async () => ({ headers: {
'X-Auth-Token': `${usertoken}`
...headers
} })}
>
<>
<VerifyAddresses />
<MyVerifiedAddresses />
</>
</VerifyAddressProvider>
)
}
Only for internal XY - The Persistent Company use at this time.
Made with ❄️ and 🔥 by XY - The Persistent Company
FAQs
Apollo api with react codegen
We found that @xyo-network/api-address-verifier-apollo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.