xchanger
Advanced tools
Comparing version 0.1.2 to 0.1.3-a
@@ -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 |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
70939
120