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

@portal-hq/utils

Package Overview
Dependencies
Maintainers
6
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@portal-hq/utils - npm Package Compare versions

Comparing version 0.2.16 to 0.2.17

3

lib/commonjs/currency/index.js

@@ -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;
});

2

package.json
{
"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
}
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