Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
@ued2345/octopus-jsbridge
Advanced tools
├── dist
│ ├── JsBridge.min.js // 打包后的文件,也是被其它项目引入的文件
├── docs // 官方文档(待开发)
├── src
│ ├── api // 暴露客户端方法
│ │ │── std_decryptString.js // 文件名同方法名
│ │ │── .....
│ ├── utils
│ │ │──helper.js // 工具类方法
│ │ │──jsBridge_android.js // android端jsbridge封装
│ │ │──jsBridge_ios.js // ios端jsbridge封装
│ │ │──jsBridge.js // jsBridge入口文件
│ ├── index.js // webpack entry入口文件
│ ├── types
│ │ │── index.d.ts // index.d.ts 定义类型
├── webpack.config.js // webpack配置文件
JsBridge = {
// js 调用 webview 方法
callHandler: (name, params, callback) => void,
// webview 调用 js
registerHandler: (name, callback) => void,
// 解密字符串
std_decryptString: (data: string) => void,
...
}
yarn add @ued2345/octopus-jsbridge -D
<script src="JsBridge.min.js"></script>
<script>
window.JsBridge.std_decryptString('解密字符串').then(res => void)
</script>
import { callHandler, registerHandler, std_decryptString } from '@ued2345/octopus-jsbridge'
FAQs
jsBridge Native&H5
We found that @ued2345/octopus-jsbridge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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 supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.