lazy-sparql-result-reader 1.1.1 → 2.0.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.
@@ -1,13 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
 
4
- export function read(stream: ReadableStream, batch_size: number, callback: Function): Promise<void>;
4
+ export function read(stream: ReadableStream, batch_size: number, limit: number | null | undefined, offset: number, callback: Function): Promise<void>;
5
5
 
6
6
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
7
7
 
8
8
  export interface InitOutput {
9
9
  readonly memory: WebAssembly.Memory;
10
- readonly read: (a: any, b: number, c: any) => any;
10
+ readonly read: (a: any, b: number, c: number, d: number, e: any) => any;
11
11
  readonly wasm_bindgen__convert__closures_____invoke__h53040b977ccf16ad: (a: number, b: number, c: any) => void;
12
12
  readonly wasm_bindgen__closure__destroy__h9431bfc0c26898f5: (a: number, b: number) => void;
13
13
  readonly wasm_bindgen__convert__closures_____invoke__h0204f368625abfd5: (a: number, b: number, c: any, d: any) => void;
@@ -219,11 +219,13 @@ function wasm_bindgen__convert__closures_____invoke__h0204f368625abfd5(arg0, arg
219
219
  /**
220
220
  * @param {ReadableStream} stream
221
221
  * @param {number} batch_size
222
+ * @param {number | null | undefined} limit
223
+ * @param {number} offset
222
224
  * @param {Function} callback
223
225
  * @returns {Promise<void>}
224
226
  */
225
- export function read(stream, batch_size, callback) {
226
- const ret = wasm.read(stream, batch_size, callback);
227
+ export function read(stream, batch_size, limit, offset, callback) {
228
+ const ret = wasm.read(stream, batch_size, isLikeNone(limit) ? 0x100000001 : (limit) >>> 0, offset, callback);
227
229
  return ret;
228
230
  }
229
231
 
@@ -415,11 +417,21 @@ function __wbg_get_imports() {
415
417
  const ret = getStringFromWasm0(arg0, arg1);
416
418
  return ret;
417
419
  };
418
- imports.wbg.__wbindgen_cast_c6111fef16576abb = function(arg0, arg1) {
419
- // Cast intrinsic for `Closure(Closure { dtor_idx: 40, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
420
+ imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
421
+ // Cast intrinsic for `U64 -> Externref`.
422
+ const ret = BigInt.asUintN(64, arg0);
423
+ return ret;
424
+ };
425
+ imports.wbg.__wbindgen_cast_d2d0cc24b1b6ed59 = function(arg0, arg1) {
426
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 42, function: Function { arguments: [Externref], shim_idx: 43, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
420
427
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h9431bfc0c26898f5, wasm_bindgen__convert__closures_____invoke__h53040b977ccf16ad);
421
428
  return ret;
422
429
  };
430
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
431
+ // Cast intrinsic for `F64 -> Externref`.
432
+ const ret = arg0;
433
+ return ret;
434
+ };
423
435
  imports.wbg.__wbindgen_init_externref_table = function() {
424
436
  const table = wasm.__wbindgen_externrefs;
425
437
  const offset = table.grow(4);
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "lazy-sparql-result-reader",
3
3
  "type": "module",
4
4
  "description": "A lazy sparql result reader",
5
- "version": "1.1.1",
5
+ "version": "2.0.2",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "repository": {
8
8
  "type": "git",