homebridge-xbox-tv 3.2.0-beta.2 → 3.2.0-beta.4
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 +1 -1
- package/src/localApi/sgcrypto.js +2 -1
- package/src/xboxdevice.js +7 -7
package/package.json
CHANGED
package/src/localApi/sgcrypto.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import JsRsaSign from 'jsrsasign';
|
|
3
3
|
import * as Crypto from 'crypto';
|
|
4
4
|
import { EOL } from 'os';
|
|
5
|
-
import
|
|
5
|
+
import Elliptic from 'elliptic';
|
|
6
|
+
const EC = Elliptic.ec;
|
|
6
7
|
const IV = Buffer.from('\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00');
|
|
7
8
|
|
|
8
9
|
class SgCrypto {
|
package/src/xboxdevice.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
const fsPromises =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { promises } from 'fs';
|
|
3
|
+
const fsPromises = promises;
|
|
4
|
+
import EventEmitter from 'events';
|
|
5
|
+
import RestFul from './restful.js';
|
|
6
|
+
import Mqtt from './mqtt.js';
|
|
7
|
+
import XboxWebApi from './webApi/xboxwebapi.js';
|
|
8
|
+
import XboxLocalApi from './localApi/xboxlocalapi.js';
|
|
9
9
|
import { DefaultInputs, LocalApi } from './constants.js';
|
|
10
10
|
|
|
11
11
|
let Accessory, Characteristic, Service, Categories, Encode, AccessoryUUID;
|