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

@pythnetwork/hermes-client

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pythnetwork/hermes-client - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

lib/examples/HermesClient.d.ts

7

lib/examples/HermesClient.js

@@ -43,3 +43,8 @@ "use strict";

// Streaming price updates
const eventSource = await connection.getPriceUpdatesStream(priceIds);
const eventSource = await connection.getPriceUpdatesStream(priceIds, {
encoding: "hex",
parsed: true,
allowUnordered: true,
benchmarksOnly: true,
});
eventSource.onmessage = (event) => {

@@ -46,0 +51,0 @@ console.log("Received price update:", event.data);

4

lib/HermesClient.d.ts

@@ -102,4 +102,4 @@ import EventSource from "eventsource";

parsed?: boolean;
allow_unordered?: boolean;
benchmarks_only?: boolean;
allowUnordered?: boolean;
benchmarksOnly?: boolean;
}): Promise<EventSource>;

@@ -106,0 +106,0 @@ private appendUrlSearchParams;

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

const zodSchemas_1 = require("./zodSchemas");
const utils_1 = require("./utils");
const DEFAULT_TIMEOUT = 5000;

@@ -138,3 +139,4 @@ const DEFAULT_HTTP_RETRIES = 3;

if (options) {
this.appendUrlSearchParams(url, options);
const transformedOptions = (0, utils_1.camelToSnakeCaseObject)(options);
this.appendUrlSearchParams(url, transformedOptions);
}

@@ -141,0 +143,0 @@ return new eventsource_1.default(url.toString());

{
"name": "@pythnetwork/hermes-client",
"version": "1.0.0",
"version": "1.0.1",
"description": "Pyth Hermes Client",

@@ -58,3 +58,3 @@ "author": {

},
"gitHead": "113f8797625be44370b31c73b22bd115a3e167aa"
"gitHead": "2d3e4c68936fb8ecd6ed4c7cabc9e1d900dcd017"
}

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