barnard59-base 2.4.1 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # barnard59-base
2
2
 
3
+ ## 2.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - f6d593c: `limit` step would not break the pipeline when the stream produces a very large or infinite stream
8
+
3
9
  ## 2.4.1
4
10
 
5
11
  ### Patch Changes
package/limit.js CHANGED
@@ -12,6 +12,8 @@ export default function limit(limit) {
12
12
  count++
13
13
  if (count <= limit) {
14
14
  yield chunk
15
+ } else {
16
+ break
15
17
  }
16
18
  }
17
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barnard59-base",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "Linked Data pipelines",
5
5
  "main": "index.js",
6
6
  "type": "module",