Socket
Socket
Sign inDemoInstall

yach.ext.sensors

Package Overview
Dependencies
Maintainers
10
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yach.ext.sensors

yach ext: sensors


Version published
Weekly downloads
37
increased by184.62%
Maintainers
10
Weekly downloads
 
Created
Source

yach.ext.sensors

owner

张永昌(079917)

安装

npm i yach.ext.sensors

init

import { init as sensorsInit } from 'yach.ext.sensors';

/**
 * sensors 初始化,使用sensors前,必须调用此方法
 * @param {String} sensorsUrl : 数据上报地址,例如 'https://xxx.xxx.xx'
 * @param {Boolean} showLog   : 打开console log 本地输出,一般是调试使用,例如 true
 */
sensorsInit(sensorsUrl, showLog);

track

import { track as sensorsTrack } from 'yach.ext.sensors';

/**
 * 事件上报调用方法
 * @param {String} eventName : 事件名称,例如 'env_test'
 * @param {Obj} eventData    : 上报事件对象,例如 {env_test: ***, ...}
 */
sensorsTrack(eventName, eventData);

version

0.0.9.20210120

  1. 共有参数 增加cpu信息上报

0.0.8.20201224

  1. 降低 sa-sdk-javascript 版本到 1.15.20, 解决主窗口不在激活状态也可以上报数据

0.0.5.20201123

  1. ncu

0.0.4.20201023

  1. ncu

0.0.3.20200825

  1. 增加失败重试设置

0.0.2.20200727

  1. 添加注释

0.0.1.20200724

  1. init project
  2. sensors init
  3. sensors track
  4. show log

FAQs

Package last updated on 20 Jan 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc