@x-oasis/capitalize
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1,2 +0,2 @@ | ||
declare const _default: (str: string) => string; | ||
export default _default; | ||
declare const capitalize: (str: string) => string; | ||
export default capitalize; |
@@ -1,1 +0,2 @@ | ||
export default (str) => str.charAt(0).toUpperCase() + str.slice(1); | ||
const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1); | ||
export default capitalize; |
{ | ||
"name": "@x-oasis/capitalize", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "capitalize function", | ||
@@ -16,5 +16,5 @@ "main": "index.ts", | ||
"clean": "rimraf ./dist", | ||
"test": "jest --verbose", | ||
"test": "vitest", | ||
"compile": "tsc -p tsconfig.build.json" | ||
} | ||
} |
@@ -1,2 +0,4 @@ | ||
export default (str: string) => | ||
str.charAt(0).toUpperCase() + str.slice(1); | ||
const capitalize = (str: string) => | ||
str.charAt(0).toUpperCase() + str.slice(1); | ||
export default capitalize |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
6
23938
2