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

@augment-vir/common

Package Overview
Dependencies
Maintainers
1
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@augment-vir/common - npm Package Compare versions

Comparing version 18.1.0 to 18.1.1

13

dist/cjs/augments/common-number.js

@@ -11,3 +11,5 @@ "use strict";

}
const stringValue = String(input);
const numericValue = Number(input);
const isNegative = numericValue < 0;
const stringValue = String(Math.abs(numericValue));
const [digits, decimalValues,] = stringValue.split('.');

@@ -18,4 +20,9 @@ const decimalString = decimalValues ? `.${decimalValues}` : '';

.map((entry) => entry.split('').reverse().join(''));
const withCommas = separated.join(',');
return `${withCommas}${decimalString}`;
const valueWithCommas = separated.join(',');
const negativeMarker = isNegative ? '-' : '';
return [
negativeMarker,
valueWithCommas,
decimalString,
].join('');
}

@@ -22,0 +29,0 @@ exports.addCommasToNumber = addCommasToNumber;

@@ -8,3 +8,5 @@ import { removeCommasFromNumberString } from './common-string';

}
const stringValue = String(input);
const numericValue = Number(input);
const isNegative = numericValue < 0;
const stringValue = String(Math.abs(numericValue));
const [digits, decimalValues,] = stringValue.split('.');

@@ -15,4 +17,9 @@ const decimalString = decimalValues ? `.${decimalValues}` : '';

.map((entry) => entry.split('').reverse().join(''));
const withCommas = separated.join(',');
return `${withCommas}${decimalString}`;
const valueWithCommas = separated.join(',');
const negativeMarker = isNegative ? '-' : '';
return [
negativeMarker,
valueWithCommas,
decimalString,
].join('');
}

@@ -19,0 +26,0 @@ export function clamp(

{
"name": "@augment-vir/common",
"version": "18.1.0",
"version": "18.1.1",
"homepage": "https://github.com/electrovir/augment-vir/tree/main/packages/common",

@@ -5,0 +5,0 @@ "bugs": {

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