From 367dd38154f2bac8776edf64e3161b4c031d277f Mon Sep 17 00:00:00 2001 From: Marco Crespi Date: Thu, 30 Sep 2021 15:32:35 +0200 Subject: [PATCH] fix(dbus): Fix upgrade error --- lib/bindings/dbus/MODblue.js | 2 +- lib/bindings/dbus/MODblue.js.map | 2 +- src/bindings/dbus/MODblue.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bindings/dbus/MODblue.js b/lib/bindings/dbus/MODblue.js index e7c0ff7d..55143902 100644 --- a/lib/bindings/dbus/MODblue.js +++ b/lib/bindings/dbus/MODblue.js @@ -22,7 +22,7 @@ class DbusMODblue extends models_1.MODblue { this.adapters = new Map(); const END = 't'; // eslint-disable-next-line @typescript-eslint/no-var-requires - this.dbus = require(`dbus-nex${END}`).systemBus(); + this.dbus = require(`dbus-nex${END}`).systemBus({}); } dispose() { return __awaiter(this, void 0, void 0, function* () { diff --git a/lib/bindings/dbus/MODblue.js.map b/lib/bindings/dbus/MODblue.js.map index 37d4d2d6..ad9b0d6f 100644 --- a/lib/bindings/dbus/MODblue.js.map +++ b/lib/bindings/dbus/MODblue.js.map @@ -1 +1 @@ -{"version":3,"file":"MODblue.js","sourceRoot":"","sources":["../../../src/bindings/dbus/MODblue.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAgD;AAEhD,uCAAwC;AACxC,iCAA2D;AAE3D;;GAEG;AACH,MAAa,WAAY,SAAQ,gBAAO;IAMvC;QACC,KAAK,EAAE,CAAC;QAHD,aAAQ,GAA6B,IAAI,GAAG,EAAE,CAAC;QAKtD,MAAM,GAAG,GAAG,GAAG,CAAC;QAChB,8DAA8D;QAC9D,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,WAAW,GAAG,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,CAAC;IAEY,OAAO;;YACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,EAAE,CAAC;QAC3B,CAAC;KAAA;IAEY,WAAW;;YACvB,I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AC;KAAA;CACD;AA1CD,kCA0CC"} \ No newline at end of file diff --git a/src/bindings/dbus/MODblue.ts b/src/bindings/dbus/MODblue.ts index 80540abc..d0fd3491 100644 --- a/src/bindings/dbus/MODblue.ts +++ b/src/bindings/dbus/MODblue.ts @@ -19,7 +19,7 @@ export class DbusMODblue extends MODblue { const END = 't'; // eslint-disable-next-line @typescript-eslint/no-var-requires - this.dbus = require(`dbus-nex${END}`).systemBus(); + this.dbus = require(`dbus-nex${END}`).systemBus({}); } public async dispose(): Promise {