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

serum-vial

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serum-vial - npm Package Compare versions

Comparing version 1.4.9 to 1.4.10

4

dist/minion.js

@@ -58,3 +58,3 @@ "use strict";

_tid = undefined;
MAX_BACKPRESSURE = 1024 * 1024;
MAX_BACKPRESSURE = 3 * 1024 * 1024;
constructor(_nodeEndpoint, _markets) {

@@ -292,3 +292,3 @@ this._nodeEndpoint = _nodeEndpoint;

let retries = 0;
while (ws.getBufferedAmount() > 0) {
while (ws.getBufferedAmount() > this.MAX_BACKPRESSURE / 2) {
await (0, helpers_1.wait)(10);

@@ -295,0 +295,0 @@ retries += 1;

{
"name": "serum-vial",
"version": "1.4.9",
"version": "1.4.10",
"engines": {

@@ -41,3 +41,3 @@ "node": ">=15"

"dependencies": {
"@project-serum/serum": "^0.13.60",
"@project-serum/serum": "^0.13.61",
"@solana/web3.js": "^1.31.0",

@@ -52,3 +52,3 @@ "@types/bintrees": "^1.0.3",

"node-fetch": "^2.6.1",
"uWebSockets.js": "git+https://git@github.com/uNetworking/uWebSockets.js.git#v20.4.0",
"uWebSockets.js": "git+https://git@github.com/uNetworking/uWebSockets.js.git#v20.6.0",
"winston": "^3.3.3",

@@ -60,12 +60,12 @@ "ws": "^8.3.0",

"@types/jest": "^27.0.3",
"@types/node": "^16.11.11",
"@types/node": "^17.0.0",
"@types/node-fetch": "^2.5.12",
"@types/ws": "^8.2.1",
"@types/ws": "^8.2.2",
"cross-var": "^1.1.0",
"husky": "^7.0.4",
"jest": "^27.4.3",
"jest": "^27.4.5",
"lint-staged": "^12.1.2",
"prettier": "^2.5.0",
"ts-jest": "^27.0.7",
"typescript": "^4.5.2"
"prettier": "^2.5.1",
"ts-jest": "^27.1.1",
"typescript": "^4.5.4"
},

@@ -72,0 +72,0 @@ "lint-staged": {

@@ -201,6 +201,2 @@ <img src="https://raw.githubusercontent.com/tardis-dev/serum-vial/master/logo.svg">

- each WebSocket client is required to actively send native WebSocket [pings](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#pings_and_pongs_the_heartbeat_of_websockets) to the server with interval less than 30 seconds, otherwise connection may be dropped due to inactivity
- message compression is enabled for clients supporting [`permessage-deflate`](https://tools.ietf.org/html/rfc7692)
<br/>

@@ -207,0 +203,0 @@

@@ -76,3 +76,3 @@ import { getLayoutVersion, Market } from '@project-serum/serum'

private MAX_BACKPRESSURE = 1024 * 1024
private MAX_BACKPRESSURE = 3 * 1024 * 1024
constructor(private readonly _nodeEndpoint: string, private readonly _markets: SerumMarket[]) {

@@ -356,3 +356,3 @@ this._marketNames = _markets.map((m) => m.name)

let retries = 0
while (ws.getBufferedAmount() > 0) {
while (ws.getBufferedAmount() > this.MAX_BACKPRESSURE / 2) {
await wait(10)

@@ -359,0 +359,0 @@ retries += 1

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