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

@based/client

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@based/client - npm Package Compare versions

Comparing version 4.6.3 to 4.7.0

1

dist/index.d.ts

@@ -29,2 +29,3 @@ import { BasedOpts, AuthState, FunctionResponseListeners, Settings, FunctionQueue, ObserveState, ObserveQueue, Cache, GetObserveQueue } from './types';

isDrainingStreams: boolean;
maxPublishQueue: number;
publishQueue: ChannelPublishQueue;

@@ -31,0 +32,0 @@ functionQueue: FunctionQueue;

@@ -46,2 +46,3 @@ "use strict";

// --------- Queue
this.maxPublishQueue = 1000;
this.publishQueue = [];

@@ -48,0 +49,0 @@ this.functionQueue = [];

3

dist/outgoing/index.js

@@ -166,3 +166,4 @@ "use strict";

const addToPublishQueue = (client, id, payload) => {
if (client.publishQueue.length > 500) {
// TODO: make this configurable at some point
if (client.publishQueue.length > client.maxPublishQueue) {
client.publishQueue.shift();

@@ -169,0 +170,0 @@ }

{
"name": "@based/client",
"version": "4.6.3",
"version": "4.7.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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