Comparing version 2.0.0 to 3.0.0
@@ -6,4 +6,3 @@ 'use strict'; | ||
const APP_ID = process.env.OPENEXCHANGERATES_APP_ID || 'ead040886c774aa5824508a084181ecb'; | ||
const path = `https://openexchangerates.org/api/latest.json?app_id=${APP_ID}`; | ||
const path = 'https://api.fixer.io/latest'; | ||
@@ -10,0 +9,0 @@ module.exports = (opts) => { |
{ | ||
"name": "currency", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "simple currency conversion cli using openexchangerates.org", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# currency [![Build Status](http://img.shields.io/travis/srn/currency.svg?style=flat-square)](https://travis-ci.org/srn/currency) | ||
> simple currency conversion cli using [openexchangerates.org](https://openexchangerates.org/) | ||
> simple currency conversion cli using [fixer.io](http://fixer.io/) | ||
@@ -24,12 +24,4 @@ ## Install | ||
## openexchangerates.org | ||
If the provided `OPENEXCHANGERATES_APP_ID` is for whatever reason not valid anymore just set `OPENEXCHANGERATES_APP_ID` as the env var: | ||
``` | ||
$ OPENEXCHANGERATES_APP_ID=a1337 currency 10 USD DKK | ||
``` | ||
## License | ||
MIT © [Søren Brokær](http://srn.io) |
@@ -15,4 +15,4 @@ import test from 'ava'; | ||
nock('https://openexchangerates.org') | ||
.get('/api/latest.json?app_id=ead040886c774aa5824508a084181ecb') | ||
nock('https://api.fixer.io') | ||
.get('/latest') | ||
.reply(200, exchangeRates); | ||
@@ -19,0 +19,0 @@ }); |
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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
3331
83
27