
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@antv/g6-extension-react
Advanced tools
This extension allows you to define G6 node by React component and JSX syntax.
npm install @antv/g6-extension-react
import { ExtensionCategory, register } from '@antv/g6';
import { ReactNode } from '@antv/g6-extension-react';
register(ExtensionCategory.NODE, 'react', ReactNode);
React Node:
const ReactNode = () => {
return <div>node</div>;
};
G Node:
import { Group, Rect, Text } from '@antv/g6-extension-react';
const GNode = () => {
return <Group>
<Rect width={100} height={100}></Rect>
<Text text={"node"} />
<Group>
};
Use ReactNode:
const graph = new Graph({
// ... other options
node: {
type: 'react',
style: {
component: () => <ReactNode />,
},
},
});
Use GNode:
const graph = new Graph({
// ... other options
node: {
type: 'g',
style: {
component: () => <GNode />,
},
},
});
ReactNode is a React component, while GNode support jsx syntax but can only use G tag node.
FAQs
Using React Component to Define Your G6 Graph Node
The npm package @antv/g6-extension-react receives a total of 107,535 weekly downloads. As such, @antv/g6-extension-react popularity was classified as popular.
We found that @antv/g6-extension-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 72 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
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.