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.19 to 1.0.20

.nyc_output/4d80a70911cf740709948ef34d72d766.json

0

.vscode/launch.json

@@ -0,0 +0,0 @@ {

7

dist/utils/date.utils.js

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

}
if (timestamp > 1000000000000) {
return new Date(timestamp);
}
else {
return new Date(timestamp * 1000);
}
return new Date(timestamp);
};

@@ -38,0 +33,0 @@ /**

@@ -51,2 +51,7 @@ export declare class StringUtils {

* @param str
* @example StringUtils.trim(null) = null
* @example StringUtils.trim(undefined) = undefined
* @example StringUtils.trim("") = ""
* @example StringUtils.trim(" ") = ""
* @example StringUtils.trim(" a ") = "a"
*/

@@ -57,2 +62,7 @@ static trim(str: string): string;

* @param str
* @example StringUtils.trimToNull(null) = null
* @example StringUtils.trimToNull(undefined) = null
* @example StringUtils.trimToNull("") = null
* @example StringUtils.trimToNull(" ") = null
* @example StringUtils.trimToNull(" a ") = "a"
*/

@@ -63,2 +73,7 @@ static trimToNull(str: string): string;

* @param str
* @example StringUtils.trimToNull(null) = ""
* @example StringUtils.trimToNull(undefined) = ""
* @example StringUtils.trimToNull("") = ""
* @example StringUtils.trimToNull(" ") = ""
* @example StringUtils.trimToNull(" a ") = "a"
*/

@@ -65,0 +80,0 @@ static trimToEmpty(str: string): string;

@@ -63,2 +63,7 @@ "use strict";

* @param str
* @example StringUtils.trim(null) = null
* @example StringUtils.trim(undefined) = undefined
* @example StringUtils.trim("") = ""
* @example StringUtils.trim(" ") = ""
* @example StringUtils.trim(" a ") = "a"
*/

@@ -76,2 +81,7 @@ StringUtils.trim = function (str) {

* @param str
* @example StringUtils.trimToNull(null) = null
* @example StringUtils.trimToNull(undefined) = null
* @example StringUtils.trimToNull("") = null
* @example StringUtils.trimToNull(" ") = null
* @example StringUtils.trimToNull(" a ") = "a"
*/

@@ -88,2 +98,7 @@ StringUtils.trimToNull = function (str) {

* @param str
* @example StringUtils.trimToNull(null) = ""
* @example StringUtils.trimToNull(undefined) = ""
* @example StringUtils.trimToNull("") = ""
* @example StringUtils.trimToNull(" ") = ""
* @example StringUtils.trimToNull(" a ") = "a"
*/

@@ -90,0 +105,0 @@ StringUtils.trimToEmpty = function (str) {

{
"name": "ts-commons",
"version": "1.0.19",
"version": "1.0.20",
"description": "common methods for typescript",

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

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