Comparing version 0.1.5 to 0.1.6
@@ -33,3 +33,4 @@ function arrayDedupe(...arrays) { | ||
function capitalize(word = "") { | ||
return `${word.charAt(0).toUpperCase()}${word.slice(1).toLocaleLowerCase()}`; | ||
const trimmed = word.trim(); | ||
return `${trimmed.charAt(0).toUpperCase()}${trimmed.slice(1).toLocaleLowerCase()}`; | ||
} | ||
@@ -40,3 +41,3 @@ function escapeStringRegexp(value = "") { | ||
function kebabToPascal(value = "") { | ||
return value.split("-").map(capitalize).join(""); | ||
return value.trim().split("-").map(capitalize).join(""); | ||
} | ||
@@ -43,0 +44,0 @@ function splitRetain(value = "", match = "") { |
@@ -37,3 +37,4 @@ (function(global, factory) { | ||
function capitalize(word = "") { | ||
return `${word.charAt(0).toUpperCase()}${word.slice(1).toLocaleLowerCase()}`; | ||
const trimmed = word.trim(); | ||
return `${trimmed.charAt(0).toUpperCase()}${trimmed.slice(1).toLocaleLowerCase()}`; | ||
} | ||
@@ -44,3 +45,3 @@ function escapeStringRegexp(value = "") { | ||
function kebabToPascal(value = "") { | ||
return value.split("-").map(capitalize).join(""); | ||
return value.trim().split("-").map(capitalize).join(""); | ||
} | ||
@@ -47,0 +48,0 @@ function splitRetain(value = "", match = "") { |
{ | ||
"name": "beeftools", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Common front-end utilities and types", | ||
@@ -41,4 +41,4 @@ "author": "Curtis Dulmage", | ||
"engines": { | ||
"node": ">=20.13.0", | ||
"npm": ">=10.5.0" | ||
"node": ">=22.4.0", | ||
"npm": ">=10.8.0" | ||
}, | ||
@@ -61,16 +61,16 @@ "scripts": { | ||
"devDependencies": { | ||
"@changesets/cli": "^2.27.5", | ||
"@vitest/coverage-v8": "^1.6.0", | ||
"@vitest/ui": "^1.6.0", | ||
"@changesets/cli": "^2.27.7", | ||
"@vitest/coverage-v8": "^2.0.4", | ||
"@vitest/ui": "^2.0.4", | ||
"eslint": "^8.57.0", | ||
"eslint-config-love": "^53.0.0", | ||
"eslint-config-love": "^59.0.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"globals": "^15.6.0", | ||
"prettier": "^3.3.2", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.3.1", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"globals": "^15.8.0", | ||
"prettier": "^3.3.3", | ||
"typescript": "^5.5.4", | ||
"vite": "^5.3.4", | ||
"vite-plugin-dts": "^3.9.1", | ||
"vitest": "^1.6.0" | ||
"vitest": "^2.0.4" | ||
} | ||
} |
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
31633
785