@laboratory-one/api-components 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,3 @@
1
1
  export declare const getInitial: (name: string) => string;
2
+ export declare const getCapitalizedString: (str: string) => string;
2
3
  //# sourceMappingURL=string.util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"string.util.d.ts","sourceRoot":"/","sources":["utils/string.util.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,MAEzC,CAAC"}
1
+ {"version":3,"file":"string.util.d.ts","sourceRoot":"/","sources":["utils/string.util.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,MAEzC,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAS,MAAM,KAAG,MAElD,CAAC"}
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getInitial = void 0;
3
+ exports.getCapitalizedString = exports.getInitial = void 0;
4
4
  const getInitial = (name) => {
5
5
  return name[0];
6
6
  };
7
7
  exports.getInitial = getInitial;
8
+ const getCapitalizedString = (str) => {
9
+ return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
10
+ };
11
+ exports.getCapitalizedString = getCapitalizedString;
8
12
  //# sourceMappingURL=string.util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"string.util.js","sourceRoot":"/","sources":["utils/string.util.ts"],"names":[],"mappings":";;;AAAO,MAAM,UAAU,GAAG,CAAC,IAAY,EAAU,EAAE;IACjD,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB","sourcesContent":["export const getInitial = (name: string): string => {\n return name[0];\n};\n"]}
1
+ {"version":3,"file":"string.util.js","sourceRoot":"/","sources":["utils/string.util.ts"],"names":[],"mappings":";;;AAAO,MAAM,UAAU,GAAG,CAAC,IAAY,EAAU,EAAE;IACjD,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB;AAEK,MAAM,oBAAoB,GAAG,CAAC,GAAW,EAAU,EAAE;IAC1D,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;AAClE,CAAC,CAAC;AAFW,QAAA,oBAAoB,wBAE/B","sourcesContent":["export const getInitial = (name: string): string => {\n return name[0];\n};\n\nexport const getCapitalizedString = (str: string): string => {\n return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();\n};\n"]}
@@ -1,2 +1,3 @@
1
1
  export declare const getInitial: (name: string) => string;
2
+ export declare const getCapitalizedString: (str: string) => string;
2
3
  //# sourceMappingURL=string.util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"string.util.d.ts","sourceRoot":"/","sources":["utils/string.util.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,MAEzC,CAAC"}
1
+ {"version":3,"file":"string.util.d.ts","sourceRoot":"/","sources":["utils/string.util.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,MAEzC,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAS,MAAM,KAAG,MAElD,CAAC"}
@@ -1,4 +1,7 @@
1
1
  export const getInitial = (name) => {
2
2
  return name[0];
3
3
  };
4
+ export const getCapitalizedString = (str) => {
5
+ return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
6
+ };
4
7
  //# sourceMappingURL=string.util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"string.util.js","sourceRoot":"/","sources":["utils/string.util.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAU,EAAE;IACjD,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC","sourcesContent":["export const getInitial = (name: string): string => {\n return name[0];\n};\n"]}
1
+ {"version":3,"file":"string.util.js","sourceRoot":"/","sources":["utils/string.util.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAU,EAAE;IACjD,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,GAAW,EAAU,EAAE;IAC1D,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;AAClE,CAAC,CAAC","sourcesContent":["export const getInitial = (name: string): string => {\n return name[0];\n};\n\nexport const getCapitalizedString = (str: string): string => {\n return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();\n};\n"]}