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-1c6702c8

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-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 -->

[![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-interfaces.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-interfaces)
[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-interfaces/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-interfaces/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)
[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p)
[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](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

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