ts-commons
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -0,0 +0,0 @@ { |
@@ -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
201273
2091