@@ -32,7 +32,7 @@ export async function * normaliseCandidateMultiple (input, normaliseContent) {
32
32
// fs.ReadStream
33
33
// @ts -expect-error _readableState is a property of a node fs.ReadStream
34
34
if ( typeof input === 'string' || input instanceof String || isBytes ( input ) || isBlob ( input ) || input . _readableState ) {
35
- throw errCode ( new Error ( 'Unexpected input: single item passed - if you are using ipfs.allAll , please use ipfs.add instead' ) , 'ERR_UNEXPECTED_INPUT' )
35
+ throw errCode ( new Error ( 'Unexpected input: single item passed - if you are using ipfs.addAll , please use ipfs.add instead' ) , 'ERR_UNEXPECTED_INPUT' )
36
36
}
37
37
38
38
// Browser ReadableStream
@@ -60,7 +60,7 @@ export async function * normaliseCandidateMultiple (input, normaliseContent) {
60
60
// (Async)Iterable<Number>
61
61
// (Async)Iterable<Bytes>
62
62
if ( Number . isInteger ( value ) ) {
63
- throw errCode ( new Error ( 'Unexpected input: single item passed - if you are using ipfs.allAll , please use ipfs.add instead' ) , 'ERR_UNEXPECTED_INPUT' )
63
+ throw errCode ( new Error ( 'Unexpected input: single item passed - if you are using ipfs.addAll , please use ipfs.add instead' ) , 'ERR_UNEXPECTED_INPUT' )
64
64
}
65
65
66
66
// (Async)Iterable<fs.ReadStream>
@@ -89,7 +89,7 @@ export async function * normaliseCandidateMultiple (input, normaliseContent) {
89
89
// Note: Detected _after_ (Async)Iterable<?> because Node.js fs.ReadStreams have a
90
90
// `path` property that passes this check.
91
91
if ( isFileObject ( input ) ) {
92
- throw errCode ( new Error ( 'Unexpected input: single item passed - if you are using ipfs.allAll , please use ipfs.add instead' ) , 'ERR_UNEXPECTED_INPUT' )
92
+ throw errCode ( new Error ( 'Unexpected input: single item passed - if you are using ipfs.addAll , please use ipfs.add instead' ) , 'ERR_UNEXPECTED_INPUT' )
93
93
}
94
94
95
95
throw errCode ( new Error ( 'Unexpected input: ' + typeof input ) , 'ERR_UNEXPECTED_INPUT' )
0 commit comments