
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
@yqg/react
Advanced tools
ModalContext
| Property | Description | Type | Default Value |
|---|---|---|---|
| commonDialogProps | default及ModalProvider上设置的Modal Props, 方便使用openModal | Object | {width: 768, maskClosable: false, footer: null, style: {overflowX: 'hidden', overflowY: 'auto'}} |
| open | 用来open没有被业务代码用Modal包裹的组件 | Function | - |
| openModal | 用来open被业务代码用Modal包裹的组件 | Function | - |
| clearAll | 路由跳转等情况下清空modal | Function | - |
ModalProvider
| Property | Description | Type | Default Value |
|---|---|---|---|
| dialogProps | Modal Props,详见antd Modal | Object | - |
<ModalProvider dialogProps={xxx}>
{children}
</ModalProvider>
useModal
Options 部分参数仅open支持, 因为openModal拿到的是ModalWrappedComp, 不方便定制Modal
| Property | Description | Type | Default Value |
|---|---|---|---|
| dialogProps | Modal Props,详见antd Modal | Object | - |
| onlyClose | 只展示关闭按钮, 目前仅open支持 | boolean | - |
| closeText | 关闭按钮文案, 目前仅open支持 | ReactNode | 关闭 |
const {commonDialogProps, open, openModal, clearAll} = useModal();
open(CompA, compProps, options).then(xxx);
openModal(ModalWrappedB, compProps, options).then(xxx);
clearAll();
FAQs
react based components
The npm package @yqg/react receives a total of 2 weekly downloads. As such, @yqg/react popularity was classified as not popular.
We found that @yqg/react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.