Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@intlsdk/report
Advanced tools
Readme
import Report, { Channel } from '@intlsdk/report';
// 初始化(生成新session_id)
Report.init({
env: 'sg', // 环境或后台域名,详见【env参数】
gameId: 11, // INTL 分配的游戏 ID
sigKey: 'xxx', // INTL一站式工作台分配的 SDK_KEY(与gameId匹配)
channelId: Channel.Guest, // 登录渠道 ID
appVersion: '1.2.3', // 业务应用版本号
openId: 'clzhu', // 用户ID
});
// 扩展选项(不生成新session_id)
Report.extend({ openId: 'clzhu' });
// 上报kv数据(兼容数组方式批量上报,详见下方示例)
Report.reportEvents({
eventName: 'xxx', // 自定义事件名称
// 以下为其他自定义字段,详见tlog文档
});
// 批量上报kv数据
Report.reportEvents([
{
eventName: 'xxx', // 自定义事件名称
// 以下为其他自定义字段,详见tlog文档
},
{
srcId: 1000, // 数据源ID,默认为200表示自定义事件上报
eventName: 'http', // 事件名称
// 以下为其他自定义字段,详见tlog文档
},
]);
env
参数兼容 2 种写法:区域标识简写
和完整url前缀
,满足https://{env}-dr.intlgame.com
格式的域名都可以使用区域标识简写
方式
sg
新加坡,与https://sg-dr.intlgame.com
(完整 url 前缀)等效,下同na
北美(azure)mos
俄罗斯jp
日本eu
欧洲aws-na
北美sa
南美lonelyfish
lonelyfish 现网独立集群us
硅谷(腾讯云)in
印度任意 url 域名前缀,必须含
https://
,示例:https://sg-dr.intlgame.com
,与sg
(区域标识简写)等效
FAQs
```ts import Report, { Channel } from '@intlsdk/report';
The npm package @intlsdk/report receives a total of 1 weekly downloads. As such, @intlsdk/report popularity was classified as not popular.
We found that @intlsdk/report 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.