@meteorwallet/utils
Advanced tools
Comparing version 0.49.0 to 0.50.0
@@ -8,2 +8,3 @@ import { convertToNamingStyle } from "./string_utils/convertToNamingStyle"; | ||
declare function isString(val: unknown): val is string; | ||
declare function capitalizeFirstLetter(str: string): string; | ||
export declare const string_utils: { | ||
@@ -17,4 +18,5 @@ nullEmpty: (str: string | null | undefined) => str is null | undefined | ""; | ||
shortenMiddleOut: typeof shortenMiddleOut; | ||
capitalizeFirstLetter: typeof capitalizeFirstLetter; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=string.utils.d.ts.map |
@@ -14,2 +14,8 @@ import { convertToNamingStyle } from "./string_utils/convertToNamingStyle"; | ||
} | ||
function capitalizeFirstLetter(str) { | ||
if (str.length === 0) { | ||
return str; | ||
} | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
} | ||
export const string_utils = { | ||
@@ -23,2 +29,3 @@ nullEmpty, | ||
shortenMiddleOut, | ||
capitalizeFirstLetter, | ||
}; |
{ | ||
"name": "@meteorwallet/utils", | ||
"version": "0.49.0", | ||
"version": "0.50.0", | ||
"description": "Utility functions used in Meteor Wallet", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
58253
1240