Skip to content

Commit 6fdbf1a

Browse files
committed
Ignore problems
1 parent 23421f3 commit 6fdbf1a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/add/index.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,16 @@ module.exports = configure(({ ky }) => {
4040
body: await toFormData(input)
4141
})
4242

43-
for await (let file of ndjson(toIterable(res.body))) {
44-
file = toCamel(file)
45-
// console.log(file)
46-
if (options.progress && file.bytes) {
47-
options.progress(file.bytes)
48-
} else {
49-
yield toCoreInterface(file)
50-
}
51-
}
43+
yield toCoreInterface(await res.json());
44+
// for await (let file of ndjson(toIterable(res.body))) {
45+
// file = toCamel(file)
46+
// // console.log(file)
47+
// if (options.progress && file.bytes) {
48+
// options.progress(file.bytes)
49+
// } else {
50+
// yield toCoreInterface(file)
51+
// }
52+
// }
5253
}
5354
})
5455

0 commit comments

Comments
 (0)