Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tigerbeetle-node

Package Overview
Dependencies
Maintainers
3
Versions
318
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tigerbeetle-node - npm Package Compare versions

Comparing version 0.14.164 to 0.14.165

2

dist/benchmark.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc