@basmilius/apple-devices 0.0.90 → 0.0.92
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/dist/airplay/device.d.ts +2 -0
- package/dist/companion-link/device.d.ts +2 -1
- package/dist/index.js +13 -4
- package/package.json +5 -5
package/dist/airplay/device.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ type EventMap = {
|
|
|
10
10
|
};
|
|
11
11
|
export default class extends EventEmitter<EventMap> {
|
|
12
12
|
#private;
|
|
13
|
+
get discoveryResult(): DiscoveryResult;
|
|
14
|
+
set discoveryResult(discoveryResult: DiscoveryResult);
|
|
13
15
|
get isConnected(): boolean;
|
|
14
16
|
get remote(): Remote;
|
|
15
17
|
get state(): State;
|
|
@@ -8,13 +8,14 @@ type EventMap = {
|
|
|
8
8
|
};
|
|
9
9
|
export default class extends EventEmitter<EventMap> {
|
|
10
10
|
#private;
|
|
11
|
+
get discoveryResult(): DiscoveryResult;
|
|
12
|
+
set discoveryResult(discoveryResult: DiscoveryResult);
|
|
11
13
|
get isConnected(): boolean;
|
|
12
14
|
constructor(discoveryResult: DiscoveryResult);
|
|
13
15
|
connect(): Promise<void>;
|
|
14
16
|
disconnect(emit?: boolean): Promise<void>;
|
|
15
17
|
disconnectSafely(emit?: boolean): Promise<void>;
|
|
16
18
|
setCredentials(credentials: AccessoryCredentials): Promise<void>;
|
|
17
|
-
setDiscoveryResult(discoveryResult: DiscoveryResult): Promise<void>;
|
|
18
19
|
getAttentionState(): Promise<AttentionState>;
|
|
19
20
|
getLaunchableApps(): Promise<LaunchableApp[]>;
|
|
20
21
|
getUserAccounts(): Promise<UserAccount[]>;
|
package/dist/index.js
CHANGED
|
@@ -1505,6 +1505,12 @@ class device_default extends EventEmitter2 {
|
|
|
1505
1505
|
get [PROTOCOL]() {
|
|
1506
1506
|
return this.#protocol;
|
|
1507
1507
|
}
|
|
1508
|
+
get discoveryResult() {
|
|
1509
|
+
return this.#discoveryResult;
|
|
1510
|
+
}
|
|
1511
|
+
set discoveryResult(discoveryResult) {
|
|
1512
|
+
this.#discoveryResult = discoveryResult;
|
|
1513
|
+
}
|
|
1508
1514
|
get isConnected() {
|
|
1509
1515
|
return this.#protocol?.rtsp?.isConnected ?? false;
|
|
1510
1516
|
}
|
|
@@ -1523,12 +1529,12 @@ class device_default extends EventEmitter2 {
|
|
|
1523
1529
|
set timingServer(timingServer) {
|
|
1524
1530
|
this.#timingServer = timingServer;
|
|
1525
1531
|
}
|
|
1526
|
-
#discoveryResult;
|
|
1527
1532
|
#remote;
|
|
1528
1533
|
#state;
|
|
1529
1534
|
#volume;
|
|
1530
1535
|
#credentials;
|
|
1531
1536
|
#disconnect = false;
|
|
1537
|
+
#discoveryResult;
|
|
1532
1538
|
#feedbackInterval;
|
|
1533
1539
|
#keys;
|
|
1534
1540
|
#protocol;
|
|
@@ -1663,6 +1669,12 @@ class device_default2 extends EventEmitter3 {
|
|
|
1663
1669
|
get [PROTOCOL2]() {
|
|
1664
1670
|
return this.#protocol;
|
|
1665
1671
|
}
|
|
1672
|
+
get discoveryResult() {
|
|
1673
|
+
return this.#discoveryResult;
|
|
1674
|
+
}
|
|
1675
|
+
set discoveryResult(discoveryResult) {
|
|
1676
|
+
this.#discoveryResult = discoveryResult;
|
|
1677
|
+
}
|
|
1666
1678
|
get isConnected() {
|
|
1667
1679
|
return this.#protocol?.socket?.isConnected ?? false;
|
|
1668
1680
|
}
|
|
@@ -1709,9 +1721,6 @@ class device_default2 extends EventEmitter3 {
|
|
|
1709
1721
|
async setCredentials(credentials) {
|
|
1710
1722
|
this.#credentials = credentials;
|
|
1711
1723
|
}
|
|
1712
|
-
async setDiscoveryResult(discoveryResult) {
|
|
1713
|
-
this.#discoveryResult = discoveryResult;
|
|
1714
|
-
}
|
|
1715
1724
|
async getAttentionState() {
|
|
1716
1725
|
return await this.#protocol.api.getAttentionState();
|
|
1717
1726
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basmilius/apple-devices",
|
|
3
3
|
"description": "Exposes various Apple devices to connect with either AirPlay or Companion Link.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.92",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@basmilius/apple-airplay": "0.0.
|
|
47
|
-
"@basmilius/apple-common": "0.0.
|
|
48
|
-
"@basmilius/apple-companion-link": "0.0.
|
|
49
|
-
"@basmilius/apple-encoding": "0.0.
|
|
46
|
+
"@basmilius/apple-airplay": "0.0.92",
|
|
47
|
+
"@basmilius/apple-common": "0.0.92",
|
|
48
|
+
"@basmilius/apple-companion-link": "0.0.92",
|
|
49
|
+
"@basmilius/apple-encoding": "0.0.92"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@basmilius/tools": "^2.23.0",
|