Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz914 committed Dec 1, 2024
1 parent 6d8e816 commit d06f55c
Show file tree
Hide file tree
Showing 26 changed files with 8 additions and 37 deletions.
2 changes: 0 additions & 2 deletions homebridge-ui/server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import { HomebridgePluginUiServer } from '@homebridge/plugin-ui-utils';
import Authentication from '../src/webApi/authentication.js';

Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import { join } from 'path';
import { mkdirSync, existsSync, writeFileSync } from 'fs';
import XboxDevice from './src/xboxdevice.js';
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "Xbox TV",
"name": "homebridge-xbox-tv",
"version": "3.2.0",
"version": "3.2.1",
"description": "Homebridge plugin to control Xbox game consoles.",
"license": "MIT",
"author": "grzegorz914",
Expand All @@ -17,7 +17,9 @@
"url": "https://github.com/grzegorz914/homebridge-xbox-tv/issues"
},
"type": "module",
"main": "index.js",
"exports": {
".": "./index.js"
},
"files": [
"src",
"homebridge-ui",
Expand Down
1 change: 0 additions & 1 deletion src/impulsegenerator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
import EventEmitter from 'events';

class ImpulseGenerator extends EventEmitter {
Expand Down
1 change: 0 additions & 1 deletion src/localApi/message.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
import HexToBin from 'hex-to-binary';
import Packets from './packets.js';
import Structure from './structure.js';
Expand Down
1 change: 0 additions & 1 deletion src/localApi/packets.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
import { LocalApi } from '../constants.js';

class Packets {
Expand Down
1 change: 0 additions & 1 deletion src/localApi/sgcrypto.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
import JsRsaSign from 'jsrsasign';
import Crypto from 'crypto';
import { EOL } from 'os';
Expand Down
1 change: 0 additions & 1 deletion src/localApi/simple.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
import Packets from './packets.js';
import Structure from './structure.js';

Expand Down
2 changes: 0 additions & 2 deletions src/localApi/structure.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

class Structure {
constructor(packet) {
packet = packet === undefined ? Buffer.from('') : packet;
Expand Down
4 changes: 1 addition & 3 deletions src/localApi/xboxlocalapi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"use strict";
import { promises } from 'fs';
const fsPromises = promises;
import { promises as fsPromises } from 'fs';
import Dgram from 'dgram';
import Net from 'net';
import { parse as UuIdParse, v4 as UuIdv4 } from 'uuid';
Expand Down
1 change: 0 additions & 1 deletion src/mqtt.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
import asyncMqtt from 'async-mqtt';
const { connectAsync } = asyncMqtt;
import EventEmitter from 'events';
Expand Down
1 change: 0 additions & 1 deletion src/restful.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
import express, { json } from 'express';
import EventEmitter from 'events';

Expand Down
4 changes: 1 addition & 3 deletions src/webApi/authentication.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
'use strict';
import { promises } from 'fs';
const fsPromises = promises;
import { promises as fsPromises } from 'fs';
import QueryString from 'querystring';
import axios from 'axios';
import { WebApi } from '../constants.js';
Expand Down
1 change: 0 additions & 1 deletion src/webApi/providers/achievements.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import axios from 'axios';

class Archivements {
Expand Down
1 change: 0 additions & 1 deletion src/webApi/providers/catalog.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import QueryString from 'querystring';
import axios from 'axios';

Expand Down
1 change: 0 additions & 1 deletion src/webApi/providers/gameclips.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import QueryString from 'querystring';
import axios from 'axios';

Expand Down
1 change: 0 additions & 1 deletion src/webApi/providers/messages.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import axios from 'axios';

class Messages {
Expand Down
1 change: 0 additions & 1 deletion src/webApi/providers/people.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import axios from 'axios';

class People {
Expand Down
1 change: 0 additions & 1 deletion src/webApi/providers/pins.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import axios from 'axios';

class Pins {
Expand Down
1 change: 0 additions & 1 deletion src/webApi/providers/screenshots.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import QueryString from 'querystring';
import axios from 'axios';

Expand Down
1 change: 0 additions & 1 deletion src/webApi/providers/social.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import axios from 'axios';

class Social {
Expand Down
1 change: 0 additions & 1 deletion src/webApi/providers/titlehub.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import axios from 'axios';

class TitleHub {
Expand Down
1 change: 0 additions & 1 deletion src/webApi/providers/userpresence.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import axios from 'axios';

class UserPresence {
Expand Down
1 change: 0 additions & 1 deletion src/webApi/providers/userstats.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import axios from 'axios';

class UserStats {
Expand Down
4 changes: 1 addition & 3 deletions src/webApi/xboxwebapi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
'use strict';
import { promises } from 'fs';
const fsPromises = promises;
import { promises as fsPromises } from 'fs';
import EventEmitter from 'events';
import { v4 as UuIdv4 } from 'uuid';
import axios from 'axios';
Expand Down
4 changes: 1 addition & 3 deletions src/xboxdevice.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"use strict";
import { promises } from 'fs';
const fsPromises = promises;
import { promises as fsPromises } from 'fs';
import EventEmitter from 'events';
import RestFul from './restful.js';
import Mqtt from './mqtt.js';
Expand Down

0 comments on commit d06f55c

Please sign in to comment.