@sebbo2002/node-pyatv 4.2.0-develop.1 → 4.2.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 (56) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/lib/device-event.d.ts +1 -1
  3. package/dist/lib/device-events.d.ts +1 -2
  4. package/dist/lib/device-events.js +2 -5
  5. package/dist/lib/device-events.js.map +1 -1
  6. package/dist/lib/device.d.ts +1 -1
  7. package/dist/lib/device.js +2 -5
  8. package/dist/lib/device.js.map +1 -1
  9. package/dist/lib/index.d.ts +3 -1
  10. package/dist/lib/index.js +7 -1
  11. package/dist/lib/index.js.map +1 -1
  12. package/dist/lib/instance.d.ts +1 -1
  13. package/dist/lib/instance.js +2 -2
  14. package/dist/lib/instance.js.map +1 -1
  15. package/docs/coverage/cobertura-coverage.xml +387 -363
  16. package/docs/coverage/device-event.ts.html +2 -2
  17. package/docs/coverage/device-events.ts.html +3 -6
  18. package/docs/coverage/device.ts.html +3 -6
  19. package/docs/coverage/fake-spawn.ts.html +1 -1
  20. package/docs/coverage/index.html +10 -10
  21. package/docs/coverage/index.ts.html +22 -7
  22. package/docs/coverage/instance.ts.html +2 -2
  23. package/docs/coverage/tools.ts.html +2 -2
  24. package/docs/coverage/types.ts.html +1 -1
  25. package/docs/reference/assets/search.js +1 -1
  26. package/docs/reference/classes/NodePyATVDevice.html +147 -0
  27. package/docs/reference/classes/NodePyATVDeviceEvent.html +6 -6
  28. package/docs/reference/classes/default.html +15 -15
  29. package/docs/reference/enums/NodePyATVDeviceState.html +1 -1
  30. package/docs/reference/enums/NodePyATVKeys.html +1 -1
  31. package/docs/reference/enums/NodePyATVListenerState.html +1 -0
  32. package/docs/reference/enums/NodePyATVMediaType.html +1 -1
  33. package/docs/reference/enums/NodePyATVPowerState.html +1 -0
  34. package/docs/reference/enums/NodePyATVProtocol.html +1 -1
  35. package/docs/reference/enums/NodePyATVRepeatState.html +1 -1
  36. package/docs/reference/enums/NodePyATVShuffleState.html +1 -1
  37. package/docs/reference/index.html +2 -2
  38. package/docs/reference/interfaces/NodePyATVDeviceOptions.html +1 -1
  39. package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +1 -1
  40. package/docs/reference/interfaces/NodePyATVFindOptions.html +1 -1
  41. package/docs/reference/interfaces/NodePyATVGetStateOptions.html +1 -1
  42. package/docs/reference/interfaces/NodePyATVInstanceOptions.html +1 -1
  43. package/docs/reference/interfaces/NodePyATVState.html +1 -1
  44. package/docs/reference/interfaces/NodePyATVVersionResponse.html +1 -1
  45. package/docs/reference/modules.html +1 -1
  46. package/docs/tests/index.html +1 -1
  47. package/docs/tests/mochawesome.json +660 -622
  48. package/package.json +9 -9
  49. package/src/lib/device-event.ts +1 -1
  50. package/src/lib/device-events.ts +1 -2
  51. package/src/lib/device.ts +1 -2
  52. package/src/lib/index.ts +6 -1
  53. package/src/lib/instance.ts +1 -1
  54. package/test/device-events.ts +1 -3
  55. package/test/instance.ts +9 -1
  56. package/typedoc.json +1 -1
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "author": "Sebastian Pekarek <sheeboothohmoolaiquu@e.sebbo.net>",
2
+ "author": "Sebastian Pekarek <mail@sebbo.net>",
3
3
  "bugs": {
4
4
  "email": "sheeboothohmoolaiquu@e.sebbo.net",
5
5
  "url": "http://github.com/sebbo2002/node-pyatv/issues"
@@ -15,22 +15,22 @@
15
15
  "@semantic-release/exec": "^6.0.2",
16
16
  "@semantic-release/git": "^10.0.1",
17
17
  "@types/mocha": "^9.0.0",
18
- "@types/node": "^16.11.9",
18
+ "@types/node": "^16.11.12",
19
19
  "@types/semver": "^7.3.9",
20
- "@typescript-eslint/eslint-plugin": "^5.4.0",
21
- "@typescript-eslint/parser": "^5.4.0",
22
- "eslint": "^8.3.0",
20
+ "@typescript-eslint/eslint-plugin": "^5.6.0",
21
+ "@typescript-eslint/parser": "^5.6.0",
22
+ "eslint": "^8.4.1",
23
23
  "eslint-plugin-jsonc": "^2.0.0",
24
24
  "license-checker": "^25.0.1",
25
25
  "mocha": "^9.1.3",
26
26
  "mochawesome": "^7.0.1",
27
27
  "nyc": "^15.1.0",
28
- "semantic-release": "^18.0.0",
28
+ "semantic-release": "^18.0.1",
29
29
  "semantic-release-license": "^1.0.3",
30
30
  "source-map-support": "^0.5.21",
31
31
  "ts-node": "^10.4.0",
32
- "typedoc": "^0.22.9",
33
- "typescript": "^4.5.2"
32
+ "typedoc": "^0.22.10",
33
+ "typescript": "^4.5.3"
34
34
  },
