homebridge-xbox-tv 2.9.11-beta.21 → 2.9.11-beta.22

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Xbox TV",
3
3
  "name": "homebridge-xbox-tv",
4
- "version": "2.9.11-beta.21",
4
+ "version": "2.9.11-beta.22",
5
5
  "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -13,7 +13,8 @@ class PACKETS {
13
13
  return packetStructure.writeBytes(this.value);
14
14
  },
15
15
  unpack(packetStructure) {
16
- return packetStructure.readBytes(length);
16
+ this.value = packetStructure.readBytes(length);
17
+ return this.value
17
18
  }
18
19
  }
19
20
  return packet;
@@ -25,7 +26,8 @@ class PACKETS {
25
26
  return packetStructure.writeUInt16(this.value);
26
27
  },
27
28
  unpack(packetStructure) {
28
- return packetStructure.readUInt16();
29
+ this.value = packetStructure.readUInt16();
30
+ return this.value
29
31
  }
30
32
  }
31
33
  return packet;
@@ -37,7 +39,8 @@ class PACKETS {
37
39
  return packetStructure.writeUInt32(this.value);
38
40
  },
39
41
  unpack(packetStructure) {
40
- return packetStructure.readUInt32();
42
+ this.value = packetStructure.readUInt32();
43
+ return this.value
41
44
  }
42
45
  }
43
46
  return packet;
@@ -49,7 +52,8 @@ class PACKETS {
49
52
  return packetStructure.writeInt32(this.value);
50
53
  },
51
54
  unpack(packetStructure) {
52
- return packetStructure.readInt32();
55
+ this.value = packetStructure.readInt32();
56
+ return this.value
53
57
  }
54
58
  }
55
59
  return packet;
@@ -61,7 +65,8 @@ class PACKETS {
61
65
  return packetStructure.writeSGString(this.value);
62
66
  },
63
67
  unpack(packetStructure) {
64
- return packetStructure.readSGString().toString();
68
+ this.value = packetStructure.readSGString().toString();
69
+ return this.value
65
70
  }
66
71
  }
67
72
  return packet;
@@ -74,7 +79,8 @@ class PACKETS {
74
79
  return packetStructure.writeBytes(setFlags(this.value));
75
80
  },
76
81
  unpack(packetStructure) {
77
- return readFlags(packetStructure.readBytes(this.length));
82
+ this.value = readFlags(packetStructure.readBytes(this.length));
83
+ return this.value
78
84
  }
79
85
  }
80
86
  return packet;
@@ -107,7 +113,8 @@ class PACKETS {
107
113
  }
108
114
  array.push(item);
109
115
  }
110
- return array;
116
+ this.value = array;
117
+ return this.value
111
118
  }
112
119
  }
113
120
  return packet;
@@ -140,7 +147,8 @@ class PACKETS {
140
147
  }
141
148
  array.push(item);
142
149
  }
143
- return array;
150
+ this.value = array;
151
+ return this.value
144
152
  }
145
153
  };
146
154
  return packet;
@@ -153,7 +161,8 @@ class PACKETS {
153
161
  return item.pack(packetStructure);
154
162
  },
155
163
  unpack(packetStructure) {
156
- return map[item.unpack(packetStructure)];
164
+ this.value = item.unpack(packetStructure);
165
+ return map[this.value]
157
166
  }
158
167
  };
159
168
  }