@smartsoft001/utils 2.105.0 → 2.107.0

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/README.md CHANGED
@@ -132,6 +132,17 @@ Methods:
132
132
  </tr>
133
133
  </table>
134
134
 
135
+ ## 🔧 Functions
136
+
137
+ ### capitalize
138
+
139
+ <table>
140
+ <tr>
141
+ <td>capitalize(val: string): string</td>
142
+ <td>capitalize first letter of a string</td>
143
+ </tr>
144
+ </table>
145
+
135
146
  ## 🤝 Contributing
136
147
 
137
148
  Contributions are welcome! 🎉
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001/utils",
3
- "version": "2.105.0",
3
+ "version": "2.107.0",
4
4
  "dependencies": {
5
5
  "guid-typescript": "^1.0.9",
6
6
  "md5": "^2.3.0",
@@ -7,3 +7,4 @@ export * from './pesel/pesel.service';
7
7
  export * from './slug/slug.service';
8
8
  export * from './specification/specification.service';
9
9
  export * from './zip-code/zip-code.service';
10
+ export * from './text/text.functions';
@@ -10,4 +10,5 @@ tslib_1.__exportStar(require("./pesel/pesel.service"), exports);
10
10
  tslib_1.__exportStar(require("./slug/slug.service"), exports);
11
11
  tslib_1.__exportStar(require("./specification/specification.service"), exports);
12
12
  tslib_1.__exportStar(require("./zip-code/zip-code.service"), exports);
13
+ tslib_1.__exportStar(require("./text/text.functions"), exports);
13
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/shared/utils/src/lib/services/index.ts"],"names":[],"mappings":";;;AAAA,gEAAsC;AACtC,8DAAoC;AACpC,4DAAkC;AAClC,kEAAwC;AACxC,sEAA4C;AAC5C,gEAAsC;AACtC,8DAAoC;AACpC,gFAAsD;AACtD,sEAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/shared/utils/src/lib/services/index.ts"],"names":[],"mappings":";;;AAAA,gEAAsC;AACtC,8DAAoC;AACpC,4DAAkC;AAClC,kEAAwC;AACxC,sEAA4C;AAC5C,gEAAsC;AACtC,8DAAoC;AACpC,gFAAsD;AACtD,sEAA4C;AAC5C,gEAAsC"}
@@ -0,0 +1 @@
1
+ export declare function capitalize(val: string): string;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.capitalize = capitalize;
4
+ function capitalize(val) {
5
+ if (!(val === null || val === void 0 ? void 0 : val.length))
6
+ return '';
7
+ return val[0].toUpperCase() + val.substring(1);
8
+ }
9
+ //# sourceMappingURL=text.functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.functions.js","sourceRoot":"","sources":["../../../../../../../../packages/shared/utils/src/lib/services/text/text.functions.ts"],"names":[],"mappings":";;AAAA,gCAIC;AAJD,SAAgB,UAAU,CAAC,GAAW;IACpC,IAAI,CAAC,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,CAAA;QAAE,OAAO,EAAE,CAAC;IAE5B,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC"}