@ledgerhq/device-core 0.8.6 → 0.9.0-nightly.20260304025924
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +10 -10
- package/lib/capabilities/getDeviceHasBattery.js +1 -2
- package/lib/capabilities/getDeviceHasBattery.js.map +1 -1
- package/lib/capabilities/isCustomLockScreenSupported.js +2 -2
- package/lib/capabilities/isCustomLockScreenSupported.js.map +1 -1
- package/lib/capabilities/isEditDeviceNameSupported.js +1 -2
- package/lib/capabilities/isEditDeviceNameSupported.js.map +1 -1
- package/lib/capabilities/isSyncOnboardingSupported.js +1 -2
- package/lib/capabilities/isSyncOnboardingSupported.js.map +1 -1
- package/lib/commands/entities/APDU.d.ts +0 -2
- package/lib/commands/entities/APDU.d.ts.map +1 -1
- package/lib/commands/entities/AppStorageInfo.js +1 -2
- package/lib/commands/entities/AppStorageInfo.js.map +1 -1
- package/lib/commands/entities/FirmwareInfoEntity.d.ts +0 -2
- package/lib/commands/entities/FirmwareInfoEntity.d.ts.map +1 -1
- package/lib/commands/use-cases/app-backup/backupAppStorage.d.ts +0 -2
- package/lib/commands/use-cases/app-backup/backupAppStorage.d.ts.map +1 -1
- package/lib/commands/use-cases/app-backup/backupAppStorage.js +2 -3
- package/lib/commands/use-cases/app-backup/backupAppStorage.js.map +1 -1
- package/lib/commands/use-cases/app-backup/getAppStorageInfo.d.ts +0 -2
- package/lib/commands/use-cases/app-backup/getAppStorageInfo.d.ts.map +1 -1
- package/lib/commands/use-cases/app-backup/getAppStorageInfo.js +2 -3
- package/lib/commands/use-cases/app-backup/getAppStorageInfo.js.map +1 -1
- package/lib/commands/use-cases/app-backup/restoreAppStorage.d.ts +0 -2
- package/lib/commands/use-cases/app-backup/restoreAppStorage.d.ts.map +1 -1
- package/lib/commands/use-cases/app-backup/restoreAppStorage.js +2 -3
- package/lib/commands/use-cases/app-backup/restoreAppStorage.js.map +1 -1
- package/lib/commands/use-cases/app-backup/restoreAppStorageCommit.d.ts +0 -2
- package/lib/commands/use-cases/app-backup/restoreAppStorageCommit.d.ts.map +1 -1
- package/lib/commands/use-cases/app-backup/restoreAppStorageCommit.js +2 -3
- package/lib/commands/use-cases/app-backup/restoreAppStorageCommit.js.map +1 -1
- package/lib/commands/use-cases/app-backup/restoreAppStorageInit.d.ts +0 -2
- package/lib/commands/use-cases/app-backup/restoreAppStorageInit.d.ts.map +1 -1
- package/lib/commands/use-cases/app-backup/restoreAppStorageInit.js +2 -3
- package/lib/commands/use-cases/app-backup/restoreAppStorageInit.js.map +1 -1
- package/lib/commands/use-cases/consent/reinstallConfigurationConsent.d.ts +0 -2
- package/lib/commands/use-cases/consent/reinstallConfigurationConsent.d.ts.map +1 -1
- package/lib/commands/use-cases/consent/reinstallConfigurationConsent.js +2 -3
- package/lib/commands/use-cases/consent/reinstallConfigurationConsent.js.map +1 -1
- package/lib/commands/use-cases/getDeviceName.js +1 -2
- package/lib/commands/use-cases/getDeviceName.js.map +1 -1
- package/lib/commands/use-cases/getVersion.js +2 -2
- package/lib/commands/use-cases/getVersion.js.map +1 -1
- package/lib/commands/use-cases/isBootloaderVersionSupported.d.ts.map +1 -1
- package/lib/commands/use-cases/isCharonSupported.d.ts.map +1 -1
- package/lib/commands/use-cases/isDeviceLocalizationSupported.d.ts.map +1 -1
- package/lib/commands/use-cases/isHardwareVersionSupported.d.ts.map +1 -1
- package/lib/commands/use-cases/isRecoverSupported.d.ts.map +1 -1
- package/lib/commands/use-cases/parseGetDeviceNameResponse.d.ts +0 -2
- package/lib/commands/use-cases/parseGetDeviceNameResponse.d.ts.map +1 -1
- package/lib/commands/use-cases/parseGetDeviceNameResponse.js +1 -2
- package/lib/commands/use-cases/parseGetDeviceNameResponse.js.map +1 -1
- package/lib/commands/use-cases/parseGetVersionResponse.d.ts +0 -2
- package/lib/commands/use-cases/parseGetVersionResponse.d.ts.map +1 -1
- package/lib/commands/use-cases/parseGetVersionResponse.js +1 -2
- package/lib/commands/use-cases/parseGetVersionResponse.js.map +1 -1
- package/lib/customLockScreen/screenSpecs.js +4 -4
- package/lib/customLockScreen/screenSpecs.js.map +1 -1
- package/lib/firmwareUpdate/shouldForceFirmwareUpdate.js +1 -2
- package/lib/firmwareUpdate/shouldForceFirmwareUpdate.js.map +1 -1
- package/lib/managerApi/entities/DeviceInfoEntity.d.ts +0 -2
- package/lib/managerApi/entities/DeviceInfoEntity.d.ts.map +1 -1
- package/lib/managerApi/entities/mocks/aDeviceInfo.d.ts.map +1 -1
- package/lib/managerApi/entities/mocks/aDeviceVersion.d.ts.map +1 -1
- package/lib/managerApi/entities/mocks/aFinalFirmware.d.ts.map +1 -1
- package/lib/managerApi/entities/mocks/aOsuFirmware.d.ts +5 -5
- package/lib/managerApi/entities/mocks/aOsuFirmware.js +1 -2
- package/lib/managerApi/entities/mocks/aOsuFirmware.js.map +1 -1
- package/lib/managerApi/repositories/HttpManagerApiRepository.d.ts.map +1 -1
- package/lib/managerApi/use-cases/fetchMcus.js +1 -2
- package/lib/managerApi/use-cases/fetchMcus.js.map +1 -1
- package/lib/managerApi/use-cases/getAppsCatalogForDevice.js +1 -2
- package/lib/managerApi/use-cases/getAppsCatalogForDevice.js.map +1 -1
- package/lib/managerApi/use-cases/getLatestFirmwareForDevice.js +1 -2
- package/lib/managerApi/use-cases/getLatestFirmwareForDevice.js.map +1 -1
- package/lib/managerApi/use-cases/getProviderIdUseCase.js +2 -2
- package/lib/managerApi/use-cases/getProviderIdUseCase.js.map +1 -1
- package/lib/managerApi/use-cases/getUserHashes.d.ts.map +1 -1
- package/lib/managerApi/use-cases/getUserHashes.js +1 -2
- package/lib/managerApi/use-cases/getUserHashes.js.map +1 -1
- package/lib-es/commands/entities/APDU.d.ts +0 -2
- package/lib-es/commands/entities/APDU.d.ts.map +1 -1
- package/lib-es/commands/entities/FirmwareInfoEntity.d.ts +0 -2
- package/lib-es/commands/entities/FirmwareInfoEntity.d.ts.map +1 -1
- package/lib-es/commands/use-cases/app-backup/backupAppStorage.d.ts +0 -2
- package/lib-es/commands/use-cases/app-backup/backupAppStorage.d.ts.map +1 -1
- package/lib-es/commands/use-cases/app-backup/getAppStorageInfo.d.ts +0 -2
- package/lib-es/commands/use-cases/app-backup/getAppStorageInfo.d.ts.map +1 -1
- package/lib-es/commands/use-cases/app-backup/restoreAppStorage.d.ts +0 -2
- package/lib-es/commands/use-cases/app-backup/restoreAppStorage.d.ts.map +1 -1
- package/lib-es/commands/use-cases/app-backup/restoreAppStorageCommit.d.ts +0 -2
- package/lib-es/commands/use-cases/app-backup/restoreAppStorageCommit.d.ts.map +1 -1
- package/lib-es/commands/use-cases/app-backup/restoreAppStorageInit.d.ts +0 -2
- package/lib-es/commands/use-cases/app-backup/restoreAppStorageInit.d.ts.map +1 -1
- package/lib-es/commands/use-cases/consent/reinstallConfigurationConsent.d.ts +0 -2
- package/lib-es/commands/use-cases/consent/reinstallConfigurationConsent.d.ts.map +1 -1
- package/lib-es/commands/use-cases/isBootloaderVersionSupported.d.ts.map +1 -1
- package/lib-es/commands/use-cases/isCharonSupported.d.ts.map +1 -1
- package/lib-es/commands/use-cases/isDeviceLocalizationSupported.d.ts.map +1 -1
- package/lib-es/commands/use-cases/isHardwareVersionSupported.d.ts.map +1 -1
- package/lib-es/commands/use-cases/isRecoverSupported.d.ts.map +1 -1
- package/lib-es/commands/use-cases/parseGetDeviceNameResponse.d.ts +0 -2
- package/lib-es/commands/use-cases/parseGetDeviceNameResponse.d.ts.map +1 -1
- package/lib-es/commands/use-cases/parseGetVersionResponse.d.ts +0 -2
- package/lib-es/commands/use-cases/parseGetVersionResponse.d.ts.map +1 -1
- package/lib-es/managerApi/entities/DeviceInfoEntity.d.ts +0 -2
- package/lib-es/managerApi/entities/DeviceInfoEntity.d.ts.map +1 -1
- package/lib-es/managerApi/entities/mocks/aDeviceInfo.d.ts.map +1 -1
- package/lib-es/managerApi/entities/mocks/aDeviceVersion.d.ts.map +1 -1
- package/lib-es/managerApi/entities/mocks/aFinalFirmware.d.ts.map +1 -1
- package/lib-es/managerApi/entities/mocks/aOsuFirmware.d.ts +5 -5
- package/lib-es/managerApi/repositories/HttpManagerApiRepository.d.ts.map +1 -1
- package/lib-es/managerApi/use-cases/getUserHashes.d.ts.map +1 -1
- package/package.json +8 -8
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
# @ledgerhq/device-core
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 0.9.0-nightly.20260304025924
|
|
4
4
|
|
|
5
|
-
###
|
|
6
|
-
|
|
7
|
-
- Updated dependencies [[`a96dc83`](https://github.com/LedgerHQ/ledger-live/commit/a96dc83916684e22c041904c479c615a3095303b), [`e954c1e`](https://github.com/LedgerHQ/ledger-live/commit/e954c1e0f0e45efe3b0e8c3fda9e6d5b22b5bc01), [`17149ee`](https://github.com/LedgerHQ/ledger-live/commit/17149ee26eeef8a600d650a6f4903c52320a0d8d), [`b7dec5c`](https://github.com/LedgerHQ/ledger-live/commit/b7dec5c2a41520114593701c82192ff8ae8ce06f), [`f51402e`](https://github.com/LedgerHQ/ledger-live/commit/f51402ebb8a4f05a933df3c3ef499756fbde5cc8), [`5f1c644`](https://github.com/LedgerHQ/ledger-live/commit/5f1c644fd5f757f48618b62e976faac274ced40d), [`cc4c8f5`](https://github.com/LedgerHQ/ledger-live/commit/cc4c8f57e38586d77b89f32d359e65cc700912af)]:
|
|
8
|
-
- @ledgerhq/types-live@6.99.0
|
|
9
|
-
- @ledgerhq/live-network@2.3.0
|
|
5
|
+
### Minor Changes
|
|
10
6
|
|
|
11
|
-
|
|
7
|
+
- [#14913](https://github.com/LedgerHQ/ledger-live/pull/14913) [`dceb492`](https://github.com/LedgerHQ/ledger-live/commit/dceb4921a811ffc3cba96ff532ffcb5d1205431f) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Update TypeScript to latest 5.8.x
|
|
12
8
|
|
|
13
9
|
### Patch Changes
|
|
14
10
|
|
|
15
|
-
- Updated dependencies [[`a96dc83`](https://github.com/LedgerHQ/ledger-live/commit/a96dc83916684e22c041904c479c615a3095303b), [`e954c1e`](https://github.com/LedgerHQ/ledger-live/commit/e954c1e0f0e45efe3b0e8c3fda9e6d5b22b5bc01), [`17149ee`](https://github.com/LedgerHQ/ledger-live/commit/17149ee26eeef8a600d650a6f4903c52320a0d8d), [`b7dec5c`](https://github.com/LedgerHQ/ledger-live/commit/b7dec5c2a41520114593701c82192ff8ae8ce06f), [`f51402e`](https://github.com/LedgerHQ/ledger-live/commit/f51402ebb8a4f05a933df3c3ef499756fbde5cc8), [`5f1c644`](https://github.com/LedgerHQ/ledger-live/commit/5f1c644fd5f757f48618b62e976faac274ced40d), [`cc4c8f5`](https://github.com/LedgerHQ/ledger-live/commit/cc4c8f57e38586d77b89f32d359e65cc700912af)]:
|
|
16
|
-
- @ledgerhq/types-live@6.99.0-
|
|
17
|
-
- @ledgerhq/
|
|
11
|
+
- Updated dependencies [[`748b933`](https://github.com/LedgerHQ/ledger-live/commit/748b933f3786e48ec9dd434c76263c2c9a642c99), [`a96dc83`](https://github.com/LedgerHQ/ledger-live/commit/a96dc83916684e22c041904c479c615a3095303b), [`e954c1e`](https://github.com/LedgerHQ/ledger-live/commit/e954c1e0f0e45efe3b0e8c3fda9e6d5b22b5bc01), [`0dbbca3`](https://github.com/LedgerHQ/ledger-live/commit/0dbbca3f0226347b5abc034a066fe4ad89bfe462), [`17149ee`](https://github.com/LedgerHQ/ledger-live/commit/17149ee26eeef8a600d650a6f4903c52320a0d8d), [`ba4d56f`](https://github.com/LedgerHQ/ledger-live/commit/ba4d56fa223b87b89d621de2d1885c5a55922ef4), [`697f2e6`](https://github.com/LedgerHQ/ledger-live/commit/697f2e6f5b24ff023a46cbbbf5c9f85bac90a4c4), [`b7dec5c`](https://github.com/LedgerHQ/ledger-live/commit/b7dec5c2a41520114593701c82192ff8ae8ce06f), [`f51402e`](https://github.com/LedgerHQ/ledger-live/commit/f51402ebb8a4f05a933df3c3ef499756fbde5cc8), [`dceb492`](https://github.com/LedgerHQ/ledger-live/commit/dceb4921a811ffc3cba96ff532ffcb5d1205431f), [`5f1c644`](https://github.com/LedgerHQ/ledger-live/commit/5f1c644fd5f757f48618b62e976faac274ced40d), [`cc4c8f5`](https://github.com/LedgerHQ/ledger-live/commit/cc4c8f57e38586d77b89f32d359e65cc700912af)]:
|
|
12
|
+
- @ledgerhq/types-live@6.99.0-nightly.20260304025924
|
|
13
|
+
- @ledgerhq/errors@6.30.0-nightly.20260304025924
|
|
14
|
+
- @ledgerhq/live-network@2.3.0-nightly.20260304025924
|
|
15
|
+
- @ledgerhq/hw-transport@6.33.0-nightly.20260304025924
|
|
16
|
+
- @ledgerhq/devices@8.11.0-nightly.20260304025924
|
|
17
|
+
- @ledgerhq/logs@6.15.0-nightly.20260304025924
|
|
18
18
|
|
|
19
19
|
## 0.8.5
|
|
20
20
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDeviceHasBattery =
|
|
3
|
+
exports.getDeviceHasBattery = getDeviceHasBattery;
|
|
4
4
|
const devices_1 = require("@ledgerhq/devices");
|
|
5
5
|
function getDeviceHasBattery(deviceModelId) {
|
|
6
6
|
return ![devices_1.DeviceModelId.nanoS, devices_1.DeviceModelId.nanoSP].includes(deviceModelId);
|
|
7
7
|
}
|
|
8
|
-
exports.getDeviceHasBattery = getDeviceHasBattery;
|
|
9
8
|
//# sourceMappingURL=getDeviceHasBattery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDeviceHasBattery.js","sourceRoot":"","sources":["../../src/capabilities/getDeviceHasBattery.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDeviceHasBattery.js","sourceRoot":"","sources":["../../src/capabilities/getDeviceHasBattery.ts"],"names":[],"mappings":";;AAEA,kDAEC;AAJD,+CAAkD;AAElD,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,CAAC,CAAC,uBAAa,CAAC,KAAK,EAAE,uBAAa,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.supportedDeviceModelIds = void 0;
|
|
4
|
+
exports.isCustomLockScreenSupported = isCustomLockScreenSupported;
|
|
4
5
|
const devices_1 = require("@ledgerhq/devices");
|
|
5
6
|
exports.supportedDeviceModelIds = [
|
|
6
7
|
devices_1.DeviceModelId.stax,
|
|
@@ -17,5 +18,4 @@ function isCustomLockScreenSupported(deviceModelId) {
|
|
|
17
18
|
return false;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
exports.isCustomLockScreenSupported = isCustomLockScreenSupported;
|
|
21
21
|
//# sourceMappingURL=isCustomLockScreenSupported.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isCustomLockScreenSupported.js","sourceRoot":"","sources":["../../src/capabilities/isCustomLockScreenSupported.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"isCustomLockScreenSupported.js","sourceRoot":"","sources":["../../src/capabilities/isCustomLockScreenSupported.ts"],"names":[],"mappings":";;;AAUA,kEAWC;AArBD,+CAAkD;AAErC,QAAA,uBAAuB,GAAG;IACrC,uBAAa,CAAC,IAAI;IAClB,uBAAa,CAAC,MAAM;IACpB,uBAAa,CAAC,IAAI;CACV,CAAC;AAIX,SAAgB,2BAA2B,CACzC,aAA4B;IAE5B,QAAQ,aAAa,EAAE,CAAC;QACtB,KAAK,uBAAa,CAAC,IAAI,CAAC;QACxB,KAAK,uBAAa,CAAC,MAAM,CAAC;QAC1B,KAAK,uBAAa,CAAC,IAAI;YACrB,OAAO,IAAI,CAAC;QACd;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isEditDeviceNameSupported =
|
|
3
|
+
exports.isEditDeviceNameSupported = isEditDeviceNameSupported;
|
|
4
4
|
const devices_1 = require("@ledgerhq/devices");
|
|
5
5
|
function isEditDeviceNameSupported(deviceModelId) {
|
|
6
6
|
return [
|
|
@@ -11,5 +11,4 @@ function isEditDeviceNameSupported(deviceModelId) {
|
|
|
11
11
|
devices_1.DeviceModelId.apex,
|
|
12
12
|
].includes(deviceModelId);
|
|
13
13
|
}
|
|
14
|
-
exports.isEditDeviceNameSupported = isEditDeviceNameSupported;
|
|
15
14
|
//# sourceMappingURL=isEditDeviceNameSupported.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isEditDeviceNameSupported.js","sourceRoot":"","sources":["../../src/capabilities/isEditDeviceNameSupported.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isEditDeviceNameSupported.js","sourceRoot":"","sources":["../../src/capabilities/isEditDeviceNameSupported.ts"],"names":[],"mappings":";;AAEA,8DAQC;AAVD,+CAAkD;AAElD,SAAgB,yBAAyB,CAAC,aAA4B;IACpE,OAAO;QACL,uBAAa,CAAC,KAAK;QACnB,uBAAa,CAAC,MAAM;QACpB,uBAAa,CAAC,IAAI;QAClB,uBAAa,CAAC,MAAM;QACpB,uBAAa,CAAC,IAAI;KACnB,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isSyncOnboardingSupported =
|
|
3
|
+
exports.isSyncOnboardingSupported = isSyncOnboardingSupported;
|
|
4
4
|
const devices_1 = require("@ledgerhq/devices");
|
|
5
5
|
function isSyncOnboardingSupported(deviceModelId) {
|
|
6
6
|
return [devices_1.DeviceModelId.stax, devices_1.DeviceModelId.europa, devices_1.DeviceModelId.apex].includes(deviceModelId);
|
|
7
7
|
}
|
|
8
|
-
exports.isSyncOnboardingSupported = isSyncOnboardingSupported;
|
|
9
8
|
//# sourceMappingURL=isSyncOnboardingSupported.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isSyncOnboardingSupported.js","sourceRoot":"","sources":["../../src/capabilities/isSyncOnboardingSupported.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isSyncOnboardingSupported.js","sourceRoot":"","sources":["../../src/capabilities/isSyncOnboardingSupported.ts"],"names":[],"mappings":";;AAEA,8DAEC;AAJD,+CAAkD;AAElD,SAAgB,yBAAyB,CAAC,aAA4B;IACpE,OAAO,CAAC,uBAAa,CAAC,IAAI,EAAE,uBAAa,CAAC,MAAM,EAAE,uBAAa,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;AAChG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"APDU.d.ts","sourceRoot":"","sources":["../../../src/commands/entities/APDU.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"APDU.d.ts","sourceRoot":"","sources":["../../../src/commands/entities/APDU.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IAEjB,GAAG,EAAE,MAAM;IAEX,GAAG,EAAE,MAAM;IAEX,EAAE,EAAE,MAAM;IAEV,EAAE,EAAE,MAAM;IAEV,IAAI,EAAE,MAAM,GAAG,SAAS;CACzB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isAppStorageInfo =
|
|
3
|
+
exports.isAppStorageInfo = isAppStorageInfo;
|
|
4
4
|
function isAppStorageInfo(data) {
|
|
5
5
|
return (typeof data === "object" &&
|
|
6
6
|
data !== null &&
|
|
@@ -15,5 +15,4 @@ function isAppStorageInfo(data) {
|
|
|
15
15
|
"hash" in data &&
|
|
16
16
|
typeof data.hash === "string");
|
|
17
17
|
}
|
|
18
|
-
exports.isAppStorageInfo = isAppStorageInfo;
|
|
19
18
|
//# sourceMappingURL=AppStorageInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppStorageInfo.js","sourceRoot":"","sources":["../../../src/commands/entities/AppStorageInfo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppStorageInfo.js","sourceRoot":"","sources":["../../../src/commands/entities/AppStorageInfo.ts"],"names":[],"mappings":";;AAQA,4CAeC;AAfD,SAAgB,gBAAgB,CAAC,IAA8B;IAC7D,OAAO,CACL,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,MAAM,IAAI,IAAI;QACd,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ;QAC7B,aAAa,IAAI,IAAI;QACrB,OAAO,IAAI,CAAC,WAAW,KAAK,QAAQ;QACpC,aAAa,IAAI,IAAI;QACrB,OAAO,IAAI,CAAC,WAAW,KAAK,SAAS;QACrC,SAAS,IAAI,IAAI;QACjB,OAAO,IAAI,CAAC,OAAO,KAAK,SAAS;QACjC,MAAM,IAAI,IAAI;QACd,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAC9B,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FirmwareInfoEntity.d.ts","sourceRoot":"","sources":["../../../src/commands/entities/FirmwareInfoEntity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FirmwareInfoEntity.d.ts","sourceRoot":"","sources":["../../../src/commands/entities/FirmwareInfoEntity.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupAppStorage.d.ts","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/backupAppStorage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"backupAppStorage.d.ts","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/backupAppStorage.ts"],"names":[],"mappings":"AAAA,OAAO,SAAgD,MAAM,wBAAwB,CAAC;AA0CtF;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAY5E;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA2BlD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.backupAppStorage = backupAppStorage;
|
|
4
|
+
exports.parseResponse = parseResponse;
|
|
4
5
|
const hw_transport_1 = require("@ledgerhq/hw-transport");
|
|
5
6
|
const logs_1 = require("@ledgerhq/logs");
|
|
6
7
|
const errors_1 = require("../../../errors");
|
|
@@ -50,7 +51,6 @@ async function backupAppStorage(transport) {
|
|
|
50
51
|
const response = await transport.send(...apdu, RESPONSE_STATUS_SET);
|
|
51
52
|
return parseResponse(response);
|
|
52
53
|
}
|
|
53
|
-
exports.backupAppStorage = backupAppStorage;
|
|
54
54
|
/**
|
|
55
55
|
* Parses the response data buffer, check the status code and return the data.
|
|
56
56
|
*
|
|
@@ -83,5 +83,4 @@ function parseResponse(data) {
|
|
|
83
83
|
}
|
|
84
84
|
throw new hw_transport_1.TransportStatusError(status);
|
|
85
85
|
}
|
|
86
|
-
exports.parseResponse = parseResponse;
|
|
87
86
|
//# sourceMappingURL=backupAppStorage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupAppStorage.js","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/backupAppStorage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"backupAppStorage.js","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/backupAppStorage.ts"],"names":[],"mappings":";;AAiDA,4CAYC;AAQD,sCA2BC;AAhGD,yDAAsF;AACtF,yCAA6C;AAE7C,4CAMyB;AAEzB;;;;;;;GAOG;AACH,MAAM,kBAAkB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAE7D;;;;;;;;;GASG;AACH,MAAM,mBAAmB,GAAa;IACpC,0BAAW,CAAC,EAAE;IACd,0BAAW,CAAC,gCAAgC;IAC5C,0BAAW,CAAC,kBAAkB;IAC9B,0BAAW,CAAC,gCAAgC;IAC5C,0BAAW,CAAC,gCAAgC;IAC5C,0BAAW,CAAC,0BAA0B;IACtC,0BAAW,CAAC,uBAAuB;IACnC,0BAAW,CAAC,oBAAoB;CACjC,CAAC;AAEF;;;;;;GAMG;AACI,KAAK,UAAU,gBAAgB,CAAC,SAAoB;IACzD,MAAM,MAAM,GAAG,IAAI,kBAAW,CAAC,IAAI,EAAE;QACnC,SAAS,EAAE,SAAS,CAAC,eAAe,EAAE;QACtC,QA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C,CAAC;QAC9E,KAAK,0BAAW,CAAC,uBAAuB;YACtC,MAAM;QACR,KAAK,0BAAW,CAAC,oBAAoB;YACnC,MAAM,IAAI,2BAAkB,CAAC,iDAAiD,CAAC,CAAC;IACpF,CAAC;IAED,MAAM,IAAI,mCAAoB,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAppStorageInfo.d.ts","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/getAppStorageInfo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getAppStorageInfo.d.ts","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/getAppStorageInfo.ts"],"names":[],"mappings":"AAAA,OAAO,SAAgD,MAAM,wBAAwB,CAAC;AAEtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AA2BpE;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,cAAc,CAAC,CAczB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CA+C1D"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getAppStorageInfo = getAppStorageInfo;
|
|
4
|
+
exports.parseResponse = parseResponse;
|
|
4
5
|
const hw_transport_1 = require("@ledgerhq/hw-transport");
|
|
5
6
|
const logs_1 = require("@ledgerhq/logs");
|
|
6
7
|
const errors_1 = require("../../../errors");
|
|
@@ -44,7 +45,6 @@ async function getAppStorageInfo(transport, appName) {
|
|
|
44
45
|
const response = await transport.send(...apdu, RESPONSE_STATUS_SET);
|
|
45
46
|
return parseResponse(response);
|
|
46
47
|
}
|
|
47
|
-
exports.getAppStorageInfo = getAppStorageInfo;
|
|
48
48
|
/**
|
|
49
49
|
* Parses the response data from the device into a string.
|
|
50
50
|
*
|
|
@@ -94,5 +94,4 @@ function parseResponse(data) {
|
|
|
94
94
|
}
|
|
95
95
|
throw new hw_transport_1.TransportStatusError(status);
|
|
96
96
|
}
|
|
97
|
-
exports.parseResponse = parseResponse;
|
|
98
97
|
//# sourceMappingURL=getAppStorageInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAppStorageInfo.js","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/getAppStorageInfo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getAppStorageInfo.js","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/getAppStorageInfo.ts"],"names":[],"mappings":";;AAqCA,8CAiBC;AAQD,sCA+CC;AA7GD,yDAAsF;AACtF,yCAA6C;AAG7C,4CAAoE;AAEpE;;;;;;;GAOG;AACH,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAE/D;;;;;GAKG;AACH,MAAM,mBAAmB,GAAa;IACpC,0BAAW,CAAC,EAAE;IACd,0BAAW,CAAC,gCAAgC;IAC5C,0BAAW,CAAC,uBAAuB;IACnC,0BAAW,CAAC,uBAAuB;CACpC,CAAC;AAEF;;;;;;;GAOG;AACI,KAAK,UAAU,iBAAiB,CACrC,SAAoB,EACpB,OAAe;IAEf,MAAM,MAAM,GAAG,IAAI,kBAAW,CAAC,IAAI,EAAE;QACnC,SAAS,EAAE,SAAS,CAAC,eAAe,EAAE;QACtC,QAAQ,EAAE,mBAAmB;KAC9B,CAAC,CAAC;IACH,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAEtB,MAAM,MAAM,GAAW,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAErD,MAAM,IAAI,GAAmB,CAAC,GAAG,oBAAoB,EAAE,MAAM,CAAC,CA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AC,CAAC;YAC3C,MAAM,OAAO,GAAG,CAAC,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;YACvC,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW;YAE5E,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAC3D,CAAC;QACD,KAAK,0BAAW,CAAC,gCAAgC;YAC/C,MAAM,IAAI,oBAAW,CAAC,wBAAwB,CAAC,CAAC;QAClD,KAAK,0BAAW,CAAC,uBAAuB;YACtC,MAAM;QACR,KAAK,0BAAW,CAAC,uBAAuB;YACtC,MAAM,IAAI,6BAAoB,CAAC,qDAAqD,CAAC,CAAC;IAC1F,CAAC;IAED,MAAM,IAAI,mCAAoB,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restoreAppStorage.d.ts","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/restoreAppStorage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"restoreAppStorage.d.ts","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/restoreAppStorage.ts"],"names":[],"mappings":"AAAA,OAAO,SAAgD,MAAM,wBAAwB,CAAC;AA2CtF;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAY1F;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CA2BhD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.restoreAppStorage = restoreAppStorage;
|
|
4
|
+
exports.parseResponse = parseResponse;
|
|
4
5
|
const hw_transport_1 = require("@ledgerhq/hw-transport");
|
|
5
6
|
const logs_1 = require("@ledgerhq/logs");
|
|
6
7
|
const errors_1 = require("../../../errors");
|
|
@@ -50,7 +51,6 @@ async function restoreAppStorage(transport, chunk) {
|
|
|
50
51
|
const response = await transport.send(...apdu, RESPONSE_STATUS_SET);
|
|
51
52
|
parseResponse(response);
|
|
52
53
|
}
|
|
53
|
-
exports.restoreAppStorage = restoreAppStorage;
|
|
54
54
|
function parseResponse(data) {
|
|
55
55
|
const tracer = new logs_1.LocalTracer("hw", {
|
|
56
56
|
function: "parseResponse@restoreAppStorage",
|
|
@@ -77,5 +77,4 @@ function parseResponse(data) {
|
|
|
77
77
|
}
|
|
78
78
|
throw new hw_transport_1.TransportStatusError(status);
|
|
79
79
|
}
|
|
80
|
-
exports.parseResponse = parseResponse;
|
|
81
80
|
//# sourceMappingURL=restoreAppStorage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restoreAppStorage.js","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/restoreAppStorage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"restoreAppStorage.js","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/restoreAppStorage.ts"],"names":[],"mappings":";;AAkDA,8CAYC;AAED,sCA2BC;AA3FD,yDAAsF;AACtF,yCAA6C;AAE7C,4CAOyB;AAEzB;;;;;;;GAOG;AACH,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAE9D;;;;;;;;;GASG;AACH,MAAM,mBAAmB,GAAa;IACpC,0BAAW,CAAC,EAAE;IACd,0BAAW,CAAC,gCAAgC;IAC5C,0BAAW,CAAC,kBAAkB;IAC9B,0BAAW,CAAC,gCAAgC;IAC5C,0BAAW,CAAC,uBAAuB;IACnC,0BAAW,CAAC,qBAAqB;IACjC,0BAAW,CA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BAAqB;YACpC,MAAM,IAAI,4BAAmB,CAAC,mDAAmD,CAAC,CAAC;QACrF,KAAK,0BAAW,CAAC,oBAAoB;YACnC,MAAM,IAAI,2BAAkB,CAAC,uBAAuB,CAAC,CAAC;QACxD,KAAK,0BAAW,CAAC,qBAAqB;YACpC,MAAM,IAAI,4BAAmB,CAAC,kDAAkD,CAAC,CAAC;IACtF,CAAC;IAED,MAAM,IAAI,mCAAoB,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restoreAppStorageCommit.d.ts","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/restoreAppStorageCommit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"restoreAppStorageCommit.d.ts","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/restoreAppStorageCommit.ts"],"names":[],"mappings":"AAAA,OAAO,SAAgD,MAAM,wBAAwB,CAAC;AAqCtF;;;;;GAKG;AAEH,wBAAsB,uBAAuB,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAYjF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAuBhD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.restoreAppStorageCommit = restoreAppStorageCommit;
|
|
4
|
+
exports.parseResponse = parseResponse;
|
|
4
5
|
const hw_transport_1 = require("@ledgerhq/hw-transport");
|
|
5
6
|
const logs_1 = require("@ledgerhq/logs");
|
|
6
7
|
const errors_1 = require("../../../errors");
|
|
@@ -45,7 +46,6 @@ async function restoreAppStorageCommit(transport) {
|
|
|
45
46
|
const response = await transport.send(...apdu, RESPONSE_STATUS_SET);
|
|
46
47
|
parseResponse(response);
|
|
47
48
|
}
|
|
48
|
-
exports.restoreAppStorageCommit = restoreAppStorageCommit;
|
|
49
49
|
function parseResponse(data) {
|
|
50
50
|
const tracer = new logs_1.LocalTracer("hw", {
|
|
51
51
|
function: "parseResponse@restoreAppStorageCommit",
|
|
@@ -68,5 +68,4 @@ function parseResponse(data) {
|
|
|
68
68
|
}
|
|
69
69
|
throw new hw_transport_1.TransportStatusError(status);
|
|
70
70
|
}
|
|
71
|
-
exports.parseResponse = parseResponse;
|
|
72
71
|
//# sourceMappingURL=restoreAppStorageCommit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restoreAppStorageCommit.js","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/restoreAppStorageCommit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"restoreAppStorageCommit.js","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/restoreAppStorageCommit.ts"],"names":[],"mappings":";;AA4CA,0DAYC;AAED,sCAuBC;AAjFD,yDAAsF;AACtF,yCAA6C;AAE7C,4CAKyB;AAEzB;;;;;;;GAOG;AACH,MAAM,0BAA0B,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,mBAAmB,GAAa;IACpC,0BAAW,CAAC,EAAE;IACd,0BAAW,CAAC,gCAAgC;IAC5C,0BAAW,CAAC,kBAAkB;IAC9B,0BAAW,CAAC,gCAAgC;IAC5C,0BAAW,CAAC,uBAAuB;IACnC,0BAAW,CAAC,oBAAoB;CACjC,CAAC;AAEF;;;;;GAKG;AAEI,KAAK,UAAU,uBAAuB,CAAC,SAAoB;IAChE,MAAM,MAAM,GAAG,IAAI,kBAAW,CAAC,IAAI,EAAE;QACnC,SAAS,EAAE,SAAS,CAAC,eAAe,EAAE;QACtC,QAAQ,EAAE,yBAAyB;KACpC,CAAC,CAAC;IACH,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAEtB,MAAM,IAAI,GAAmB,CAAC,GAAG,0BAA0B,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IAE9E,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,mBAAmB,CAAC,CAAC;IAEpE,aAAa,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AAED,SAAgB,aAAa,CAAC,IAAY;IACxC,MAAM,MAAM,GAAG,IAAI,kBAAW,CAAC,IAAI,EAAE;QACnC,QAAQ,EAAE,uCAAuC;KAClD,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAClD,MAAM,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAE1D,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,0BAAW,CAAC,EAAE;YACjB,OAAO;QACT,KAAK,0BAAW,CAAC,gCAAgC;YAC/C,MAAM,IAAI,uBAAc,CAAC,8DAA8D,CAAC,CAAC;QAC3F,KAAK,0BAAW,CAAC,kBAAkB;YACjC,MAAM,IAAI,6BAAoB,CAAC,0CAA0C,CAAC,CAAC;QAC7E,KAAK,0BAAW,CAAC,gCAAgC;YAC/C,MAAM,IAAI,qCAA4B,CAAC,uCAAuC,CAAC,CAAC;QAClF,KAAK,0BAAW,CAAC,uBAAuB;YACtC,MAAM;QACR,KAAK,0BAAW,CAAC,oBAAoB;YACnC,MAAM,IAAI,2BAAkB,CAAC,2CAA2C,CAAC,CAAC;IAC9E,CAAC;IAED,MAAM,IAAI,mCAAoB,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restoreAppStorageInit.d.ts","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/restoreAppStorageInit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"restoreAppStorageInit.d.ts","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/restoreAppStorageInit.ts"],"names":[],"mappings":"AAAA,OAAO,SAAgD,MAAM,wBAAwB,CAAC;AA8CtF;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAgBf;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAyBhD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.restoreAppStorageInit = restoreAppStorageInit;
|
|
4
|
+
exports.parseResponse = parseResponse;
|
|
4
5
|
const hw_transport_1 = require("@ledgerhq/hw-transport");
|
|
5
6
|
const logs_1 = require("@ledgerhq/logs");
|
|
6
7
|
const errors_1 = require("../../../errors");
|
|
@@ -59,7 +60,6 @@ async function restoreAppStorageInit(transport, appName, backupSize) {
|
|
|
59
60
|
const response = await transport.send(...apdu, RESPONSE_STATUS_SET);
|
|
60
61
|
parseResponse(response);
|
|
61
62
|
}
|
|
62
|
-
exports.restoreAppStorageInit = restoreAppStorageInit;
|
|
63
63
|
function parseResponse(data) {
|
|
64
64
|
const tracer = new logs_1.LocalTracer("hw", {
|
|
65
65
|
function: "parseResponse@restoreAppStorageInit",
|
|
@@ -84,5 +84,4 @@ function parseResponse(data) {
|
|
|
84
84
|
}
|
|
85
85
|
throw new hw_transport_1.TransportStatusError(status);
|
|
86
86
|
}
|
|
87
|
-
exports.parseResponse = parseResponse;
|
|
88
87
|
//# sourceMappingURL=restoreAppStorageInit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restoreAppStorageInit.js","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/restoreAppStorageInit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"restoreAppStorageInit.js","sourceRoot":"","sources":["../../../../src/commands/use-cases/app-backup/restoreAppStorageInit.ts"],"names":[],"mappings":";;AAsDA,sDAoBC;AAED,sCAyBC;AArGD,yDAAsF;AACtF,yCAA6C;AAE7C,4CAMyB;AAEzB;;;;;;;;;;;;;GAaG;AACH,MAAM,wBAAwB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAEnE;;;;;;;;GAQG;AACH,MAAM,mBAAmB,GAAa;IACpC,0BAAW,CAAC,EAAE;IACd,0BAAW,CAAC,gCAAgC;IAC5C,0BAAW,CAAC,uBAAuB;IACnC,0BAAW,CAAC,sBAAsB;IAClC,0BAAW,CAAC,WAAW;IACvB,0BAAW,CAAC,uBAAuB;IACnC,0BAAW,CAAC,qBAAqB;CAClC,CAAC;AAEF;;;;;;;GAOG;AACI,KAAK,UAAU,qBAAqB,CACzC,SAAoB,EACpB,OAAe,EACf,UAAkB;IAElB,MAAM,MAAM,GAAG,IAAI,kBAAW,CAAC,IAAI,EAAE;QACnC,SAAS,EAAE,SAAS,CAAC,eAAe,EAAE;QACtC,QAAQ,EAAE,uBAAuB;KAClC,CAAC,CAAC;IACH,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAEtB,MAAM,MAAM,GAAW,MAAM,CAAC,MAAM,CAAC;QACnC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,EAAE,aAAa;QAC3E,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,WAAW;KAC3C,CAAC,CAAC;IACH,MAAM,IAAI,GAAmB,CAAC,GAAG,wBAAwB,EAAE,MAAM,CAAC,CAAC;IAEnE,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,mBAAmB,CAAC,CAAC;IAEpE,aAAa,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AAED,SAAgB,aAAa,CAAC,IAAY;IACxC,MAAM,MAAM,GAAG,IAAI,kBAAW,CAAC,IAAI,EAAE;QACnC,QAAQ,EAAE,qCAAqC;KAChD,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAClD,MAAM,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAE1D,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,0BAAW,CAAC,EAAE;YACjB,OAAO;QACT,KAAK,0BAAW,CAAC,gCAAgC;YAC/C,MAAM,IAAI,oBAAW,CAAC,wBAAwB,CAAC,CAAC;QAClD,KAAK,0BAAW,CAAC,uBAAuB;YACtC,MAAM;QACR,KAAK,0BAAW,CAAC,sBAAsB;YACrC,MAAM,IAAI,4BAAmB,CAAC,yBAAyB,CAAC,CAAC;QAC3D,KAAK,0BAAW,CAAC,WAAW;YAC1B,MAAM,IAAI,kBAAS,CAAC,kCAAkC,CAAC,CAAC;QAC1D,KAAK,0BAAW,CAAC,uBAAuB;YACtC,MAAM,IAAI,6BAAoB,CAAC,qDAAqD,CAAC,CAAC;QACxF,KAAK,0BAAW,CAAC,qBAAqB;YACpC,MAAM,IAAI,4BAAmB,CAAC,wBAAwB,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,IAAI,mCAAoB,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reinstallConfigurationConsent.d.ts","sourceRoot":"","sources":["../../../../src/commands/use-cases/consent/reinstallConfigurationConsent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reinstallConfigurationConsent.d.ts","sourceRoot":"","sources":["../../../../src/commands/use-cases/consent/reinstallConfigurationConsent.ts"],"names":[],"mappings":"AAAA,OAAO,SAAgD,MAAM,wBAAwB,CAAC;AAItF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAuBhF;;;;;;GAMG;AACH,wBAAsB,6BAA6B,CACjD,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,IAAI,CAAC,CAYf;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAiBhD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.reinstallConfigurationConsent = reinstallConfigurationConsent;
|
|
4
|
+
exports.parseResponse = parseResponse;
|
|
4
5
|
const hw_transport_1 = require("@ledgerhq/hw-transport");
|
|
5
6
|
const logs_1 = require("@ledgerhq/logs");
|
|
6
7
|
const errors_1 = require("@ledgerhq/errors");
|
|
@@ -40,7 +41,6 @@ async function reinstallConfigurationConsent(transport, args) {
|
|
|
40
41
|
const response = await transport.send(...apdu, RESPONSE_STATUS_SET);
|
|
41
42
|
return parseResponse(response);
|
|
42
43
|
}
|
|
43
|
-
exports.reinstallConfigurationConsent = reinstallConfigurationConsent;
|
|
44
44
|
/**
|
|
45
45
|
* Parses the response data buffer, check the status code and return the data.
|
|
46
46
|
*
|
|
@@ -64,5 +64,4 @@ function parseResponse(data) {
|
|
|
64
64
|
throw new hw_transport_1.TransportStatusError(status);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
exports.parseResponse = parseResponse;
|
|
68
67
|
//# sourceMappingURL=reinstallConfigurationConsent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reinstallConfigurationConsent.js","sourceRoot":"","sources":["../../../../src/commands/use-cases/consent/reinstallConfigurationConsent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reinstallConfigurationCon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M,EAAE,CAAC;QACf,KAAK,0BAAW,CAAC,EAAE;YACjB,OAAO;QACT,KAAK,0BAAW,CAAC,sBAAsB;YACrC,MAAM,IAAI,4BAAmB,CAAC,wBAAwB,CAAC,CAAC;QAC1D,KAAK,0BAAW,CAAC,WAAW;YAC1B,MAAM,IAAI,kBAAS,CAAC,aAAa,CAAC,CAAC;QACrC;YACE,MAAM,IAAI,mCAAoB,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDeviceName =
|
|
3
|
+
exports.getDeviceName = getDeviceName;
|
|
4
4
|
const hw_transport_1 = require("@ledgerhq/hw-transport");
|
|
5
5
|
const logs_1 = require("@ledgerhq/logs");
|
|
6
6
|
const parseGetDeviceNameResponse_1 = require("./parseGetDeviceNameResponse");
|
|
@@ -33,5 +33,4 @@ async function getDeviceName(transport) {
|
|
|
33
33
|
]);
|
|
34
34
|
return (0, parseGetDeviceNameResponse_1.parseGetDeviceNameResponse)(res);
|
|
35
35
|
}
|
|
36
|
-
exports.getDeviceName = getDeviceName;
|
|
37
36
|
//# sourceMappingURL=getDeviceName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDeviceName.js","sourceRoot":"","sources":["../../../src/commands/use-cases/getDeviceName.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDeviceName.js","sourceRoot":"","sources":["../../../src/commands/use-cases/getDeviceName.ts"],"names":[],"mappings":";;AAeA,sCAsBC;AArCD,yDAAgE;AAChE,yCAA6C;AAE7C,6EAA0E;AAE1E;;;;;GAKG;AACH,MAAM,aAAa,GAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;AAEhE,MAAM,oBAAoB,GAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;AAEtE,KAAK,UAAU,aAAa,CAAC,SAAoB;IACtD,MAAM,MAAM,GAAG,IAAI,kBAAW,CAAC,IAAI,EAAE;QACnC,SAAS,EAAE,SAAS,CAAC,eAAe,EAAE;QACtC,QAAQ,EAAE,eAAe;KAC1B,CAAC,CAAC;IACH,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAEtB,IAAI,CAAC;QACH,6CAA6C;QAC7C,MAAM,SAAS,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;IACzC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,KAAK,CAAC,wBAAwB,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3D,CAAC;IACD,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAEzC,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,GAAG,oBAAoB,EAAE;QACxD,0BAAW,CAAC,EAAE;QACd,0BAAW,CAAC,oBAAoB;QAChC,0BAAW,CAAC,sBAAsB;KACnC,CAAC,CAAC;IAEH,OAAO,IAAA,uDAA0B,EAAC,GAAG,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GET_VERSION_APDU = void 0;
|
|
4
|
+
exports.getVersion = getVersion;
|
|
4
5
|
const parseGetVersionResponse_1 = require("./parseGetVersionResponse");
|
|
5
6
|
exports.GET_VERSION_APDU = [0xe0, 0x01, 0x00, 0x00, undefined];
|
|
6
7
|
/**
|
|
@@ -16,5 +17,4 @@ async function getVersion(transport, { abortTimeoutMs } = {}) {
|
|
|
16
17
|
});
|
|
17
18
|
return (0, parseGetVersionResponse_1.parseGetVersionResponse)(res);
|
|
18
19
|
}
|
|
19
|
-
exports.getVersion = getVersion;
|
|
20
20
|
//# sourceMappingURL=getVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getVersion.js","sourceRoot":"","sources":["../../../src/commands/use-cases/getVersion.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getVersion.js","sourceRoot":"","sources":["../../../src/commands/use-cases/getVersion.ts"],"names":[],"mappings":";;;AAcA,gCASC;AApBD,uEAAoE;AAEvD,QAAA,gBAAgB,GAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;AAE1E;;;;;;GAMG;AACI,KAAK,UAAU,UAAU,CAC9B,SAAoB,EACpB,EAAE,cAAc,KAAkC,EAAE;IAEpD,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,GAAG,wBAAgB,EAAE,SAAS,EAAE;QAC/D,cAAc;KACf,CAAC,CAAC;IAEH,OAAO,IAAA,iDAAuB,EAAC,GAAG,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isBootloaderVersionSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isBootloaderVersionSupported.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAYlD;;;IAGI;AAEJ,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"isBootloaderVersionSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isBootloaderVersionSupported.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAYlD;;;IAGI;AAEJ,eAAO,MAAM,4BAA4B,GAAI,WAAW,MAAM,EAAE,UAAU,aAAa,KAAG,OAMvF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isCharonSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isCharonSupported.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAS5D,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"isCharonSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isCharonSupported.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAS5D,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,EAAE,UAAU,aAAa,KAAG,OAS9E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDeviceLocalizationSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isDeviceLocalizationSupported.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAWlD,eAAO,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"isDeviceLocalizationSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isDeviceLocalizationSupported.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAWlD,eAAO,MAAM,6BAA6B,GACxC,WAAW,MAAM,EACjB,UAAU,aAAa,KACtB,OAMA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isHardwareVersionSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isHardwareVersionSupported.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAOlD;;;KAGK;AAEL,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"isHardwareVersionSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isHardwareVersionSupported.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAOlD;;;KAGK;AAEL,eAAO,MAAM,0BAA0B,GAAI,WAAW,MAAM,EAAE,UAAU,aAAa,KAAG,OAMrF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isRecoverSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isRecoverSupported.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAWlD,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"isRecoverSupported.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/isRecoverSupported.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAWlD,eAAO,MAAM,kBAAkB,GAAI,WAAW,MAAM,EAAE,UAAU,aAAa,KAAG,OAM7E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseGetDeviceNameResponse.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/parseGetDeviceNameResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parseGetDeviceNameResponse.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/parseGetDeviceNameResponse.ts"],"names":[],"mappings":"AAGA,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAgBnE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseGetDeviceNameResponse =
|
|
3
|
+
exports.parseGetDeviceNameResponse = parseGetDeviceNameResponse;
|
|
4
4
|
const hw_transport_1 = require("@ledgerhq/hw-transport");
|
|
5
5
|
const logs_1 = require("@ledgerhq/logs");
|
|
6
6
|
function parseGetDeviceNameResponse(response) {
|
|
@@ -19,5 +19,4 @@ function parseGetDeviceNameResponse(response) {
|
|
|
19
19
|
}
|
|
20
20
|
throw new hw_transport_1.TransportStatusError(status);
|
|
21
21
|
}
|
|
22
|
-
exports.parseGetDeviceNameResponse = parseGetDeviceNameResponse;
|
|
23
22
|
//# sourceMappingURL=parseGetDeviceNameResponse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseGetDeviceNameResponse.js","sourceRoot":"","sources":["../../../src/commands/use-cases/parseGetDeviceNameResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parseGetDeviceNameResponse.js","sourceRoot":"","sources":["../../../src/commands/use-cases/parseGetDeviceNameResponse.ts"],"names":[],"mappings":";;AAGA,gEAgBC;AAnBD,yDAA2E;AAC3E,yCAA6C;AAE7C,SAAgB,0BAA0B,CAAC,QAAgB;IACzD,MAAM,MAAM,GAAG,IAAI,kBAAW,CAAC,IAAI,EAAE;QACnC,QAAQ,EAAE,4BAA4B;KACvC,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC1D,IAAI,MAAM;QAAE,MAAM,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAEtE,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,0BAAW,CAAC,EAAE;YACjB,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAClE,KAAK,0BAAW,CAAC,oBAAoB,CAAC;QACtC,KAAK,0BAAW,CAAC,sBAAsB;YACrC,OAAO,EAAE,CAAC;IACd,CAAC;IAED,MAAM,IAAI,mCAAoB,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
import { FirmwareInfoEntity } from "../entities/FirmwareInfoEntity";
|
|
4
2
|
export declare function parseGetVersionResponse(response: Buffer): FirmwareInfoEntity;
|
|
5
3
|
//# sourceMappingURL=parseGetVersionResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseGetVersionResponse.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/parseGetVersionResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parseGetVersionResponse.d.ts","sourceRoot":"","sources":["../../../src/commands/use-cases/parseGetVersionResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAOpE,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,CAmI5E"}
|