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
44
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.13.0 to 2.13.1

4

CHANGELOG.md
# Changelog
## 2.13.1
- Export `PythCluster` and `getPythClusterApiUrl` globally
## 2.13.0

@@ -4,0 +8,0 @@

5

lib/example_http_usage.js

@@ -40,7 +40,6 @@ "use strict";

var web3_js_1 = require("@solana/web3.js");
var cluster_1 = require("./cluster");
var _1 = require(".");
var PYTHNET_CLUSTER_NAME = 'pythnet';
var connection = new web3_js_1.Connection(cluster_1.getPythClusterApiUrl(PYTHNET_CLUSTER_NAME));
var pythPublicKey = cluster_1.getPythProgramKeyForCluster(PYTHNET_CLUSTER_NAME);
var connection = new web3_js_1.Connection(_1.getPythClusterApiUrl(PYTHNET_CLUSTER_NAME));
var pythPublicKey = _1.getPythProgramKeyForCluster(PYTHNET_CLUSTER_NAME);
function runQuery() {

@@ -47,0 +46,0 @@ return __awaiter(this, void 0, void 0, function () {

@@ -5,7 +5,6 @@ "use strict";

var PythConnection_1 = require("./PythConnection");
var cluster_1 = require("./cluster");
var _1 = require(".");
var PYTHNET_CLUSTER_NAME = 'pythnet';
var connection = new web3_js_1.Connection(cluster_1.getPythClusterApiUrl(PYTHNET_CLUSTER_NAME));
var pythPublicKey = cluster_1.getPythProgramKeyForCluster(PYTHNET_CLUSTER_NAME);
var connection = new web3_js_1.Connection(_1.getPythClusterApiUrl(PYTHNET_CLUSTER_NAME));
var pythPublicKey = _1.getPythProgramKeyForCluster(PYTHNET_CLUSTER_NAME);
var pythConnection = new PythConnection_1.PythConnection(connection, pythPublicKey);

@@ -12,0 +11,0 @@ pythConnection.onPriceChangeVerbose(function (productAccount, priceAccount) {

@@ -118,3 +118,3 @@ /// <reference types="node" />

export { PythHttpClient } from './PythHttpClient';
export { getPythProgramKeyForCluster } from './cluster';
export { getPythProgramKeyForCluster, PythCluster, getPythClusterApiUrl } from './cluster';
export { pythOracleProgram, pythOracleCoder, pythIdl } from './anchor';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pythIdl = exports.pythOracleCoder = exports.pythOracleProgram = exports.getPythProgramKeyForCluster = exports.PythHttpClient = exports.PythConnection = exports.parsePermissionData = exports.parsePriceData = exports.parseProductData = exports.parseMappingData = exports.parseBaseData = exports.AccountType = exports.DeriveType = exports.PriceType = exports.CorpAction = exports.PriceStatus = exports.MAX_SLOT_DIFFERENCE = exports.Version = exports.Version2 = exports.Magic = void 0;
exports.pythIdl = exports.pythOracleCoder = exports.pythOracleProgram = exports.getPythClusterApiUrl = exports.getPythProgramKeyForCluster = exports.PythHttpClient = exports.PythConnection = exports.parsePermissionData = exports.parsePriceData = exports.parseProductData = exports.parseMappingData = exports.parseBaseData = exports.AccountType = exports.DeriveType = exports.PriceType = exports.CorpAction = exports.PriceStatus = exports.MAX_SLOT_DIFFERENCE = exports.Version = exports.Version2 = exports.Magic = void 0;
var web3_js_1 = require("@solana/web3.js");

@@ -305,2 +305,3 @@ var buffer_1 = require("buffer");

Object.defineProperty(exports, "getPythProgramKeyForCluster", { enumerable: true, get: function () { return cluster_1.getPythProgramKeyForCluster; } });
Object.defineProperty(exports, "getPythClusterApiUrl", { enumerable: true, get: function () { return cluster_1.getPythClusterApiUrl; } });
var anchor_1 = require("./anchor");

@@ -307,0 +308,0 @@ Object.defineProperty(exports, "pythOracleProgram", { enumerable: true, get: function () { return anchor_1.pythOracleProgram; } });

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

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

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