From 0fc032a9332a81ca25e34404be979dbcfc4086b3 Mon Sep 17 00:00:00 2001 From: jz_ Date: Fri, 26 Apr 2024 15:47:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20(core):=20Add=20changeset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/shaggy-experts-flash.md | 5 +++++ .../core/src/api/command/os/GetAppAndVersionCommand.test.ts | 5 +++-- packages/core/src/api/command/os/GetAppAndVersionCommand.ts | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .changeset/shaggy-experts-flash.md diff --git a/.changeset/shaggy-experts-flash.md b/.changeset/shaggy-experts-flash.md new file mode 100644 index 000000000..27127b07a --- /dev/null +++ b/.changeset/shaggy-experts-flash.md @@ -0,0 +1,5 @@ +--- +"@ledgerhq/device-sdk-core": minor +--- + +Implement GetAppAndVersion command. diff --git a/packages/core/src/api/command/os/GetAppAndVersionCommand.test.ts b/packages/core/src/api/command/os/GetAppAndVersionCommand.test.ts index 5226ff555..826d182ca 100644 --- a/packages/core/src/api/command/os/GetAppAndVersionCommand.test.ts +++ b/packages/core/src/api/command/os/GetAppAndVersionCommand.test.ts @@ -1,8 +1,9 @@ +import { Command } from "@api/command/Command"; import { ApduResponse } from "@internal/device-session/model/ApduResponse"; -import { Command } from "../Command"; + import { - GetAppAndVersionResponse, GetAppAndVersionCommand, + GetAppAndVersionResponse, } from "./GetAppAndVersionCommand"; const GET_APP_AND_VERSION_APDU = Uint8Array.from([ diff --git a/packages/core/src/api/command/os/GetAppAndVersionCommand.ts b/packages/core/src/api/command/os/GetAppAndVersionCommand.ts index 6236b0303..39c949819 100644 --- a/packages/core/src/api/command/os/GetAppAndVersionCommand.ts +++ b/packages/core/src/api/command/os/GetAppAndVersionCommand.ts @@ -2,8 +2,8 @@ import { Apdu } from "@api/apdu/model/Apdu"; import { ApduBuilder, ApduBuilderArgs } from "@api/apdu/utils/ApduBuilder"; import { ApduParser } from "@api/apdu/utils/ApduParser"; import { Command } from "@api/command/Command"; -import { ApduResponse } from "@internal/device-session/model/ApduResponse"; import { CommandUtils } from "@api/command/utils/CommandUtils"; +import { ApduResponse } from "@internal/device-session/model/ApduResponse"; export type GetAppAndVersionResponse = { name: string;