35
35
  "engines": {
36
36
  "node": ">=12.0.0"
@@ -55,5 +55,5 @@
55
55
  "postinstall": "./check.sh",
56
56
  "test": "mocha"
57
57
  },
58
- "version": "4.2.0-develop.1"
58
+ "version": "4.2.1"
59
59
  }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- import NodePyATVDevice from './device';
3
+ import {NodePyATVDevice} from '../lib';
4
4
  import {NodePyATVEventValueType, NodePyATVStateIndex} from './types';
5
5
 
6
6
  export default class NodePyATVDeviceEvent {
@@ -11,8 +11,7 @@ import {
11
11
  import {ChildProcess} from 'child_process';
12
12
 
13
13
  import {EventEmitter} from 'events';
14
- import NodePyATVDevice from './device';
15
- import NodePyATVDeviceEvent from './device-event';
14
+ import {NodePyATVDevice, NodePyATVDeviceEvent} from '../lib';
16
15
  import {addRequestId, debug, execute, getParamters, parseState, removeRequestId} from './tools';
17
16
  import {FakeChildProcess} from './fake-spawn';
18
17
 
package/src/lib/device.ts CHANGED
@@ -14,8 +14,7 @@ import {
14
14
  } from './types';
15
15
 
16
16
  import {addRequestId, getParamters, parseState, removeRequestId, request} from './tools';
17
- import NodePyATVDeviceEvents from './device-events';
18
- import NodePyATVDeviceEvent from './device-event';
17
+ import {NodePyATVDeviceEvents, NodePyATVDeviceEvent} from '../lib';
19
18
  import { EventEmitter } from 'events';
20
19
 
21
20
  /**
package/src/lib/index.ts CHANGED
@@ -13,9 +13,14 @@ export {
13
13
  NodePyATVFindAndInstanceOptions,
14
14
  NodePyATVDeviceOptions,
15
15
  NodePyATVGetStateOptions,
16
- NodePyATVState
16
+ NodePyATVState,
17
+ NodePyATVPowerState,
18
+ NodePyATVListenerState,
19
+ NodePyATVEventValueType,
17
20
  } from './types';
18
21
 
19
22
  export {default as NodePyATVDeviceEvent} from './device-event';
23
+ export {default as NodePyATVDeviceEvents} from './device-events';
24
+ export {default as NodePyATVDevice} from './device';
20
25
 
21
26
  export {default} from './instance';
@@ -11,7 +11,7 @@ import {
11
11
  } from './types';
12
12
 
13
13
  import {addRequestId, debug, getParamters, removeRequestId, request} from './tools';
14
- import NodePyATVDevice from './device';
14
+ import {NodePyATVDevice} from '../lib';
15
15
 
16
16
  /**
17
17
  * Default class exported by `@sebbo2002/node-pyatv`. Use [[find]] to scan for devices in your local network. Use
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  import assert from 'assert';
4
- import NodePyATVDevice from '../src/lib/device';
5
4
  import {createFakeSpawn} from '../src/lib/fake-spawn';
6
- import NodePyATVDeviceEvent from '../src/lib/device-event';
7
- import {NodePyATVPowerState} from '../src/lib/types';
5
+ import {NodePyATVDeviceEvent, NodePyATVPowerState, NodePyATVDevice} from '../src/lib';
8
6
 
9
7
  describe('NodePyATVDeviceEvents', function () {
10
8
  describe('applyStateAndEmitEvents()', function () {
package/test/instance.ts CHANGED
@@ -9,7 +9,9 @@ import NodePyATVInstance, {
9
9
  NodePyATVDeviceState,
10
10
  NodePyATVRepeatState,
11
11
  NodePyATVShuffleState,
12
- NodePyATVKeys
12
+ NodePyATVKeys,
13
+ NodePyATVListenerState,
14
+ NodePyATVPowerState
13
15
  } from '../src/lib/index';
14
16
 
15
17
  describe('NodePyATVInstance', function () {
@@ -330,5 +332,11 @@ describe('NodePyATVInstance', function () {
330
332
  it('Type NodePyATVKeys should be exported', function() {
331
333
  assert.ok(NodePyATVKeys);
332
334
  });
335
+ it('Type NodePyATVInstanceOptions should be exported', function() {
336
+ assert.ok(NodePyATVListenerState);
337
+ });
338
+ it('Type NodePyATVPowerState should be exported', function() {
339
+ assert.ok(NodePyATVPowerState);
340
+ });
333
341
  });
334
342
  });
package/typedoc.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "excludePrivate": true,
8
8
  "excludeProtected": true,
9
9
  "includeVersion": true,
10
- "name": "",
10
+ "name": "node-pyatv",
11
11
  "out": "./docs/reference",
12
12
  "plugin": [],
13
13
  "readme": "README.md",