Socket
Socket
Sign inDemoInstall

xchanger

Package Overview
Dependencies
7
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3-a

2

index.js

@@ -130,3 +130,3 @@ const fs = require('fs')

let timeDiff = new Date() - this.updatedAt
let ratesExpired = ( timeDiff > 5000 ) ? true : false
let ratesExpired = ( timeDiff > 1000 * 60 * 30 ) ? true : false
if(!this.firstSyncDone || ratesExpired) {

@@ -133,0 +133,0 @@ this.rates = await this.sync()

{
"name": "xchanger",
"version": "0.1.2",
"version": "0.1.3a",
"description": "Currency exhange api with auto caching of api calls for better performance and bandwidth utilization",

@@ -22,3 +22,4 @@ "main": "index.js",

"nyc": "^12.0.2"
}
},
"keywords": ["currency","convert","exchange","xchanger","xchange","currency converter","easy","currency", "conversion"]
}

@@ -102,2 +102,14 @@ ~~~~

# DISCLAIMER
This module uses exchangeratesapi.io to fetch rates and caches them for 30 minutes.
There is no functionality to reduce that time as of now. Therefore, the converted results
from this module may vary from the real time results.
Furthermore, the fact that it depends on the external API means the author has no
control over the rates returned and is therefore not liable for any damage, loss or
failure due to the use of this module.
# POST DISCLAIMER
All that being said, if you are looking to convert currencies with reasonable accuracy
and real time isnt really your use case, then go to town with this.
# Author

@@ -104,0 +116,0 @@ Created and maintained by Hanut Singh Gusain

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc