From 2b1e8751493aefd3b9149e660357f73377ab5d0b Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Wed, 4 May 2022 13:51:46 +0100 Subject: [PATCH] fix: update interfaces (#178) Update to the latest interfaces version --- package.json | 4 ++-- src/listener.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 20895ff..757ed33 100644 --- a/package.json +++ b/package.json @@ -135,6 +135,7 @@ "release": "aegir release" }, "dependencies": { + "@libp2p/interfaces": "^1.3.31", "@libp2p/logger": "^1.1.2", "@libp2p/utils": "^1.0.9", "@multiformats/mafmt": "^11.0.2", @@ -144,8 +145,7 @@ "stream-to-it": "^0.2.2" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^1.1.17", - "@libp2p/interfaces": "^1.3.14", + "@libp2p/interface-compliance-tests": "^1.1.32", "aegir": "^37.0.4", "it-all": "^1.0.6", "it-pipe": "^2.0.3", diff --git a/src/listener.ts b/src/listener.ts index 2ec7e43..20e58a1 100644 --- a/src/listener.ts +++ b/src/listener.ts @@ -6,7 +6,7 @@ import { getMultiaddrs, multiaddrToNetConfig } from './utils.js' -import { EventEmitter, CustomEvent } from '@libp2p/interfaces' +import { EventEmitter, CustomEvent } from '@libp2p/interfaces/events' import type { Connection } from '@libp2p/interfaces/connection' import type { MultiaddrConnection, Upgrader, Listener } from '@libp2p/interfaces/transport' import type { Server } from 'net'