
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
核心sdk接入js,已发到npm
npm i || yarn || cnpm
无需调试
yarn build
.
├── README.md ------------------------ 说明文件
├── package.json --------------------- 项目配置
├── rollup.config.js ----------------- rollup打包配置
├── index.ts ------------------------- 入口文件
├── DsBridge.ts ---------------------- 所有方法
├── h5/xx ---------------------------- iife风格
└── dist/xx -------------------------- cjs风格
渠道引入方式:
yarn add coresdk
import coresdk from 'coreh5sdk/dist/coreH5sdk'
Vue.prototype.$coresdk = new coresdk({})
(1)登陆回调
const loginData = {
externalData: {
openId: parseInt(Math.random() * 10000000000000000)
},
internalData: {
token: '4a3b62078b47a1eea21d4f5dada68516',
register: true,
floatMsg: '我是卷轴',
floatUrl: location.origin + '/textScroll',
redPoint: true
}
}
this.$coresdk.callNative.loginSuccess(loginData)
(2)支付回调
this.$coresdk.callNative.transactionSuccess({
status: true,
amount: 100,
orderId: '2345678765435678',
paymentType: 'alipay'
})
(3)调用客户端的方法:
this.$coresdk.callNative[methods]()
methods:是以下的方法 ======>
详细客户端方法列表:http://gitlab.yslocal.com/fe/demo/dsbridge
npm命名为coreH5sdk,因为core-js已经被占用
npm发包前一定先打包
npm发包后注意合master,保持代码一致性
FAQs
核心sdk
We found that coreh5sdk 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.