Skip to content

Commit b8c5d39

Browse files
committed
build: removing node-abort-controller polyfill
Abort controller functionality is included in node now.
1 parent 1f6a96c commit b8c5d39

4 files changed

Lines changed: 1 addition & 16 deletions

File tree

package-lock.json

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@
9999
"jose": "^4.3.6",
100100
"lexicographic-integer": "^1.1.0",
101101
"multiformats": "^9.4.8",
102-
"node-abort-controller": "^3.0.1",
103102
"node-forge": "^0.10.0",
104103
"pako": "^1.0.11",
105104
"prompts": "^2.4.1",

src/nodes/NodeConnectionManager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import type {
1313
SeedNodes,
1414
} from './types';
1515
import type NodeManager from './NodeManager';
16-
import type { AbortSignal } from 'node-abort-controller';
1716
import { withF } from '@matrixai/resources';
1817
import Logger from '@matrixai/logger';
1918
import { ready, StartStop } from '@matrixai/async-init/dist/StartStop';

src/nodes/NodeManager.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ import type {
1515
import type { ClaimEncoded } from '../claims/types';
1616
import type { Timer } from '../types';
1717
import type { PromiseDeconstructed } from '../utils/utils';
18-
import type { AbortSignal } from 'node-abort-controller';
1918
import Logger from '@matrixai/logger';
2019
import { StartStop, ready } from '@matrixai/async-init/dist/StartStop';
21-
import { AbortController } from 'node-abort-controller';
2220
import * as nodesErrors from './errors';
2321
import * as nodesUtils from './utils';
2422
import * as networkUtils from '../network/utils';
@@ -394,7 +392,7 @@ class NodeManager {
394392
/**
395393
* Adds a node to the node graph. This assumes that you have already authenticated the node
396394
* Updates the node if the node already exists
397-
* This operation is blocking by default - set `block` to false to make it non-blocking
395+
* This operation is blocking by default - set `block` 2qto false to make it non-blocking
398396
* @param nodeId - Id of the node we wish to add
399397
* @param nodeAddress - Expected address of the node we want to add
400398
* @param block - Flag for if the operation should block or utilize the async queue

0 commit comments

Comments
 (0)