@ledgerhq/errors 6.10.1-nightly.0 → 6.10.1-nightly.1

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.
@@ -1,6 +1,5 @@
1
- @ledgerhq/errors:build: cache hit, replaying output 4ef394fe4865033a
1
+ @ledgerhq/errors:build: cache hit, replaying output fb6b6d0a1d5a2d9e
2
2
  @ledgerhq/errors:build:
3
- @ledgerhq/errors:build: > @ledgerhq/errors@6.10.0 build /home/runner/work/ledger-live/ledger-live/libs/ledgerjs/packages/errors
4
- @ledgerhq/errors:build: > bash ../../script/build.sh
3
+ @ledgerhq/errors:build: > @ledgerhq/errors@6.10.1-nightly.0 build /home/runner/work/ledger-live/ledger-live/libs/ledgerjs/packages/errors
4
+ @ledgerhq/errors:build: > tsc && tsc -m ES6 --outDir lib-es
5
5
  @ledgerhq/errors:build:
6
- @ledgerhq/errors:build: /home/runner/work/ledger-live/ledger-live/libs/ledgerjs/packages/errors
package/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
1
  # @ledgerhq/errors
2
2
 
3
+ ## 6.10.1-nightly.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#547](https://github.com/LedgerHQ/ledger-live/pull/547) [`203b927b4`](https://github.com/LedgerHQ/ledger-live/commit/203b927b4e5bca3402c85a88c536d519adb18c5f) Thanks [@gre](https://github.com/gre)! - Improve stacktrace in custom errors
8
+
3
9
  ## 6.10.1-nightly.0
4
10
 
5
11
  ### Patch Changes
6
12
 
7
- - f6f2d8f15: add dummy changesets
13
+ - 47252169a: add dummy changesets
package/lib/helpers.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export declare const addCustomErrorDeserializer: (name: string, deserializer: (obj: any) => any) => void;
2
- declare type CustomErrorFunc = (message?: string, fields?: {
2
+ export declare type CustomErrorFunc = (message?: string, fields?: {
3
3
  [key: string]: any;
4
- }) => void;
4
+ }, options?: any) => void;
5
5
  export declare const createCustomErrorClass: (name: string) => CustomErrorFunc;
6
6
  export declare const deserializeError: (object: any) => Error;
7
7
  export declare const serializeError: (value: any) => undefined | To | string;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,0BAA0B,SAC/B,MAAM,sBACQ,GAAG,KAAK,GAAG,KAC9B,IAEF,CAAC;AAEF,aAAK,eAAe,GAAG,CACrB,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,KAC5B,IAAI,CAAC;AAEV,eAAO,MAAM,sBAAsB,SAAU,MAAM,KAAG,eAUrD,CAAC;AAGF,eAAO,MAAM,gBAAgB,WAAY,GAAG,KAAG,KA+C9C,CAAC;AAGF,eAAO,MAAM,cAAc,UAAW,GAAG,KAAG,SAAS,GAAG,EAAE,GAAG,MAS5D,CAAC;AAEF,UAAU,EAAE;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,0BAA0B,SAC/B,MAAM,sBACQ,GAAG,KAAK,GAAG,KAC9B,IAEF,CAAC;AAEF,oBAAY,eAAe,GAAG,CAC5B,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC/B,OAAO,CAAC,EAAE,GAAG,KACV,IAAI,CAAC;AAEV,eAAO,MAAM,sBAAsB,SAAU,MAAM,KAAG,eA8BrD,CAAC;AAOF,eAAO,MAAM,gBAAgB,WAAY,GAAG,KAAG,KA+C9C,CAAC;AAGF,eAAO,MAAM,cAAc,UAAW,GAAG,KAAG,SAAS,GAAG,EAAE,GAAG,MAS5D,CAAC;AAEF,UAAU,EAAE;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
package/lib/helpers.js CHANGED
@@ -3,6 +3,21 @@
3
3
  /* eslint-disable no-unused-vars */
4
4
  /* eslint-disable no-param-reassign */
5
5
  /* eslint-disable no-prototype-builtins */
