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.5.0 to 1.5.1

12

dist/data_mapper.js

@@ -232,4 +232,12 @@ "use strict";

if (message.type === 'fill' && message.maker === false) {
// this is rather fragile way of finding matching fill, can it be done better?
const matchingMakerFill = l3Diff.find((m) => m.type === 'fill' && m.maker === true && m.size === message.size);
let matchingMakerFill;
for (let j = i - 1; j >= 0; j--) {
const potentialFillMessage = l3Diff[j];
if (potentialFillMessage.type === 'fill' &&
potentialFillMessage.maker === true &&
potentialFillMessage.size === message.size) {
matchingMakerFill = potentialFillMessage;
break;
}
}
const makerFillOrderId = matchingMakerFill !== undefined ? matchingMakerFill.orderId : undefined;

@@ -236,0 +244,0 @@ const makerFillAccount = matchingMakerFill !== undefined ? matchingMakerFill.account : undefined;

2

package.json
{
"name": "serum-vial",
"version": "1.5.0",
"version": "1.5.1",
"engines": {

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

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

if (message.type === 'fill' && message.maker === false) {
// this is rather fragile way of finding matching fill, can it be done better?
let matchingMakerFill
const matchingMakerFill = l3Diff.find(
(m) => m.type === 'fill' && m.maker === true && m.size === message.size
) as Fill | undefined
for (let j = i - 1; j >= 0; j--) {
const potentialFillMessage = l3Diff[j]!
if (
potentialFillMessage.type === 'fill' &&
potentialFillMessage.maker === true &&
potentialFillMessage.size === message.size
) {
matchingMakerFill = potentialFillMessage
break
}
}
const makerFillOrderId = matchingMakerFill !== undefined ? matchingMakerFill.orderId : undefined

@@ -342,0 +351,0 @@

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