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

@os-design/input-number-utils

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@os-design/input-number-utils - npm Package Compare versions

Comparing version 1.0.29 to 1.0.30

dist/index.d.ts

17

package.json
{
"name": "@os-design/input-number-utils",
"version": "1.0.29",
"version": "1.0.30",
"license": "UNLICENSED",
"repository": "git@gitlab.com:os-team/libs/os-design.git",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"react-native": "src/index.ts",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"react-native": "./src/index.ts",
"files": [

@@ -24,5 +24,4 @@ "dist",

"clean": "rimraf dist",
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx --out-dir dist/esm --source-maps",
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx --out-dir dist/cjs --source-maps",
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx --out-dir dist",
"build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly --declaration --declarationDir dist",
"build": "yarn clean && npm-run-all 'build:*'",

@@ -40,3 +39,3 @@ "ncu": "ncu -u"

},
"gitHead": "2605fbf8f46c78800cd4ba6dcb0dd895a893bf96"
"gitHead": "86a83e87297a07afe132782ca2c95023b7139276"
}

@@ -1,2 +0,2 @@

import { TransformDecorator } from '../transform';
import type { TransformDecorator } from '../transform';

@@ -3,0 +3,0 @@ const addPrefixSuffix: TransformDecorator = (value, { prefix, suffix }) =>

@@ -1,2 +0,2 @@

import { TransformDecorator } from '../transform';
import type { TransformDecorator } from '../transform';

@@ -3,0 +3,0 @@ const addThousandsSeparator: TransformDecorator = (

import escapeStringRegexp from '@os-team/escape-string-regexp';
import { TransformDecorator } from '../transform';
import type { TransformDecorator } from '../transform';

@@ -4,0 +4,0 @@ const extractNumber: TransformDecorator = (

import escapeStringRegexp from '@os-team/escape-string-regexp';
import { TransformDecorator } from '../transform';
import type { TransformDecorator } from '../transform';

@@ -4,0 +4,0 @@ const omitThousandsSeparator: TransformDecorator = (

@@ -1,2 +0,2 @@

import { TransformDecorator } from '../transform';
import type { TransformDecorator } from '../transform';

@@ -3,0 +3,0 @@ const replaceDefaultDecimalSeparator: TransformDecorator = (

@@ -1,2 +0,2 @@

import { TransformDecorator } from '../transform';
import type { TransformDecorator } from '../transform';

@@ -3,0 +3,0 @@ const revertDefaultDecimalSeparator: TransformDecorator = (

import extractNumber from './decorators/extractNumber';
import omitThousandsSeparator from './decorators/omitThousandsSeparator';
import revertDefaultDecimalSeparator from './decorators/revertDefaultDecimalSeparator';
import transform, { TransformOptions } from './transform';
import transform, { type TransformOptions } from './transform';

@@ -6,0 +6,0 @@ const fromFormattedString = (

import escapeStringRegexp from '@os-team/escape-string-regexp';
import { TransformOptions } from './transform';
import type { TransformOptions } from './transform';

@@ -4,0 +4,0 @@ export interface GetNextCaretProps {

import fromFormattedString from './fromFormattedString';
import numberToFormattedString from './numberToFormattedString';
import stringToNumber from './stringToNumber';
import { TransformOptions } from './transform';
import type { TransformOptions } from './transform';

@@ -6,0 +6,0 @@ export interface NextState {

import numberToString from './numberToString';
import toFormattedString from './toFormattedString';
import { TransformOptions } from './transform';
import type { TransformOptions } from './transform';

@@ -5,0 +5,0 @@ const numberToFormattedString = (

@@ -1,2 +0,2 @@

import formatNumber, { FormatNumberOptions } from './formatNumber';
import formatNumber, { type FormatNumberOptions } from './formatNumber';

@@ -3,0 +3,0 @@ const numberToString = (

@@ -1,2 +0,2 @@

import formatNumber, { FormatNumberOptions } from './formatNumber';
import formatNumber, { type FormatNumberOptions } from './formatNumber';

@@ -3,0 +3,0 @@ const stringToNumber = (

import addPrefixSuffix from './decorators/addPrefixSuffix';
import addThousandsSeparator from './decorators/addThousandsSeparator';
import replaceDefaultDecimalSeparator from './decorators/replaceDefaultDecimalSeparator';
import transform, { TransformOptions } from './transform';
import transform, { type TransformOptions } from './transform';

@@ -6,0 +6,0 @@ const toFormattedString = (value: string, options: TransformOptions): string =>

@@ -14,4 +14,2 @@ import escapeStringRegexp from '@os-team/escape-string-regexp';

/* eslint-disable no-console */
const useValidate = ({

@@ -18,0 +16,0 @@ min,

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