New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tuyapi

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tuyapi - npm Package Compare versions

Comparing version 7.0.1 to 7.1.0

10

index.js

@@ -182,4 +182,6 @@ // Import packages

* true to return entire list of properties from device
* @param {Array.<Number>} [options.dps=[4,5,6,18,19,20]]
* @param {Number} [options.dps=1]
* DPS index to return
* @param {Array.Number} [options.requestedDPS=[4,5,6,18,19,20]]
* only set this if you know what you're doing
* @example

@@ -190,3 +192,3 @@ * // get first, default property from device

* // get second property from device
* tuya.refresh({dps: [4,5,9,18,19,20]}).then(status => console.log(status))
* tuya.refresh({dps: 2}).then(status => console.log(status))
* @example

@@ -203,3 +205,3 @@ * // get all available data from device

t: Math.round(new Date().getTime() / 1000).toString(),
dpId: options.dps ? options.dps : this._dpRefreshIds,
dpId: options.requestedDPS ? options.requestedDPS : this._dpRefreshIds,
uid: this.device.id

@@ -228,3 +230,3 @@ };

const setOptions = {
dps: options.dps ? options.dps : this._dpRefreshIds,
dps: options.requestedDPS ? options.requestedDPS : this._dpRefreshIds,
set: null

@@ -231,0 +233,0 @@ };

2

package.json
{
"name": "tuyapi",
"version": "7.0.1",
"version": "7.1.0",
"description": "An easy-to-use API for devices that use Tuya's cloud services",

@@ -5,0 +5,0 @@ "main": "index.js",

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