@sebbo2002/node-pyatv 5.1.2-develop.2 → 6.0.0-develop.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 (53) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE +1 -1
  3. package/dist/lib/device-events.d.ts +1 -1
  4. package/dist/lib/device-events.js +3 -0
  5. package/dist/lib/device-events.js.map +1 -1
  6. package/dist/lib/device.d.ts +1 -1
  7. package/dist/lib/fake-spawn.d.ts +3 -3
  8. package/dist/lib/tools.d.ts +2 -2
  9. package/dist/lib/types.d.ts +2 -2
  10. package/docs/coverage/cobertura-coverage.xml +142 -139
  11. package/docs/coverage/device-event.ts.html +1 -1
  12. package/docs/coverage/device-events.ts.html +17 -8
  13. package/docs/coverage/device.ts.html +1 -1
  14. package/docs/coverage/fake-spawn.ts.html +1 -1
  15. package/docs/coverage/index.html +15 -15
  16. package/docs/coverage/index.ts.html +1 -1
  17. package/docs/coverage/instance.ts.html +1 -1
  18. package/docs/coverage/tools.ts.html +5 -5
  19. package/docs/coverage/types.ts.html +2 -2
  20. package/docs/reference/assets/main.js +56 -52
  21. package/docs/reference/assets/search.js +1 -1
  22. package/docs/reference/assets/style.css +23 -0
  23. package/docs/reference/classes/NodePyATVDevice.html +74 -74
  24. package/docs/reference/classes/NodePyATVDeviceEvent.html +10 -10
  25. package/docs/reference/classes/NodePyATVInstance.html +14 -14
  26. package/docs/reference/enums/NodePyATVDeviceState.html +11 -11
  27. package/docs/reference/enums/NodePyATVExecutableType.html +7 -7
  28. package/docs/reference/enums/NodePyATVKeys.html +28 -28
  29. package/docs/reference/enums/NodePyATVListenerState.html +9 -9
  30. package/docs/reference/enums/NodePyATVMediaType.html +9 -9
  31. package/docs/reference/enums/NodePyATVPowerState.html +7 -7
  32. package/docs/reference/enums/NodePyATVProtocol.html +9 -9
  33. package/docs/reference/enums/NodePyATVRepeatState.html +8 -8
  34. package/docs/reference/enums/NodePyATVShuffleState.html +8 -8
  35. package/docs/reference/index.html +5 -5
  36. package/docs/reference/interfaces/NodePyATVDeviceOptions.html +27 -27
  37. package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +21 -21
  38. package/docs/reference/interfaces/NodePyATVFindOptions.html +14 -14
  39. package/docs/reference/interfaces/NodePyATVGetStateOptions.html +6 -6
  40. package/docs/reference/interfaces/NodePyATVInstanceOptions.html +12 -12
  41. package/docs/reference/interfaces/NodePyATVService.html +7 -7
  42. package/docs/reference/interfaces/NodePyATVState.html +20 -20
  43. package/docs/reference/interfaces/NodePyATVVersionResponse.html +7 -7
  44. package/docs/reference/modules.html +4 -4
  45. package/docs/reference/types/NodePyATVEventValueType.html +5 -5
  46. package/docs/tests/index.html +1 -1
  47. package/docs/tests/mochawesome.json +652 -652
  48. package/package.json +13 -13
  49. package/release.config.cjs +1 -6
  50. package/src/lib/device-events.ts +3 -0
  51. package/src/lib/tools.ts +1 -1
  52. package/src/lib/types.ts +1 -1
  53. package/tsconfig.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [6.0.0-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v5.1.2-develop.3...v6.0.0-develop.1) (2023-02-12)
