cbr-rates-cli
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -26,10 +26,8 @@ 'use strict'; | ||
function parseDateString(str) { | ||
var _str$split = str.split('.'); | ||
var _str$split = str.split('.'), | ||
_str$split2 = _slicedToArray(_str$split, 3), | ||
year = _str$split2[0], | ||
month = _str$split2[1], | ||
day = _str$split2[2]; | ||
var _str$split2 = _slicedToArray(_str$split, 3); | ||
var year = _str$split2[0]; | ||
var month = _str$split2[1]; | ||
var day = _str$split2[2]; | ||
return new Date(parseInt(year, 10), parseInt(month, 10) - 1, parseInt(day, 10)); | ||
@@ -46,8 +44,6 @@ } | ||
var _cli$input$slice = cli.input.slice(-1); | ||
var _cli$input$slice = cli.input.slice(-1), | ||
_cli$input$slice2 = _slicedToArray(_cli$input$slice, 1), | ||
last = _cli$input$slice2[0]; | ||
var _cli$input$slice2 = _slicedToArray(_cli$input$slice, 1); | ||
var last = _cli$input$slice2[0]; | ||
var ids = cli.input.map(function (id) { | ||
@@ -75,5 +71,5 @@ return id.toLowerCase(); | ||
var _rates$id = rates[id]; | ||
var par = _rates$id.par; | ||
var value = _rates$id.value; | ||
var _rates$id = rates[id], | ||
par = _rates$id.par, | ||
value = _rates$id.value; | ||
@@ -80,0 +76,0 @@ var indent = length - integerLength(value); |
{ | ||
"name": "cbr-rates-cli", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Get currency rates from Central Bank of Russia", | ||
@@ -30,3 +30,3 @@ "bin": { | ||
], | ||
"author": "Andrey Polischuk <andre.polischuk@gmail.com>", | ||
"author": "Andrey Polischuk <me@andrepolischuk.com> (https://andrepolischuk.com)", | ||
"license": "MIT", | ||
@@ -33,0 +33,0 @@ "bugs": { |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
6085
5
1
38