lazy-sparql-result-reader 0.1.0 → 1.0.0
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.
|
@@ -11,12 +11,12 @@ export interface InitOutput {
|
|
|
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;
|
|
14
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
15
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
14
16
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
15
17
|
readonly __externref_table_alloc: () => number;
|
|
16
18
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
17
19
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
18
|
-
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
19
|
-
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
20
20
|
readonly __wbindgen_start: () => void;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -10,6 +10,71 @@ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
|
10
10
|
? { register: () => {}, unregister: () => {} }
|
|
11
11
|
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
12
12
|
|
|
13
|
+
function debugString(val) {
|
|
14
|
+
// primitive types
|
|
15
|
+
const type = typeof val;
|
|
16
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
17
|
+
return `${val}`;
|
|
18
|
+
}
|
|
19
|
+
if (type == 'string') {
|
|
20
|
+
return `"${val}"`;
|
|
21
|
+
}
|
|
22
|
+
if (type == 'symbol') {
|
|
23
|
+
const description = val.description;
|
|
24
|
+
if (description == null) {
|
|
25
|
+
return 'Symbol';
|
|
26
|
+
} else {
|
|
27
|
+
return `Symbol(${description})`;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
if (type == 'function') {
|
|
31
|
+
const name = val.name;
|
|
32
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
33
|
+
return `Function(${name})`;
|
|
34
|
+
} else {
|
|
35
|
+
return 'Function';
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
// objects
|
|
39
|
+
if (Array.isArray(val)) {
|
|
40
|
+
const length = val.length;
|
|
41
|
+
let debug = '[';
|
|
42
|
+
if (length > 0) {
|
|
43
|
+
debug += debugString(val[0]);
|
|
44
|
+
}
|
|
45
|
+
for(let i = 1; i < length; i++) {
|
|
46
|
+
debug += ', ' + debugString(val[i]);
|
|
47
|
+
}
|
|
48
|
+
debug += ']';
|
|
49
|
+
return debug;
|
|
50
|
+
}
|
|
51
|
+
// Test for built-in
|
|
52
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
53
|
+
let className;
|
|
54
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
55
|
+
className = builtInMatches[1];
|
|
56
|
+
} else {
|
|
57
|
+
// Failed to match the standard '[object ClassName]'
|
|
58
|
+
return toString.call(val);
|
|
59
|
+
}
|
|
60
|
+
if (className == 'Object') {
|
|
61
|
+
// we're a user defined class or Object
|
|
62
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
63
|
+
// easier than looping through ownProperties of `val`.
|
|
64
|
+
try {
|
|
65
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
66
|
+
} catch (_) {
|
|
67
|
+
return 'Object';
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
// errors
|
|
71
|
+
if (val instanceof Error) {
|
|
72
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
73
|
+
}
|
|
74
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
75
|
+
return className;
|
|
76
|
+
}
|
|
77
|
+
|
|
13
78
|
function getArrayU8FromWasm0(ptr, len) {
|
|
14
79
|
ptr = ptr >>> 0;
|
|
15
80
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -201,11 +266,22 @@ function __wbg_get_imports() {
|
|
|
201
266
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
202
267
|
return ret;
|
|
203
268
|
};
|
|
269
|
+
imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
|
|
270
|
+
const ret = Number(arg0);
|
|
271
|
+
return ret;
|
|
272
|
+
};
|
|
204
273
|
imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
205
274
|
const v = arg0;
|
|
206
275
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
207
276
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
208
277
|
};
|
|
278
|
+
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
279
|
+
const ret = debugString(arg1);
|
|
280
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
281
|
+
const len1 = WASM_VECTOR_LEN;
|
|
282
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
283
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
284
|
+
};
|
|
209
285
|
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
210
286
|
const ret = typeof(arg0) === 'function';
|
|
211
287
|
return ret;
|
|
@@ -379,8 +455,8 @@ function __wbg_get_imports() {
|
|
|
379
455
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
380
456
|
return ret;
|
|
381
457
|
};
|
|
382
|
-
imports.wbg.
|
|
383
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
458
|
+
imports.wbg.__wbindgen_cast_27d8f2a9ce018ee0 = function(arg0, arg1) {
|
|
459
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 43, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
384
460
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h9431bfc0c26898f5, wasm_bindgen__convert__closures_____invoke__h53040b977ccf16ad);
|
|
385
461
|
return ret;
|
|
386
462
|
};
|
|
Binary file
|