Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
react bee-anchor component for tinper-bee
基于 gumshoejs 的锚点组件
import Anchor from 'bee-anchor';
import 'bee-anchor/build/Anchor.css';
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
selector | 目标元素选择器 | string | - |
offset | 向上偏移量,例如有固定header,则 offset=()=>return header.getBoundingClientRect().height | ()=>{} | 0 |
navClass | 当前被激活锚点新增的类名 | string | 'active' |
contentClass | 当前被激活区域新增的类名 | string | 'active' |
nested | 是否有嵌套导航 | bool | false |
nestedClass | 嵌套导航激活时父节点的类名 | string | 'active' |
event | 是否添加监听事件 | bool | true |
activeHandle | 被激活的回调,三个参数,以基本示例为例,列表li、锚点a、激活区域p | func | ()=>{}) |
deactiveHandle | 激活后的回调 | func | ()=>{}) |
$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-anchor
$ cd bee-anchor
$ npm install
$ npm run dev
FAQs
Anchor ui component for react
The npm package bee-anchor receives a total of 34 weekly downloads. As such, bee-anchor popularity was classified as not popular.
We found that bee-anchor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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
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.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.