tigerbeetle-node
Advanced tools
Comparing version 0.14.164 to 0.14.165
@@ -14,3 +14,3 @@ "use strict"; | ||
const client = (0, _1.createClient)({ | ||
cluster_id: 0, | ||
cluster_id: 0n, | ||
replica_addresses: ['3001'] | ||
@@ -17,0 +17,0 @@ }); |
@@ -10,3 +10,3 @@ export * from './bindings'; | ||
export interface ClientInitArgs { | ||
cluster_id: number; | ||
cluster_id: bigint; | ||
concurrency_max?: number; | ||
@@ -13,0 +13,0 @@ replica_addresses: Array<string | number>; |
@@ -9,3 +9,3 @@ "use strict"; | ||
const client = (0, _1.createClient)({ | ||
cluster_id: 0, | ||
cluster_id: 0n, | ||
replica_addresses: ['3001'] | ||
@@ -12,0 +12,0 @@ }); |
{ | ||
"name": "tigerbeetle-node", | ||
"version": "0.14.164", | ||
"version": "0.14.165", | ||
"description": "TigerBeetle Node.js client", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -24,3 +24,4 @@ --- | ||
```console | ||
npm install tigerbeetle-node | ||
npm install --prefix ../../ | ||
npm install | ||
``` | ||
@@ -82,3 +83,3 @@ | ||
const client = createClient({ | ||
cluster_id: 0, | ||
cluster_id: 0n, | ||
replica_addresses: [process.env.TB_ADDRESS || '3000'] | ||
@@ -351,6 +352,6 @@ }); | ||
The maximum batch size is set in the TigerBeetle server. The default | ||
is 8191. | ||
is 8190. | ||
```javascript | ||
const BATCH_SIZE = 8191; | ||
const BATCH_SIZE = 8190; | ||
for (let i = 0; i < transfers.length; i += BATCH_SIZE) { | ||
@@ -357,0 +358,0 @@ const transferErrors = await client.createTransfers(transfers.slice(i, Math.min(transfers.length, BATCH_SIZE))); |
@@ -18,3 +18,3 @@ import assert from 'assert' | ||
const client = createClient({ | ||
cluster_id: 0, | ||
cluster_id: 0n, | ||
replica_addresses: ['3001'] | ||
@@ -21,0 +21,0 @@ }) |
@@ -73,3 +73,3 @@ export * from './bindings' | ||
interface BindingInitArgs { | ||
cluster_id: number, // u32 | ||
cluster_id: bigint, // u128 | ||
concurrency: number, // u32 | ||
@@ -86,3 +86,3 @@ replica_addresses: Buffer, | ||
export interface ClientInitArgs { | ||
cluster_id: number, // u32 | ||
cluster_id: bigint, // u128 | ||
concurrency_max?: number, // u32 | ||
@@ -89,0 +89,0 @@ replica_addresses: Array<string | number>, |
@@ -12,3 +12,3 @@ import assert, { AssertionError } from 'assert' | ||
const client = createClient({ | ||
cluster_id: 0, | ||
cluster_id: 0n, | ||
replica_addresses: ['3001'] | ||
@@ -25,3 +25,3 @@ }) | ||
credits_pending: 0n, | ||
credits_posted: 0n, | ||
credits_posted: 0n, | ||
user_data_128: 0n, | ||
@@ -41,3 +41,3 @@ user_data_64: 0n, | ||
credits_pending: 0n, | ||
credits_posted: 0n, | ||
credits_posted: 0n, | ||
user_data_128: 0n, | ||
@@ -98,3 +98,3 @@ user_data_64: 0n, | ||
assert.strictEqual(account1.debits_posted, 0n) | ||
assert.strictEqual(account1.debits_pending, 0n) | ||
assert.strictEqual(account1.debits_pending, 0n) | ||
assert.strictEqual(account1.user_data_128, 0n) | ||
@@ -362,3 +362,3 @@ assert.strictEqual(account1.user_data_64, 0n) | ||
await client.destroy() | ||
} | ||
} | ||
} | ||
@@ -365,0 +365,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15203239
642