
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@skit/wxjssdk-promisify
Advanced tools
npm install @skit/wxjssdk-promisify
const $ = require('@skit/wxjssdk-promisify');
$.promisifyAll({
root: wx, // (可选)指定异步方法挂载到某个对象的属性上。默认挂载到 wx。
extends: ['checkJsApi'] // (可选)若 JS-SDK 新增了某些 API 而本库尚未更新,可由此传入相应的方法名数组以转换成异步方法。
});
wx.checkJsApiAsync({ jsApiList: ['chooseWXPay'] })
.then((res) => {
console.info('success', res.checkResult);
})
.catch((err) => {
console.error('fail', err);
})
.finally(() => {
console.log('complete');
});
/**
* @example 以上示例代码等同于下方原生实现:
*/
wx.checkJsApi({
jsApiList: ['chooseWXPay'],
success: (res) => {
console.info('success', res.checkResult);
},
fail: (err) => {
console.error('fail', err);
},
complete: () => {
console.log('complete');
}
});
FAQs
为微信 JS-SDK 提供 TypeScript 支持,同时将其基于回调函数的异步 API 转化为 Promise 形式。
We found that @skit/wxjssdk-promisify 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

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