cloud: cleanup

This commit is contained in:
Koushik Dutta
2024-07-14 07:56:19 -07:00
parent 937f615c8c
commit dc4dd07ced
4 changed files with 20 additions and 6 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/cloud",
"version": "0.2.22",
"version": "0.2.23",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@scrypted/cloud",
"version": "0.2.22",
"version": "0.2.23",
"dependencies": {
"@eneris/push-receiver": "^3.1.5",
"@scrypted/common": "file:../../common",

View File

@@ -53,5 +53,5 @@
"@types/nat-upnp": "^1.1.5",
"@types/node": "^20.14.6"
},
"version": "0.2.22"
"version": "0.2.23"
}

View File

@@ -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');

View File

@@ -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;
@@ -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();
}
}