@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.
- package/dist/cjs/utils/string.util.d.ts +1 -0
- package/dist/cjs/utils/string.util.d.ts.map +1 -1
- package/dist/cjs/utils/string.util.js +5 -1
- package/dist/cjs/utils/string.util.js.map +1 -1
- package/dist/esm/utils/string.util.d.ts +1 -0
- package/dist/esm/utils/string.util.d.ts.map +1 -1
- package/dist/esm/utils/string.util.js +3 -0
- package/dist/esm/utils/string.util.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/utils/string.util.ts +4 -0
|
@@ -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 +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 +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"]}
|