From 96943cb68bc01efffd7045f0c5a9a3ed978fbf0e Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Fri, 14 Jan 2022 09:08:29 +0000 Subject: [PATCH] fix: remove abort controller dep (#152) `AbortController` and `AbortSignal` are in browsers and LTS node so the `abort-controller` and `native-abort-controller` deps aren't required any more. --- examples/dialer.js | 1 - package.json | 1 - src/stream.js | 1 - 3 files changed, 3 deletions(-) diff --git a/examples/dialer.js b/examples/dialer.js index aec6d88..69bf2b5 100644 --- a/examples/dialer.js +++ b/examples/dialer.js @@ -3,7 +3,6 @@ const tcp = require('net') const pipe = require('it-pipe') -const AbortController = require('abort-controller') const { toIterable } = require('./util') const Mplex = require('../src') diff --git a/package.json b/package.json index 58c811b..fa2ebb0 100644 --- a/package.json +++ b/package.json @@ -132,7 +132,6 @@ "uint8arrays": "^3.0.0" }, "dependencies": { - "abort-controller": "^3.0.0", "abortable-iterator": "^3.0.2", "bl": "^5.0.0", "debug": "^4.3.1", diff --git a/src/stream.js b/src/stream.js index 1ea5715..e5ab1a6 100644 --- a/src/stream.js +++ b/src/stream.js @@ -1,7 +1,6 @@ 'use strict' const abortable = require('abortable-iterator') -const AbortController = require('abort-controller') const log = require('debug')('libp2p:mplex:stream') const pushable = require('it-pushable') const BufferList = require('bl/BufferList')