Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Mask 是一个简单的遮罩层,常用于展示上层的对话框、自定义浮层,如图:
Mask 在 native 端封装了 mask
组件,在 web 端使用 View + 全屏绝对定位布局进行封装。
注意 Mask 依赖 aliweex 提供的 mask 组件,因此客户端内需要集成 aliweex sdk。
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
style | 样式object | obj | |
animate | 显示时是否开启动画 | boolean | true |
effect | 显示的动画效果,animate = true 时生效,枚举值可选:ease-in,ease-in-out,ease-out,linear,cubic-bezier | string | 'ease-in-out' |
maskClosable | 能否点击空白区域关闭 | boolean | false |
duration | 动画时长,默认 200(单位是 ms) | number | 200 |
contentStyle | 内容 style, 如果 Mask 的Children 数量超过1个,可能需要使用。参见如下解释 | obj | |
onShow | 浮层展示后的回调 | function | |
onHide | 浮层隐藏后的回调 | function |
如果 Mask 标签内部不止 1 个子组件,默认我们会在 children 外面再包一层 View,contentStyle 为了控制这层 View 的样式。
你可以预埋一个 Mask 节点到 dom 元素中,然后找到 mask 实例,通过实例方法控制浮层显隐。
FAQs
The npm package nuke-mask receives a total of 3 weekly downloads. As such, nuke-mask popularity was classified as not popular.
We found that nuke-mask demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.