chore: comprehensive project update with dependency modernization, contact information standardization, copyright updates, and build configuration improvements

- Updated dependencies to latest compatible versions including React, TypeScript, and Vite.
- Standardized contact information across all components (phone, email, address, EIN).
- Updated copyright year to 2025 and ensured consistent legal status messaging.
- Modernized Azure infrastructure with updated API versions and enhanced security practices.
- Optimized build configurations for TypeScript and Vite, ensuring production readiness.
- Cleaned up console logs and improved code quality with type safety and test coverage updates.
This commit is contained in:
defiQUG
2025-10-05 19:41:51 -07:00
parent ce821932ce
commit 12764ceb86
25 changed files with 472 additions and 346 deletions

View File

@@ -12,5 +12,10 @@
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[4.*, 5.0.0)"
},
"functionTimeout": "00:05:00"
"functionTimeout": "00:05:00",
"languageWorkers": {
"node": {
"arguments": ["--max-old-space-size=2048"]
}
}
}

50
api/package-lock.json generated
View File

@@ -8,25 +8,25 @@
"name": "miracles-in-motion-api",
"version": "1.0.0",
"dependencies": {
"@azure/cosmos": "^4.0.0",
"@azure/functions": "^4.0.1",
"@azure/identity": "^4.0.1",
"@azure/keyvault-secrets": "^4.8.0",
"@azure/cosmos": "^4.1.1",
"@azure/functions": "^4.5.1",
"@azure/identity": "^4.5.0",
"@azure/keyvault-secrets": "^4.8.1",
"cors": "^2.8.5",
"joi": "^17.12.0",
"stripe": "^14.10.0",
"uuid": "^9.0.1"
"joi": "^17.13.3",
"stripe": "^17.3.0",
"uuid": "^11.0.3"
},
"devDependencies": {
"@types/cors": "^2.8.17",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.6",
"@types/uuid": "^9.0.7",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.1",
"@types/uuid": "^10.0.0",
"jest": "^29.7.0",
"typescript": "^5.3.3"
"typescript": "^5.6.3"
},
"engines": {
"node": ">=18.0.0"
"node": ">=22.0.0"
}
},
"node_modules/@azure-rest/core-client": {
@@ -1396,9 +1396,9 @@
}
},
"node_modules/@types/node": {
"version": "20.19.19",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.19.tgz",
"integrity": "sha512-pb1Uqj5WJP7wrcbLU7Ru4QtA0+3kAXrkutGiD26wUKzSMgNNaPARTUDQmElUXp64kh3cWdou3Q0C7qwwxqSFmg==",
"version": "22.18.8",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.8.tgz",
"integrity": "sha512-pAZSHMiagDR7cARo/cch1f3rXy0AEXwsVsVH09FcyeJVAzCnGgmYis7P3JidtTUjyadhTeSo8TgRPswstghDaw==",
"license": "MIT",
"dependencies": {
"undici-types": "~6.21.0"
@@ -1412,9 +1412,9 @@
"license": "MIT"
},
"node_modules/@types/uuid": {
"version": "9.0.8",
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz",
"integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==",
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz",
"integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==",
"dev": true,
"license": "MIT"
},
@@ -4415,9 +4415,9 @@
}
},
"node_modules/stripe": {
"version": "14.25.0",
"resolved": "https://registry.npmjs.org/stripe/-/stripe-14.25.0.tgz",
"integrity": "sha512-wQS3GNMofCXwH8TSje8E1SE8zr6ODiGtHQgPtO95p9Mb4FhKC9jvXR2NUTpZ9ZINlckJcFidCmaTFV4P6vsb9g==",
"version": "17.7.0",
"resolved": "https://registry.npmjs.org/stripe/-/stripe-17.7.0.tgz",
"integrity": "sha512-aT2BU9KkizY9SATf14WhhYVv2uOapBWX0OFWF4xvcj1mPaNotlSc2CsxpS4DS46ZueSppmCF5BX1sNYBtwBvfw==",
"license": "MIT",
"dependencies": {
"@types/node": ">=8.1.0",
@@ -4581,16 +4581,16 @@
}
},
"node_modules/uuid": {
"version": "9.0.1",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
"integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
"version": "11.1.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz",
"integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==",
"funding": [
"https://github.com/sponsors/broofa",
"https://github.com/sponsors/ctavan"
],
"license": "MIT",
"bin": {
"uuid": "dist/bin/uuid"
"uuid": "dist/esm/bin/uuid"
}
},
"node_modules/v8-to-istanbul": {

View File

@@ -11,24 +11,24 @@
"test": "jest"
},
"dependencies": {
"@azure/cosmos": "^4.0.0",
"@azure/keyvault-secrets": "^4.8.0",
"@azure/identity": "^4.0.1",
"@azure/functions": "^4.0.1",
"stripe": "^14.10.0",
"joi": "^17.12.0",
"uuid": "^9.0.1",
"@azure/cosmos": "^4.1.1",
"@azure/keyvault-secrets": "^4.8.1",
"@azure/identity": "^4.5.0",
"@azure/functions": "^4.5.1",
"stripe": "^17.3.0",
"joi": "^17.13.3",
"uuid": "^11.0.3",
"cors": "^2.8.5"
},
"devDependencies": {
"@types/node": "^20.10.6",
"@types/uuid": "^9.0.7",
"@types/node": "^22.10.1",
"@types/uuid": "^10.0.0",
"@types/cors": "^2.8.17",
"typescript": "^5.3.3",
"typescript": "^5.6.3",
"jest": "^29.7.0",
"@types/jest": "^29.5.11"
"@types/jest": "^29.5.14"
},
"engines": {
"node": ">=18.0.0"
"node": ">=22.0.0"
}
}

View File

@@ -36,7 +36,7 @@ export async function createDonation(request: HttpRequest, context: InvocationCo
try {
const stripeSecretKey = await secretClient.getSecret('stripe-secret-key');
const stripe = new Stripe(stripeSecretKey.value!, {
apiVersion: '2023-10-16'
apiVersion: '2025-02-24.acacia'
});
const paymentIntent = await stripe.paymentIntents.create({

View File

@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "ES2022",
"module": "commonjs",
"lib": ["ES2020"],
"lib": ["ES2022"],
"outDir": "./dist",
"rootDir": "./src",
"strict": true,