@cityofzion/bs-neo-legacy
Advanced tools
Comparing version 1.0.2 to 1.0.3
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
@@ -24,10 +33,20 @@ if (kind === "m") throw new TypeError("Private method is not writable"); | ||
getTokenPriceHistory(params) { | ||
if (__classPrivateFieldGet(this, _CryptoCompareEDSNeoLegacy_networkId, "f") !== 'mainnet') | ||
throw new Error('Exchange is only available on mainnet'); | ||
return super.getTokenPriceHistory(params); | ||
const _super = Object.create(null, { | ||
getTokenPriceHistory: { get: () => super.getTokenPriceHistory } | ||
}); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (__classPrivateFieldGet(this, _CryptoCompareEDSNeoLegacy_networkId, "f") !== 'mainnet') | ||
throw new Error('Exchange is only available on mainnet'); | ||
return yield _super.getTokenPriceHistory.call(this, params); | ||
}); | ||
} | ||
getTokenPrices(currency) { | ||
if (__classPrivateFieldGet(this, _CryptoCompareEDSNeoLegacy_networkId, "f") !== 'mainnet') | ||
throw new Error('Exchange is only available on mainnet'); | ||
return super.getTokenPrices(currency); | ||
const _super = Object.create(null, { | ||
getTokenPrices: { get: () => super.getTokenPrices } | ||
}); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (__classPrivateFieldGet(this, _CryptoCompareEDSNeoLegacy_networkId, "f") !== 'mainnet') | ||
throw new Error('Exchange is only available on mainnet'); | ||
return yield _super.getTokenPrices.call(this, currency); | ||
}); | ||
} | ||
@@ -34,0 +53,0 @@ } |
{ | ||
"name": "@cityofzion/bs-neo-legacy", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
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
48193
1134