You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+11-10Lines changed: 11 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ A valid (read: that follows this interface) IPFS core implementation, must expos
67
67
68
68
`callback` must follow `function (err, node) {}` signature, where `err` is an error if the operation was not successful and `node` is a MerkleDAG node of the type [DAGNode][]
69
69
70
-
If no `callback` is passed, a promise is returned.
70
+
Returns a [promise][].
71
71
72
72
73
73
@@ -93,7 +93,7 @@ If no `callback` is passed, a promise is returned.
93
93
94
94
`callback` must follow `function (err, node) {}` signature, where `err` is an error if the operation was not successful and `node` is a MerkleDAG node of the type [DAGNode][]
95
95
96
-
If no `callback` is passed, a promise is returned.
96
+
Returns a [promise][].
97
97
98
98
99
99
@@ -118,7 +118,7 @@ If no `callback` is passed, a promise is returned.
118
118
119
119
`callback` must follow `function (err, node) {}` signature, where `err` is an error if the operation was not successful and `node` is a MerkleDAG node of the type [DAGNode][]
120
120
121
-
If no `callback` is passed, a promise is returned.
121
+
Returns a [promise][].
122
122
123
123
### `object.data`
124
124
@@ -138,7 +138,7 @@ If no `callback` is passed, a promise is returned.
138
138
139
139
`callback` must follow `function (err, data) {}` signature, where `err` is an error if the operation was not successful and `data` is a Buffer with the data that the MerkleDAG node contained.
140
140
141
-
If no `callback` is passed, a promise is returned.
141
+
Returns a [promise][].
142
142
143
143
### `object.links`
144
144
@@ -159,7 +159,7 @@ If no `callback` is passed, a promise is returned.
159
159
160
160
`callback` must follow `function (err, links) {}` signature, where `err` is an error if the operation was not successful and `links` is an Array of [DAGLink](https://github.com/vijayee/js-ipfs-merkle-dag/blob/master/src/dag-node.js#L199-L203) objects.
161
161
162
-
If no `callback` is passed, a promise is returned.
162
+
Returns a [promise][].
163
163
164
164
165
165
@@ -195,7 +195,7 @@ If no `callback` is passed, a promise is returned.
195
195
}
196
196
```
197
197
198
-
If no `callback` is passed, a promise is returned.
198
+
Returns a [promise][].
199
199
200
200
201
201
@@ -226,7 +226,7 @@ If no `callback` is passed, a promise is returned.
226
226
227
227
`callback` must follow `function (err, node) {}` signature, where `err` is an error if the operation was not successful and `node` is a MerkleDAG node of the type [DAGNode][] that resulted by the operation of adding a Link.
228
228
229
-
If no `callback` is passed, a promise is returned.
229
+
Returns a [promise][].
230
230
231
231
232
232
@@ -253,7 +253,7 @@ If no `callback` is passed, a promise is returned.
253
253
254
254
`callback` must follow `function (err, node) {}` signature, where `err` is an error if the operation was not successful and `node` is a MerkleDAG node of the type [DAGNode][] that resulted by the operation of adding a Link.
255
255
256
-
If no `callback` is passed, a promise is returned.
256
+
Returns a [promise][].
257
257
258
258
259
259
@@ -280,7 +280,7 @@ If no `callback` is passed, a promise is returned.
280
280
281
281
`callback` must follow `function (err, node) {}` signature, where `err` is an error if the operation was not successful and `node` is a MerkleDAG node of the type [DAGNode][] that resulted by the operation of adding a Link.
282
282
283
-
If no `callback` is passed, a promise is returned.
283
+
Returns a [promise][].
284
284
285
285
286
286
@@ -307,8 +307,9 @@ If no `callback` is passed, a promise is returned.
307
307
308
308
`callback` must follow `function (err, node) {}` signature, where `err` is an error if the operation was not successful and `node` is a MerkleDAG node of the type [DAGNode][] that resulted by the operation of adding a Link.
309
309
310
-
If no `callback` is passed, a promise is returned.
0 commit comments