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.2.6 to 1.2.7

10

dist/data_mapper.js

@@ -100,5 +100,11 @@ "use strict";

};
const publish = this._initialized === false;
const isInit = this._initialized === false;
if (isInit) {
// initialize with last sequence number
const { HEADER } = serum_1.EVENT_QUEUE_LAYOUT;
const header = HEADER.decode(accountsData.eventQueue);
this._lastSeenSeqNum = header.seqNum;
}
this._initialized = true;
yield this._putInEnvelope(l3Snapshot, publish);
yield this._putInEnvelope(l3Snapshot, isInit);
}

@@ -105,0 +111,0 @@ if (this._initialized === false) {

4

package.json
{
"name": "serum-vial",
"version": "1.2.6",
"version": "1.2.7",
"engines": {

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

"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#v19.5.0",
"winston": "^3.3.3",

@@ -54,0 +54,0 @@ "ws": "^8.2.3",

@@ -164,6 +164,13 @@ import { EVENT_QUEUE_LAYOUT, Market, Orderbook, getLayoutVersion } from '@project-serum/serum'

const publish = this._initialized === false
const isInit = this._initialized === false
if (isInit) {
// initialize with last sequence number
const { HEADER } = EVENT_QUEUE_LAYOUT
const header = HEADER.decode(accountsData.eventQueue) as EventQueueHeader
this._lastSeenSeqNum = header.seqNum
}
this._initialized = true
yield this._putInEnvelope(l3Snapshot, publish)
yield this._putInEnvelope(l3Snapshot, isInit)
}

@@ -170,0 +177,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