Skip to content

Commit

Permalink
tmp fix errors on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
valpinkman committed Jan 17, 2025
1 parent 3d296cb commit 2e8b0cc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions libs/ledger-live-common/src/hw/deviceAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ let errorRemapping = e => throwError(() => e);
export const setErrorRemapping = (f: (arg0: Error) => Observable<never>): void => {
errorRemapping = f;
};

const never = new Promise(() => {});

/**
Expand Down
8 changes: 8 additions & 0 deletions libs/ledgerjs/packages/errors/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,14 @@ export class LockedDeviceError extends TransportStatusError {
}
}

export class DeviceMangementKitError extends Error {
constructor(name: string, message: string) {
super(message);
this.name = name;
Object.setPrototypeOf(this, DeviceMangementKitError.prototype);
}
}

// Represents the type of the class TransportStatusError and its children
export type TransportStatusErrorClassType = typeof TransportStatusError | typeof LockedDeviceError;

Expand Down
2 changes: 1 addition & 1 deletion libs/live-dmk/.unimportedrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"entry": ["src/index.tsx"],
"entry": ["src/index.ts"],
"ignorePatterns": ["**/node_modules/**", "**/*.test.{ts,tsx}"],
"ignoreUnused": ["react-dom"]
}
2 changes: 1 addition & 1 deletion libs/live-dmk/src/config/activeDeviceSession.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BehaviorSubject } from "rxjs";
import { DeviceManagementKitTransport } from "src/transport/DeviceManagementKitTransport";
import { DeviceManagementKitTransport } from "../transport/DeviceManagementKitTransport";

export const activeDeviceSessionSubject: BehaviorSubject<{
sessionId: string;
Expand Down

0 comments on commit 2e8b0cc

Please sign in to comment.