qcloud-iotexplorer-appdev-plugin-wificonf-qrcode
Advanced tools
Comparing version 1.9.9-alpha.0 to 2.0.2-alpha.0
@@ -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
7643
89
+ Addedevent-emitter-for-miniprogram@0.11.8(transitive)
+ Addedqcloud-iotexplorer-appdev-plugin-wificonf-core@2.3.23(transitive)
+ Addedqcloud-iotexplorer-appdev-sdk@2.3.16(transitive)
+ Addedqcloud-iotexplorer-logger@0.0.12(transitive)
- Removedevent-emitter-for-miniprogram@0.8.6(transitive)
- Removedqcloud-iotexplorer-appdev-plugin-wificonf-core@1.9.9-alpha.0(transitive)
- Removedqcloud-iotexplorer-appdev-sdk@1.9.7-alpha.0(transitive)
Updatedqcloud-iotexplorer-appdev-plugin-wificonf-core@^2.0.2-alpha.0