redstone-api
Advanced tools
Comparing version 0.4.12-pre to 0.4.12-pre2
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
356748
14310