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

Commit 70c67e2

Browse files
author
Alan Shaw
authoredNov 22, 2021
fix: typo (#3946)
`ipfs.allAll` should be `ipfs.addAll`
1 parent 041fc29 commit 70c67e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎packages/ipfs-core-utils/src/files/normalise-candidate-multiple.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
This repository has been archived.