@injectivelabs/exceptions 1.15.14 → 1.15.15
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/dist/cjs/exceptions/exceptions/TurnkeyWalletSessionException.d.ts +5 -0
- package/dist/cjs/exceptions/exceptions/TurnkeyWalletSessionException.js +11 -0
- package/dist/cjs/exceptions/exceptions/index.d.ts +2 -1
- package/dist/cjs/exceptions/exceptions/index.js +3 -1
- package/dist/cjs/utils.js +10 -9
- package/dist/esm/exceptions/exceptions/TurnkeyWalletSessionException.d.ts +5 -0
- package/dist/esm/exceptions/exceptions/TurnkeyWalletSessionException.js +7 -0
- package/dist/esm/exceptions/exceptions/index.d.ts +2 -1
- package/dist/esm/exceptions/exceptions/index.js +2 -1
- package/dist/esm/utils.js +10 -9
- package/package.json +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TurnkeyWalletSessionException = void 0;
|
|
4
|
+
const base_js_1 = require("../base.js");
|
|
5
|
+
class TurnkeyWalletSessionException extends base_js_1.ConcreteException {
|
|
6
|
+
static errorClass = 'TurnkeyWalletSessionException';
|
|
7
|
+
parse() {
|
|
8
|
+
this.setName(TurnkeyWalletSessionException.errorClass);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.TurnkeyWalletSessionException = TurnkeyWalletSessionException;
|
|
@@ -12,4 +12,5 @@ import { CosmosWalletException } from './CosmosWalletException.js';
|
|
|
12
12
|
import { TransactionException } from './TransactionException.js';
|
|
13
13
|
import { WalletException } from './WalletException.js';
|
|
14
14
|
import { BitGetException } from './BitGetException.js';
|
|
15
|
-
|
|
15
|
+
import { TurnkeyWalletSessionException } from './TurnkeyWalletSessionException.js';
|
|
16
|
+
export { Web3Exception, LedgerException, TrezorException, WalletException, GeneralException, BitGetException, MetamaskException, TransactionException, TrustWalletException, OkxWalletException, HttpRequestException, LedgerCosmosException, CosmosWalletException, GrpcUnaryRequestException, TurnkeyWalletSessionException, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GrpcUnaryRequestException = exports.CosmosWalletException = exports.LedgerCosmosException = exports.HttpRequestException = exports.OkxWalletException = exports.TrustWalletException = exports.TransactionException = exports.MetamaskException = exports.BitGetException = exports.GeneralException = exports.WalletException = exports.TrezorException = exports.LedgerException = exports.Web3Exception = void 0;
|
|
3
|
+
exports.TurnkeyWalletSessionException = exports.GrpcUnaryRequestException = exports.CosmosWalletException = exports.LedgerCosmosException = exports.HttpRequestException = exports.OkxWalletException = exports.TrustWalletException = exports.TransactionException = exports.MetamaskException = exports.BitGetException = exports.GeneralException = exports.WalletException = exports.TrezorException = exports.LedgerException = exports.Web3Exception = void 0;
|
|
4
4
|
const GrpcUnaryRequestException_js_1 = require("./GrpcUnaryRequestException.js");
|
|
5
5
|
Object.defineProperty(exports, "GrpcUnaryRequestException", { enumerable: true, get: function () { return GrpcUnaryRequestException_js_1.GrpcUnaryRequestException; } });
|
|
6
6
|
const HttpRequestException_js_1 = require("./HttpRequestException.js");
|
|
@@ -29,3 +29,5 @@ const WalletException_js_1 = require("./WalletException.js");
|
|
|
29
29
|
Object.defineProperty(exports, "WalletException", { enumerable: true, get: function () { return WalletException_js_1.WalletException; } });
|
|
30
30
|
const BitGetException_js_1 = require("./BitGetException.js");
|
|
31
31
|
Object.defineProperty(exports, "BitGetException", { enumerable: true, get: function () { return BitGetException_js_1.BitGetException; } });
|
|
32
|
+
const TurnkeyWalletSessionException_js_1 = require("./TurnkeyWalletSessionException.js");
|
|
33
|
+
Object.defineProperty(exports, "TurnkeyWalletSessionException", { enumerable: true, get: function () { return TurnkeyWalletSessionException_js_1.TurnkeyWalletSessionException; } });
|
package/dist/cjs/utils.js
CHANGED
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.formatNotificationDescription = exports.isThrownException = exports.THROWN_EXCEPTIONS = void 0;
|
|
4
4
|
exports.THROWN_EXCEPTIONS = [
|
|
5
|
-
'GrpcUnaryRequestException',
|
|
6
|
-
'HttpRequestException',
|
|
7
5
|
'Web3Exception',
|
|
8
|
-
'GeneralException',
|
|
9
6
|
'LedgerException',
|
|
10
|
-
'LedgerCosmosException',
|
|
11
|
-
'MetamaskException',
|
|
12
7
|
'TrezorException',
|
|
13
|
-
'CosmosWalletException',
|
|
14
|
-
'TransactionException',
|
|
15
8
|
'WalletException',
|
|
16
|
-
'TrustWalletException',
|
|
17
|
-
'OkxWalletException',
|
|
18
9
|
'BitGetException',
|
|
10
|
+
'GeneralException',
|
|
11
|
+
'MetamaskException',
|
|
12
|
+
'OkxWalletException',
|
|
13
|
+
'HttpRequestException',
|
|
14
|
+
'TransactionException',
|
|
15
|
+
'TrustWalletException',
|
|
16
|
+
'LedgerCosmosException',
|
|
17
|
+
'CosmosWalletException',
|
|
18
|
+
'GrpcUnaryRequestException',
|
|
19
|
+
'TurnkeyWalletSessionException',
|
|
19
20
|
];
|
|
20
21
|
const isThrownException = (exception) => {
|
|
21
22
|
if (exports.THROWN_EXCEPTIONS.includes(exception.constructor.name)) {
|
|
@@ -12,4 +12,5 @@ import { CosmosWalletException } from './CosmosWalletException.js';
|
|
|
12
12
|
import { TransactionException } from './TransactionException.js';
|
|
13
13
|
import { WalletException } from './WalletException.js';
|
|
14
14
|
import { BitGetException } from './BitGetException.js';
|
|
15
|
-
|
|
15
|
+
import { TurnkeyWalletSessionException } from './TurnkeyWalletSessionException.js';
|
|
16
|
+
export { Web3Exception, LedgerException, TrezorException, WalletException, GeneralException, BitGetException, MetamaskException, TransactionException, TrustWalletException, OkxWalletException, HttpRequestException, LedgerCosmosException, CosmosWalletException, GrpcUnaryRequestException, TurnkeyWalletSessionException, };
|
|
@@ -12,4 +12,5 @@ import { CosmosWalletException } from './CosmosWalletException.js';
|
|
|
12
12
|
import { TransactionException } from './TransactionException.js';
|
|
13
13
|
import { WalletException } from './WalletException.js';
|
|
14
14
|
import { BitGetException } from './BitGetException.js';
|
|
15
|
-
|
|
15
|
+
import { TurnkeyWalletSessionException } from './TurnkeyWalletSessionException.js';
|
|
16
|
+
export { Web3Exception, LedgerException, TrezorException, WalletException, GeneralException, BitGetException, MetamaskException, TransactionException, TrustWalletException, OkxWalletException, HttpRequestException, LedgerCosmosException, CosmosWalletException, GrpcUnaryRequestException, TurnkeyWalletSessionException, };
|
package/dist/esm/utils.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
export const THROWN_EXCEPTIONS = [
|
|
2
|
-
'GrpcUnaryRequestException',
|
|
3
|
-
'HttpRequestException',
|
|
4
2
|
'Web3Exception',
|
|
5
|
-
'GeneralException',
|
|
6
3
|
'LedgerException',
|
|
7
|
-
'LedgerCosmosException',
|
|
8
|
-
'MetamaskException',
|
|
9
4
|
'TrezorException',
|
|
10
|
-
'CosmosWalletException',
|
|
11
|
-
'TransactionException',
|
|
12
5
|
'WalletException',
|
|
13
|
-
'TrustWalletException',
|
|
14
|
-
'OkxWalletException',
|
|
15
6
|
'BitGetException',
|
|
7
|
+
'GeneralException',
|
|
8
|
+
'MetamaskException',
|
|
9
|
+
'OkxWalletException',
|
|
10
|
+
'HttpRequestException',
|
|
11
|
+
'TransactionException',
|
|
12
|
+
'TrustWalletException',
|
|
13
|
+
'LedgerCosmosException',
|
|
14
|
+
'CosmosWalletException',
|
|
15
|
+
'GrpcUnaryRequestException',
|
|
16
|
+
'TurnkeyWalletSessionException',
|
|
16
17
|
];
|
|
17
18
|
export const isThrownException = (exception) => {
|
|
18
19
|
if (THROWN_EXCEPTIONS.includes(exception.constructor.name)) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/exceptions",
|
|
3
3
|
"description": "List of exceptions that can be reused throughout Injective's projects.",
|
|
4
|
-
"version": "1.15.
|
|
4
|
+
"version": "1.15.15",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"shx": "^0.3.4"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "f27adbec3b9a84e4af2c2fbf5dbcac802b254130"
|
|
65
65
|
}
|