Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qcloud-iotexplorer-h5-panel-sdk

Package Overview
Dependencies
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qcloud-iotexplorer-h5-panel-sdk - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

2

package.json
{
"name": "qcloud-iotexplorer-h5-panel-sdk",
"version": "1.2.5",
"version": "1.2.6",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/release/qcloud-iotexplorer-h5-panel-sdk",

@@ -7,3 +7,3 @@ # (DEPRECATED) qcloud-iotexplorer-h5-panel-sdk

*为保证 sdk 的问题修复和特性更新的时效性,原 npm 引入模式已废弃,现 sdk 将直接挂载在 h5 面板的 window 对象上,可直接通过 `window.h5PanelSdk` 或通过 webpack 配置 externals 来访问 h5 sdk。*
*为保证 sdk 的问题修复和特性更新的时效性,原 npm 引入模式已废弃,现 sdk 将直接挂载在 h5 面板页面的 window 对象上,可直接通过 `window.h5PanelSdk` 或通过 webpack 配置 externals 来访问 h5 sdk。*

@@ -112,2 +112,10 @@ *该 npm 包后续仍可使用,但将不再维护,为保证能够及时获取最新 sdk 特性,建议改由全局变量获取 sdk 实例。*

### sdk.triggerVibrateShort(type?: 'heavy' | 'medium' | 'light'): Promise;
触发一次小程序的短震动,参考:https://developers.weixin.qq.com/miniprogram/dev/api/device/vibrate/wx.vibrateShort.html#%E5%8F%82%E6%95%B0
### sdk.setAutoTriggerVibrateShort(autoTriggerVibrateShort: boolean, autoTriggerVibrateShortType: 'heavy' | 'medium' | 'light') => void;
设置是否自动触发震动,若设置为true,则每次调用 controlDeviceData 中含有 bool 类型的物模型变化时,会自动触发一次震动
### sdk.requestTokenApi: (action, data, options) => Promise

@@ -114,0 +122,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc