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

@requestnetwork/currency

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@requestnetwork/currency - npm Package Compare versions

Comparing version

to
0.8.1-next.1490

@@ -60,4 +60,11 @@ "use strict";

}
const currencyFromSymbol = this.fromSymbol(symbolOrAddress.split('-')[0], symbolOrAddress.split('-')[1]);
return currencyFromSymbol;
try {
const currencyFromSymbol = this.fromSymbol(symbolOrAddress.split('-')[0], symbolOrAddress.split('-')[1]);
return currencyFromSymbol;
}
catch (e) {
// Testnet native tokens (ETH-rinkeby, NEAR-testnet etc.)
const currencyFromSymbol = this.fromSymbol(symbolOrAddress);
return currencyFromSymbol;
}
}

@@ -156,6 +163,8 @@ /**

for (const [type, currencies] of Object.entries(getAllSupportedCurrencies_1.getAllSupportedCurrencies())) {
const currency = currencies.find((cur) =>
// test native tokens have the network in their symbol already
cur.symbol.toLowerCase().split('-')[0] === symbol.toLowerCase() &&
(!network || network === cur.network));
const currency = currencies.find((cur) => {
var _a;
// test native tokens have the network in their symbol already
return cur.symbol.toLowerCase() === symbol.toLowerCase() &&
(!network || network.toLowerCase() === ((_a = cur.network) === null || _a === void 0 ? void 0 : _a.toLowerCase()));
});
if (currency) {

@@ -162,0 +171,0 @@ return new Currency({

@@ -64,3 +64,3 @@ "use strict";

decimals: 24,
name: 'Near',
name: 'Near Testnet',
network: 'aurora-testnet',

@@ -67,0 +67,0 @@ },

{
"name": "@requestnetwork/currency",
"version": "0.8.1-next.1489+ecc2611b",
"version": "0.8.1-next.1490+77ed9489",
"publishConfig": {

@@ -45,4 +45,4 @@ "access": "public"

"@metamask/contract-metadata": "1.28.0",
"@requestnetwork/types": "0.35.1-next.1489+ecc2611b",
"@requestnetwork/utils": "0.35.1-next.1489+ecc2611b",
"@requestnetwork/types": "0.35.1-next.1490+77ed9489",
"@requestnetwork/utils": "0.35.1-next.1490+77ed9489",
"node-dijkstra": "2.5.0"

@@ -62,3 +62,3 @@ },

},
"gitHead": "ecc2611b0ff4b84dca22e2c956c24dae0f25e47f"
"gitHead": "77ed94897dc52463d2511eeb2938c90f6d147cb3"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet