@libp2p/interface-connection-encrypter
Advanced tools
Comparing version 4.0.0 to 4.0.1
export declare class UnexpectedPeerError extends Error { | ||
code: string; | ||
constructor(message?: string); | ||
static get code(): string; | ||
static readonly code = "ERR_UNEXPECTED_PEER"; | ||
} | ||
@@ -9,3 +9,3 @@ export declare class InvalidCryptoExchangeError extends Error { | ||
constructor(message?: string); | ||
static get code(): string; | ||
static readonly code = "ERR_INVALID_CRYPTO_EXCHANGE"; | ||
} | ||
@@ -15,4 +15,4 @@ export declare class InvalidCryptoTransmissionError extends Error { | ||
constructor(message?: string); | ||
static get code(): string; | ||
static readonly code = "ERR_INVALID_CRYPTO_TRANSMISSION"; | ||
} | ||
//# sourceMappingURL=errors.d.ts.map |
export class UnexpectedPeerError extends Error { | ||
code; | ||
constructor(message = 'Unexpected Peer') { | ||
@@ -6,7 +7,6 @@ super(message); | ||
} | ||
static get code() { | ||
return 'ERR_UNEXPECTED_PEER'; | ||
} | ||
static code = 'ERR_UNEXPECTED_PEER'; | ||
} | ||
export class InvalidCryptoExchangeError extends Error { | ||
code; | ||
constructor(message = 'Invalid crypto exchange') { | ||
@@ -16,7 +16,6 @@ super(message); | ||
} | ||
static get code() { | ||
return 'ERR_INVALID_CRYPTO_EXCHANGE'; | ||
} | ||
static code = 'ERR_INVALID_CRYPTO_EXCHANGE'; | ||
} | ||
export class InvalidCryptoTransmissionError extends Error { | ||
code; | ||
constructor(message = 'Invalid crypto transmission') { | ||
@@ -26,6 +25,4 @@ super(message); | ||
} | ||
static get code() { | ||
return 'ERR_INVALID_CRYPTO_TRANSMISSION'; | ||
} | ||
static code = 'ERR_INVALID_CRYPTO_TRANSMISSION'; | ||
} | ||
//# sourceMappingURL=errors.js.map |
{ | ||
"name": "@libp2p/interface-connection-encrypter", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Connection Encrypter interface for libp2p", | ||
@@ -159,3 +159,3 @@ "license": "Apache-2.0 OR MIT", | ||
"devDependencies": { | ||
"aegir": "^38.1.0" | ||
"aegir": "^39.0.5" | ||
}, | ||
@@ -162,0 +162,0 @@ "typedoc": { |
@@ -10,5 +10,3 @@ | ||
static get code (): string { | ||
return 'ERR_UNEXPECTED_PEER' | ||
} | ||
static readonly code = 'ERR_UNEXPECTED_PEER' | ||
} | ||
@@ -24,5 +22,3 @@ | ||
static get code (): string { | ||
return 'ERR_INVALID_CRYPTO_EXCHANGE' | ||
} | ||
static readonly code = 'ERR_INVALID_CRYPTO_EXCHANGE' | ||
} | ||
@@ -38,5 +34,3 @@ | ||
static get code (): string { | ||
return 'ERR_INVALID_CRYPTO_TRANSMISSION' | ||
} | ||
static readonly code = 'ERR_INVALID_CRYPTO_TRANSMISSION' | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16554
123