We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23421f3 commit 6fdbf1aCopy full SHA for 6fdbf1a
src/add/index.js
@@ -40,15 +40,16 @@ module.exports = configure(({ ky }) => {
40
body: await toFormData(input)
41
})
42
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
+ yield toCoreInterface(await res.json());
+ // for await (let file of ndjson(toIterable(res.body))) {
+ // file = toCamel(file)
+ // // console.log(file)
+ // if (options.progress && file.bytes) {
+ // options.progress(file.bytes)
+ // } else {
+ // yield toCoreInterface(file)
+ // }
52
53
}
54
55
0 commit comments