New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-nats-streaming-buffered-client

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-nats-streaming-buffered-client - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

8

dist/node-nats-streaming-buffered-client.js

@@ -133,2 +133,4 @@ "use strict";

_this.logger.log('[NATS-BUFFERED-CLIENT] Constructing...');
_this.logger.log('[NATS-BUFFERED-CLIENT] Buffer size', _this.bufferSize);
_this.logger.log('[NATS-BUFFERED-CLIENT] Batch size', _this.batchSize);
// Initialize our ring buffer with the requested size

@@ -374,3 +376,3 @@ //

if (this.stan) {
var batchItems = this.buffer.slice(0, this.bufferSize);
var batchItems = this.buffer.slice(0, this.batchSize);
if (!batchItems.length) {

@@ -384,3 +386,3 @@ this.logger.log('[NATS-BUFFERED-CLIENT] Buffer is empty. Going to sleep');

//
this.buffer = this.buffer.slice(this.bufferSize);
this.buffer = this.buffer.slice(this.batchSize);
// Collect publish promises for the entire batch

@@ -409,3 +411,3 @@ //

.then(function () {
_this.logger.log("[NATS-BUFFERED-CLIENT] Buffer utilitisation " + Math.round(_this.buffer.length * 100 / _this.bufferSize) + "%", _this.buffer.length);
_this.logger.log("[NATS-BUFFERED-CLIENT] Buffer utilisation " + Math.round(_this.buffer.length * 100 / _this.bufferSize) + "%", _this.buffer.length);
// Next buffer item batch

@@ -412,0 +414,0 @@ //

{
"name": "node-nats-streaming-buffered-client",
"version": "1.5.0",
"version": "1.5.1",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [],

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