mini_program_gizwits_sdk 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/sdk.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mini_program_gizwits_sdk",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "更新文档,修正ps字段",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
package/src/sdk.ts CHANGED
@@ -130,10 +130,10 @@ class SDK {
130
130
 
131
131
  // 云端获取的设备列表
132
132
  private _deviceList: IDevice[] = [];
133
- private get devieList() {
133
+ private get deviceList() {
134
134
  return this._deviceList;
135
135
  }
136
- private set devieList(data: IDevice[]) {
136
+ private set deviceList(data: IDevice[]) {
137
137
  // TODO 覆盖的时候 需要保留netStatus
138
138
  this._deviceList = data;
139
139
 
@@ -167,7 +167,7 @@ class SDK {
167
167
 
168
168
  private get allDevices() {
169
169
  let newDevices = merageBleLocalDevices(
170
- [...this.devieList],
170
+ [...this.deviceList],
171
171
  this.bleDevices
172
172
  );
173
173
  newDevices = merageLanLocalDevices(newDevices, this.udpDevices);
@@ -738,7 +738,7 @@ class SDK {
738
738
  // 内部刷新设备列表的方法
739
739
  public getBindingList = async () => {
740
740
  const data = await getBindingList();
741
- this.devieList = data.data || [];
741
+ this.deviceList = data.data || [];
742
742
  };
743
743
 
744
744
  /**