Socket
Socket
Sign inDemoInstall

redstone-api

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redstone-api - npm Package Compare versions

Comparing version 0.4.12-pre to 0.4.12-pre2

13

lib/proxies/cache-proxy.js

@@ -83,13 +83,12 @@ "use strict";

CacheProxy.prototype.getPriceForManyTokens = function (args) {
var _a;
return __awaiter(this, void 0, void 0, function () {
var params, data;
return __generator(this, function (_a) {
switch (_a.label) {
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
params = {
provider: args.provider
provider: args.provider,
toTimestamp: (_a = args.timestamp) !== null && _a !== void 0 ? _a : Date.now()
};
if (args.timestamp !== undefined) {
params.toTimestamp = args.timestamp;
}
if (args.symbols !== undefined) {

@@ -100,3 +99,3 @@ params.symbols = args.symbols.join(",");

case 1:
data = (_a.sent()).data;
data = (_b.sent()).data;
return [2 /*return*/, data];

@@ -103,0 +102,0 @@ }

{
"name": "redstone-api",
"version": "0.4.12-pre",
"version": "0.4.12-pre2",
"description": "Javascript library for fetching trusted token pricing data from Redstone data ecosystem",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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