@atom/teletype-client
Advanced tools
Comparing version 0.37.0 to 0.37.1
@@ -149,2 +149,22 @@ const assert = require('assert') | ||
getMemberIdentity (peerId) { | ||
if (!this.memberIdentitiesById.has(peerId)) { | ||
const originalStackTrace = new Error().stack | ||
const metadata = { | ||
localPeerId: this.getPeerId(), | ||
requestedPeerId: peerId, | ||
isHub: this.isHub, | ||
networkState: this.state, | ||
connectedMemberIds: Array.from(this.connectedMemberIds), | ||
memberIdsWithIdentity: Array.from(this.memberIdentitiesById.keys()), | ||
} | ||
process.nextTick(() => { | ||
const error = new Error('Attempted to get identity for non-connected member') | ||
error.metadata = metadata | ||
error.privateMetadata = { originalStackTrace } | ||
error.privateMetadataDescription = originalStackTrace | ||
throw error | ||
}) | ||
} | ||
return this.memberIdentitiesById.get(peerId) | ||
@@ -151,0 +171,0 @@ } |
{ | ||
"name": "@atom/teletype-client", | ||
"version": "0.37.0", | ||
"version": "0.37.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
688689
12055