upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
3 changed files with 5 additions and 7 deletions
Showing only changes of commit fc09968f3e - Show all commits

View File

@ -1,8 +1,5 @@
const kebabCase = (str) => import { slug } from 'github-slugger'
str &&
str const kebabCase = (str) => slug(str)
.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)
.map((x) => x.toLowerCase())
.join('-')
export default kebabCase export default kebabCase

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "tailwind-nextjs-starter-blog", "name": "tailwind-nextjs-starter-blog",
"version": "1.0.0", "version": "1.1.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -16,6 +16,7 @@
"@tailwindcss/typography": "^0.4.0", "@tailwindcss/typography": "^0.4.0",
"autoprefixer": "^10.2.5", "autoprefixer": "^10.2.5",
"esbuild": "^0.12.15", "esbuild": "^0.12.15",
"github-slugger": "^1.3.0",
"gray-matter": "^4.0.2", "gray-matter": "^4.0.2",
"image-size": "1.0.0", "image-size": "1.0.0",
"mdx-bundler": "^6.0.1", "mdx-bundler": "^6.0.1",