New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ts-commons

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-commons - npm Package Compare versions

Comparing version 1.0.21 to 1.0.22

.nyc_output/8f95f9c14a493435625af576d3bb97ad.json

7

dist/utils/number.utils.d.ts

@@ -35,2 +35,9 @@ export declare class NumberUtils {

static isSafeInteger(value: any): boolean;
/**
* Returns a string representing a number in fixed-point notation.
* @param value target value.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
* @param defaultValue default value if value is empty.
*/
static toFixed(value: number, fractionDigits: number, defaultValue?: string): string;
}

@@ -45,2 +45,14 @@ "use strict";

};
/**
* Returns a string representing a number in fixed-point notation.
* @param value target value.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
* @param defaultValue default value if value is empty.
*/
NumberUtils.toFixed = function (value, fractionDigits, defaultValue) {
if (object_utils_1.ObjectUtils.isNullOrUndefined(value)) {
return object_utils_1.ObjectUtils.getOrDefault(defaultValue, "");
}
return value.toFixed(fractionDigits);
};
NumberUtils.MAX_SAFE_INTEGER = 9007199254740991;

@@ -47,0 +59,0 @@ NumberUtils.MIN_SAFE_INTEGER = -9007199254740991;

2

package.json
{
"name": "ts-commons",
"version": "1.0.21",
"version": "1.0.22",
"description": "common methods for typescript",

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

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