Skip to content

Commit

Permalink
chore: update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
danisharora099 committed Oct 10, 2024
1 parent 53db6d1 commit ff7aba8
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 8 deletions.
6 changes: 4 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"type": "module",
"workspaces": [
"packages/custom-event-polyfill",
"packages/proto",
"packages/interfaces",
"packages/utils",
Expand All @@ -16,8 +17,7 @@
"packages/tests",
"packages/browser-tests",
"packages/build-utils",
"packages/react-native-polyfills",
"packages/custom-event-polyfill"
"packages/react-native-polyfills"
],
"scripts": {
"prepare": "husky",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/lib/connection_manager.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "@waku/custom-event-polyfill";
import type { Peer, PeerId, PeerInfo, PeerStore } from "@libp2p/interface";
import { CustomEvent, TypedEventEmitter } from "@libp2p/interface";
import { TypedEventEmitter } from "@libp2p/interface";
import {
ConnectionManagerOptions,
DiscoveryTrigger,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@waku/custom-event-polyfill";
import { Connection, Peer, PeerId, Stream } from "@libp2p/interface";
import { expect } from "chai";
import sinon from "sinon";
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/lib/stream_manager/stream_manager.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@waku/custom-event-polyfill";
import type { Peer, PeerId, PeerUpdate, Stream } from "@libp2p/interface";
import type { Libp2p } from "@waku/interfaces";
import { Logger } from "@waku/utils";
Expand Down
2 changes: 2 additions & 0 deletions packages/discovery/src/dns/dns_discovery.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "@waku/custom-event-polyfill";

import {
CustomEvent,
PeerDiscovery,
Expand Down
1 change: 0 additions & 1 deletion packages/discovery/src/local-peer-cache/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import "@waku/custom-event-polyfill";
import { TypedEventEmitter } from "@libp2p/interface";
import {
CustomEvent,
IdentifyResult,
PeerDiscovery,
PeerDiscoveryEvents,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "@waku/custom-event-polyfill";

import { CustomEvent, TypedEventEmitter } from "@libp2p/interface";
import { peerDiscoverySymbol as symbol } from "@libp2p/interface";
import type {
Expand Down
3 changes: 2 additions & 1 deletion packages/interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"README.md"
],
"dependencies": {
"@waku/proto": "^0.0.8"
"@waku/proto": "^0.0.8",
"@waku/custom-event-polyfill": "^0.0.1"
}
}
1 change: 1 addition & 0 deletions packages/interfaces/src/connection_manager.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@waku/custom-event-polyfill";
import type { Peer, PeerId, TypedEventEmitter } from "@libp2p/interface";

import { PubsubTopic } from "./misc.js";
Expand Down
1 change: 1 addition & 0 deletions packages/relay/src/relay.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@waku/custom-event-polyfill";
import {
GossipSub,
GossipSubComponents,
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/src/protocols/filter/subscription_manager.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@waku/custom-event-polyfill";
import type { Peer } from "@libp2p/interface";
import type { PeerId } from "@libp2p/interface";
import { ConnectionManager, FilterCore } from "@waku/core";
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/src/waku/wait_for_remote_peer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@waku/custom-event-polyfill";
import type { IdentifyResult } from "@libp2p/interface";
import { FilterCodecs, LightPushCodec, StoreCodec } from "@waku/core";
import type { IWaku, Libp2p } from "@waku/interfaces";
Expand Down
3 changes: 2 additions & 1 deletion packages/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
"p-timeout": "^6.1.0",
"portfinder": "^1.0.32",
"sinon": "^18.0.0",
"tail": "^2.2.6"
"tail": "^2.2.6",
"@waku/custom-event-polyfill": "*"
},
"devDependencies": {
"@libp2p/bootstrap": "^10.1.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@waku/custom-event-polyfill";
import type { IdentifyResult } from "@libp2p/interface";
import type { PeerId } from "@libp2p/interface";
import type { LightNode } from "@waku/interfaces";
Expand Down
1 change: 1 addition & 0 deletions packages/tests/tests/connection-mananger/dials.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@waku/custom-event-polyfill";
import type { PeerInfo } from "@libp2p/interface";
import { CustomEvent } from "@libp2p/interface";
import { createSecp256k1PeerId } from "@libp2p/peer-id-factory";
Expand Down
1 change: 1 addition & 0 deletions packages/tests/tests/connection-mananger/events.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@waku/custom-event-polyfill";
import type { PeerId, PeerInfo } from "@libp2p/interface";
import { CustomEvent, TypedEventEmitter } from "@libp2p/interface";
import { createSecp256k1PeerId } from "@libp2p/peer-id-factory";
Expand Down
1 change: 1 addition & 0 deletions packages/tests/tests/connection-mananger/methods.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@waku/custom-event-polyfill";
import type { PeerId } from "@libp2p/interface";
import { CustomEvent } from "@libp2p/interface";
import { createSecp256k1PeerId } from "@libp2p/peer-id-factory";
Expand Down
1 change: 1 addition & 0 deletions packages/tests/tests/multiaddr.node.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@waku/custom-event-polyfill";
import type { PeerId } from "@libp2p/interface";
import type { PeerInfo } from "@libp2p/interface";
import { CustomEvent } from "@libp2p/interface";
Expand Down

0 comments on commit ff7aba8

Please sign in to comment.