Skip to content

Commit

Permalink
revert: keep break in limit step
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Sep 13, 2024
1 parent c952d1f commit 24b590d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/base/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export default function limit(limit) {
count++
if (count <= limit) {
yield chunk
} else {
break
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions test/e2e/definitions/limit-offset.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@
[ base:streamValues ( "{ age: 34 }"^^code:EcmaScript "{ age: 23 }"^^code:EcmaScript "{ age: 10 }"^^code:EcmaScript) ]
[ base:offset (1) ]
[ base:limit (1) ]
# pipeline stalls if limit is last step
[
base:map( "value => value"^^code:EcmaScript )
]
)
] .

0 comments on commit 24b590d

Please sign in to comment.