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

cbr-rates-cli

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cbr-rates-cli - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

LICENSE

26

index.es5.js

@@ -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": {

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