Skip to content

Commit

Permalink
cloud: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jul 14, 2024
1 parent 937f615 commit dc4dd07
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions plugins/cloud/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@
"@types/nat-upnp": "^1.1.5",
"@types/node": "^20.14.6"
},
"version": "0.2.22"
"version": "0.2.23"
}
3 changes: 1 addition & 2 deletions plugins/cloud/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1013,8 +1013,7 @@ class ScryptedCloud extends ScryptedDeviceBase implements OauthClient, Settings,
const deferred = new Deferred<string>();
const cloudflareTunnel = cloudflared.tunnel(args);

const processData = (data: string) => {
const string: string = data.toString();
const processData = (string: string) => {
this.console.error(string);

const lines = string.split('\n');
Expand Down
17 changes: 16 additions & 1 deletion plugins/homekit/src/util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sdk, { ScryptedInterface } from '@scrypted/sdk';
import sdk, { OnOff, ScryptedDeviceBase, ScryptedInterface } from '@scrypted/sdk';
import test from 'node:test';

const { systemManager } = sdk;

Expand Down Expand Up @@ -40,3 +41,17 @@ export function reorderDevicesByProvider(deviceIds: string[]): string[] {

return flattenDeviceTree(providerDeviceIdMap, null);
}

class TestDeviceBase {

}

function hideProps<T>(): new()=> T {
return TestDeviceBase as any;
}

class Poop extends hideProps<TestDeviceBase & OnOff>() {
constructor() {
super();
}
}

0 comments on commit dc4dd07

Please sign in to comment.