@rdfx/stream 0.0.37 → 0.0.39

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/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "readable-stream": "^4.7.0"
7
7
  },
8
8
  "devDependencies": {
9
- "@rdfx/parsers": "0.0.37"
9
+ "@rdfx/parsers": "0.0.39"
10
10
  },
11
11
  "files": [
12
12
  "LICENSE",
@@ -29,5 +29,5 @@
29
29
  },
30
30
  "type": "module",
31
31
  "types": "./dist/index.d.ts",
32
- "version": "0.0.37"
32
+ "version": "0.0.39"
33
33
  }
@@ -1,7 +0,0 @@
1
- import type { Stream } from "@rdfjs/types";
2
- /**
3
- * Converts an Iterable or AsyncIterable of Quads into a spec-compliant
4
- * Node.js / RDF/JS Stream using your existing readable-stream package.
5
- */
6
- export declare function iterableToStream<Q>(iterable: Iterable<Q> | AsyncIterable<Q>): Stream;
7
- //# sourceMappingURL=iterableToArray.d.ts.map
@@ -1,14 +0,0 @@
1
- import { Readable } from "readable-stream";
2
- /**
3
- * Converts an Iterable or AsyncIterable of Quads into a spec-compliant
4
- * Node.js / RDF/JS Stream using your existing readable-stream package.
5
- */
6
- export function iterableToStream(iterable) {
7
- // Readable.from handles both sync and async iterators automatically,
8
- // supports backpressure, flowing mode ('data'), and paused mode ('readable').
9
- return Readable.from(iterable, {
10
- objectMode: true, // Crucial for RDF Quads so they aren't treated as raw buffers/strings
11
- highWaterMark: 16, // Small buffer size to keep memory footprint low in React Native
12
- });
13
- }
14
- //# sourceMappingURL=iterableToArray.js.map