New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@libp2p/interface-connection-encrypter

Package Overview
Dependencies
Maintainers
6
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interface-connection-encrypter - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

6

dist/src/errors.d.ts
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

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