quiverdb 0.9.13 → 0.9.15

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.
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quiverdb",
3
- "version": "0.9.13",
3
+ "version": "0.9.15",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
package/src/create.ts CHANGED
@@ -22,7 +22,7 @@ function setElementArray(
22
22
  const nameBuf = toCString(name);
23
23
 
24
24
  if (values.length === 0) {
25
- check(lib.quiver_element_set_array_integer(elemPtr, nameBuf.buf, null, 0));
25
+ check(lib.quiver_element_set_array_integer(elemPtr, nameBuf.buf, null, 0, null));
26
26
  return;
27
27
  }
28
28
 
@@ -30,7 +30,7 @@ function setElementArray(
30
30
 
31
31
  if (typeof first === "bigint") {
32
32
  const arr = allocNativeInt64(values as bigint[]);
33
- check(lib.quiver_element_set_array_integer(elemPtr, nameBuf.buf, arr.buf, values.length));
33
+ check(lib.quiver_element_set_array_integer(elemPtr, nameBuf.buf, arr.buf, values.length, null));
34
34
  return;
35
35
  }
36
36
 
@@ -38,17 +38,17 @@ function setElementArray(
38
38
  const allIntegers = (values as number[]).every((v) => Number.isInteger(v));
39
39
  if (allIntegers) {
40
40
  const arr = allocNativeInt64(values as number[]);
41
- check(lib.quiver_element_set_array_integer(elemPtr, nameBuf.buf, arr.buf, values.length));
41
+ check(lib.quiver_element_set_array_integer(elemPtr, nameBuf.buf, arr.buf, values.length, null));
42
42
  } else {
43
43
  const arr = allocNativeFloat64(values as number[]);
44
- check(lib.quiver_element_set_array_float(elemPtr, nameBuf.buf, arr.buf, values.length));
44
+ check(lib.quiver_element_set_array_float(elemPtr, nameBuf.buf, arr.buf, values.length, null));
45
45
  }
46
46
  return;
47
47
  }
48
48
 
49
49
  if (typeof first === "string") {
50
50
  const { table, keepalive: _keepalive } = allocNativeStringArray(values as string[]);
51
- check(lib.quiver_element_set_array_string(elemPtr, nameBuf.buf, table.buf, values.length));
51
+ check(lib.quiver_element_set_array_string(elemPtr, nameBuf.buf, table.buf, values.length, null));
52
52
  return;
53
53
  }
54
54
 
package/src/loader.ts CHANGED
@@ -50,9 +50,9 @@ const elementSymbols = {
50
50
  quiver_element_set_float: { args: [P, BUF, F64], returns: I32 },
51
51
  quiver_element_set_string: { args: [P, BUF, BUF], returns: I32 },
52
52
  quiver_element_set_null: { args: [P, BUF], returns: I32 },
53
- quiver_element_set_array_integer: { args: [P, BUF, P, I32], returns: I32 },
54
- quiver_element_set_array_float: { args: [P, BUF, P, I32], returns: I32 },
55
- quiver_element_set_array_string: { args: [P, BUF, P, I32], returns: I32 },
53
+ quiver_element_set_array_integer: { args: [P, BUF, P, I32, P], returns: I32 },
54
+ quiver_element_set_array_float: { args: [P, BUF, P, I32, P], returns: I32 },
55
+ quiver_element_set_array_string: { args: [P, BUF, P, I32, P], returns: I32 },
56
56
  } as const;
57
57
 
58
58
  const crudSymbols = {