@vpmedia/simplify 1.49.0 → 1.50.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.50.0] - 2025-12-16
2
+
3
+ ### ⚙️ Miscellaneous Tasks
4
+
5
+ - Release
6
+ - Improve type checking
7
+ - *(release)* V1.50.0
1
8
  ## [1.49.0] - 2025-12-16
2
9
 
3
10
  ### ⚙️ Miscellaneous Tasks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vpmedia/simplify",
3
- "version": "1.49.0",
3
+ "version": "1.50.0",
4
4
  "description": "@vpmedia/simplify",
5
5
  "author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
6
6
  "license": "MIT",
@@ -1,9 +1,12 @@
1
1
  /**
2
2
  * Capitalize a string.
3
3
  * @param {string | null | undefined} value - Ther input string.
4
- * @returns {string | null | undefined} TBD.
4
+ * @returns {string | null} TBD.
5
5
  */
6
6
  export const capitalize = (value) => {
7
+ if (value === null || value === undefined) {
8
+ return null;
9
+ }
7
10
  if (!value || value?.length === 0) {
8
11
  return value;
9
12
  }
@@ -1,2 +1,2 @@
1
- export function capitalize(value: string | null | undefined): string | null | undefined;
1
+ export function capitalize(value: string | null | undefined): string | null;
2
2
  //# sourceMappingURL=capitalize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"capitalize.d.ts","sourceRoot":"","sources":["../../src/util/capitalize.js"],"names":[],"mappings":"AAKO,kCAHI,MAAM,GAAG,IAAI,GAAG,SAAS,GACvB,MAAM,GAAG,IAAI,GAAG,SAAS,CAQrC"}
1
+ {"version":3,"file":"capitalize.d.ts","sourceRoot":"","sources":["../../src/util/capitalize.js"],"names":[],"mappings":"AAKO,kCAHI,MAAM,GAAG,IAAI,GAAG,SAAS,GACvB,MAAM,GAAG,IAAI,CAWzB"}