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

@swapbills/xchange-rate

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swapbills/xchange-rate - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

11

lib/xchange-service.js

@@ -88,2 +88,3 @@ 'use strict';

var _ref2 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2(baseCurrency, destCurrency) {
var proxyUrl = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
var path;

@@ -94,3 +95,3 @@ return _regenerator2.default.wrap(function _callee2$(_context2) {

case 0:
path = '' + this.getUri('converter') + baseCurrency + '&to=' + destCurrency;
path = '' + proxyUrl + this.getUri('converter') + baseCurrency + '&to=' + destCurrency;
_context2.next = 3;

@@ -168,3 +169,3 @@ return this.makeGetRequest(path).then(function (body) {

function getCurrencyInfo(_x4) {
function getCurrencyInfo(_x5) {
return _ref4.apply(this, arguments);

@@ -178,3 +179,3 @@ }

value: function () {
var _ref5 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee5(baseCurrency, destCurrency) {
var _ref5 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee5(baseCurrency, destCurrency, proxyUrl) {
return _regenerator2.default.wrap(function _callee5$(_context5) {

@@ -184,3 +185,3 @@ while (1) {

case 0:
return _context5.abrupt('return', '' + this.getUri('chart') + baseCurrency.toUpperCase() + destCurrency.toUpperCase());
return _context5.abrupt('return', '' + proxyUrl + this.getUri('chart') + baseCurrency.toUpperCase() + destCurrency.toUpperCase());

@@ -195,3 +196,3 @@ case 1:

function getChartUri(_x5, _x6) {
function getChartUri(_x6, _x7, _x8) {
return _ref5.apply(this, arguments);

@@ -198,0 +199,0 @@ }

{
"name": "@swapbills/xchange-rate",
"version": "1.1.4",
"version": "1.1.5",
"description": "A simple wrapper around google finance API for retrieving the exchange rate between two currencies, use at your own risk.",

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

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