@thi.ng/strings
Advanced tools
Comparing version 3.4.11 to 3.4.12
@@ -18,3 +18,3 @@ /** | ||
*/ | ||
export const capitalize = (x) => x[0].toUpperCase() + x.substring(1); | ||
export const capitalize = (x) => x.length ? x[0].toUpperCase() + x.substring(1) : x; | ||
/** | ||
@@ -21,0 +21,0 @@ * Converts a CamelCase string into kebab case, with optional custom |
# Change Log | ||
- **Last updated**: 2023-08-12T13:14:08Z | ||
- **Last updated**: 2023-08-22T14:39:27Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -12,2 +12,8 @@ | ||
### [3.4.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.4.12) (2023-08-22) | ||
#### 🩹 Bug fixes | ||
- empty string check for capitalize() ([f2dcee5](https://github.com/thi-ng/umbrella/commit/f2dcee5)) | ||
## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.4.0) (2023-02-27) | ||
@@ -14,0 +20,0 @@ |
{ | ||
"name": "@thi.ng/strings", | ||
"version": "3.4.11", | ||
"version": "3.4.12", | ||
"description": "Various string formatting & utility functions", | ||
@@ -37,10 +37,10 @@ "type": "module", | ||
"dependencies": { | ||
"@thi.ng/api": "^8.9.3", | ||
"@thi.ng/errors": "^2.3.3", | ||
"@thi.ng/hex": "^2.3.15", | ||
"@thi.ng/memoize": "^3.1.36" | ||
"@thi.ng/api": "^8.9.4", | ||
"@thi.ng/errors": "^2.3.4", | ||
"@thi.ng/hex": "^2.3.16", | ||
"@thi.ng/memoize": "^3.1.37" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.36.4", | ||
"@thi.ng/testament": "^0.3.21", | ||
"@thi.ng/testament": "^0.3.22", | ||
"rimraf": "^5.0.1", | ||
@@ -204,3 +204,3 @@ "tools": "^0.0.1", | ||
}, | ||
"gitHead": "399f8c53d66b9b763d16c21bb59f145df5f59514\n" | ||
"gitHead": "74cfe3fb8de5bfcbfc1109e67604541cbd7b77aa\n" | ||
} |
@@ -11,3 +11,3 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
This project is part of the | ||
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo. | ||
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo and anti-framework. | ||
@@ -14,0 +14,0 @@ - [About](#about) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101953
Updated@thi.ng/api@^8.9.4
Updated@thi.ng/errors@^2.3.4
Updated@thi.ng/hex@^2.3.16
Updated@thi.ng/memoize@^3.1.37