lazy-sparql-result-reader 1.0.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.
package/README.md
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
<a href="https://www.npmjs.com/package/lazy-sparql-result-reader">
|
|
7
7
|
<img alt="npm" src="https://img.shields.io/npm/v/lazy-sparql-result-reader" />
|
|
8
8
|
</a>
|
|
9
|
+
<a href="https://crates.io/crates/lazy-sparql-result-reader">
|
|
10
|
+
<img alt="crates.io" src="https://img.shields.io/crates/v/lazy-sparql-result-reader.svg" />
|
|
11
|
+
</a>
|
|
9
12
|
</div>
|
|
10
13
|
|
|
11
14
|
A fast SPARQL results parser for JavaScript and TypeScript, compiled from Rust via WebAssembly.
|
|
@@ -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;
|
|
@@ -16,7 +16,6 @@ export interface InitOutput {
|
|
|
16
16
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
17
17
|
readonly __externref_table_alloc: () => number;
|
|
18
18
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
19
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
20
19
|
readonly __wbindgen_start: () => void;
|
|
21
20
|
}
|
|
22
21
|
|
|
@@ -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
|
|
|
@@ -308,26 +310,6 @@ function __wbg_get_imports() {
|
|
|
308
310
|
const ret = arg0.call(arg1);
|
|
309
311
|
return ret;
|
|
310
312
|
}, arguments) };
|
|
311
|
-
imports.wbg.__wbg_debug_9ad80675faf0c9cf = function(arg0, arg1, arg2, arg3) {
|
|
312
|
-
console.debug(arg0, arg1, arg2, arg3);
|
|
313
|
-
};
|
|
314
|
-
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
315
|
-
let deferred0_0;
|
|
316
|
-
let deferred0_1;
|
|
317
|
-
try {
|
|
318
|
-
deferred0_0 = arg0;
|
|
319
|
-
deferred0_1 = arg1;
|
|
320
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
321
|
-
} finally {
|
|
322
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
imports.wbg.__wbg_error_7bc7d576a6aaf855 = function(arg0) {
|
|
326
|
-
console.error(arg0);
|
|
327
|
-
};
|
|
328
|
-
imports.wbg.__wbg_error_ad1ecdacd1bb600d = function(arg0, arg1, arg2, arg3) {
|
|
329
|
-
console.error(arg0, arg1, arg2, arg3);
|
|
330
|
-
};
|
|
331
313
|
imports.wbg.__wbg_getReader_b6676f6d8b326942 = function(arg0) {
|
|
332
314
|
const ret = arg0.getReader();
|
|
333
315
|
return ret;
|
|
@@ -336,16 +318,10 @@ function __wbg_get_imports() {
|
|
|
336
318
|
const ret = Reflect.get(arg0, arg1);
|
|
337
319
|
return ret;
|
|
338
320
|
}, arguments) };
|
|
339
|
-
imports.wbg.__wbg_info_b7fa8ce2e59d29c6 = function(arg0, arg1, arg2, arg3) {
|
|
340
|
-
console.info(arg0, arg1, arg2, arg3);
|
|
341
|
-
};
|
|
342
321
|
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
343
322
|
const ret = arg0.length;
|
|
344
323
|
return ret;
|
|
345
324
|
};
|
|
346
|
-
imports.wbg.__wbg_log_f614673762e98966 = function(arg0, arg1, arg2, arg3) {
|
|
347
|
-
console.log(arg0, arg1, arg2, arg3);
|
|
348
|
-
};
|
|
349
325
|
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
350
326
|
const ret = new Object();
|
|
351
327
|
return ret;
|
|
@@ -358,10 +334,6 @@ function __wbg_get_imports() {
|
|
|
358
334
|
const ret = new Uint8Array(arg0);
|
|
359
335
|
return ret;
|
|
360
336
|
};
|
|
361
|
-
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
362
|
-
const ret = new Error();
|
|
363
|
-
return ret;
|
|
364
|
-
};
|
|
365
337
|
imports.wbg.__wbg_new_b546ae120718850e = function() {
|
|
366
338
|
const ret = new Map();
|
|
367
339
|
return ret;
|
|
@@ -416,13 +388,6 @@ function __wbg_get_imports() {
|
|
|
416
388
|
const ret = arg0.set(arg1, arg2);
|
|
417
389
|
return ret;
|
|
418
390
|
};
|
|
419
|
-
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
420
|
-
const ret = arg1.stack;
|
|
421
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
422
|
-
const len1 = WASM_VECTOR_LEN;
|
|
423
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
424
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
425
|
-
};
|
|
426
391
|
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
427
392
|
const ret = typeof global === 'undefined' ? null : global;
|
|
428
393
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -447,19 +412,26 @@ function __wbg_get_imports() {
|
|
|
447
412
|
const ret = arg0.then(arg1);
|
|
448
413
|
return ret;
|
|
449
414
|
};
|
|
450
|
-
imports.wbg.__wbg_warn_165ef4f6bcfc05e7 = function(arg0, arg1, arg2, arg3) {
|
|
451
|
-
console.warn(arg0, arg1, arg2, arg3);
|
|
452
|
-
};
|
|
453
415
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
454
416
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
455
417
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
456
418
|
return ret;
|
|
457
419
|
};
|
|
458
|
-
imports.wbg.
|
|
459
|
-
// Cast intrinsic for `
|
|
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`.
|
|
460
427
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h9431bfc0c26898f5, wasm_bindgen__convert__closures_____invoke__h53040b977ccf16ad);
|
|
461
428
|
return ret;
|
|
462
429
|
};
|
|
430
|
+
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
431
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
432
|
+
const ret = arg0;
|
|
433
|
+
return ret;
|
|
434
|
+
};
|
|
463
435
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
464
436
|
const table = wasm.__wbindgen_externrefs;
|
|
465
437
|
const offset = table.grow(4);
|
|
Binary file
|