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

@flywire/react-headlessui

Package Overview
Dependencies
Maintainers
12
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flywire/react-headlessui - npm Package Compare versions

Comparing version 0.0.14-3 to 0.0.14

12

dist/cjs/hooks/useMoneyInput/useMoneyInput.js

@@ -89,8 +89,3 @@ "use strict";

};
const valueAsNumber = typeof value === 'string' ? (0, utils_1.toNumber)(value.toString(), options) : value;
const money = (0, utils_1.toMoney)(valueAsNumber, options);
console.log('format - value', value);
console.log('format - valueAsNumber', valueAsNumber);
console.log('format - money', valueAsNumber);
return money;
return (0, utils_1.toMoney)(typeof value === 'string' ? (0, utils_1.toNumber)(value.toString(), options) : value, options);
}

@@ -100,7 +95,2 @@ return (0, utils_1.formatNumber)((0, utils_1.parseNumber)(value), { decimals });

function parse(value) {
const valueAsNumber = (0, utils_1.toNumber)(value.toString(), {
decimal: decimalMark,
});
console.log('parse - value', value);
console.log('parse - valueAsNumber', valueAsNumber);
return hasCustomFormatter

@@ -107,0 +97,0 @@ ? (0, utils_1.toNumber)(value.toString(), {

@@ -64,8 +64,3 @@ import { useEffect, useState, } from 'react';

};
const valueAsNumber = typeof value === 'string' ? toNumber(value.toString(), options) : value;
const money = toMoney(valueAsNumber, options);
console.log('format - value', value);
console.log('format - valueAsNumber', valueAsNumber);
console.log('format - money', valueAsNumber);
return money;
return toMoney(typeof value === 'string' ? toNumber(value.toString(), options) : value, options);
}

@@ -75,7 +70,2 @@ return formatNumber(parseNumber(value), { decimals });

function parse(value) {
const valueAsNumber = toNumber(value.toString(), {
decimal: decimalMark,
});
console.log('parse - value', value);
console.log('parse - valueAsNumber', valueAsNumber);
return hasCustomFormatter

@@ -82,0 +72,0 @@ ? toNumber(value.toString(), {

@@ -98,8 +98,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

};
const valueAsNumber = typeof value === 'string' ? (0, utils_1.toNumber)(value.toString(), options) : value;
const money = (0, utils_1.toMoney)(valueAsNumber, options);
console.log('format - value', value);
console.log('format - valueAsNumber', valueAsNumber);
console.log('format - money', valueAsNumber);
return money;
return (0, utils_1.toMoney)(typeof value === 'string' ? (0, utils_1.toNumber)(value.toString(), options) : value, options);
}

@@ -109,7 +104,2 @@ return (0, utils_1.formatNumber)((0, utils_1.parseNumber)(value), { decimals });

function parse(value) {
const valueAsNumber = (0, utils_1.toNumber)(value.toString(), {
decimal: decimalMark,
});
console.log('parse - value', value);
console.log('parse - valueAsNumber', valueAsNumber);
return hasCustomFormatter

@@ -116,0 +106,0 @@ ? (0, utils_1.toNumber)(value.toString(), {

2

package.json
{
"name": "@flywire/react-headlessui",
"version": "0.0.14-3",
"version": "0.0.14",
"description": "Headless UI components",

@@ -5,0 +5,0 @@ "main": "./dist/umd/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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