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

qcloud-iotexplorer-appdev-plugin-wificonf-qrcode

Package Overview
Dependencies
Maintainers
2
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qcloud-iotexplorer-appdev-plugin-wificonf-qrcode - npm Package Compare versions

Comparing version 1.9.9-alpha.0 to 2.0.2-alpha.0

2

lib/qrcode/index.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.QrCode=void 0;var tslib_1=require("tslib"),qcloud_iotexplorer_appdev_plugin_wificonf_core_1=require("qcloud-iotexplorer-appdev-plugin-wificonf-core"),WifiConfErrorMsg=qcloud_iotexplorer_appdev_plugin_wificonf_core_1.constants.WifiConfErrorMsg,WifiConfStepCode=qcloud_iotexplorer_appdev_plugin_wificonf_core_1.constants.WifiConfStepCode,QrCode=function(o){function e(e,i){return o.call(this,e,i)||this}return tslib_1.__extends(e,o),e.prototype.doBusiness=function(){return tslib_1.__awaiter(this,void 0,void 0,(function(){var o,e=this;return tslib_1.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,qcloud_iotexplorer_appdev_plugin_wificonf_core_1.queryTokenStateAndBind({token:this.options.wifiConfToken,productId:"",deviceName:"",familyId:this.options.familyId,roomId:this.options.roomId,onProgress:function(o){e.onProgress.call(e,o)},sdk:this.sdk,newTokenVersion:this.options.newTokenVersion})];case 1:return i.sent(),[3,3];case 2:return o=i.sent(),console.log(o),o&&o.code in WifiConfErrorMsg&&(o.uiMsg=WifiConfErrorMsg[o.code]),this.onProgress({code:WifiConfStepCode.WIFI_CONF_FAIL,detail:{error:o}}),[3,3];case 3:return[2]}}))}))},e}(qcloud_iotexplorer_appdev_plugin_wificonf_core_1.WifiConfProtocolBase);exports.QrCode=QrCode;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.QrCode=void 0;var tslib_1=require("tslib"),qcloud_iotexplorer_appdev_plugin_wificonf_core_1=require("qcloud-iotexplorer-appdev-plugin-wificonf-core"),WifiConfErrorMsg=qcloud_iotexplorer_appdev_plugin_wificonf_core_1.constants.WifiConfErrorMsg,WifiConfStepCode=qcloud_iotexplorer_appdev_plugin_wificonf_core_1.constants.WifiConfStepCode,QrCode=function(o){function e(e,i){return o.call(this,e,i)||this}return tslib_1.__extends(e,o),e.prototype.doBusiness=function(){return tslib_1.__awaiter(this,void 0,void 0,(function(){var o,e,i=this;return tslib_1.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,qcloud_iotexplorer_appdev_plugin_wificonf_core_1.queryTokenStateAndBind({token:this.options.wifiConfToken,productId:"",deviceName:"",familyId:this.options.familyId,roomId:this.options.roomId,onProgress:function(o){i.onProgress.call(i,o)},sdk:this.sdk,newTokenVersion:this.options.newTokenVersion})];case 1:return o=r.sent(),this.onComplete(o),[3,3];case 2:return e=r.sent(),console.log(e),e&&e.code in WifiConfErrorMsg&&(e.uiMsg=WifiConfErrorMsg[e.code]),this.onProgress({code:WifiConfStepCode.WIFI_CONF_FAIL,detail:{error:e}}),[3,3];case 3:return[2]}}))}))},e}(qcloud_iotexplorer_appdev_plugin_wificonf_core_1.WifiConfProtocolBase);exports.QrCode=QrCode;
//# sourceMappingURL=index.js.map
{
"name": "qcloud-iotexplorer-appdev-plugin-wificonf-qrcode",
"version": "1.9.9-alpha.0",
"version": "2.0.2-alpha.0",
"description": "",

@@ -17,4 +17,4 @@ "main": "lib/index.js",

"dependencies": {
"qcloud-iotexplorer-appdev-plugin-wificonf-core": "^1.9.9-alpha.0",
"qcloud-iotexplorer-appdev-sdk": "^1.9.7-alpha.0",
"qcloud-iotexplorer-appdev-plugin-wificonf-core": "^2.0.2-alpha.0",
"qcloud-iotexplorer-appdev-sdk": "^1.9.6",
"tslib": "^2.0.1"

@@ -25,3 +25,3 @@ },

},
"gitHead": "a47b02aaf1e712f1f3ca0bf63f16dfb8b02af3a9"
"gitHead": "84307129f7371bd132dacefaa8fc3d72d91bfae3"
}

@@ -24,3 +24,3 @@ import {

try {
await queryTokenStateAndBind({
const deviceInfo = await queryTokenStateAndBind({
token: this.options.wifiConfToken,

@@ -37,2 +37,3 @@ productId: '',

});
this.onComplete(deviceInfo);
} catch (error) {

@@ -39,0 +40,0 @@ console.log(error);

Sorry, the diff of this file is not supported yet

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