Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cityofzion/bs-neo-legacy

Package Overview
Dependencies
Maintainers
0
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cityofzion/bs-neo-legacy - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

31

dist/CryptoCompareEDSNeoLegacy.js
"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 @@ }

2

package.json
{
"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",

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