Update TypeScript version and enhance ContactForm and email handling
- Upgraded TypeScript dependency from 5.7.3 to 5.8.3 for improved type checking and features. - Modified ContactForm component to include a hidden input for the domain, capturing the current hostname. - Updated API contact handling to log and utilize the domain information in email notifications. - Refactored email sending functions to conditionally include the domain in the sender's address for better context.
This commit is contained in:
@@ -15,10 +15,10 @@
|
||||
"astro": "astro",
|
||||
"check": "npm run check:astro && npm run check:eslint && npm run check:prettier",
|
||||
"check:astro": "astro check",
|
||||
"check:eslint": "eslint .",
|
||||
"check:eslint": "npx eslint .",
|
||||
"check:prettier": "prettier --check .",
|
||||
"fix": "npm run fix:eslint && npm run fix:prettier",
|
||||
"fix:eslint": "eslint --fix .",
|
||||
"fix:eslint": "npx eslint --fix .",
|
||||
"fix:prettier": "prettier -w ."
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -81,7 +81,7 @@
|
||||
"sharp": "0.33.5",
|
||||
"tailwind-merge": "^2.6.0",
|
||||
"tailwindcss": "^3.4.17",
|
||||
"typescript": "^5.7.3",
|
||||
"typescript": "^5.8.3",
|
||||
"typescript-eslint": "^8.21.0",
|
||||
"unist-util-visit": "^5.0.0"
|
||||
}
|
||||
|
Reference in New Issue
Block a user