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

currency-converter-lt

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currency-converter-lt - npm Package Compare versions

Comparing version

to
2.0.1

7

index.js

@@ -274,3 +274,3 @@ const cheerio = require("cheerio")

return new Promise((resolve, reject) => {
request(`https://www.google.com/search?q=${this.currencyFrom}+to+${this.currencyTo}+&hl=en`, function(error, response, body) {
request(`https://www.google.com/search?q=${this.currencyAmount}+${this.currencyFrom}+to+${this.currencyTo}+&hl=en`, function(error, response, body) {
if (error) {

@@ -298,6 +298,7 @@ return reject(error);

}
rates = parseFloat(rates) / this.currencyAmount
if (this.isRatesCaching) {
this.addRateToRatesCache(currencyPair, parseFloat(rates));
this.addRateToRatesCache(currencyPair, rates);
}
return parseFloat(rates)
return rates
})

@@ -304,0 +305,0 @@ }

{
"name": "currency-converter-lt",
"version": "2.0.0",
"version": "2.0.1",
"description": "A nodejs currency converter library that doesn't require subscribing to any API calls.",

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