@portal-hq/utils
Advanced tools
Comparing version 0.2.16 to 0.2.17
@@ -44,3 +44,2 @@ "use strict"; | ||
const convertedValue = Math.round((value * data[to]) * 10000) / 10000; | ||
console.log("Converted value: ", convertedValue); | ||
return convertedValue; | ||
@@ -62,7 +61,5 @@ }); | ||
const data = yield response.json(); | ||
console.log(data); | ||
const convertedValue = Math.round((value / (1 / data[to]) + Number.EPSILON) * 10000) / 10000; | ||
console.log("Converted value: ", convertedValue); | ||
return convertedValue; | ||
}); | ||
exports.convertLocalToCrypto = convertLocalToCrypto; |
@@ -40,3 +40,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
const convertedValue = Math.round((value * data[to]) * 10000) / 10000; | ||
console.log("Converted value: ", convertedValue); | ||
return convertedValue; | ||
@@ -57,6 +56,4 @@ }); | ||
const data = yield response.json(); | ||
console.log(data); | ||
const convertedValue = Math.round((value / (1 / data[to]) + Number.EPSILON) * 10000) / 10000; | ||
console.log("Converted value: ", convertedValue); | ||
return convertedValue; | ||
}); |
{ | ||
"name": "@portal-hq/utils", | ||
"version": "0.2.16", | ||
"version": "0.2.17", | ||
"main": "lib/commonjs/index", | ||
@@ -5,0 +5,0 @@ "module": "lib/esm/index", |
@@ -55,3 +55,2 @@ import { countryCodes, currencyCodes } from './countries' | ||
Math.round((value * data[to]) * 10000) / 10000 | ||
console.log("Converted value: ", convertedValue); | ||
@@ -84,10 +83,7 @@ return convertedValue | ||
const data = await response.json() | ||
console.log(data); | ||
const convertedValue = | ||
Math.round((value / (1 / data[to]) + Number.EPSILON) * 10000) / 10000 | ||
console.log("Converted value: ", convertedValue); | ||
return convertedValue | ||
} |
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
94970
3014