tigerbeetle-node 0.16.57 → 0.16.59

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.16.57",
3
+ "version": "0.16.59",
4
4
  "description": "TigerBeetle Node.js client",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
package/src/c.zig CHANGED
@@ -1,3 +1,3 @@
1
- pub usingnamespace @cImport({
1
+ pub const c = @cImport({
2
2
  @cInclude("node_api.h");
3
3
  });
package/src/translate.zig CHANGED
@@ -1,12 +1,12 @@
1
1
  const std = @import("std");
2
2
  const assert = std.debug.assert;
3
- const c = @import("c.zig");
3
+ const c = @import("c.zig").c;
4
4
 
5
5
  pub fn register_function(
6
6
  env: c.napi_env,
7
7
  exports: c.napi_value,
8
8
  comptime name: [:0]const u8,
9
- function: *const fn (env: c.napi_env, info: c.napi_callback_info) callconv(.C) c.napi_value,
9
+ function: *const fn (env: c.napi_env, info: c.napi_callback_info) callconv(.c) c.napi_value,
10
10
  ) !void {
11
11
  var napi_function: c.napi_value = undefined;
12
12
  if (c.napi_create_function(env, null, 0, function, null, &napi_function) != c.napi_ok) {