Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
chore: update @libp2p/interface-metrics (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored Jul 1, 2022
1 parent c718a27 commit de16bc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"release": "aegir release"
},
"dependencies": {
"@libp2p/interface-metrics": "^1.0.3"
"@libp2p/interface-metrics": "^2.0.0"
},
"devDependencies": {
"aegir": "^37.0.7",
Expand Down
6 changes: 5 additions & 1 deletion test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ describe('tracked-map', () => {
expect(data.system).to.equal(system)
expect(data.component).to.equal(component)
expect(data.metric).to.equal(metric)
value = data.value

if (typeof data.value === 'number') {
value = data.value
}

callCount++
}

Expand Down

0 comments on commit de16bc7

Please sign in to comment.