Skip to content

Commit

Permalink
build: removing node-abort-controller polyfill
Browse files Browse the repository at this point in the history
Abort controller functionality is included in node now.
  • Loading branch information
tegefaulkes committed Jun 7, 2022
1 parent 1f6a96c commit b8c5d39
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
11 changes: 0 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
"jose": "^4.3.6",
"lexicographic-integer": "^1.1.0",
"multiformats": "^9.4.8",
"node-abort-controller": "^3.0.1",
"node-forge": "^0.10.0",
"pako": "^1.0.11",
"prompts": "^2.4.1",
Expand Down
1 change: 0 additions & 1 deletion src/nodes/NodeConnectionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import type {
SeedNodes,
} from './types';
import type NodeManager from './NodeManager';
import type { AbortSignal } from 'node-abort-controller';
import { withF } from '@matrixai/resources';
import Logger from '@matrixai/logger';
import { ready, StartStop } from '@matrixai/async-init/dist/StartStop';
Expand Down
4 changes: 1 addition & 3 deletions src/nodes/NodeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ import type {
import type { ClaimEncoded } from '../claims/types';
import type { Timer } from '../types';
import type { PromiseDeconstructed } from '../utils/utils';
import type { AbortSignal } from 'node-abort-controller';
import Logger from '@matrixai/logger';
import { StartStop, ready } from '@matrixai/async-init/dist/StartStop';
import { AbortController } from 'node-abort-controller';
import * as nodesErrors from './errors';
import * as nodesUtils from './utils';
import * as networkUtils from '../network/utils';
Expand Down Expand Up @@ -394,7 +392,7 @@ class NodeManager {
/**
* Adds a node to the node graph. This assumes that you have already authenticated the node
* Updates the node if the node already exists
* This operation is blocking by default - set `block` to false to make it non-blocking
* This operation is blocking by default - set `block` 2qto false to make it non-blocking
* @param nodeId - Id of the node we wish to add
* @param nodeAddress - Expected address of the node we want to add
* @param block - Flag for if the operation should block or utilize the async queue
Expand Down

0 comments on commit b8c5d39

Please sign in to comment.