ioBroker: Remove access to the states and objects DB (#41161)

* remove access to adapter.states and adapter.objects

* format with Prettier
This commit is contained in:
AlCalzone
2019-12-23 18:32:51 +01:00
committed by Andrew Branch
parent 7161baaf3a
commit e34a477b43
2 changed files with 638 additions and 648 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -283,10 +283,15 @@ adapter.unsubscribeForeignObjectsAsync("*").catch(handleError);
adapter.getHistory("state.id", {}, (err, result: ioBroker.GetHistoryResult) => {});
adapter.terminate();
adapter.terminate(1);
adapter.terminate("Reason");
adapter.terminate("Reason", 4);
(() => adapter.terminate())();
(() => adapter.terminate(1))();
(() => adapter.terminate("Reason"))();
(() => adapter.terminate("Reason", 4))();
// $ExpectError
adapter.states.getStates();
// $ExpectError
adapter.objects.getObjectView();
// Repro from https://github.com/ioBroker/adapter-core/issues/3
const repro1: ioBroker.ObjectChangeHandler = (id, obj) => {