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

@vyacheslav97/ct

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vyacheslav97/ct - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

14

dist/implementations/NumberValidators/NumberRegExps.js

@@ -1,7 +0,7 @@

export const integerNumberRegex = /^([+-]?([1-9]\d*)|0)$/gi;
export const unsignedIntegerNumberRegex = /^(([1-9]\d*)|0)$/gi;
export const negativeIntegerNumberRegex = /^(-([1-9]\d*)|0)$/gi;
export const floatNumberRegex = /^(([+-]?(0(?!\d)|[1-9]\d*))\.?\d*)$/gi;
export const unsignedFloatNumberRegex = /^((0(?!\d)|[1-9]\d*)\.?\d*)$/gi;
export const negativeFloatingPointNumberRegex = /^(-(0(?!\d)|[1-9]\d*)\.?\d*)$/gi;
export const exponentialNumberFormatRegex = /^((([+-]?(0(?!\d)|[1-9]\d*))\.?\d*)([eE])(-?([1-9]\d*)|0))$/gi;
export const integerNumberRegex = /^([+-]?([1-9]\d*)|0)$/i;
export const unsignedIntegerNumberRegex = /^(([1-9]\d*)|0)$/i;
export const negativeIntegerNumberRegex = /^(-([1-9]\d*)|0)$/i;
export const floatNumberRegex = /^(([+-]?(0(?!\d)|[1-9]\d*))\.?\d*)$/i;
export const unsignedFloatNumberRegex = /^((0(?!\d)|[1-9]\d*)\.?\d*)$/i;
export const negativeFloatingPointNumberRegex = /^(-(0(?!\d)|[1-9]\d*)\.?\d*)$/i;
export const exponentialNumberFormatRegex = /^((([+-]?(0(?!\d)|[1-9]\d*))\.?\d*)([eE])(-?([1-9]\d*)|0))$/i;
{
"type": "module",
"name": "@vyacheslav97/ct",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -6,0 +6,0 @@ "keywords": [

@@ -9,7 +9,5 @@ # <u>Common tools (ct, also @vyacheslav97/ct)</u>

Current version renewals (1.0.0) (see **Prerequesites** a bit below):
Current version renewals (1.0.1) (see **Prerequesites** a bit below):
- All interfaces and implementations can be imported directly from package (all imports are named)
- Code and autocomplete works properly with import
- **isNumber** now can be used as a type guard properly
- Number regular expressions fix: g flag was removed to handle regexp test method consistently (avoiding hidden index impact)

@@ -16,0 +14,0 @@ Next scheduled **major** updates:

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