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

tardis-dev

Package Overview
Dependencies
Maintainers
1
Versions
272
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tardis-dev - npm Package Compare versions

Comparing version 13.28.2 to 13.28.3

7

dist/mappers/deribit.js

@@ -134,2 +134,3 @@ "use strict";

*map(message, localTimestamp) {
//MATIC_USDC-9MAR24-1d02-C
const optionInfo = message.params.data;

@@ -139,3 +140,7 @@ //e.g., BTC-8JUN20-8750-P

const isPut = symbolParts[3] === 'P';
const strikePrice = Number(symbolParts[2]);
let strikePriceString = symbolParts[2];
if (strikePriceString.includes('d')) {
strikePriceString = strikePriceString.replace('d', '.');
}
const strikePrice = Number(strikePriceString);
const expirationDate = new Date(symbolParts[1] + 'Z');

@@ -142,0 +147,0 @@ expirationDate.setUTCHours(8);

2

package.json
{
"name": "tardis-dev",
"version": "13.28.2",
"version": "13.28.3",
"engines": {

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

@@ -159,2 +159,3 @@ import { asNumberIfValid, upperCaseSymbols } from '../handy'

*map(message: DeribitOptionTickerMessage, localTimestamp: Date) {
//MATIC_USDC-9MAR24-1d02-C
const optionInfo = message.params.data

@@ -167,3 +168,7 @@

const strikePrice = Number(symbolParts[2])
let strikePriceString = symbolParts[2]
if (strikePriceString.includes('d')) {
strikePriceString = strikePriceString.replace('d', '.')
}
const strikePrice = Number(strikePriceString)
const expirationDate = new Date(symbolParts[1] + 'Z')

@@ -170,0 +175,0 @@ expirationDate.setUTCHours(8)

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