tigerbeetle-node 0.14.177 → 0.14.178
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/dist/bin/aarch64-linux-gnu/client.node +0 -0
- package/dist/bin/aarch64-linux-musl/client.node +0 -0
- package/dist/bin/aarch64-macos/client.node +0 -0
- package/dist/bin/x86_64-linux-gnu/client.node +0 -0
- package/dist/bin/x86_64-linux-musl/client.node +0 -0
- package/dist/bin/x86_64-macos/client.node +0 -0
- package/dist/bin/x86_64-windows/client.node +0 -0
- package/package.json +1 -1
- package/src/node.zig +4 -1
- package/src/translate.zig +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/src/node.zig
CHANGED
|
@@ -386,7 +386,10 @@ fn decode_array(comptime Event: type, env: c.napi_env, array: c.napi_value, even
|
|
|
386
386
|
// Arrays are only used for padding/reserved fields,
|
|
387
387
|
// instead of requiring the user to explicitly set an empty buffer,
|
|
388
388
|
// we just hide those fields and preserve their default value.
|
|
389
|
-
.Array => @as(
|
|
389
|
+
.Array => @as(
|
|
390
|
+
*const field.type,
|
|
391
|
+
@ptrCast(@alignCast(field.default_value.?)),
|
|
392
|
+
).*,
|
|
390
393
|
else => unreachable,
|
|
391
394
|
};
|
|
392
395
|
|
package/src/translate.zig
CHANGED
|
@@ -161,7 +161,7 @@ pub fn u128_from_value(env: c.napi_env, value: c.napi_value, comptime name: [:0]
|
|
|
161
161
|
// we would need to convert, but big endian is not supported by tigerbeetle.
|
|
162
162
|
var result: u128 = 0;
|
|
163
163
|
var sign_bit: c_int = undefined;
|
|
164
|
-
const words
|
|
164
|
+
const words: *[2]u64 = @ptrCast(&result);
|
|
165
165
|
var word_count: usize = 2;
|
|
166
166
|
switch (c.napi_get_value_bigint_words(env, value, &sign_bit, &word_count, words)) {
|
|
167
167
|
c.napi_ok => {},
|