Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@injectivelabs/exceptions

Package Overview
Dependencies
Maintainers
12
Versions
243
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@injectivelabs/exceptions - npm Package Compare versions

Comparing version 1.14.16-beta.0 to 1.14.16

dist/cjs/exceptions/base.d.ts

20

dist/cjs/exceptions/index.d.ts

@@ -1,19 +0,3 @@

import { GrpcUnaryRequestException } from './GrpcUnaryRequestException';
import { HttpRequestException } from './HttpRequestException';
import { Web3Exception } from './Web3Exception';
import { GeneralException } from './GeneralException';
import { LedgerException } from './LedgerException';
import { LedgerCosmosException } from './LedgerCosmosException';
import { MetamaskException } from './MetamaskException';
import { TrustWalletException } from './TrustWalletException';
import { OkxWalletException } from './OkxWalletException';
import { TrezorException } from './TrezorException';
import { CosmosWalletException } from './CosmosWalletException';
import { TransactionException } from './TransactionException';
import { WalletException } from './WalletException';
import { Exception } from '../types';
import { BitGetException } from './BitGetException';
export type ThrownException = GrpcUnaryRequestException | HttpRequestException | Web3Exception | GeneralException | LedgerException | MetamaskException | TrustWalletException | OkxWalletException | TrezorException | CosmosWalletException | TransactionException | WalletException | LedgerCosmosException | BitGetException;
export declare const isThrownException: (exception: Error | Exception) => boolean;
export { Web3Exception, LedgerException, TrezorException, WalletException, GeneralException, BitGetException, MetamaskException, TransactionException, TrustWalletException, OkxWalletException, HttpRequestException, LedgerCosmosException, CosmosWalletException, GrpcUnaryRequestException, };
export * from './exceptions';
export * from './types';
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
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 = exports.isThrownException = void 0;
const GrpcUnaryRequestException_1 = require("./GrpcUnaryRequestException");
Object.defineProperty(exports, "GrpcUnaryRequestException", { enumerable: true, get: function () { return GrpcUnaryRequestException_1.GrpcUnaryRequestException; } });
const HttpRequestException_1 = require("./HttpRequestException");
Object.defineProperty(exports, "HttpRequestException", { enumerable: true, get: function () { return HttpRequestException_1.HttpRequestException; } });
const Web3Exception_1 = require("./Web3Exception");
Object.defineProperty(exports, "Web3Exception", { enumerable: true, get: function () { return Web3Exception_1.Web3Exception; } });
const GeneralException_1 = require("./GeneralException");
Object.defineProperty(exports, "GeneralException", { enumerable: true, get: function () { return GeneralException_1.GeneralException; } });
const LedgerException_1 = require("./LedgerException");
Object.defineProperty(exports, "LedgerException", { enumerable: true, get: function () { return LedgerException_1.LedgerException; } });
const LedgerCosmosException_1 = require("./LedgerCosmosException");
Object.defineProperty(exports, "LedgerCosmosException", { enumerable: true, get: function () { return LedgerCosmosException_1.LedgerCosmosException; } });
const MetamaskException_1 = require("./MetamaskException");
Object.defineProperty(exports, "MetamaskException", { enumerable: true, get: function () { return MetamaskException_1.MetamaskException; } });
const TrustWalletException_1 = require("./TrustWalletException");
Object.defineProperty(exports, "TrustWalletException", { enumerable: true, get: function () { return TrustWalletException_1.TrustWalletException; } });
const OkxWalletException_1 = require("./OkxWalletException");
Object.defineProperty(exports, "OkxWalletException", { enumerable: true, get: function () { return OkxWalletException_1.OkxWalletException; } });
const TrezorException_1 = require("./TrezorException");
Object.defineProperty(exports, "TrezorException", { enumerable: true, get: function () { return TrezorException_1.TrezorException; } });
const CosmosWalletException_1 = require("./CosmosWalletException");
Object.defineProperty(exports, "CosmosWalletException", { enumerable: true, get: function () { return CosmosWalletException_1.CosmosWalletException; } });
const TransactionException_1 = require("./TransactionException");
Object.defineProperty(exports, "TransactionException", { enumerable: true, get: function () { return TransactionException_1.TransactionException; } });
const WalletException_1 = require("./WalletException");
Object.defineProperty(exports, "WalletException", { enumerable: true, get: function () { return WalletException_1.WalletException; } });
const exception_1 = require("../exception");
const BitGetException_1 = require("./BitGetException");
Object.defineProperty(exports, "BitGetException", { enumerable: true, get: function () { return BitGetException_1.BitGetException; } });
const isThrownException = (exception) => {
if (exception instanceof exception_1.ConcreteException) {
return true;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
if ([
'GrpcUnaryRequestException',
'HttpRequestException',
'Web3Exception',
'GeneralException',
'LedgerException',
'LedgerCosmosException',
'MetamaskException',
'TrezorException',
'CosmosWalletException',
'TransactionException',
'WalletException',
'TrustWalletException',
'OkxWalletException',
'BitGetException',
].includes(exception.constructor.name)) {
return true;
}
return false;
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
exports.isThrownException = isThrownException;
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./exceptions"), exports);
__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map
export * from './exceptions';
export * from './exception';
export * from './utils';
export * from './types';
//# sourceMappingURL=index.d.ts.map

@@ -18,5 +18,4 @@ "use strict";

__exportStar(require("./exceptions"), exports);
__exportStar(require("./exception"), exports);
__exportStar(require("./utils"), exports);
__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map

@@ -1,19 +0,3 @@

import { GrpcUnaryRequestException } from './GrpcUnaryRequestException';
import { HttpRequestException } from './HttpRequestException';
import { Web3Exception } from './Web3Exception';
import { GeneralException } from './GeneralException';
import { LedgerException } from './LedgerException';
import { LedgerCosmosException } from './LedgerCosmosException';
import { MetamaskException } from './MetamaskException';
import { TrustWalletException } from './TrustWalletException';
import { OkxWalletException } from './OkxWalletException';
import { TrezorException } from './TrezorException';
import { CosmosWalletException } from './CosmosWalletException';
import { TransactionException } from './TransactionException';
import { WalletException } from './WalletException';
import { Exception } from '../types';
import { BitGetException } from './BitGetException';
export type ThrownException = GrpcUnaryRequestException | HttpRequestException | Web3Exception | GeneralException | LedgerException | MetamaskException | TrustWalletException | OkxWalletException | TrezorException | CosmosWalletException | TransactionException | WalletException | LedgerCosmosException | BitGetException;
export declare const isThrownException: (exception: Error | Exception) => boolean;
export { Web3Exception, LedgerException, TrezorException, WalletException, GeneralException, BitGetException, MetamaskException, TransactionException, TrustWalletException, OkxWalletException, HttpRequestException, LedgerCosmosException, CosmosWalletException, GrpcUnaryRequestException, };
export * from './exceptions';
export * from './types';
//# sourceMappingURL=index.d.ts.map

@@ -1,41 +0,3 @@

import { GrpcUnaryRequestException } from './GrpcUnaryRequestException';
import { HttpRequestException } from './HttpRequestException';
import { Web3Exception } from './Web3Exception';
import { GeneralException } from './GeneralException';
import { LedgerException } from './LedgerException';
import { LedgerCosmosException } from './LedgerCosmosException';
import { MetamaskException } from './MetamaskException';
import { TrustWalletException } from './TrustWalletException';
import { OkxWalletException } from './OkxWalletException';
import { TrezorException } from './TrezorException';
import { CosmosWalletException } from './CosmosWalletException';
import { TransactionException } from './TransactionException';
import { WalletException } from './WalletException';
import { ConcreteException } from '../exception';
import { BitGetException } from './BitGetException';
export const isThrownException = (exception) => {
if (exception instanceof ConcreteException) {
return true;
}
if ([
'GrpcUnaryRequestException',
'HttpRequestException',
'Web3Exception',
'GeneralException',
'LedgerException',
'LedgerCosmosException',
'MetamaskException',
'TrezorException',
'CosmosWalletException',
'TransactionException',
'WalletException',
'TrustWalletException',
'OkxWalletException',
'BitGetException',
].includes(exception.constructor.name)) {
return true;
}
return false;
};
export { Web3Exception, LedgerException, TrezorException, WalletException, GeneralException, BitGetException, MetamaskException, TransactionException, TrustWalletException, OkxWalletException, HttpRequestException, LedgerCosmosException, CosmosWalletException, GrpcUnaryRequestException, };
export * from './exceptions';
export * from './types';
//# sourceMappingURL=index.js.map
export * from './exceptions';
export * from './exception';
export * from './utils';
export * from './types';
//# sourceMappingURL=index.d.ts.map
export * from './exceptions';
export * from './exception';
export * from './utils';
export * from './types';
//# sourceMappingURL=index.js.map
{
"name": "@injectivelabs/exceptions",
"description": "List of exceptions that can be reused throughout Injective's projects.",
"version": "1.14.16-beta.0",
"version": "1.14.16",
"sideEffects": false,

@@ -35,7 +35,7 @@ "license": "Apache-2.0",

"@injectivelabs/grpc-web": "^0.0.1",
"@injectivelabs/ts-types": "^1.14.16-beta.0",
"@injectivelabs/ts-types": "^1.14.16",
"http-status-codes": "^2.2.0",
"shx": "^0.3.2"
},
"gitHead": "b484c80a66f32dad91eaa613d5f2d9a93b08aab5"
"gitHead": "d36e6b972a245f8288032f26cf717d7bb0bfc60d"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc