@libp2p/interface-connection-encrypter
Advanced tools
Comparing version 4.0.0 to 4.0.1-1c6702c8
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-1c6702c8", | ||
"description": "Connection Encrypter interface for libp2p", | ||
"license": "Apache-2.0 OR MIT", | ||
"homepage": "https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/interface-connection-encrypter#readme", | ||
"homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/interface-connection-encrypter#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/libp2p/js-libp2p-interfaces.git" | ||
"url": "git+https://github.com/libp2p/js-libp2p.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/libp2p/js-libp2p-interfaces/issues" | ||
"url": "https://github.com/libp2p/js-libp2p/issues" | ||
}, | ||
@@ -18,6 +18,2 @@ "keywords": [ | ||
], | ||
"engines": { | ||
"node": ">=16.0.0", | ||
"npm": ">=7.0.0" | ||
}, | ||
"type": "module", | ||
@@ -156,7 +152,7 @@ "types": "./dist/src/index.d.ts", | ||
"dependencies": { | ||
"@libp2p/interface-peer-id": "^2.0.0", | ||
"@libp2p/interface-peer-id": "2.0.2-1c6702c8", | ||
"it-stream-types": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^38.1.0" | ||
"aegir": "^39.0.5" | ||
}, | ||
@@ -163,0 +159,0 @@ "typedoc": { |
@@ -5,4 +5,4 @@ # @libp2p/interface-connection-encrypter <!-- omit in toc --> | ||
[](https://discuss.libp2p.io) | ||
[](https://codecov.io/gh/libp2p/js-libp2p-interfaces) | ||
[](https://github.com/libp2p/js-libp2p-interfaces/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) | ||
[](https://codecov.io/gh/libp2p/js-libp2p) | ||
[](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) | ||
@@ -100,3 +100,3 @@ > Connection Encrypter interface for libp2p | ||
- <https://libp2p.github.io/js-libp2p-interfaces/modules/_libp2p_interface_connection_encrypter.html> | ||
- <https://libp2p.github.io/js-libp2p/modules/_libp2p_interface_connection_encrypter.html> | ||
@@ -103,0 +103,0 @@ ## License |
@@ -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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
16092
14
120
2
+ Added@libp2p/interface-peer-id@2.0.2-1c6702c8(transitive)
- Removed@libp2p/interface-peer-id@2.0.2(transitive)