Skip to content

Commit

Permalink
fix: pass cursor to list in w3 ls (#50)
Browse files Browse the repository at this point in the history
fixes #48

I added a test for this, but the issue doesn't happen in our current
mock impl. I can spend some more time to make the mock implementation
support `--size` and `--cursor` but it's not clear to me that's the
right move yet - feels a little like adding extra code just to make a
test fail.
  • Loading branch information
travis authored Mar 2, 2023
1 parent 4ad8f4c commit 324e913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function list (opts = {}) {
let count = 0
let res
do {
res = await client.capability.upload.list()
res = await client.capability.upload.list({ cursor: res?.cursor })
count += res.results.length
if (res.results.length) {
console.log(uploadListResponseToString(res, opts))
Expand Down

0 comments on commit 324e913

Please sign in to comment.