
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
兼容ES6以及低版本ES5,基于babel build/minify;
$ npm install shareto -S
<script src="dist/index.min.js"></script>
<script>
var Instance = new Share({
...
})
</script>
import Share from 'shareto';
// app mounted前先初始化配置,譬如定义签名地址、是否开启debug,看配置方式,nuxtjs可以放在plugins目录或者全局入口统一,可以注入到全局实例
const Instance = new Share({
debug: false,
signurl: {SIGNURL},
shareThumb: 'https://pubfe.aostatic.com/assets/imgs/panasia-logo.jpg'
});
// 在需要调用分享的页面
Instance.run({
title: {TITLE},
desc: {DESC}
})
* @param {String} title 分享显示的标题
* @param {String} desc 分享显示的页面详情介绍
* @param {String} shareThumb 分享显示的缩略图
* @param {String} signurl 签名地址
* @param {Boolean} debug 开启debug模式,会在签名后alert显示config配置

FAQs
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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.