@ledgerhq/errors 6.2.0-bsc.4 → 6.10.0
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/README.md +7 -7
- package/lib/helpers.js +1 -1
- package/lib/helpers.js.map +1 -1
- package/lib/index.js +96 -96
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,10 +10,10 @@ Hodl all possible errors of Ledger (live, ledgerjs) so we can deal with them in
|
|
|
10
10
|
|
|
11
11
|
#### Table of Contents
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
* [TransportError](#transporterror)
|
|
14
|
+
* [Parameters](#parameters)
|
|
15
|
+
* [TransportStatusError](#transportstatuserror)
|
|
16
|
+
* [Parameters](#parameters-1)
|
|
17
17
|
|
|
18
18
|
### TransportError
|
|
19
19
|
|
|
@@ -22,8 +22,8 @@ e.g. Error thrown when data received by exchanges are incorrect or if exchanged
|
|
|
22
22
|
|
|
23
23
|
#### Parameters
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
* `message` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
26
|
+
* `id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
27
27
|
|
|
28
28
|
Returns **void**
|
|
29
29
|
|
|
@@ -34,6 +34,6 @@ the error.statusCode is one of the `StatusCodes` exported by this library.
|
|
|
34
34
|
|
|
35
35
|
#### Parameters
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
* `statusCode` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)**
|
|
38
38
|
|
|
39
39
|
Returns **void**
|
package/lib/helpers.js
CHANGED
|
@@ -58,7 +58,7 @@ var deserializeError = function (object) {
|
|
|
58
58
|
var constructor = name_1 === "Error" ? Error : errorClasses[name_1];
|
|
59
59
|
if (!constructor) {
|
|
60
60
|
console.warn("deserializing an unknown class '" + name_1 + "'");
|
|
61
|
-
constructor = exports.createCustomErrorClass(name_1);
|
|
61
|
+
constructor = (0, exports.createCustomErrorClass)(name_1);
|
|
62
62
|
}
|
|
63
63
|
error = Object.create(constructor.prototype);
|
|
64
64
|
try {
|
package/lib/helpers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,mCAAmC;AACnC,sCAAsC;AACtC,0CAA0C;;;;;;;;;;;;;;AAE1C,IAAM,YAAY,GAAG,EAAE,CAAC;AACxB,IAAM,aAAa,GAAG,EAAE,CAAC;AAElB,IAAM,0BAA0B,GAAG,UACxC,IAAY,EACZ,YAA+B;IAE/B,aAAa,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC;AACrC,CAAC,CAAC;AALW,QAAA,0BAA0B,8BAKrC;AAOK,IAAM,sBAAsB,GAAG,UAAC,IAAY;IACjD,IAAM,CAAC,GAAoB,SAAS,WAAW,CAAC,OAAO,EAAE,MAAM;QAC7D,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,IAAI,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC;IACjC,CAAC,CAAC;IACF,CAAC,CAAC,SAAS,GAAG,IAAI,KAAK,EAAE,CAAC;IAC1B,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvB,OAAO,CAAC,CAAC;AACX,CAAC,CAAC;AAVW,QAAA,sBAAsB,0BAUjC;AAEF,yEAAyE;AAClE,IAAM,gBAAgB,GAAG,UAAC,MAAW;IAC1C,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,EAAE;QACxC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GAAO,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;QAChB,KAAkB,IAAA,KAAA,SAAA,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,gBAAA,4BAAE;YAAhC,IAAM,GAAG,WAAA;YACZ,IAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YACxB,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE;gBAC/B,SAAS;aACV;YACD,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBACvC,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;gBAChB,SAAS;aACV;YACD,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE;gBAClC,EAAE,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;gBACpD,SAAS;aACV;YACD,EAAE,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC;SACxB;;;;;;;;;IACD,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;QACjC,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;KACrB;IACD,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE;QACpC,EAAE,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;KAC3B;IACD,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE;QAClC,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;KACvB;IACD,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -8,101 +8,101 @@ exports.serializeError = helpers_1.serializeError;
|
|
|
8
8
|
exports.deserializeError = helpers_1.deserializeError;
|
|
9
9
|
exports.createCustomErrorClass = helpers_1.createCustomErrorClass;
|
|
10
10
|
exports.addCustomErrorDeserializer = helpers_1.addCustomErrorDeserializer;
|
|
11
|
-
exports.AccountNameRequiredError = helpers_1.createCustomErrorClass("AccountNameRequired");
|
|
12
|
-
exports.AccountNotSupported = helpers_1.createCustomErrorClass("AccountNotSupported");
|
|
13
|
-
exports.AmountRequired = helpers_1.createCustomErrorClass("AmountRequired");
|
|
14
|
-
exports.BluetoothRequired = helpers_1.createCustomErrorClass("BluetoothRequired");
|
|
15
|
-
exports.BtcUnmatchedApp = helpers_1.createCustomErrorClass("BtcUnmatchedApp");
|
|
16
|
-
exports.CantOpenDevice = helpers_1.createCustomErrorClass("CantOpenDevice");
|
|
17
|
-
exports.CashAddrNotSupported = helpers_1.createCustomErrorClass("CashAddrNotSupported");
|
|
18
|
-
exports.CurrencyNotSupported = helpers_1.createCustomErrorClass("CurrencyNotSupported");
|
|
19
|
-
exports.DeviceAppVerifyNotSupported = helpers_1.createCustomErrorClass("DeviceAppVerifyNotSupported");
|
|
20
|
-
exports.DeviceGenuineSocketEarlyClose = helpers_1.createCustomErrorClass("DeviceGenuineSocketEarlyClose");
|
|
21
|
-
exports.DeviceNotGenuineError = helpers_1.createCustomErrorClass("DeviceNotGenuine");
|
|
22
|
-
exports.DeviceOnDashboardExpected = helpers_1.createCustomErrorClass("DeviceOnDashboardExpected");
|
|
23
|
-
exports.DeviceOnDashboardUnexpected = helpers_1.createCustomErrorClass("DeviceOnDashboardUnexpected");
|
|
24
|
-
exports.DeviceInOSUExpected = helpers_1.createCustomErrorClass("DeviceInOSUExpected");
|
|
25
|
-
exports.DeviceHalted = helpers_1.createCustomErrorClass("DeviceHalted");
|
|
26
|
-
exports.DeviceNameInvalid = helpers_1.createCustomErrorClass("DeviceNameInvalid");
|
|
27
|
-
exports.DeviceSocketFail = helpers_1.createCustomErrorClass("DeviceSocketFail");
|
|
28
|
-
exports.DeviceSocketNoBulkStatus = helpers_1.createCustomErrorClass("DeviceSocketNoBulkStatus");
|
|
29
|
-
exports.DisconnectedDevice = helpers_1.createCustomErrorClass("DisconnectedDevice");
|
|
30
|
-
exports.DisconnectedDeviceDuringOperation = helpers_1.createCustomErrorClass("DisconnectedDeviceDuringOperation");
|
|
31
|
-
exports.EnpointConfigError = helpers_1.createCustomErrorClass("EnpointConfig");
|
|
32
|
-
exports.EthAppPleaseEnableContractData = helpers_1.createCustomErrorClass("EthAppPleaseEnableContractData");
|
|
33
|
-
exports.FeeEstimationFailed = helpers_1.createCustomErrorClass("FeeEstimationFailed");
|
|
34
|
-
exports.FirmwareNotRecognized = helpers_1.createCustomErrorClass("FirmwareNotRecognized");
|
|
35
|
-
exports.HardResetFail = helpers_1.createCustomErrorClass("HardResetFail");
|
|
36
|
-
exports.InvalidXRPTag = helpers_1.createCustomErrorClass("InvalidXRPTag");
|
|
37
|
-
exports.InvalidAddress = helpers_1.createCustomErrorClass("InvalidAddress");
|
|
38
|
-
exports.InvalidAddressBecauseDestinationIsAlsoSource = helpers_1.createCustomErrorClass("InvalidAddressBecauseDestinationIsAlsoSource");
|
|
39
|
-
exports.LatestMCUInstalledError = helpers_1.createCustomErrorClass("LatestMCUInstalledError");
|
|
40
|
-
exports.UnknownMCU = helpers_1.createCustomErrorClass("UnknownMCU");
|
|
41
|
-
exports.LedgerAPIError = helpers_1.createCustomErrorClass("LedgerAPIError");
|
|
42
|
-
exports.LedgerAPIErrorWithMessage = helpers_1.createCustomErrorClass("LedgerAPIErrorWithMessage");
|
|
43
|
-
exports.LedgerAPINotAvailable = helpers_1.createCustomErrorClass("LedgerAPINotAvailable");
|
|
44
|
-
exports.ManagerAppAlreadyInstalledError = helpers_1.createCustomErrorClass("ManagerAppAlreadyInstalled");
|
|
45
|
-
exports.ManagerAppRelyOnBTCError = helpers_1.createCustomErrorClass("ManagerAppRelyOnBTC");
|
|
46
|
-
exports.ManagerAppDepInstallRequired = helpers_1.createCustomErrorClass("ManagerAppDepInstallRequired");
|
|
47
|
-
exports.ManagerAppDepUninstallRequired = helpers_1.createCustomErrorClass("ManagerAppDepUninstallRequired");
|
|
48
|
-
exports.ManagerDeviceLockedError = helpers_1.createCustomErrorClass("ManagerDeviceLocked");
|
|
49
|
-
exports.ManagerFirmwareNotEnoughSpaceError = helpers_1.createCustomErrorClass("ManagerFirmwareNotEnoughSpace");
|
|
50
|
-
exports.ManagerNotEnoughSpaceError = helpers_1.createCustomErrorClass("ManagerNotEnoughSpace");
|
|
51
|
-
exports.ManagerUninstallBTCDep = helpers_1.createCustomErrorClass("ManagerUninstallBTCDep");
|
|
52
|
-
exports.NetworkDown = helpers_1.createCustomErrorClass("NetworkDown");
|
|
53
|
-
exports.NoAddressesFound = helpers_1.createCustomErrorClass("NoAddressesFound");
|
|
54
|
-
exports.NotEnoughBalance = helpers_1.createCustomErrorClass("NotEnoughBalance");
|
|
55
|
-
exports.NotEnoughBalanceToDelegate = helpers_1.createCustomErrorClass("NotEnoughBalanceToDelegate");
|
|
56
|
-
exports.NotEnoughBalanceInParentAccount = helpers_1.createCustomErrorClass("NotEnoughBalanceInParentAccount");
|
|
57
|
-
exports.NotEnoughSpendableBalance = helpers_1.createCustomErrorClass("NotEnoughSpendableBalance");
|
|
58
|
-
exports.NotEnoughBalanceBecauseDestinationNotCreated = helpers_1.createCustomErrorClass("NotEnoughBalanceBecauseDestinationNotCreated");
|
|
59
|
-
exports.NoAccessToCamera = helpers_1.createCustomErrorClass("NoAccessToCamera");
|
|
60
|
-
exports.NotEnoughGas = helpers_1.createCustomErrorClass("NotEnoughGas");
|
|
61
|
-
exports.NotSupportedLegacyAddress = helpers_1.createCustomErrorClass("NotSupportedLegacyAddress");
|
|
62
|
-
exports.GasLessThanEstimate = helpers_1.createCustomErrorClass("GasLessThanEstimate");
|
|
63
|
-
exports.PasswordsDontMatchError = helpers_1.createCustomErrorClass("PasswordsDontMatch");
|
|
64
|
-
exports.PasswordIncorrectError = helpers_1.createCustomErrorClass("PasswordIncorrect");
|
|
65
|
-
exports.RecommendSubAccountsToEmpty = helpers_1.createCustomErrorClass("RecommendSubAccountsToEmpty");
|
|
66
|
-
exports.RecommendUndelegation = helpers_1.createCustomErrorClass("RecommendUndelegation");
|
|
67
|
-
exports.TimeoutTagged = helpers_1.createCustomErrorClass("TimeoutTagged");
|
|
68
|
-
exports.UnexpectedBootloader = helpers_1.createCustomErrorClass("UnexpectedBootloader");
|
|
69
|
-
exports.MCUNotGenuineToDashboard = helpers_1.createCustomErrorClass("MCUNotGenuineToDashboard");
|
|
70
|
-
exports.RecipientRequired = helpers_1.createCustomErrorClass("RecipientRequired");
|
|
71
|
-
exports.UnavailableTezosOriginatedAccountReceive = helpers_1.createCustomErrorClass("UnavailableTezosOriginatedAccountReceive");
|
|
72
|
-
exports.UnavailableTezosOriginatedAccountSend = helpers_1.createCustomErrorClass("UnavailableTezosOriginatedAccountSend");
|
|
73
|
-
exports.UpdateFetchFileFail = helpers_1.createCustomErrorClass("UpdateFetchFileFail");
|
|
74
|
-
exports.UpdateIncorrectHash = helpers_1.createCustomErrorClass("UpdateIncorrectHash");
|
|
75
|
-
exports.UpdateIncorrectSig = helpers_1.createCustomErrorClass("UpdateIncorrectSig");
|
|
76
|
-
exports.UpdateYourApp = helpers_1.createCustomErrorClass("UpdateYourApp");
|
|
77
|
-
exports.UserRefusedDeviceNameChange = helpers_1.createCustomErrorClass("UserRefusedDeviceNameChange");
|
|
78
|
-
exports.UserRefusedAddress = helpers_1.createCustomErrorClass("UserRefusedAddress");
|
|
79
|
-
exports.UserRefusedFirmwareUpdate = helpers_1.createCustomErrorClass("UserRefusedFirmwareUpdate");
|
|
80
|
-
exports.UserRefusedAllowManager = helpers_1.createCustomErrorClass("UserRefusedAllowManager");
|
|
81
|
-
exports.UserRefusedOnDevice = helpers_1.createCustomErrorClass("UserRefusedOnDevice"); // TODO rename because it's just for transaction refusal
|
|
82
|
-
exports.TransportOpenUserCancelled = helpers_1.createCustomErrorClass("TransportOpenUserCancelled");
|
|
83
|
-
exports.TransportInterfaceNotAvailable = helpers_1.createCustomErrorClass("TransportInterfaceNotAvailable");
|
|
84
|
-
exports.TransportRaceCondition = helpers_1.createCustomErrorClass("TransportRaceCondition");
|
|
85
|
-
exports.TransportWebUSBGestureRequired = helpers_1.createCustomErrorClass("TransportWebUSBGestureRequired");
|
|
86
|
-
exports.DeviceShouldStayInApp = helpers_1.createCustomErrorClass("DeviceShouldStayInApp");
|
|
87
|
-
exports.WebsocketConnectionError = helpers_1.createCustomErrorClass("WebsocketConnectionError");
|
|
88
|
-
exports.WebsocketConnectionFailed = helpers_1.createCustomErrorClass("WebsocketConnectionFailed");
|
|
89
|
-
exports.WrongDeviceForAccount = helpers_1.createCustomErrorClass("WrongDeviceForAccount");
|
|
90
|
-
exports.WrongAppForCurrency = helpers_1.createCustomErrorClass("WrongAppForCurrency");
|
|
91
|
-
exports.ETHAddressNonEIP = helpers_1.createCustomErrorClass("ETHAddressNonEIP");
|
|
92
|
-
exports.CantScanQRCode = helpers_1.createCustomErrorClass("CantScanQRCode");
|
|
93
|
-
exports.FeeNotLoaded = helpers_1.createCustomErrorClass("FeeNotLoaded");
|
|
94
|
-
exports.FeeRequired = helpers_1.createCustomErrorClass("FeeRequired");
|
|
95
|
-
exports.FeeTooHigh = helpers_1.createCustomErrorClass("FeeTooHigh");
|
|
96
|
-
exports.SyncError = helpers_1.createCustomErrorClass("SyncError");
|
|
97
|
-
exports.PairingFailed = helpers_1.createCustomErrorClass("PairingFailed");
|
|
98
|
-
exports.GenuineCheckFailed = helpers_1.createCustomErrorClass("GenuineCheckFailed");
|
|
99
|
-
exports.LedgerAPI4xx = helpers_1.createCustomErrorClass("LedgerAPI4xx");
|
|
100
|
-
exports.LedgerAPI5xx = helpers_1.createCustomErrorClass("LedgerAPI5xx");
|
|
101
|
-
exports.FirmwareOrAppUpdateRequired = helpers_1.createCustomErrorClass("FirmwareOrAppUpdateRequired");
|
|
11
|
+
exports.AccountNameRequiredError = (0, helpers_1.createCustomErrorClass)("AccountNameRequired");
|
|
12
|
+
exports.AccountNotSupported = (0, helpers_1.createCustomErrorClass)("AccountNotSupported");
|
|
13
|
+
exports.AmountRequired = (0, helpers_1.createCustomErrorClass)("AmountRequired");
|
|
14
|
+
exports.BluetoothRequired = (0, helpers_1.createCustomErrorClass)("BluetoothRequired");
|
|
15
|
+
exports.BtcUnmatchedApp = (0, helpers_1.createCustomErrorClass)("BtcUnmatchedApp");
|
|
16
|
+
exports.CantOpenDevice = (0, helpers_1.createCustomErrorClass)("CantOpenDevice");
|
|
17
|
+
exports.CashAddrNotSupported = (0, helpers_1.createCustomErrorClass)("CashAddrNotSupported");
|
|
18
|
+
exports.CurrencyNotSupported = (0, helpers_1.createCustomErrorClass)("CurrencyNotSupported");
|
|
19
|
+
exports.DeviceAppVerifyNotSupported = (0, helpers_1.createCustomErrorClass)("DeviceAppVerifyNotSupported");
|
|
20
|
+
exports.DeviceGenuineSocketEarlyClose = (0, helpers_1.createCustomErrorClass)("DeviceGenuineSocketEarlyClose");
|
|
21
|
+
exports.DeviceNotGenuineError = (0, helpers_1.createCustomErrorClass)("DeviceNotGenuine");
|
|
22
|
+
exports.DeviceOnDashboardExpected = (0, helpers_1.createCustomErrorClass)("DeviceOnDashboardExpected");
|
|
23
|
+
exports.DeviceOnDashboardUnexpected = (0, helpers_1.createCustomErrorClass)("DeviceOnDashboardUnexpected");
|
|
24
|
+
exports.DeviceInOSUExpected = (0, helpers_1.createCustomErrorClass)("DeviceInOSUExpected");
|
|
25
|
+
exports.DeviceHalted = (0, helpers_1.createCustomErrorClass)("DeviceHalted");
|
|
26
|
+
exports.DeviceNameInvalid = (0, helpers_1.createCustomErrorClass)("DeviceNameInvalid");
|
|
27
|
+
exports.DeviceSocketFail = (0, helpers_1.createCustomErrorClass)("DeviceSocketFail");
|
|
28
|
+
exports.DeviceSocketNoBulkStatus = (0, helpers_1.createCustomErrorClass)("DeviceSocketNoBulkStatus");
|
|
29
|
+
exports.DisconnectedDevice = (0, helpers_1.createCustomErrorClass)("DisconnectedDevice");
|
|
30
|
+
exports.DisconnectedDeviceDuringOperation = (0, helpers_1.createCustomErrorClass)("DisconnectedDeviceDuringOperation");
|
|
31
|
+
exports.EnpointConfigError = (0, helpers_1.createCustomErrorClass)("EnpointConfig");
|
|
32
|
+
exports.EthAppPleaseEnableContractData = (0, helpers_1.createCustomErrorClass)("EthAppPleaseEnableContractData");
|
|
33
|
+
exports.FeeEstimationFailed = (0, helpers_1.createCustomErrorClass)("FeeEstimationFailed");
|
|
34
|
+
exports.FirmwareNotRecognized = (0, helpers_1.createCustomErrorClass)("FirmwareNotRecognized");
|
|
35
|
+
exports.HardResetFail = (0, helpers_1.createCustomErrorClass)("HardResetFail");
|
|
36
|
+
exports.InvalidXRPTag = (0, helpers_1.createCustomErrorClass)("InvalidXRPTag");
|
|
37
|
+
exports.InvalidAddress = (0, helpers_1.createCustomErrorClass)("InvalidAddress");
|
|
38
|
+
exports.InvalidAddressBecauseDestinationIsAlsoSource = (0, helpers_1.createCustomErrorClass)("InvalidAddressBecauseDestinationIsAlsoSource");
|
|
39
|
+
exports.LatestMCUInstalledError = (0, helpers_1.createCustomErrorClass)("LatestMCUInstalledError");
|
|
40
|
+
exports.UnknownMCU = (0, helpers_1.createCustomErrorClass)("UnknownMCU");
|
|
41
|
+
exports.LedgerAPIError = (0, helpers_1.createCustomErrorClass)("LedgerAPIError");
|
|
42
|
+
exports.LedgerAPIErrorWithMessage = (0, helpers_1.createCustomErrorClass)("LedgerAPIErrorWithMessage");
|
|
43
|
+
exports.LedgerAPINotAvailable = (0, helpers_1.createCustomErrorClass)("LedgerAPINotAvailable");
|
|
44
|
+
exports.ManagerAppAlreadyInstalledError = (0, helpers_1.createCustomErrorClass)("ManagerAppAlreadyInstalled");
|
|
45
|
+
exports.ManagerAppRelyOnBTCError = (0, helpers_1.createCustomErrorClass)("ManagerAppRelyOnBTC");
|
|
46
|
+
exports.ManagerAppDepInstallRequired = (0, helpers_1.createCustomErrorClass)("ManagerAppDepInstallRequired");
|
|
47
|
+
exports.ManagerAppDepUninstallRequired = (0, helpers_1.createCustomErrorClass)("ManagerAppDepUninstallRequired");
|
|
48
|
+
exports.ManagerDeviceLockedError = (0, helpers_1.createCustomErrorClass)("ManagerDeviceLocked");
|
|
49
|
+
exports.ManagerFirmwareNotEnoughSpaceError = (0, helpers_1.createCustomErrorClass)("ManagerFirmwareNotEnoughSpace");
|
|
50
|
+
exports.ManagerNotEnoughSpaceError = (0, helpers_1.createCustomErrorClass)("ManagerNotEnoughSpace");
|
|
51
|
+
exports.ManagerUninstallBTCDep = (0, helpers_1.createCustomErrorClass)("ManagerUninstallBTCDep");
|
|
52
|
+
exports.NetworkDown = (0, helpers_1.createCustomErrorClass)("NetworkDown");
|
|
53
|
+
exports.NoAddressesFound = (0, helpers_1.createCustomErrorClass)("NoAddressesFound");
|
|
54
|
+
exports.NotEnoughBalance = (0, helpers_1.createCustomErrorClass)("NotEnoughBalance");
|
|
55
|
+
exports.NotEnoughBalanceToDelegate = (0, helpers_1.createCustomErrorClass)("NotEnoughBalanceToDelegate");
|
|
56
|
+
exports.NotEnoughBalanceInParentAccount = (0, helpers_1.createCustomErrorClass)("NotEnoughBalanceInParentAccount");
|
|
57
|
+
exports.NotEnoughSpendableBalance = (0, helpers_1.createCustomErrorClass)("NotEnoughSpendableBalance");
|
|
58
|
+
exports.NotEnoughBalanceBecauseDestinationNotCreated = (0, helpers_1.createCustomErrorClass)("NotEnoughBalanceBecauseDestinationNotCreated");
|
|
59
|
+
exports.NoAccessToCamera = (0, helpers_1.createCustomErrorClass)("NoAccessToCamera");
|
|
60
|
+
exports.NotEnoughGas = (0, helpers_1.createCustomErrorClass)("NotEnoughGas");
|
|
61
|
+
exports.NotSupportedLegacyAddress = (0, helpers_1.createCustomErrorClass)("NotSupportedLegacyAddress");
|
|
62
|
+
exports.GasLessThanEstimate = (0, helpers_1.createCustomErrorClass)("GasLessThanEstimate");
|
|
63
|
+
exports.PasswordsDontMatchError = (0, helpers_1.createCustomErrorClass)("PasswordsDontMatch");
|
|
64
|
+
exports.PasswordIncorrectError = (0, helpers_1.createCustomErrorClass)("PasswordIncorrect");
|
|
65
|
+
exports.RecommendSubAccountsToEmpty = (0, helpers_1.createCustomErrorClass)("RecommendSubAccountsToEmpty");
|
|
66
|
+
exports.RecommendUndelegation = (0, helpers_1.createCustomErrorClass)("RecommendUndelegation");
|
|
67
|
+
exports.TimeoutTagged = (0, helpers_1.createCustomErrorClass)("TimeoutTagged");
|
|
68
|
+
exports.UnexpectedBootloader = (0, helpers_1.createCustomErrorClass)("UnexpectedBootloader");
|
|
69
|
+
exports.MCUNotGenuineToDashboard = (0, helpers_1.createCustomErrorClass)("MCUNotGenuineToDashboard");
|
|
70
|
+
exports.RecipientRequired = (0, helpers_1.createCustomErrorClass)("RecipientRequired");
|
|
71
|
+
exports.UnavailableTezosOriginatedAccountReceive = (0, helpers_1.createCustomErrorClass)("UnavailableTezosOriginatedAccountReceive");
|
|
72
|
+
exports.UnavailableTezosOriginatedAccountSend = (0, helpers_1.createCustomErrorClass)("UnavailableTezosOriginatedAccountSend");
|
|
73
|
+
exports.UpdateFetchFileFail = (0, helpers_1.createCustomErrorClass)("UpdateFetchFileFail");
|
|
74
|
+
exports.UpdateIncorrectHash = (0, helpers_1.createCustomErrorClass)("UpdateIncorrectHash");
|
|
75
|
+
exports.UpdateIncorrectSig = (0, helpers_1.createCustomErrorClass)("UpdateIncorrectSig");
|
|
76
|
+
exports.UpdateYourApp = (0, helpers_1.createCustomErrorClass)("UpdateYourApp");
|
|
77
|
+
exports.UserRefusedDeviceNameChange = (0, helpers_1.createCustomErrorClass)("UserRefusedDeviceNameChange");
|
|
78
|
+
exports.UserRefusedAddress = (0, helpers_1.createCustomErrorClass)("UserRefusedAddress");
|
|
79
|
+
exports.UserRefusedFirmwareUpdate = (0, helpers_1.createCustomErrorClass)("UserRefusedFirmwareUpdate");
|
|
80
|
+
exports.UserRefusedAllowManager = (0, helpers_1.createCustomErrorClass)("UserRefusedAllowManager");
|
|
81
|
+
exports.UserRefusedOnDevice = (0, helpers_1.createCustomErrorClass)("UserRefusedOnDevice"); // TODO rename because it's just for transaction refusal
|
|
82
|
+
exports.TransportOpenUserCancelled = (0, helpers_1.createCustomErrorClass)("TransportOpenUserCancelled");
|
|
83
|
+
exports.TransportInterfaceNotAvailable = (0, helpers_1.createCustomErrorClass)("TransportInterfaceNotAvailable");
|
|
84
|
+
exports.TransportRaceCondition = (0, helpers_1.createCustomErrorClass)("TransportRaceCondition");
|
|
85
|
+
exports.TransportWebUSBGestureRequired = (0, helpers_1.createCustomErrorClass)("TransportWebUSBGestureRequired");
|
|
86
|
+
exports.DeviceShouldStayInApp = (0, helpers_1.createCustomErrorClass)("DeviceShouldStayInApp");
|
|
87
|
+
exports.WebsocketConnectionError = (0, helpers_1.createCustomErrorClass)("WebsocketConnectionError");
|
|
88
|
+
exports.WebsocketConnectionFailed = (0, helpers_1.createCustomErrorClass)("WebsocketConnectionFailed");
|
|
89
|
+
exports.WrongDeviceForAccount = (0, helpers_1.createCustomErrorClass)("WrongDeviceForAccount");
|
|
90
|
+
exports.WrongAppForCurrency = (0, helpers_1.createCustomErrorClass)("WrongAppForCurrency");
|
|
91
|
+
exports.ETHAddressNonEIP = (0, helpers_1.createCustomErrorClass)("ETHAddressNonEIP");
|
|
92
|
+
exports.CantScanQRCode = (0, helpers_1.createCustomErrorClass)("CantScanQRCode");
|
|
93
|
+
exports.FeeNotLoaded = (0, helpers_1.createCustomErrorClass)("FeeNotLoaded");
|
|
94
|
+
exports.FeeRequired = (0, helpers_1.createCustomErrorClass)("FeeRequired");
|
|
95
|
+
exports.FeeTooHigh = (0, helpers_1.createCustomErrorClass)("FeeTooHigh");
|
|
96
|
+
exports.SyncError = (0, helpers_1.createCustomErrorClass)("SyncError");
|
|
97
|
+
exports.PairingFailed = (0, helpers_1.createCustomErrorClass)("PairingFailed");
|
|
98
|
+
exports.GenuineCheckFailed = (0, helpers_1.createCustomErrorClass)("GenuineCheckFailed");
|
|
99
|
+
exports.LedgerAPI4xx = (0, helpers_1.createCustomErrorClass)("LedgerAPI4xx");
|
|
100
|
+
exports.LedgerAPI5xx = (0, helpers_1.createCustomErrorClass)("LedgerAPI5xx");
|
|
101
|
+
exports.FirmwareOrAppUpdateRequired = (0, helpers_1.createCustomErrorClass)("FirmwareOrAppUpdateRequired");
|
|
102
102
|
// db stuff, no need to translate
|
|
103
|
-
exports.NoDBPathGiven = helpers_1.createCustomErrorClass("NoDBPathGiven");
|
|
104
|
-
exports.DBWrongPassword = helpers_1.createCustomErrorClass("DBWrongPassword");
|
|
105
|
-
exports.DBNotReset = helpers_1.createCustomErrorClass("DBNotReset");
|
|
103
|
+
exports.NoDBPathGiven = (0, helpers_1.createCustomErrorClass)("NoDBPathGiven");
|
|
104
|
+
exports.DBWrongPassword = (0, helpers_1.createCustomErrorClass)("DBWrongPassword");
|
|
105
|
+
exports.DBNotReset = (0, helpers_1.createCustomErrorClass)("DBNotReset");
|
|
106
106
|
/**
|
|
107
107
|
* TransportError is used for any generic transport errors.
|
|
108
108
|
* e.g. Error thrown when data received by exchanges are incorrect or if exchanged failed to communicate with the device for various reason.
|
|
@@ -115,7 +115,7 @@ function TransportError(message, id) {
|
|
|
115
115
|
}
|
|
116
116
|
exports.TransportError = TransportError;
|
|
117
117
|
TransportError.prototype = new Error();
|
|
118
|
-
helpers_1.addCustomErrorDeserializer("TransportError", function (e) { return new TransportError(e.message, e.id); });
|
|
118
|
+
(0, helpers_1.addCustomErrorDeserializer)("TransportError", function (e) { return new TransportError(e.message, e.id); });
|
|
119
119
|
exports.StatusCodes = {
|
|
120
120
|
PIN_REMAINING_ATTEMPTS: 0x63c0,
|
|
121
121
|
INCORRECT_LENGTH: 0x6700,
|
|
@@ -187,5 +187,5 @@ function TransportStatusError(statusCode) {
|
|
|
187
187
|
}
|
|
188
188
|
exports.TransportStatusError = TransportStatusError;
|
|
189
189
|
TransportStatusError.prototype = new Error();
|
|
190
|
-
helpers_1.addCustomErrorDeserializer("TransportStatusError", function (e) { return new TransportStatusError(e.statusCode); });
|
|
190
|
+
(0, helpers_1.addCustomErrorDeserializer)("TransportStatusError", function (e) { return new TransportStatusError(e.statusCode); });
|
|
191
191
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,qCAKmB;AAGjB,yBAPA,wBAAc,CAOA;AACd,2BAPA,0BAAgB,CAOA;AAChB,iCAPA,gCAAsB,CAOA;AACtB,qCAPA,oCAA0B,CAOA;AAGf,QAAA,wBAAwB,GAAG,gCAAsB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,qCAKmB;AAGjB,yBAPA,wBAAc,CAOA;AACd,2BAPA,0BAAgB,CAOA;AAChB,iCAPA,gCAAsB,CAOA;AACtB,qCAPA,oCAA0B,CAOA;AAGf,QAAA,wBAAwB,GAAG,IAAA,gCAAsB,EAC5D,qBAAqB,CACtB,CAAC;AACW,QAAA,mBAAmB,GAAG,IAAA,gCAAsB,EACvD,qBAAqB,CACtB,CAAC;AACW,QAAA,cAAc,GAAG,IAAA,gCAAsB,EAAC,gBAAgB,CAAC,CAAC;AAC1D,QAAA,iBAAiB,GAAG,IAAA,gCAAsB,EAAC,mBAAmB,CAAC,CAAC;AAChE,QAAA,eAAe,GAAG,IAAA,gCAAsB,EAAC,iBAAiB,CAAC,CAAC;AAC5D,QAAA,cAAc,GAAG,IAAA,gCAAsB,EAAC,gBAAgB,CAAC,CAAC;AAC1D,QAAA,oBAAoB,GAAG,IAAA,gCAAsB,EACxD,sBAAsB,CACvB,CAAC;AACW,QAAA,oBAAoB,GAAG,IAAA,gCAAsB,EACxD,sBAAsB,CACvB,CAAC;AACW,QAAA,2BAA2B,GAAG,IAAA,gCAAsB,EAC/D,6BAA6B,CAC9B,CAAC;AACW,QAAA,6BAA6B,GAAG,IA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C;KACxC;AACH,CAAC;AAnBD,kDAmBC;AAED;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,UAAkB;IACrD,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;IACnC,IAAM,UAAU,GACd,MAAM,CAAC,IAAI,CAAC,mBAAW,CAAC,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,mBAAW,CAAC,CAAC,CAAC,KAAK,UAAU,EAA7B,CAA6B,CAAC;QACnE,eAAe,CAAC;IAClB,IAAM,IAAI,GAAG,mBAAmB,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC;IAC3D,IAAM,aAAa,GAAG,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC9C,IAAI,CAAC,OAAO,GAAG,oBAAkB,IAAI,YAAO,aAAa,MAAG,CAAC;IAC7D,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC;IAC/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC7B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC/B,CAAC;AAXD,oDAWC;AACD,oBAAoB,CAAC,SAAS,GAAG,IAAI,KAAK,EAAE,CAAC;AAE7C,IAAA,oCAA0B,EACxB,sBAAsB,EACtB,UAAC,CAAC,IAAK,OAAA,IAAI,oBAAoB,CAAC,CAAC,CAAC,UAAU,CAAC,EAAtC,CAAsC,CAC9C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/errors",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.10.0",
|
|
4
4
|
"description": "Ledger common errors",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger"
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"watch": "bash ../../script/watch.sh",
|
|
27
27
|
"doc": "bash ../../script/doc.sh"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "03b06be36f668077572feb4d5ccd7486f546f7b4"
|
|
30
30
|
}
|