@sebbo2002/node-pyatv 4.2.0-develop.1 → 4.2.0-develop.2
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/CHANGELOG.md +7 -0
- package/dist/lib/device-event.d.ts +1 -1
- package/dist/lib/device-events.d.ts +1 -2
- package/dist/lib/device-events.js +2 -5
- package/dist/lib/device-events.js.map +1 -1
- package/dist/lib/device.d.ts +1 -1
- package/dist/lib/device.js +2 -5
- package/dist/lib/device.js.map +1 -1
- package/dist/lib/index.d.ts +3 -1
- package/dist/lib/index.js +7 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/instance.d.ts +1 -1
- package/dist/lib/instance.js +2 -2
- package/dist/lib/instance.js.map +1 -1
- package/docs/coverage/cobertura-coverage.xml +389 -365
- package/docs/coverage/device-event.ts.html +2 -2
- package/docs/coverage/device-events.ts.html +3 -6
- package/docs/coverage/device.ts.html +3 -6
- package/docs/coverage/fake-spawn.ts.html +1 -1
- package/docs/coverage/index.html +10 -10
- package/docs/coverage/index.ts.html +22 -7
- package/docs/coverage/instance.ts.html +2 -2
- package/docs/coverage/tools.ts.html +4 -4
- package/docs/coverage/types.ts.html +1 -1
- package/docs/reference/assets/search.js +1 -1
- package/docs/reference/classes/NodePyATVDevice.html +147 -0
- package/docs/reference/classes/NodePyATVDeviceEvent.html +6 -6
- package/docs/reference/classes/default.html +15 -15
- package/docs/reference/enums/NodePyATVDeviceState.html +1 -1
- package/docs/reference/enums/NodePyATVKeys.html +1 -1
- package/docs/reference/enums/NodePyATVListenerState.html +1 -0
- package/docs/reference/enums/NodePyATVMediaType.html +1 -1
- package/docs/reference/enums/NodePyATVPowerState.html +1 -0
- package/docs/reference/enums/NodePyATVProtocol.html +1 -1
- package/docs/reference/enums/NodePyATVRepeatState.html +1 -1
- package/docs/reference/enums/NodePyATVShuffleState.html +1 -1
- package/docs/reference/index.html +2 -2
- package/docs/reference/interfaces/NodePyATVDeviceOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVFindOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVGetStateOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVInstanceOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVState.html +1 -1
- package/docs/reference/interfaces/NodePyATVVersionResponse.html +1 -1
- package/docs/reference/modules.html +1 -1
- package/docs/tests/index.html +1 -1
- package/docs/tests/mochawesome.json +650 -612
- package/package.json +1 -1
- package/src/lib/device-event.ts +1 -1
- package/src/lib/device-events.ts +1 -2
- package/src/lib/device.ts +1 -2
- package/src/lib/index.ts +6 -1
- package/src/lib/instance.ts +1 -1
- package/test/device-events.ts +1 -3
- package/test/instance.ts +9 -1
- package/typedoc.json +1 -1
package/package.json
CHANGED
package/src/lib/device-event.ts
CHANGED
package/src/lib/device-events.ts
CHANGED
|
@@ -11,8 +11,7 @@ import {
|
|
|
11
11
|
import {ChildProcess} from 'child_process';
|
|
12
12
|
|
|
13
13
|
import {EventEmitter} from 'events';
|
|
14
|
-
import NodePyATVDevice from '
|
|
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 '
|
|
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';
|
package/src/lib/instance.ts
CHANGED
|
@@ -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 '
|
|
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
|
package/test/device-events.ts
CHANGED
|
@@ -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
|
|
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
|
});
|