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.
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tigerbeetle-node",
3
- "version": "0.14.177",
3
+ "version": "0.14.178",
4
4
  "description": "TigerBeetle Node.js client",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
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(*const field.type, @ptrCast(field.default_value.?)).*,
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 = @as(*[2]u64, @ptrCast(&result));
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 => {},