Skip to content

Commit 14e53d0

Browse files
committed
fix code review
1 parent 2d79059 commit 14e53d0

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ipns
1+
# IPNS
22

33
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)
44
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
@@ -36,7 +36,7 @@ This module contains all the necessary code for creating, understanding and vali
3636
#### Create record
3737

3838
```js
39-
const ipns = require('./ipns')
39+
const ipns = require('ipns')
4040

4141
ipns.create(privateKey, value, seqNumber, eol, (err, entryData) => {
4242
// your code goes here
@@ -46,7 +46,7 @@ ipns.create(privateKey, value, seqNumber, eol, (err, entryData) => {
4646
#### Validate record
4747

4848
```js
49-
const ipns = require('./ipns')
49+
const ipns = require('ipns')
5050

5151
ipns.validate(publicKey, ipnsEntry, (err) => {
5252
// your code goes here
@@ -65,7 +65,7 @@ ipns.validate(publicKey, ipnsEntry, (err) => {
6565
#### Datastore key
6666

6767
```js
68-
const ipns = require('./ipns')
68+
const ipns = require('ipns')
6969

7070
ipns.getDatastoreKey(peerId);
7171
```

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"chai": "^4.1.2",
4343
"chai-string": "^1.4.0",
4444
"dirty-chai": "^2.0.1",
45-
"ipfs": "^0.28.2",
45+
"ipfs": "^0.29.3",
4646
"ipfsd-ctl": "^0.36.0",
4747
"libp2p-crypto": "^0.13.0",
4848
"multihashes": "^0.4.13"

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const ipnsEntryProto = require('./pb/ipns.proto')
99
const ERRORS = require('./errors')
1010

1111
/**
12-
* Create creates a new ipns entry and signs it with the given private key.
12+
* Creates a new ipns entry and signs it with the given private key.
1313
* Note: This function does not embed the public key. If you want to do that, use `EmbedPublicKey`.
1414
*
1515
* @param {Object} privateKey private key for signing the record.

test/index.spec.js

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const ipns = require('../src')
1818
const df = DaemonFactory.create({ type: 'proc', exec: ipfs })
1919

2020
describe('ipns', function () {
21+
this.timeout(20 * 1000)
22+
2123
const cid = 'QmWEekX7EZLUd9VXRNMRXW3LXe4F6x7mB8oPxY5XLptrBq'
2224

2325
let ipfs = null

0 commit comments

Comments
 (0)