2
+
3
+
4
+ ### Build System
5
+
6
+ * Deprecate node.js 12 ([426588b](https://github.com/sebbo2002/node-pyatv/commit/426588b4bb7bde2924bbc92006ca839e960872e1))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * From now on, only node.js ^14.8.0 || >=16.0.0 are supported
12
+
13
+ ## [5.1.2-develop.3](https://github.com/sebbo2002/node-pyatv/compare/v5.1.2-develop.2...v5.1.2-develop.3) (2022-12-07)
14
+
1
15
  ## [5.1.2-develop.2](https://github.com/sebbo2002/node-pyatv/compare/v5.1.2-develop.1...v5.1.2-develop.2) (2022-12-04)
2
16
 
3
17
  ## [5.1.2-develop.1](https://github.com/sebbo2002/node-pyatv/compare/v5.1.1...v5.1.2-develop.1) (2022-12-04)
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Sebastian Pekarek
3
+ Copyright (c) 2023 Sebastian Pekarek
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
6
6
  documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { NodePyATVDeviceOptions, NodePyATVState } from './types.js';
3
3
  import { EventEmitter } from 'events';
4
4
  import { NodePyATVDevice, NodePyATVDeviceEvent } from '../lib/index.js';
@@ -103,6 +103,9 @@ export default class NodePyATVDeviceEvents extends EventEmitter {
103
103
  const listenStart = new Date().getTime();
104
104
  const parameters = getParamters(this.options);
105
105
  this.pyatv = execute(reqId, NodePyATVExecutableType.atvscript, [...parameters, 'push_updates'], this.options);
106
+ if (!this.pyatv) {
107
+ throw new Error('Unable to start listener: Unable to start atvscript');
108
+ }
106
109
  const onError = (error) => {
107
110
  debug(reqId, `Got error from child process: ${error}`, this.options);
108
111
  this.emit('error', error);
@@ -1 +1 @@
1
- {"version":3,"file":"device-events.js","sourceRoot":"","sources":["../../src/lib/device-events.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;AAEb,OAAO,EAEH,uBAAuB,EAEvB,sBAAsB,EAGzB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAkB,oBAAoB,EAAC,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAC,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAC,MAAM,YAAY,CAAC;AAGnG;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,YAAY;IAQ3D,YAAY,KAAqB,EAAE,MAAuB,EAAE,OAA+B;QACvF,KAAK,EAAE,CAAC;QAER,IAAI,CA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,CAAC,KAAK,CAAC,CAAC;SACrC;QAED,OAAO,IAAI,CAAC,UAAU,EAAE;aACnB,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;aACvC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACpC,CAAC;CACJ"}
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { NodePyATVDeviceOptions, NodePyATVDeviceState, NodePyATVGetStateOptions, NodePyATVKeys, NodePyATVMediaType, NodePyATVProtocol, NodePyATVRepeatState, NodePyATVService, NodePyATVShuffleState, NodePyATVState } from './types.js';
3
3
  import { NodePyATVDeviceEvent } from '../lib/index.js';
4
4
  import { EventEmitter } from 'events';
@@ -1,6 +1,6 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ /// <reference types="node" resolution-mode="require"/>
3
+ /// <reference types="node" resolution-mode="require"/>
4
4
  import { SpawnOptions } from 'child_process';
5
5
  import { EventEmitter } from 'events';
6
6
  /**
@@ -1,7 +1,7 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { NodePyATVExecutableType, NodePyATVFindAndInstanceOptions, NodePyATVInstanceOptions, NodePyATVInternalState, NodePyATVState } from './types.js';
3
3
  import { ChildProcess } from 'child_process';
4
- import { FakeChildProcess } from './fake-spawn';
4
+ import { FakeChildProcess } from './fake-spawn.js';
5
5
  export declare function addRequestId(): string;
6
6
  export declare function removeRequestId(id: string | undefined): void;
7
7
  export declare function debug(id: string, message: string, options: NodePyATVInstanceOptions): void;
@@ -1,6 +1,6 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { ChildProcess, SpawnOptions } from 'child_process';
3
- import { FakeChildProcess } from './fake-spawn';
3
+ import { FakeChildProcess } from './fake-spawn.js';
4
4
  export declare enum NodePyATVExecutableType {
5
5
  atvremote = "atvremote",
6
6
  atvscript = "atvscript"
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" ?>
2
2
  <!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
3
- <coverage lines-valid="2085" lines-covered="2057" line-rate="0.9865" branches-valid="323" branches-covered="310" branch-rate="0.9597" timestamp="1670185889871" complexity="0" version="0.1">
3
+ <coverage lines-valid="2088" lines-covered="2058" line-rate="0.9856" branches-valid="324" branches-covered="310" branch-rate="0.9567" timestamp="1676233329752" complexity="0" version="0.1">
4
4
  <sources>
5
5
  <source>/home/runner/work/node-pyatv/node-pyatv</source>
6
6
  </sources>
7
7
  <packages>
8
- <package name="main" line-rate="0.9865" branch-rate="0.9597">
8
+ <package name="main" line-rate="0.9856" branch-rate="0.9567">
9
9
  <classes>
10
10
  <class name="device-event.ts" filename="src/lib/device-event.ts" line-rate="1" branch-rate="1">
11
11
  <methods>
@@ -100,7 +100,7 @@
100
100
  <line number="57" hits="1" branch="false"/>
101
101
  </lines>
102
102
  </class>
103
- <class name="device-events.ts" filename="src/lib/device-events.ts" line-rate="0.9451999999999999" branch-rate="0.9166">
103
+ <class name="device-events.ts" filename="src/lib/device-events.ts" line-rate="0.9389" branch-rate="0.9016">
104
104
  <methods>
105
105
  <method name="NodePyATVDeviceEvents" hits="99" signature="()V">
106
106
  <lines>
@@ -134,67 +134,67 @@
134
134
  </method>
135
135
  <method name="onError" hits="1" signature="()V">
136
136
  <lines>
137
- <line number="138" hits="1"/>
137
+ <line number="141" hits="1"/>
138
138
  </lines>
139
139
  </method>
140
140
  <method name="onStdErr" hits="1" signature="()V">
141
141
  <lines>
142
- <line number="144" hits="1"/>
142
+ <line number="147" hits="1"/>
143
143
  </lines>
144
144
  </method>
145
145
  <method name="onStdOut" hits="12" signature="()V">
146
146
  <lines>
147
- <line number="151" hits="12"/>
147
+ <line number="154" hits="12"/>
148
148
  </lines>
149
149
  </method>
150
150
  <method name="onClose" hits="19" signature="()V">
151
151
  <lines>
152
- <line number="158" hits="19"/>
152
+ <line number="161" hits="19"/>
153
153
  </lines>
154
154
  </method>
155
155
  <method name="stopListening" hits="16" signature="()V">
156
156
  <lines>
157
- <line number="207" hits="16"/>
157
+ <line number="210" hits="16"/>
158
158
  </lines>
159
159
  </method>
160
160
  <method name="addListener" hits="2" signature="()V">
161
161
  <lines>
162
- <line number="238" hits="2"/>
162
+ <line number="241" hits="2"/>
163
163
  </lines>
164
164
  </method>
165
165
  <method name="on" hits="20" signature="()V">
166
166
  <lines>
167
- <line number="244" hits="20"/>
167
+ <line number="247" hits="20"/>
168
168
  </lines>
169
169
  </method>
170
170
  <method name="once" hits="11" signature="()V">
171
171
  <lines>
172
- <line number="250" hits="11"/>
172
+ <line number="253" hits="11"/>
173
173
  </lines>
174
174
  </method>
175
175
  <method name="prependListener" hits="2" signature="()V">
176
176
  <lines>
177
- <line number="259" hits="2"/>
177
+ <line number="262" hits="2"/>
178
178
  </lines>
179
179
  </method>
180
180
  <method name="off" hits="9" signature="()V">
181
181
  <lines>
182
- <line number="265" hits="9"/>
182
+ <line number="268" hits="9"/>
183
183
  </lines>
184
184
  </method>
185
185
  <method name="removeAllListeners" hits="2" signature="()V">
186
186
  <lines>
187
- <line number="271" hits="2"/>
187
+ <line number="274" hits="2"/>
188
188
  </lines>
189
189
  </method>
190
190
  <method name="removeListener" hits="13" signature="()V">
191
191
  <lines>
192
- <line number="277" hits="13"/>
192
+ <line number="280" hits="13"/>
193
193
  </lines>
194
194
  </method>
195
195
  <method name="listenerCount" hits="211" signature="()V">
196
196
  <lines>
197
- <line number="283" hits="211"/>
197
+ <line number="286" hits="211"/>
198
198
  </lines>
199
199
  </method>
200
200
  </methods>
@@ -335,42 +335,42 @@
335
335
  <line number="134" hits="19" branch="false"/>
336
336
  <line number="135" hits="19" branch="false"/>
337
337
  <line number="136" hits="19" branch="false"/>
338
- <line number="137" hits="19" branch="false"/>
339
- <line number="138" hits="19" branch="true" condition-coverage="100% (1/1)"/>
340
- <line number="139" hits="1" branch="false"/>
341
- <line number="140" hits="1" branch="false"/>
342
- <line number="141" hits="19" branch="false"/>
343
- <line number="142" hits="19" branch="false"/>
344
- <line number="143" hits="19" branch="false"/>
345
- <line number="144" hits="19" branch="true" condition-coverage="100% (1/1)"/>
346
- <line number="145" hits="1" branch="false"/>
347
- <line number="146" hits="1" branch="false"/>
348
- <line number="147" hits="1" branch="false"/>
349
- <line number="148" hits="19" branch="false"/>
350
- <line number="149" hits="19" branch="false"/>
351
- <line number="150" hits="19" branch="false"/>
352
- <line number="151" hits="19" branch="true" condition-coverage="100% (1/1)"/>
353
- <line number="152" hits="12" branch="false"/>
354
- <line number="153" hits="12" branch="false"/>
355
- <line number="154" hits="12" branch="true" condition-coverage="100% (1/1)"/>
338
+ <line number="137" hits="19" branch="true" condition-coverage="0% (0/1)"/>
339
+ <line number="138" hits="0" branch="false"/>
340
+ <line number="139" hits="0" branch="false"/>
341
+ <line number="140" hits="19" branch="false"/>
342
+ <line number="141" hits="19" branch="true" condition-coverage="100% (1/1)"/>
343
+ <line number="142" hits="1" branch="false"/>
344
+ <line number="143" hits="1" branch="false"/>
345
+ <line number="144" hits="19" branch="false"/>
346
+ <line number="145" hits="19" branch="false"/>
347
+ <line number="146" hits="19" branch="false"/>
348
+ <line number="147" hits="19" branch="true" condition-coverage="100% (1/1)"/>
349
+ <line number="148" hits="1" branch="false"/>
350
+ <line number="149" hits="1" branch="false"/>
351
+ <line number="150" hits="1" branch="false"/>
352
+ <line number="151" hits="19" branch="false"/>
353
+ <line number="152" hits="19" branch="false"/>
354
+ <line number="153" hits="19" branch="false"/>
355
+ <line number="154" hits="19" branch="true" condition-coverage="100% (1/1)"/>
356
356
  <line number="155" hits="12" branch="false"/>
357
- <line number="156" hits="12" branch="true" condition-coverage="100% (1/1)"/>
358
- <line number="157" hits="19" branch="false"/>
359
- <line number="158" hits="19" branch="true" condition-coverage="100% (1/1)"/>
360
- <line number="159" hits="19" branch="true" condition-coverage="0% (0/1)"/>
361
- <line number="160" hits="0" branch="false"/>
362
- <line number="161" hits="0" branch="false"/>
363
- <line number="162" hits="0" branch="false"/>
364
- <line number="163" hits="19" branch="false"/>
365
- <line number="164" hits="19" branch="false"/>
366
- <line number="165" hits="19" branch="false"/>
367
- <line number="166" hits="19" branch="true" condition-coverage="100% (1/1)"/>
368
- <line number="167" hits="7" branch="false"/>
369
- <line number="168" hits="7" branch="false"/>
370
- <line number="169" hits="7" branch="false"/>
371
- <line number="170" hits="19" branch="false"/>
372
- <line number="171" hits="19" branch="false"/>
373
- <line number="172" hits="19" branch="false"/>
357
+ <line number="156" hits="12" branch="false"/>
358
+ <line number="157" hits="12" branch="true" condition-coverage="100% (1/1)"/>
359
+ <line number="158" hits="12" branch="false"/>
360
+ <line number="159" hits="12" branch="true" condition-coverage="100% (1/1)"/>
361
+ <line number="160" hits="19" branch="false"/>
362
+ <line number="161" hits="19" branch="true" condition-coverage="100% (1/1)"/>
363
+ <line number="162" hits="19" branch="true" condition-coverage="0% (0/1)"/>
364
+ <line number="163" hits="0" branch="false"/>
365
+ <line number="164" hits="0" branch="false"/>
366
+ <line number="165" hits="0" branch="false"/>
367
+ <line number="166" hits="19" branch="false"/>
368
+ <line number="167" hits="19" branch="false"/>
369
+ <line number="168" hits="19" branch="false"/>
370
+ <line number="169" hits="19" branch="true" condition-coverage="100% (1/1)"/>
371
+ <line number="170" hits="7" branch="false"/>
372
+ <line number="171" hits="7" branch="false"/>
373
+ <line number="172" hits="7" branch="false"/>
374
374
  <line number="173" hits="19" branch="false"/>
375
375
  <line number="174" hits="19" branch="false"/>
376
376
  <line number="175" hits="19" branch="false"/>
@@ -379,20 +379,20 @@
379
379
  <line number="178" hits="19" branch="false"/>
380
380
  <line number="179" hits="19" branch="false"/>
381
381
  <line number="180" hits="19" branch="false"/>
382
- <line number="181" hits="19" branch="true" condition-coverage="100% (2/2)"/>
383
- <line number="182" hits="3" branch="false"/>
384
- <line number="183" hits="3" branch="false"/>
385
- <line number="184" hits="3" branch="false"/>
386
- <line number="185" hits="0" branch="false"/>
382
+ <line number="181" hits="19" branch="false"/>
383
+ <line number="182" hits="19" branch="false"/>
384
+ <line number="183" hits="19" branch="false"/>
385
+ <line number="184" hits="19" branch="true" condition-coverage="100% (2/2)"/>
386
+ <line number="185" hits="3" branch="false"/>
387
387
  <line number="186" hits="3" branch="false"/>
388
388
  <line number="187" hits="3" branch="false"/>
389
- <line number="188" hits="16" branch="true" condition-coverage="50% (1/2)"/>
390
- <line number="189" hits="0" branch="false"/>
391
- <line number="190" hits="0" branch="false"/>
392
- <line number="191" hits="0" branch="false"/>
393
- <line number="192" hits="19" branch="false"/>
394
- <line number="193" hits="19" branch="false"/>
395
- <line number="194" hits="19" branch="false"/>
389
+ <line number="188" hits="0" branch="false"/>
390
+ <line number="189" hits="3" branch="false"/>
391
+ <line number="190" hits="3" branch="false"/>
392
+ <line number="191" hits="16" branch="true" condition-coverage="50% (1/2)"/>
393
+ <line number="192" hits="0" branch="false"/>
394
+ <line number="193" hits="0" branch="false"/>
395
+ <line number="194" hits="0" branch="false"/>
396
396
  <line number="195" hits="19" branch="false"/>
397
397
  <line number="196" hits="19" branch="false"/>
398
398
  <line number="197" hits="19" branch="false"/>
@@ -404,93 +404,96 @@
404
404
  <line number="203" hits="19" branch="false"/>
405
405
  <line number="204" hits="19" branch="false"/>
406
406
  <line number="205" hits="19" branch="false"/>
407
- <line number="206" hits="1" branch="false"/>
408
- <line number="207" hits="1" branch="true" condition-coverage="100% (1/1)"/>
409
- <line number="208" hits="16" branch="false"/>
410
- <line number="209" hits="16" branch="true" condition-coverage="100% (1/1)"/>
411
- <line number="210" hits="2" branch="false"/>
412
- <line number="211" hits="16" branch="true" condition-coverage="0% (0/1)"/>
413
- <line number="212" hits="0" branch="false"/>
414
- <line number="213" hits="0" branch="false"/>
415
- <line number="214" hits="16" branch="false"/>
416
- <line number="215" hits="16" branch="false"/>
417
- <line number="216" hits="16" branch="true" condition-coverage="0% (0/1)"/>
418
- <line number="217" hits="0" branch="false"/>
419
- <line number="218" hits="0" branch="false"/>
420
- <line number="219" hits="0" branch="false"/>
407
+ <line number="206" hits="19" branch="false"/>
408
+ <line number="207" hits="19" branch="false"/>
409
+ <line number="208" hits="19" branch="false"/>
410
+ <line number="209" hits="1" branch="false"/>
411
+ <line number="210" hits="1" branch="true" condition-coverage="100% (1/1)"/>
412
+ <line number="211" hits="16" branch="false"/>
413
+ <line number="212" hits="16" branch="true" condition-coverage="100% (1/1)"/>
414
+ <line number="213" hits="2" branch="false"/>
415
+ <line number="214" hits="16" branch="true" condition-coverage="0% (0/1)"/>
416
+ <line number="215" hits="0" branch="false"/>
417
+ <line number="216" hits="0" branch="false"/>
418
+ <line number="217" hits="16" branch="false"/>
419
+ <line number="218" hits="16" branch="false"/>
420
+ <line number="219" hits="16" branch="true" condition-coverage="0% (0/1)"/>
421
421
  <line number="220" hits="0" branch="false"/>
422
422
  <line number="221" hits="0" branch="false"/>
423
- <line number="222" hits="16" branch="false"/>
424
- <line number="223" hits="16" branch="false"/>
425
- <line number="224" hits="16" branch="false"/>
423
+ <line number="222" hits="0" branch="false"/>
424
+ <line number="223" hits="0" branch="false"/>
425
+ <line number="224" hits="0" branch="false"/>
426
426
  <line number="225" hits="16" branch="false"/>
427
427
  <line number="226" hits="16" branch="false"/>
428
- <line number="227" hits="16" branch="true" condition-coverage="100% (1/1)"/>
429
- <line number="228" hits="10" branch="true" condition-coverage="100% (1/1)"/>
430
- <line number="229" hits="10" branch="false"/>
431
- <line number="230" hits="16" branch="true" condition-coverage="100% (2/2)"/>
432
- <line number="231" hits="7" branch="false"/>
433
- <line number="232" hits="7" branch="false"/>
434
- <line number="233" hits="10" branch="true" condition-coverage="100% (1/1)"/>
435
- <line number="234" hits="10" branch="false"/>
436
- <line number="235" hits="10" branch="false"/>
437
- <line number="236" hits="10" branch="false"/>
438
- <line number="237" hits="1" branch="false"/>
439
- <line number="238" hits="1" branch="true" condition-coverage="100% (1/1)"/>
440
- <line number="239" hits="2" branch="false"/>
441
- <line number="240" hits="2" branch="false"/>
442
- <line number="241" hits="2" branch="false"/>
428
+ <line number="227" hits="16" branch="false"/>
429
+ <line number="228" hits="16" branch="false"/>
430
+ <line number="229" hits="16" branch="false"/>
431
+ <line number="230" hits="16" branch="true" condition-coverage="100% (1/1)"/>
432
+ <line number="231" hits="10" branch="true" condition-coverage="100% (1/1)"/>
433
+ <line number="232" hits="10" branch="false"/>
434
+ <line number="233" hits="16" branch="true" condition-coverage="100% (2/2)"/>
435
+ <line number="234" hits="7" branch="false"/>
436
+ <line number="235" hits="7" branch="false"/>
437
+ <line number="236" hits="10" branch="true" condition-coverage="100% (1/1)"/>
438
+ <line number="237" hits="10" branch="false"/>
439
+ <line number="238" hits="10" branch="false"/>
440
+ <line number="239" hits="10" branch="false"/>
441
+ <line number="240" hits="1" branch="false"/>
442
+ <line number="241" hits="1" branch="true" condition-coverage="100% (1/1)"/>
443
443
  <line number="242" hits="2" branch="false"/>
444
- <line number="243" hits="1" branch="false"/>
445
- <line number="244" hits="1" branch="true" condition-coverage="100% (1/1)"/>
446
- <line number="245" hits="20" branch="false"/>
447
- <line number="246" hits="20" branch="false"/>
448
- <line number="247" hits="20" branch="false"/>
444
+ <line number="243" hits="2" branch="false"/>
445
+ <line number="244" hits="2" branch="false"/>
446
+ <line number="245" hits="2" branch="false"/>
447
+ <line number="246" hits="1" branch="false"/>
448
+ <line number="247" hits="1" branch="true" condition-coverage="100% (1/1)"/>
449
449
  <line number="248" hits="20" branch="false"/>
450
- <line number="249" hits="1" branch="false"/>
451
- <line number="250" hits="1" branch="true" condition-coverage="100% (1/1)"/>
452
- <line number="251" hits="11" branch="true" condition-coverage="100% (1/1)"/>
453
- <line number="252" hits="11" branch="false"/>
454
- <line number="253" hits="11" branch="true" condition-coverage="100% (1/1)"/>
455
- <line number="254" hits="11" branch="false"/>
450
+ <line number="249" hits="20" branch="false"/>
451
+ <line number="250" hits="20" branch="false"/>
452
+ <line number="251" hits="20" branch="false"/>
453
+ <line number="252" hits="1" branch="false"/>
454
+ <line number="253" hits="1" branch="true" condition-coverage="100% (1/1)"/>
455
+ <line number="254" hits="11" branch="true" condition-coverage="100% (1/1)"/>
456
456
  <line number="255" hits="11" branch="false"/>
457
- <line number="256" hits="11" branch="false"/>
457
+ <line number="256" hits="11" branch="true" condition-coverage="100% (1/1)"/>
458
458
  <line number="257" hits="11" branch="false"/>
459
- <line number="258" hits="1" branch="false"/>
460
- <line number="259" hits="1" branch="true" condition-coverage="100% (1/1)"/>
461
- <line number="260" hits="2" branch="false"/>
462
- <line number="261" hits="2" branch="false"/>
463
- <line number="262" hits="2" branch="false"/>
459
+ <line number="258" hits="11" branch="false"/>
460
+ <line number="259" hits="11" branch="false"/>
461
+ <line number="260" hits="11" branch="false"/>
462
+ <line number="261" hits="1" branch="false"/>
463
+ <line number="262" hits="1" branch="true" condition-coverage="100% (1/1)"/>
464
464
  <line number="263" hits="2" branch="false"/>
465
- <line number="264" hits="1" branch="false"/>
466
- <line number="265" hits="1" branch="true" condition-coverage="100% (1/1)"/>
467
- <line number="266" hits="9" branch="false"/>
468
- <line number="267" hits="9" branch="false"/>
469
- <line number="268" hits="9" branch="false"/>
465
+ <line number="264" hits="2" branch="false"/>
466
+ <line number="265" hits="2" branch="false"/>
467
+ <line number="266" hits="2" branch="false"/>
468
+ <line number="267" hits="1" branch="false"/>
469
+ <line number="268" hits="1" branch="true" condition-coverage="100% (1/1)"/>
470
470
  <line number="269" hits="9" branch="false"/>
471
- <line number="270" hits="1" branch="false"/>
472
- <line number="271" hits="1" branch="true" condition-coverage="100% (1/1)"/>
473
- <line number="272" hits="2" branch="false"/>
474
- <line number="273" hits="2" branch="false"/>
475
- <line number="274" hits="2" branch="false"/>
471
+ <line number="270" hits="9" branch="false"/>
472
+ <line number="271" hits="9" branch="false"/>
473
+ <line number="272" hits="9" branch="false"/>
474
+ <line number="273" hits="1" branch="false"/>
475
+ <line number="274" hits="1" branch="true" condition-coverage="100% (1/1)"/>
476
476
  <line number="275" hits="2" branch="false"/>
477
- <line number="276" hits="1" branch="false"/>
478
- <line number="277" hits="1" branch="true" condition-coverage="100% (1/1)"/>
479
- <line number="278" hits="13" branch="false"/>
480
- <line number="279" hits="13" branch="false"/>
481
- <line number="280" hits="13" branch="false"/>
477
+ <line number="276" hits="2" branch="false"/>
478
+ <line number="277" hits="2" branch="false"/>
479
+ <line number="278" hits="2" branch="false"/>
480
+ <line number="279" hits="1" branch="false"/>
481
+ <line number="280" hits="1" branch="true" condition-coverage="100% (1/1)"/>
482
482
  <line number="281" hits="13" branch="false"/>
483
- <line number="282" hits="1" branch="false"/>
484
- <line number="283" hits="1" branch="true" condition-coverage="100% (1/1)"/>
485
- <line number="284" hits="211" branch="true" condition-coverage="100% (1/1)"/>
486
- <line number="285" hits="82" branch="false"/>
487
- <line number="286" hits="82" branch="false"/>
488
- <line number="287" hits="129" branch="true" condition-coverage="100% (1/1)"/>
489
- <line number="288" hits="129" branch="false"/>
490
- <line number="289" hits="129" branch="true" condition-coverage="100% (1/1)"/>
483
+ <line number="282" hits="13" branch="false"/>
484
+ <line number="283" hits="13" branch="false"/>
485
+ <line number="284" hits="13" branch="false"/>
486
+ <line number="285" hits="1" branch="false"/>
487
+ <line number="286" hits="1" branch="true" condition-coverage="100% (1/1)"/>
488
+ <line number="287" hits="211" branch="true" condition-coverage="100% (1/1)"/>
489
+ <line number="288" hits="82" branch="false"/>
490
+ <line number="289" hits="82" branch="false"/>
491
491
  <line number="290" hits="129" branch="true" condition-coverage="100% (1/1)"/>
492
492
  <line number="291" hits="129" branch="false"/>
493
- <line number="292" hits="1" branch="false"/>
493
+ <line number="292" hits="129" branch="true" condition-coverage="100% (1/1)"/>
494
+ <line number="293" hits="129" branch="true" condition-coverage="100% (1/1)"/>
495
+ <line number="294" hits="129" branch="false"/>
496
+ <line number="295" hits="1" branch="false"/>
494
497
  </lines>
495
498
  </class>
496
499
  <class name="device.ts" filename="src/lib/device.ts" line-rate="0.9961" branch-rate="0.9767">
@@ -2230,12 +2233,12 @@
2230
2233
  <line number="19" hits="109" branch="false"/>
2231
2234
  <line number="20" hits="109" branch="false"/>
2232
2235
  <line number="21" hits="109" branch="true" condition-coverage="100% (1/1)"/>
2233
- <line number="22" hits="111" branch="false"/>
2234
- <line number="23" hits="111" branch="true" condition-coverage="100% (1/1)"/>
2236
+ <line number="22" hits="114" branch="false"/>
2237
+ <line number="23" hits="114" branch="true" condition-coverage="100% (1/1)"/>
2235
2238
  <line number="24" hits="109" branch="false"/>
2236
2239
  <line number="25" hits="109" branch="false"/>
2237
2240
  <line number="26" hits="109" branch="false"/>
2238
- <line number="27" hits="111" branch="false"/>
2241
+ <line number="27" hits="114" branch="false"/>
2239
2242
  <line number="28" hits="109" branch="false"/>
2240
2243
  <line number="29" hits="109" branch="false"/>
2241
2244
  <line number="30" hits="109" branch="false"/>
@@ -241,7 +241,7 @@ export default class NodePyATVDeviceEvent {
241
241
  <div class='footer quiet pad2 space-top1 center small'>
242
242
  Code coverage generated by
243
243
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
244
- at 2022-12-04T20:31:29.898Z
244
+ at 2023-02-12T20:22:09.777Z
245
245
  </div>
246
246
  <script src="prettify.js"></script>
247
247
  <script>