
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
一个使用rxjs做交互流程管理的swiper, 适用于preact项目, hooks编写, 有如下特性

| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| index | number | 0 | 默认参数 |
| pool | number | 3 | 初始化距离当前tab范围 |
| threshold | number | 0.13 | 滑动到下一页阈值 |
| direction | Direction | Direction.horizontal | 方向 |
| swipeableRange | Array | [0, children.length - 1] | 可滚动范围, 用于条件滚动 |
| overflow | boolean | false | 溢出回弹 |
| maxOverflow | number | 25 | 最大可以出px |
| flingDuration | number | 800 | 手指离开屏幕后动画时长 |
| flingEaseFn | Function | easeOutQuint | fling缓动函数 |
| className | string | swiper根元素className |
建议一下props更新通过拿
ref更新, 比如: swiperRef.current.swipeableRange = [0, 1]
| 事件名 | 参数 | 描述 |
|---|---|---|
| onProgress | ProgressInfo | 有位移/进度变化时触发 |
| onSwipeEnd | Info | 当手指离开屏幕触发 |
| onFlingEnd | Info | 当惯性滚动结束后触发 |
| onOverflow | OverflowInfo | 当手指离开屏幕且触发溢出时触发, 前置条件overflow: true |
| 参数 | 类型 | 描述 |
|---|---|---|
| tab | number | 当前tab |
| percent | number | 距离目标tab百分比 |
| 参数 | 类型 | 描述 |
|---|---|---|
| tab | number | 当前tab |
| 参数 | 类型 | 描述 |
|---|---|---|
| overflowEdge | Direction | 溢出方向 |
| 方法 | 参数 | 描述 |
|---|---|---|
| goto | index(number) | 跳转到目标tab |
function Page() {
return <div>
<Swiper>
<SwiperItem>1</SwiperItem>
<SwiperItem>2</SwiperItem>
<SwiperItem>3</SwiperItem>
</Swiper>
</div>
}
MIT 造轮子锻炼抽象能力
FAQs
preact swiper flow control by rxjs
We found that pc-swiper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.