@swapbills/xchange-rate
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -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", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
42537
1694
1