Skip to content

Commit

Permalink
Merge pull request #1 from amplexus/bugfix/dbus-error-is-not-a-constr…
Browse files Browse the repository at this point in the history
…uctur

dbusjs#50: Fix DBusError is not a constructor
  • Loading branch information
amplexus authored Apr 16, 2023
2 parents 81665c4 + 962cef5 commit 8323730
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/interfaces/mpris-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ const constants = require('../constants');
const logging = require('../logging');

let {
Interface, property, method, signal, DBusError,
Interface, property, method, signal,
ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE
} = dbus.interface;
let DBusError = dbus.DBusError;

class MprisInterface extends Interface {
constructor(name, player) {
Expand Down
4 changes: 3 additions & 1 deletion src/interfaces/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ const JSBI = require('jsbi');
const constants = require('../constants');

let {
property, method, signal, DBusError,
property, method, signal,
ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE
} = dbus.interface;

let DBusError = dbus.DBusError;

class PlayerInterface extends MprisInterface {
constructor(player) {
super('org.mpris.MediaPlayer2.Player', player);
Expand Down
3 changes: 2 additions & 1 deletion src/interfaces/playlists.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ let Variant = dbus.Variant;
let types = require('./types');

let {
property, method, signal, DBusError,
property, method, signal,
ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE
} = dbus.interface;
let DBusError = dbus.DBusError;

class PlaylistsInterface extends MprisInterface {
constructor(player) {
Expand Down
3 changes: 2 additions & 1 deletion src/interfaces/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ let dbus = require('dbus-next');
let Variant = dbus.Variant;

let {
property, method, signal, DBusError,
property, method, signal,
ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE
} = dbus.interface;
let DBusError = dbus.DBusError;

class RootInterface extends MprisInterface {
constructor(player, opts={}) {
Expand Down
3 changes: 2 additions & 1 deletion src/interfaces/tracklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ let Variant = dbus.Variant;
let types = require('./types');

let {
property, method, signal, DBusError,
property, method, signal,
ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE
} = dbus.interface;
let DBusError = dbus.DBusError;

class TracklistInterface extends MprisInterface {
constructor(player) {
Expand Down

0 comments on commit 8323730

Please sign in to comment.