6
+ var __extends = (this && this.__extends) || (function () {
7
+ var extendStatics = function (d, b) {
8
+ extendStatics = Object.setPrototypeOf ||
9
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11
+ return extendStatics(d, b);
12
+ };
13
+ return function (d, b) {
14
+ if (typeof b !== "function" && b !== null)
15
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
16
+ extendStatics(d, b);
17
+ function __() { this.constructor = d; }
18
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19
+ };
20
+ })();
6
21
  var __values = (this && this.__values) || function(o) {
7
22
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
8
23
  if (m) return m.call(o);
@@ -23,17 +38,41 @@ var addCustomErrorDeserializer = function (name, deserializer) {
23
38
  };
24
39
  exports.addCustomErrorDeserializer = addCustomErrorDeserializer;
25
40
  var createCustomErrorClass = function (name) {
26
- var C = function CustomError(message, fields) {
27
- Object.assign(this, fields);
28
- this.name = name;
29
- this.message = message || name;
30
- this.stack = new Error().stack;
31
- };
32
- C.prototype = new Error();
33
- errorClasses[name] = C;
34
- return C;
41
+ var CustomErrorClass = /** @class */ (function (_super) {
42
+ __extends(CustomErrorClass, _super);
43
+ function CustomErrorClass(message, fields, options) {
44
+ var _this =
45
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
46
+ // @ts-ignore
47
+ _super.call(this, message || name, options) || this;
48
+ // Set the prototype explicitly. See https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
49
+ Object.setPrototypeOf(_this, CustomErrorClass.prototype);
50
+ _this.name = name;
51
+ for (var k in fields) {
52
+ _this[k] = fields[k];
53
+ }
54
+ if (isObject(options) && "cause" in options && !("cause" in _this)) {
55
+ // .cause was specified but the superconstructor
56
+ // did not create an instance property.
57
+ var cause = options.cause;
58
+ _this.cause = cause;
59
+ if ("stack" in cause) {
60
+ _this.stack = _this.stack + "\nCAUSE: " + cause.stack;
61
+ }
62
+ }
63
+ return _this;
64
+ }
65
+ return CustomErrorClass;
66
+ }(Error));
67
+ errorClasses[name] = CustomErrorClass;
68
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
69
+ // @ts-ignore
70
+ return CustomErrorClass;
35
71
  };
36
72
  exports.createCustomErrorClass = createCustomErrorClass;
73
+ function isObject(value) {
74
+ return value !== null && typeof value === "object";
75
+ }
37
76
  // inspired from https://github.com/programble/errio/blob/master/index.js
38
77
  var deserializeError = function (object) {
39
78
  if (typeof object === "object" && object) {
@@ -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;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AC,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.d.ts CHANGED
@@ -1,287 +1,101 @@
1
1
  import { serializeError, deserializeError, createCustomErrorClass, addCustomErrorDeserializer } from "./helpers";
2
2
  export { serializeError, deserializeError, createCustomErrorClass, addCustomErrorDeserializer, };
3
- export declare const AccountNameRequiredError: (message?: string | undefined, fields?: {
4
- [key: string]: any;
5
- } | undefined) => void;
6
- export declare const AccountNotSupported: (message?: string | undefined, fields?: {
7
- [key: string]: any;
8
- } | undefined) => void;
9
- export declare const AmountRequired: (message?: string | undefined, fields?: {
10
- [key: string]: any;
11
- } | undefined) => void;
12
- export declare const BluetoothRequired: (message?: string | undefined, fields?: {
13
- [key: string]: any;
14
- } | undefined) => void;
15
- export declare const BtcUnmatchedApp: (message?: string | undefined, fields?: {
16
- [key: string]: any;
17
- } | undefined) => void;
18
- export declare const CantOpenDevice: (message?: string | undefined, fields?: {
19
- [key: string]: any;
20
- } | undefined) => void;
21
- export declare const CashAddrNotSupported: (message?: string | undefined, fields?: {
22
- [key: string]: any;
23
- } | undefined) => void;
24
- export declare const CurrencyNotSupported: (message?: string | undefined, fields?: {
25
- [key: string]: any;
26
- } | undefined) => void;
27
- export declare const DeviceAppVerifyNotSupported: (message?: string | undefined, fields?: {
28
- [key: string]: any;
29
- } | undefined) => void;
30
- export declare const DeviceGenuineSocketEarlyClose: (message?: string | undefined, fields?: {
31
- [key: string]: any;
32
- } | undefined) => void;
33
- export declare const DeviceNotGenuineError: (message?: string | undefined, fields?: {
34
- [key: string]: any;
35
- } | undefined) => void;
36
- export declare const DeviceOnDashboardExpected: (message?: string | undefined, fields?: {
37
- [key: string]: any;
38
- } | undefined) => void;
39
- export declare const DeviceOnDashboardUnexpected: (message?: string | undefined, fields?: {
40
- [key: string]: any;
41
- } | undefined) => void;
42
- export declare const DeviceInOSUExpected: (message?: string | undefined, fields?: {
43
- [key: string]: any;
44
- } | undefined) => void;
45
- export declare const DeviceHalted: (message?: string | undefined, fields?: {
46
- [key: string]: any;
47
- } | undefined) => void;
48
- export declare const DeviceNameInvalid: (message?: string | undefined, fields?: {
49
- [key: string]: any;
50
- } | undefined) => void;
51
- export declare const DeviceSocketFail: (message?: string | undefined, fields?: {
52
- [key: string]: any;
53
- } | undefined) => void;
54
- export declare const DeviceSocketNoBulkStatus: (message?: string | undefined, fields?: {
55
- [key: string]: any;
56
- } | undefined) => void;
57
- export declare const DisconnectedDevice: (message?: string | undefined, fields?: {
58
- [key: string]: any;
59
- } | undefined) => void;
60
- export declare const DisconnectedDeviceDuringOperation: (message?: string | undefined, fields?: {
61
- [key: string]: any;
62
- } | undefined) => void;
63
- export declare const EnpointConfigError: (message?: string | undefined, fields?: {
64
- [key: string]: any;
65
- } | undefined) => void;
66
- export declare const EthAppPleaseEnableContractData: (message?: string | undefined, fields?: {
67
- [key: string]: any;
68
- } | undefined) => void;
69
- export declare const FeeEstimationFailed: (message?: string | undefined, fields?: {
70
- [key: string]: any;
71
- } | undefined) => void;
72
- export declare const FirmwareNotRecognized: (message?: string | undefined, fields?: {
73
- [key: string]: any;
74
- } | undefined) => void;
75
- export declare const HardResetFail: (message?: string | undefined, fields?: {
76
- [key: string]: any;
77
- } | undefined) => void;
78
- export declare const InvalidXRPTag: (message?: string | undefined, fields?: {
79
- [key: string]: any;
80
- } | undefined) => void;
81
- export declare const InvalidAddress: (message?: string | undefined, fields?: {
82
- [key: string]: any;
83
- } | undefined) => void;
84
- export declare const InvalidAddressBecauseDestinationIsAlsoSource: (message?: string | undefined, fields?: {
85
- [key: string]: any;
86
- } | undefined) => void;
87
- export declare const LatestMCUInstalledError: (message?: string | undefined, fields?: {
88
- [key: string]: any;
89
- } | undefined) => void;
90
- export declare const UnknownMCU: (message?: string | undefined, fields?: {
91
- [key: string]: any;
92
- } | undefined) => void;
93
- export declare const LedgerAPIError: (message?: string | undefined, fields?: {
94
- [key: string]: any;
95
- } | undefined) => void;
96
- export declare const LedgerAPIErrorWithMessage: (message?: string | undefined, fields?: {
97
- [key: string]: any;
98
- } | undefined) => void;
99
- export declare const LedgerAPINotAvailable: (message?: string | undefined, fields?: {
100
- [key: string]: any;
101
- } | undefined) => void;
102
- export declare const ManagerAppAlreadyInstalledError: (message?: string | undefined, fields?: {
103
- [key: string]: any;
104
- } | undefined) => void;
105
- export declare const ManagerAppRelyOnBTCError: (message?: string | undefined, fields?: {
106
- [key: string]: any;
107
- } | undefined) => void;
108
- export declare const ManagerAppDepInstallRequired: (message?: string | undefined, fields?: {
109
- [key: string]: any;
110
- } | undefined) => void;
111
- export declare const ManagerAppDepUninstallRequired: (message?: string | undefined, fields?: {
112
- [key: string]: any;
113
- } | undefined) => void;
114
- export declare const ManagerDeviceLockedError: (message?: string | undefined, fields?: {
115
- [key: string]: any;
116
- } | undefined) => void;
117
- export declare const ManagerFirmwareNotEnoughSpaceError: (message?: string | undefined, fields?: {
118
- [key: string]: any;
119
- } | undefined) => void;
120
- export declare const ManagerNotEnoughSpaceError: (message?: string | undefined, fields?: {
121
- [key: string]: any;
122
- } | undefined) => void;
123
- export declare const ManagerUninstallBTCDep: (message?: string | undefined, fields?: {
124
- [key: string]: any;
125
- } | undefined) => void;
126
- export declare const NetworkDown: (message?: string | undefined, fields?: {
127
- [key: string]: any;
128
- } | undefined) => void;
129
- export declare const NoAddressesFound: (message?: string | undefined, fields?: {
130
- [key: string]: any;
131
- } | undefined) => void;
132
- export declare const NotEnoughBalance: (message?: string | undefined, fields?: {
133
- [key: string]: any;
134
- } | undefined) => void;
135
- export declare const NotEnoughBalanceToDelegate: (message?: string | undefined, fields?: {
136
- [key: string]: any;
137
- } | undefined) => void;
138
- export declare const NotEnoughBalanceInParentAccount: (message?: string | undefined, fields?: {
139
- [key: string]: any;
140
- } | undefined) => void;
141
- export declare const NotEnoughSpendableBalance: (message?: string | undefined, fields?: {
142
- [key: string]: any;
143
- } | undefined) => void;
144
- export declare const NotEnoughBalanceBecauseDestinationNotCreated: (message?: string | undefined, fields?: {
145
- [key: string]: any;
146
- } | undefined) => void;
147
- export declare const NoAccessToCamera: (message?: string | undefined, fields?: {
148
- [key: string]: any;
149
- } | undefined) => void;
150
- export declare const NotEnoughGas: (message?: string | undefined, fields?: {
151
- [key: string]: any;
152
- } | undefined) => void;
153
- export declare const NotSupportedLegacyAddress: (message?: string | undefined, fields?: {
154
- [key: string]: any;
155
- } | undefined) => void;
156
- export declare const GasLessThanEstimate: (message?: string | undefined, fields?: {
157
- [key: string]: any;
158
- } | undefined) => void;
159
- export declare const PasswordsDontMatchError: (message?: string | undefined, fields?: {
160
- [key: string]: any;
161
- } | undefined) => void;
162
- export declare const PasswordIncorrectError: (message?: string | undefined, fields?: {
163
- [key: string]: any;
164
- } | undefined) => void;
165
- export declare const RecommendSubAccountsToEmpty: (message?: string | undefined, fields?: {
166
- [key: string]: any;
167
- } | undefined) => void;
168
- export declare const RecommendUndelegation: (message?: string | undefined, fields?: {
169
- [key: string]: any;
170
- } | undefined) => void;
171
- export declare const TimeoutTagged: (message?: string | undefined, fields?: {
172
- [key: string]: any;
173
- } | undefined) => void;
174
- export declare const UnexpectedBootloader: (message?: string | undefined, fields?: {
175
- [key: string]: any;
176
- } | undefined) => void;
177
- export declare const MCUNotGenuineToDashboard: (message?: string | undefined, fields?: {
178
- [key: string]: any;
179
- } | undefined) => void;
180
- export declare const RecipientRequired: (message?: string | undefined, fields?: {
181
- [key: string]: any;
182
- } | undefined) => void;
183
- export declare const UnavailableTezosOriginatedAccountReceive: (message?: string | undefined, fields?: {
184
- [key: string]: any;
185
- } | undefined) => void;
186
- export declare const UnavailableTezosOriginatedAccountSend: (message?: string | undefined, fields?: {
187
- [key: string]: any;
188
- } | undefined) => void;
189
- export declare const UpdateFetchFileFail: (message?: string | undefined, fields?: {
190
- [key: string]: any;
191
- } | undefined) => void;
192
- export declare const UpdateIncorrectHash: (message?: string | undefined, fields?: {
193
- [key: string]: any;
194
- } | undefined) => void;
195
- export declare const UpdateIncorrectSig: (message?: string | undefined, fields?: {
196
- [key: string]: any;
197
- } | undefined) => void;
198
- export declare const UpdateYourApp: (message?: string | undefined, fields?: {
199
- [key: string]: any;
200
- } | undefined) => void;
201
- export declare const UserRefusedDeviceNameChange: (message?: string | undefined, fields?: {
202
- [key: string]: any;
203
- } | undefined) => void;
204
- export declare const UserRefusedAddress: (message?: string | undefined, fields?: {
205
- [key: string]: any;
206
- } | undefined) => void;
207
- export declare const UserRefusedFirmwareUpdate: (message?: string | undefined, fields?: {
208
- [key: string]: any;
209
- } | undefined) => void;
210
- export declare const UserRefusedAllowManager: (message?: string | undefined, fields?: {
211
- [key: string]: any;
212
- } | undefined) => void;
213
- export declare const UserRefusedOnDevice: (message?: string | undefined, fields?: {
214
- [key: string]: any;
215
- } | undefined) => void;
216
- export declare const TransportOpenUserCancelled: (message?: string | undefined, fields?: {
217
- [key: string]: any;
218
- } | undefined) => void;
219
- export declare const TransportInterfaceNotAvailable: (message?: string | undefined, fields?: {
220
- [key: string]: any;
221
- } | undefined) => void;
222
- export declare const TransportRaceCondition: (message?: string | undefined, fields?: {
223
- [key: string]: any;
224
- } | undefined) => void;
225
- export declare const TransportWebUSBGestureRequired: (message?: string | undefined, fields?: {
226
- [key: string]: any;
227
- } | undefined) => void;
228
- export declare const DeviceShouldStayInApp: (message?: string | undefined, fields?: {
229
- [key: string]: any;
230
- } | undefined) => void;
231
- export declare const WebsocketConnectionError: (message?: string | undefined, fields?: {
232
- [key: string]: any;
233
- } | undefined) => void;
234
- export declare const WebsocketConnectionFailed: (message?: string | undefined, fields?: {
235
- [key: string]: any;
236
- } | undefined) => void;
237
- export declare const WrongDeviceForAccount: (message?: string | undefined, fields?: {
238
- [key: string]: any;
239
- } | undefined) => void;
240
- export declare const WrongAppForCurrency: (message?: string | undefined, fields?: {
241
- [key: string]: any;
242
- } | undefined) => void;
243
- export declare const ETHAddressNonEIP: (message?: string | undefined, fields?: {
244
- [key: string]: any;
245
- } | undefined) => void;
246
- export declare const CantScanQRCode: (message?: string | undefined, fields?: {
247
- [key: string]: any;
248
- } | undefined) => void;
249
- export declare const FeeNotLoaded: (message?: string | undefined, fields?: {
250
- [key: string]: any;
251
- } | undefined) => void;
252
- export declare const FeeRequired: (message?: string | undefined, fields?: {
253
- [key: string]: any;
254
- } | undefined) => void;
255
- export declare const FeeTooHigh: (message?: string | undefined, fields?: {
256
- [key: string]: any;
257
- } | undefined) => void;
258
- export declare const SyncError: (message?: string | undefined, fields?: {
259
- [key: string]: any;
260
- } | undefined) => void;
261
- export declare const PairingFailed: (message?: string | undefined, fields?: {
262
- [key: string]: any;
263
- } | undefined) => void;
264
- export declare const GenuineCheckFailed: (message?: string | undefined, fields?: {
265
- [key: string]: any;
266
- } | undefined) => void;
267
- export declare const LedgerAPI4xx: (message?: string | undefined, fields?: {
268
- [key: string]: any;
269
- } | undefined) => void;
270
- export declare const LedgerAPI5xx: (message?: string | undefined, fields?: {
271
- [key: string]: any;
272
- } | undefined) => void;
273
- export declare const FirmwareOrAppUpdateRequired: (message?: string | undefined, fields?: {
274
- [key: string]: any;
275
- } | undefined) => void;
276
- export declare const NoDBPathGiven: (message?: string | undefined, fields?: {
277
- [key: string]: any;
278
- } | undefined) => void;
279
- export declare const DBWrongPassword: (message?: string | undefined, fields?: {
280
- [key: string]: any;
281
- } | undefined) => void;
282
- export declare const DBNotReset: (message?: string | undefined, fields?: {
283
- [key: string]: any;
284
- } | undefined) => void;
3
+ export declare const AccountNameRequiredError: import("./helpers").CustomErrorFunc;
4
+ export declare const AccountNotSupported: import("./helpers").CustomErrorFunc;
5
+ export declare const AmountRequired: import("./helpers").CustomErrorFunc;
6
+ export declare const BluetoothRequired: import("./helpers").CustomErrorFunc;
7
+ export declare const BtcUnmatchedApp: import("./helpers").CustomErrorFunc;
8
+ export declare const CantOpenDevice: import("./helpers").CustomErrorFunc;
9
+ export declare const CashAddrNotSupported: import("./helpers").CustomErrorFunc;
10
+ export declare const CurrencyNotSupported: import("./helpers").CustomErrorFunc;
11
+ export declare const DeviceAppVerifyNotSupported: import("./helpers").CustomErrorFunc;
12
+ export declare const DeviceGenuineSocketEarlyClose: import("./helpers").CustomErrorFunc;
13
+ export declare const DeviceNotGenuineError: import("./helpers").CustomErrorFunc;
14
+ export declare const DeviceOnDashboardExpected: import("./helpers").CustomErrorFunc;
15
+ export declare const DeviceOnDashboardUnexpected: import("./helpers").CustomErrorFunc;
16
+ export declare const DeviceInOSUExpected: import("./helpers").CustomErrorFunc;
17
+ export declare const DeviceHalted: import("./helpers").CustomErrorFunc;
18
+ export declare const DeviceNameInvalid: import("./helpers").CustomErrorFunc;
19
+ export declare const DeviceSocketFail: import("./helpers").CustomErrorFunc;
20
+ export declare const DeviceSocketNoBulkStatus: import("./helpers").CustomErrorFunc;
21
+ export declare const DisconnectedDevice: import("./helpers").CustomErrorFunc;
22
+ export declare const DisconnectedDeviceDuringOperation: import("./helpers").CustomErrorFunc;
23
+ export declare const DeviceExtractOnboardingStateError: import("./helpers").CustomErrorFunc;
24
+ export declare const DeviceOnboardingStatePollingError: import("./helpers").CustomErrorFunc;
25
+ export declare const EnpointConfigError: import("./helpers").CustomErrorFunc;
26
+ export declare const EthAppPleaseEnableContractData: import("./helpers").CustomErrorFunc;
27
+ export declare const FeeEstimationFailed: import("./helpers").CustomErrorFunc;
28
+ export declare const FirmwareNotRecognized: import("./helpers").CustomErrorFunc;
29
+ export declare const HardResetFail: import("./helpers").CustomErrorFunc;
30
+ export declare const InvalidXRPTag: import("./helpers").CustomErrorFunc;
31
+ export declare const InvalidAddress: import("./helpers").CustomErrorFunc;
32
+ export declare const InvalidAddressBecauseDestinationIsAlsoSource: import("./helpers").CustomErrorFunc;
33
+ export declare const LatestMCUInstalledError: import("./helpers").CustomErrorFunc;
34
+ export declare const UnknownMCU: import("./helpers").CustomErrorFunc;
35
+ export declare const LedgerAPIError: import("./helpers").CustomErrorFunc;
36
+ export declare const LedgerAPIErrorWithMessage: import("./helpers").CustomErrorFunc;
37
+ export declare const LedgerAPINotAvailable: import("./helpers").CustomErrorFunc;
38
+ export declare const ManagerAppAlreadyInstalledError: import("./helpers").CustomErrorFunc;
39
+ export declare const ManagerAppRelyOnBTCError: import("./helpers").CustomErrorFunc;
40
+ export declare const ManagerAppDepInstallRequired: import("./helpers").CustomErrorFunc;
41
+ export declare const ManagerAppDepUninstallRequired: import("./helpers").CustomErrorFunc;
42
+ export declare const ManagerDeviceLockedError: import("./helpers").CustomErrorFunc;
43
+ export declare const ManagerFirmwareNotEnoughSpaceError: import("./helpers").CustomErrorFunc;
44
+ export declare const ManagerNotEnoughSpaceError: import("./helpers").CustomErrorFunc;
45
+ export declare const ManagerUninstallBTCDep: import("./helpers").CustomErrorFunc;
46
+ export declare const NetworkDown: import("./helpers").CustomErrorFunc;
47
+ export declare const NoAddressesFound: import("./helpers").CustomErrorFunc;
48
+ export declare const NotEnoughBalance: import("./helpers").CustomErrorFunc;
49
+ export declare const NotEnoughBalanceToDelegate: import("./helpers").CustomErrorFunc;
50
+ export declare const NotEnoughBalanceInParentAccount: import("./helpers").CustomErrorFunc;
51
+ export declare const NotEnoughSpendableBalance: import("./helpers").CustomErrorFunc;
52
+ export declare const NotEnoughBalanceBecauseDestinationNotCreated: import("./helpers").CustomErrorFunc;
53
+ export declare const NoAccessToCamera: import("./helpers").CustomErrorFunc;
54
+ export declare const NotEnoughGas: import("./helpers").CustomErrorFunc;
55
+ export declare const NotSupportedLegacyAddress: import("./helpers").CustomErrorFunc;
56
+ export declare const GasLessThanEstimate: import("./helpers").CustomErrorFunc;
57
+ export declare const PasswordsDontMatchError: import("./helpers").CustomErrorFunc;
58
+ export declare const PasswordIncorrectError: import("./helpers").CustomErrorFunc;
59
+ export declare const RecommendSubAccountsToEmpty: import("./helpers").CustomErrorFunc;
60
+ export declare const RecommendUndelegation: import("./helpers").CustomErrorFunc;
61
+ export declare const TimeoutTagged: import("./helpers").CustomErrorFunc;
62
+ export declare const UnexpectedBootloader: import("./helpers").CustomErrorFunc;
63
+ export declare const MCUNotGenuineToDashboard: import("./helpers").CustomErrorFunc;
64
+ export declare const RecipientRequired: import("./helpers").CustomErrorFunc;
65
+ export declare const UnavailableTezosOriginatedAccountReceive: import("./helpers").CustomErrorFunc;
66
+ export declare const UnavailableTezosOriginatedAccountSend: import("./helpers").CustomErrorFunc;
67
+ export declare const UpdateFetchFileFail: import("./helpers").CustomErrorFunc;
68
+ export declare const UpdateIncorrectHash: import("./helpers").CustomErrorFunc;
69
+ export declare const UpdateIncorrectSig: import("./helpers").CustomErrorFunc;
70
+ export declare const UpdateYourApp: import("./helpers").CustomErrorFunc;
71
+ export declare const UserRefusedDeviceNameChange: import("./helpers").CustomErrorFunc;
72
+ export declare const UserRefusedAddress: import("./helpers").CustomErrorFunc;
73
+ export declare const UserRefusedFirmwareUpdate: import("./helpers").CustomErrorFunc;
74
+ export declare const UserRefusedAllowManager: import("./helpers").CustomErrorFunc;
75
+ export declare const UserRefusedOnDevice: import("./helpers").CustomErrorFunc;
76
+ export declare const TransportOpenUserCancelled: import("./helpers").CustomErrorFunc;
77
+ export declare const TransportInterfaceNotAvailable: import("./helpers").CustomErrorFunc;
78
+ export declare const TransportRaceCondition: import("./helpers").CustomErrorFunc;
79
+ export declare const TransportWebUSBGestureRequired: import("./helpers").CustomErrorFunc;
80
+ export declare const DeviceShouldStayInApp: import("./helpers").CustomErrorFunc;
81
+ export declare const WebsocketConnectionError: import("./helpers").CustomErrorFunc;
82
+ export declare const WebsocketConnectionFailed: import("./helpers").CustomErrorFunc;
83
+ export declare const WrongDeviceForAccount: import("./helpers").CustomErrorFunc;
84
+ export declare const WrongAppForCurrency: import("./helpers").CustomErrorFunc;
85
+ export declare const ETHAddressNonEIP: import("./helpers").CustomErrorFunc;
86
+ export declare const CantScanQRCode: import("./helpers").CustomErrorFunc;
87
+ export declare const FeeNotLoaded: import("./helpers").CustomErrorFunc;
88
+ export declare const FeeRequired: import("./helpers").CustomErrorFunc;
89
+ export declare const FeeTooHigh: import("./helpers").CustomErrorFunc;
90
+ export declare const SyncError: import("./helpers").CustomErrorFunc;
91
+ export declare const PairingFailed: import("./helpers").CustomErrorFunc;
92
+ export declare const GenuineCheckFailed: import("./helpers").CustomErrorFunc;
93
+ export declare const LedgerAPI4xx: import("./helpers").CustomErrorFunc;
94
+ export declare const LedgerAPI5xx: import("./helpers").CustomErrorFunc;
95
+ export declare const FirmwareOrAppUpdateRequired: import("./helpers").CustomErrorFunc;
96
+ export declare const NoDBPathGiven: import("./helpers").CustomErrorFunc;
97
+ export declare const DBWrongPassword: import("./helpers").CustomErrorFunc;
98
+ export declare const DBNotReset: import("./helpers").CustomErrorFunc;
285
99
  /**
286
100
  * TransportError is used for any generic transport errors.
287
101
  * e.g. Error thrown when data received by exchanges are incorrect or if exchanged failed to communicate with the device for various reason.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","source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;;;;;;;;;;;;;;;;;;;;CAgCvB,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAmB3E;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAW7D;yBAXe,oBAAoB"}
package/lib/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
- exports.NotEnoughBalanceInParentAccount = exports.NotEnoughBalanceToDelegate = exports.NotEnoughBalance = exports.NoAddressesFound = exports.NetworkDown = exports.ManagerUninstallBTCDep = exports.ManagerNotEnoughSpaceError = exports.ManagerFirmwareNotEnoughSpaceError = exports.ManagerDeviceLockedError = exports.ManagerAppDepUninstallRequired = exports.ManagerAppDepInstallRequired = exports.ManagerAppRelyOnBTCError = exports.ManagerAppAlreadyInstalledError = exports.LedgerAPINotAvailable = exports.LedgerAPIErrorWithMessage = exports.LedgerAPIError = exports.UnknownMCU = exports.LatestMCUInstalledError = exports.InvalidAddressBecauseDestinationIsAlsoSource = exports.InvalidAddress = exports.InvalidXRPTag = exports.HardResetFail = exports.FirmwareNotRecognized = exports.FeeEstimationFailed = exports.EthAppPleaseEnableContractData = exports.EnpointConfigError = exports.DisconnectedDeviceDuringOperation = exports.DisconnectedDevice = exports.DeviceSocketNoBulkStatus = exports.DeviceSocketFail = exports.DeviceNameInvalid = exports.DeviceHalted = exports.DeviceInOSUExpected = exports.DeviceOnDashboardUnexpected = exports.DeviceOnDashboardExpected = exports.DeviceNotGenuineError = exports.DeviceGenuineSocketEarlyClose = exports.DeviceAppVerifyNotSupported = exports.CurrencyNotSupported = exports.CashAddrNotSupported = exports.CantOpenDevice = exports.BtcUnmatchedApp = exports.BluetoothRequired = exports.AmountRequired = exports.AccountNotSupported = exports.AccountNameRequiredError = exports.addCustomErrorDeserializer = exports.createCustomErrorClass = exports.deserializeError = exports.serializeError = void 0;
4
- exports.StatusCodes = exports.TransportError = exports.DBNotReset = exports.DBWrongPassword = exports.NoDBPathGiven = exports.FirmwareOrAppUpdateRequired = exports.LedgerAPI5xx = exports.LedgerAPI4xx = exports.GenuineCheckFailed = exports.PairingFailed = exports.SyncError = exports.FeeTooHigh = exports.FeeRequired = exports.FeeNotLoaded = exports.CantScanQRCode = exports.ETHAddressNonEIP = exports.WrongAppForCurrency = exports.WrongDeviceForAccount = exports.WebsocketConnectionFailed = exports.WebsocketConnectionError = exports.DeviceShouldStayInApp = exports.TransportWebUSBGestureRequired = exports.TransportRaceCondition = exports.TransportInterfaceNotAvailable = exports.TransportOpenUserCancelled = exports.UserRefusedOnDevice = exports.UserRefusedAllowManager = exports.UserRefusedFirmwareUpdate = exports.UserRefusedAddress = exports.UserRefusedDeviceNameChange = exports.UpdateYourApp = exports.UpdateIncorrectSig = exports.UpdateIncorrectHash = exports.UpdateFetchFileFail = exports.UnavailableTezosOriginatedAccountSend = exports.UnavailableTezosOriginatedAccountReceive = exports.RecipientRequired = exports.MCUNotGenuineToDashboard = exports.UnexpectedBootloader = exports.TimeoutTagged = exports.RecommendUndelegation = exports.RecommendSubAccountsToEmpty = exports.PasswordIncorrectError = exports.PasswordsDontMatchError = exports.GasLessThanEstimate = exports.NotSupportedLegacyAddress = exports.NotEnoughGas = exports.NoAccessToCamera = exports.NotEnoughBalanceBecauseDestinationNotCreated = exports.NotEnoughSpendableBalance = void 0;
5
- exports.TransportStatusError = exports.getAltStatusMessage = void 0;
3
+ exports.NotEnoughBalance = exports.NoAddressesFound = exports.NetworkDown = exports.ManagerUninstallBTCDep = exports.ManagerNotEnoughSpaceError = exports.ManagerFirmwareNotEnoughSpaceError = exports.ManagerDeviceLockedError = exports.ManagerAppDepUninstallRequired = exports.ManagerAppDepInstallRequired = exports.ManagerAppRelyOnBTCError = exports.ManagerAppAlreadyInstalledError = exports.LedgerAPINotAvailable = exports.LedgerAPIErrorWithMessage = exports.LedgerAPIError = exports.UnknownMCU = exports.LatestMCUInstalledError = exports.InvalidAddressBecauseDestinationIsAlsoSource = exports.InvalidAddress = exports.InvalidXRPTag = exports.HardResetFail = exports.FirmwareNotRecognized = exports.FeeEstimationFailed = exports.EthAppPleaseEnableContractData = exports.EnpointConfigError = exports.DeviceOnboardingStatePollingError = exports.DeviceExtractOnboardingStateError = exports.DisconnectedDeviceDuringOperation = exports.DisconnectedDevice = exports.DeviceSocketNoBulkStatus = exports.DeviceSocketFail = exports.DeviceNameInvalid = exports.DeviceHalted = exports.DeviceInOSUExpected = exports.DeviceOnDashboardUnexpected = exports.DeviceOnDashboardExpected = exports.DeviceNotGenuineError = exports.DeviceGenuineSocketEarlyClose = exports.DeviceAppVerifyNotSupported = exports.CurrencyNotSupported = exports.CashAddrNotSupported = exports.CantOpenDevice = exports.BtcUnmatchedApp = exports.BluetoothRequired = exports.AmountRequired = exports.AccountNotSupported = exports.AccountNameRequiredError = exports.addCustomErrorDeserializer = exports.createCustomErrorClass = exports.deserializeError = exports.serializeError = void 0;
4
+ exports.DBNotReset = exports.DBWrongPassword = exports.NoDBPathGiven = exports.FirmwareOrAppUpdateRequired = exports.LedgerAPI5xx = exports.LedgerAPI4xx = exports.GenuineCheckFailed = exports.PairingFailed = exports.SyncError = exports.FeeTooHigh = exports.FeeRequired = exports.FeeNotLoaded = exports.CantScanQRCode = exports.ETHAddressNonEIP = exports.WrongAppForCurrency = exports.WrongDeviceForAccount = exports.WebsocketConnectionFailed = exports.WebsocketConnectionError = exports.DeviceShouldStayInApp = exports.TransportWebUSBGestureRequired = exports.TransportRaceCondition = exports.TransportInterfaceNotAvailable = exports.TransportOpenUserCancelled = exports.UserRefusedOnDevice = exports.UserRefusedAllowManager = exports.UserRefusedFirmwareUpdate = exports.UserRefusedAddress = exports.UserRefusedDeviceNameChange = exports.UpdateYourApp = exports.UpdateIncorrectSig = exports.UpdateIncorrectHash = exports.UpdateFetchFileFail = exports.UnavailableTezosOriginatedAccountSend = exports.UnavailableTezosOriginatedAccountReceive = exports.RecipientRequired = exports.MCUNotGenuineToDashboard = exports.UnexpectedBootloader = exports.TimeoutTagged = exports.RecommendUndelegation = exports.RecommendSubAccountsToEmpty = exports.PasswordIncorrectError = exports.PasswordsDontMatchError = exports.GasLessThanEstimate = exports.NotSupportedLegacyAddress = exports.NotEnoughGas = exports.NoAccessToCamera = exports.NotEnoughBalanceBecauseDestinationNotCreated = exports.NotEnoughSpendableBalance = exports.NotEnoughBalanceInParentAccount = exports.NotEnoughBalanceToDelegate = void 0;
5
+ exports.TransportStatusError = exports.getAltStatusMessage = exports.StatusCodes = exports.TransportError = void 0;
6
6
  var helpers_1 = require("./helpers");
7
7
  exports.serializeError = helpers_1.serializeError;
8
8
  exports.deserializeError = helpers_1.deserializeError;
@@ -28,6 +28,8 @@ exports.DeviceSocketFail = (0, helpers_1.createCustomErrorClass)("DeviceSocketFa
28
28
  exports.DeviceSocketNoBulkStatus = (0, helpers_1.createCustomErrorClass)("DeviceSocketNoBulkStatus");
29
29
  exports.DisconnectedDevice = (0, helpers_1.createCustomErrorClass)("DisconnectedDevice");
30
30
  exports.DisconnectedDeviceDuringOperation = (0, helpers_1.createCustomErrorClass)("DisconnectedDeviceDuringOperation");
31
+ exports.DeviceExtractOnboardingStateError = (0, helpers_1.createCustomErrorClass)("DeviceExtractOnboardingStateError");
32
+ exports.DeviceOnboardingStatePollingError = (0, helpers_1.createCustomErrorClass)("DeviceOnboardingStatePollingError");
31
33
  exports.EnpointConfigError = (0, helpers_1.createCustomErrorClass)("EnpointConfig");
32
34
  exports.EthAppPleaseEnableContractData = (0, helpers_1.createCustomErrorClass)("EthAppPleaseEnableContractData");
33
35
  exports.FeeEstimationFailed = (0, helpers_1.createCustomErrorClass)("FeeEstimationFailed");