@appolo/utils
Advanced tools
Comparing version 8.0.31 to 8.0.32
@@ -48,3 +48,3 @@ "use strict"; | ||
exports.default = util_1.Util; | ||
tslib_1.__exportStar(require("./lib/types/types"), exports); | ||
(0, tslib_1.__exportStar)(require("./lib/types/types"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -8,3 +8,3 @@ "use strict"; | ||
static hash(value, algorithm = 'sha1', encoding = 'hex') { | ||
return crypto_1.createHash(algorithm).update(value).digest(encoding); | ||
return (0, crypto_1.createHash)(algorithm).update(value).digest(encoding); | ||
} | ||
@@ -11,0 +11,0 @@ static hashPlainObject(obj, algorithm = 'sha1', encoding = 'hex') { |
@@ -118,4 +118,11 @@ "use strict"; | ||
} | ||
static truncate(input, n) { | ||
if (input.length > n) { | ||
return input.substring(0, n) + '...'; | ||
} | ||
return input; | ||
} | ||
; | ||
} | ||
exports.Strings = Strings; | ||
//# sourceMappingURL=strings.js.map |
@@ -154,2 +154,9 @@ import {Functions, Objects} from "../index"; | ||
} | ||
public static truncate(input:string,n:number):string { | ||
if (input.length > n) { | ||
return input.substring(0, n) + '...'; | ||
} | ||
return input; | ||
}; | ||
} |
@@ -20,3 +20,3 @@ { | ||
"main": "./index.js", | ||
"version": "8.0.31", | ||
"version": "8.0.32", | ||
"license": "MIT", | ||
@@ -23,0 +23,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
226051
4115