Skip to content

Commit

Permalink
Adding safety checks are metadata.keys logging (#112)
Browse files Browse the repository at this point in the history
* Adding safety checks are metadata.keys logging

* Bumping version for walletlink
  • Loading branch information
allen-at-work authored and GitHub Enterprise committed Sep 21, 2021
1 parent f927053 commit 880792f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/src/connection/WalletLinkConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export class WalletLinkConnection {
ServerMessageSessionConfigUpdated
this.walletLinkAnalytics.sendEvent(EVENTS.SESSION_CONFIG_RECEIVED, {
sessionIdHash: Session.hash(sessionId),
metadata_keys: Object.keys(msg.metadata)
metadata_keys:
msg && msg.metadata ? Object.keys(msg.metadata) : undefined
})
this.sessionConfigSubject.next({
webhookId: msg.webhookId,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wallet/walletlink",
"version": "2.1.13",
"version": "2.1.14",
"description": "WalletLink JavaScript SDK Internal",
"keywords": [
"cipher",
Expand Down

0 comments on commit 880792f

Please sign in to comment.