Skip to content

Commit

Permalink
fix: test for error name (#2690)
Browse files Browse the repository at this point in the history
This was missed from the error code/name PR
  • Loading branch information
achingbrain authored Sep 9, 2024
1 parent 56ac5be commit 3eb1aff
Show file tree
Hide file tree
Showing 18 changed files with 871 additions and 36 deletions.
2 changes: 1 addition & 1 deletion packages/connection-encrypter-plaintext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@libp2p/peer-id": "^4.2.4",
"it-protobuf-stream": "^1.1.3",
"it-stream-types": "^2.0.1",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"uint8arraylist": "^2.4.8",
"uint8arrays": "^5.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/connection-encrypter-tls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"asn1js": "^3.0.5",
"it-pushable": "^3.2.3",
"it-stream-types": "^2.0.1",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"uint8arraylist": "^2.4.8",
"uint8arrays": "^5.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"@noble/hashes": "^1.4.0",
"asn1js": "^3.0.5",
"multiformats": "^13.1.0",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"uint8arraylist": "^2.4.8",
"uint8arrays": "^5.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-compliance-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"p-event": "^6.0.1",
"p-limit": "^6.0.0",
"p-wait-for": "^5.0.2",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"sinon": "^18.0.0",
"uint8arraylist": "^2.4.8",
"uint8arrays": "^5.1.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/kad-dht/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"p-event": "^6.0.1",
"p-queue": "^8.0.1",
"progress-events": "^1.0.0",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"race-signal": "^1.0.2",
"uint8-varint": "^2.0.4",
"uint8arraylist": "^2.4.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/libp2p/src/connection-monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class ConnectionMonitor implements Startable {
signal
})
} catch (err: any) {
if (err.code !== 'ERR_UNSUPPORTED_PROTOCOL') {
if (err.name !== 'UnsupportedProtocolError') {
throw err
}

Expand Down
2 changes: 1 addition & 1 deletion packages/peer-record/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@libp2p/utils": "^5.4.9",
"@multiformats/multiaddr": "^12.2.3",
"multiformats": "^13.2.2",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"uint8-varint": "^2.0.4",
"uint8arraylist": "^2.4.8",
"uint8arrays": "^5.1.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/peer-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"it-all": "^3.0.6",
"mortice": "^3.0.4",
"multiformats": "^13.1.0",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"uint8arraylist": "^2.4.8",
"uint8arrays": "^5.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol-autonat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"it-parallel": "^3.0.7",
"it-pipe": "^3.0.1",
"multiformats": "^13.2.2",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"uint8arraylist": "^2.4.8"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol-dcutr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@multiformats/multiaddr-matcher": "^1.2.1",
"delay": "^6.0.0",
"it-protobuf-stream": "^1.1.3",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"uint8arraylist": "^2.4.8"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@libp2p/interface": "^1.7.0",
"@libp2p/interface-internal": "^1.3.4",
"it-protobuf-stream": "^1.1.3",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"uint8arraylist": "^2.4.8",
"uint8arrays": "^5.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol-identify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"it-drain": "^3.0.7",
"it-parallel": "^3.0.7",
"it-protobuf-stream": "^1.1.3",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"uint8arraylist": "^2.4.8",
"uint8arrays": "^5.1.0",
"wherearewe": "^2.0.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/pubsub-floodsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"dependencies": {
"@libp2p/interface": "^1.7.0",
"@libp2p/pubsub": "^9.0.26",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"uint8arraylist": "^2.4.8",
"uint8arrays": "^5.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"p-defer": "^4.0.1",
"p-wait-for": "^5.0.2",
"protons": "^7.5.0",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"sinon": "^18.0.0"
},
"sideEffects": false
Expand Down
2 changes: 1 addition & 1 deletion packages/record/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"doc-check": "aegir doc-check"
},
"dependencies": {
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"uint8arraylist": "^2.4.8",
"uint8arrays": "^5.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/transport-circuit-relay-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"multiformats": "^13.1.0",
"p-defer": "^4.0.1",
"progress-events": "^1.0.0",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"race-signal": "^1.0.2",
"uint8arraylist": "^2.4.8",
"uint8arrays": "^5.1.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/transport-webrtc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"p-event": "^6.0.1",
"p-timeout": "^6.1.2",
"progress-events": "^1.0.0",
"protons-runtime": "^5.4.0",
"protons-runtime": "^5.5.0",
"race-signal": "^1.0.2",
"react-native-webrtc": "^124.0.4",
"uint8-varint": "^2.0.4",
Expand Down
873 changes: 854 additions & 19 deletions patches/@chainsafe+libp2p-gossipsub+13.2.0.patch

Large diffs are not rendered by default.

0 comments on commit 3eb1aff

Please sign in to comment.