New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pythnetwork/client

Package Overview
Dependencies
Maintainers
4
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pythnetwork/client - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

20

CHANGELOG.md
# Changelog
### 2.5.0
### Changed
Restructure `drv2` field in `PriceData` to `minPublishers` and other future drv values
### 2.4.0
### Changed
Product only define `price` and `confidence` fields if it currently has a valid price
### Fixed
Memory leak in an underlying library
### 2.3.2
Added PythConnection
### Added
PythConnection
## 2.2.0

@@ -8,0 +26,0 @@

8

lib/index.d.ts

@@ -67,4 +67,6 @@ /// <reference types="node" />

drv1: number;
drv2Component: bigint;
minPublishers: number;
drv2: number;
drv3: number;
drv4: number;
productAccountKey: PublicKey;

@@ -77,4 +79,4 @@ nextPriceAccountKey: PublicKey | null;

previousConfidence: number;
drv3Component: bigint;
drv3: number;
drv5Component: bigint;
drv5: number;
priceComponents: PriceComponent[];

@@ -81,0 +83,0 @@ aggregate: Price;

@@ -166,4 +166,10 @@ "use strict";

var drv1 = Number(drv1Component) * Math.pow(10, exponent);
var drv2Component = readBig_1.readBigInt64LE(data, 104);
var drv2 = Number(drv2Component) * Math.pow(10, exponent);
// minimum number of publishers for status to be TRADING
var minPublishers = data.readUInt8(104);
// space for future derived values
var drv2 = data.readInt8(105);
// space for future derived values
var drv3 = data.readInt16LE(106);
// space for future derived values
var drv4 = data.readInt32LE(108);
// product id / reference account

@@ -182,4 +188,4 @@ var productAccountKey = new web3_js_1.PublicKey(data.slice(112, 144));

// space for future derived values
var drv3Component = readBig_1.readBigInt64LE(data, 200);
var drv3 = Number(drv3Component) * Math.pow(10, exponent);
var drv5Component = readBig_1.readBigInt64LE(data, 200);
var drv5 = Number(drv5Component) * Math.pow(10, exponent);
var aggregate = parsePriceInfo(data.slice(208, 240), exponent);

@@ -225,4 +231,6 @@ var price;

drv1: drv1,
drv2Component: drv2Component,
minPublishers: minPublishers,
drv2: drv2,
drv3: drv3,
drv4: drv4,
productAccountKey: productAccountKey,

@@ -235,4 +243,4 @@ nextPriceAccountKey: nextPriceAccountKey,

previousConfidence: previousConfidence,
drv3Component: drv3Component,
drv3: drv3,
drv5Component: drv5Component,
drv5: drv5,
aggregate: aggregate,

@@ -239,0 +247,0 @@ priceComponents: priceComponents,

{
"name": "@pythnetwork/client",
"version": "2.4.0",
"version": "2.5.0",
"description": "Client for consuming Pyth price data",

@@ -32,5 +32,5 @@ "homepage": "https://pyth.network",

"@types/jest": "^26.0.23",
"jest": "^26.6.3",
"jest": "^27.3.1",
"prettier": "^2.3.0",
"ts-jest": "^26.5.6",
"ts-jest": "^27.0.7",
"tslint": "^6.1.3",

@@ -37,0 +37,0 @@ "tslint-config-prettier": "^1.18.0",

@@ -57,2 +57,2 @@ # @pythnetwork/client

2. Run `npm version <new version number>`. This command will update the version of the package, tag the branch in git, and push your changes to github.
3. Once your change is merged into `main`, a github action will automatically publish a new version of the package to npm.
3. Once your change is merged into `main`, create a release, and a github action will automatically publish a new version of the package to npm.
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