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.1 to 1.4.2

7

dist/data_mapper.js

@@ -225,8 +225,7 @@ "use strict";

const bidsDiff = accountsData.bids !== undefined ? this._getL2Diff(this._currentL2Snapshot.bids, newL2Snapshot.bids) : [];
if (l3Diff.length > 0) {
// publish l3Diff only if full l3 snapshot was not requested
if (l3Diff.length > 0 && this._l3SnapshotPublishRequested === false) {
for (let i = 0; i < l3Diff.length; i++) {
const message = l3Diff[i];
if (this._l3SnapshotPublishRequested === false) {
yield this._putInEnvelope(message, true);
}
yield this._putInEnvelope(message, true);
// detect l2 trades based on fills

@@ -233,0 +232,0 @@ if (message.type === 'fill' && message.maker === false) {

{
"name": "serum-vial",
"version": "1.4.1",
"version": "1.4.2",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=15"

@@ -325,9 +325,8 @@ import { EVENT_QUEUE_LAYOUT, Market, Orderbook, getLayoutVersion } from '@project-serum/serum'

if (l3Diff.length > 0) {
// publish l3Diff only if full l3 snapshot was not requested
if (l3Diff.length > 0 && this._l3SnapshotPublishRequested === false) {
for (let i = 0; i < l3Diff.length; i++) {
const message = l3Diff[i]!
if (this._l3SnapshotPublishRequested === false) {
yield this._putInEnvelope(message, true)
}
yield this._putInEnvelope(message, true)

@@ -334,0 +333,0 @@ // detect l2 trades based on fills

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