serum-vial
Advanced tools
Comparing version 1.4.9 to 1.4.10
@@ -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
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable and can be used to inject untrusted code or reduce the likelihood of a reproducible install.
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable and can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
303624
905