Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.

Commit 33d337a

Browse files
committed
chore: deps and linting
1 parent 9622ea1 commit 33d337a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@
3333
"bugs": "https://github.com/libp2p/js-peer-info/issues",
3434
"homepage": "https://github.com/libp2p/js-peer-info",
3535
"devDependencies": {
36-
"aegir": "^18.2.2",
36+
"aegir": "^19.0.5",
3737
"buffer-loader": "0.1.0",
38-
"bundlesize": "~0.17.0",
38+
"bundlesize": "~0.18.0",
3939
"chai": "^4.2.0",
4040
"dirty-chai": "^2.0.1"
4141
},
4242
"dependencies": {
4343
"mafmt": "^6.0.7",
4444
"multiaddr": "^6.0.6",
45-
"peer-id": "~0.12.2",
45+
"peer-id": "libp2p/js-peer-id#feat/async-await",
4646
"unique-by": "^1.0.0"
4747
},
4848
"contributors": [

test/index.spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ describe('peer-info', () => {
1515
let pi
1616

1717
beforeEach(async () => {
18-
const id = await Id.create({bits: 512})
18+
const id = await Id.create({ bits: 512 })
1919
pi = new Info(id)
2020
})
2121

2222
it('create with Id class', async () => {
23-
const id = await Id.create({bits: 512})
23+
const id = await Id.create({ bits: 512 })
2424
const pi = new Info(id)
2525
const pi2 = new Info(id)
2626
expect(pi.id).to.exist()
@@ -53,7 +53,7 @@ describe('peer-info', () => {
5353
})
5454

5555
it('.create with existing id', async () => {
56-
const id = await Id.create({bits: 512})
56+
const id = await Id.create({ bits: 512 })
5757
const info = await Info.create(id)
5858
expect(info.id).to.exist()
5959
expect(info.id.isEqual(id)).to.equal(true)

0 commit comments

Comments
 (0)