@@ -32,7 +32,7 @@ export async function * normaliseCandidateMultiple (input, normaliseContent) {
3232 // fs.ReadStream
3333 // @ts -expect-error _readableState is a property of a node fs.ReadStream
3434 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' )
3636 }
3737
3838 // Browser ReadableStream
@@ -60,7 +60,7 @@ export async function * normaliseCandidateMultiple (input, normaliseContent) {
6060 // (Async)Iterable<Number>
6161 // (Async)Iterable<Bytes>
6262 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' )
6464 }
6565
6666 // (Async)Iterable<fs.ReadStream>
@@ -89,7 +89,7 @@ export async function * normaliseCandidateMultiple (input, normaliseContent) {
8989 // Note: Detected _after_ (Async)Iterable<?> because Node.js fs.ReadStreams have a
9090 // `path` property that passes this check.
9191 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' )
9393 }
9494
9595 throw errCode ( new Error ( 'Unexpected input: ' + typeof input ) , 'ERR_UNEXPECTED_INPUT' )
0 commit comments