Snyk report fixes + offcanvas sidebar fix (#263)
Refactor: - Improved consistency and robustness by standardizing file encoding arguments from 'utf-8' to 'utf8' across various file read/write operations. - Simplified status mapping logic in billing components and services by replacing switch statements with direct mapping objects for clearer and more maintainable code. - Enhanced type conversion and error handling in billing and internationalization components for improved reliability. - Updated sorting logic in team member tables for more predictable member ordering. - Improved error logging with sanitized output to prevent formatting issues. - Adjusted environment variable whitelisting to use a more flexible matching pattern. - Fix variables for sidebar style handling Style: - Refined spacing and layout in account selector and sidebar header components for better visual consistency.
This commit is contained in:
committed by
GitHub
parent
cb80e4fdcf
commit
fc2fda595a
@@ -6,7 +6,7 @@ const whitelist = {
|
||||
STRIPE_WEBHOOK_SECRET: [/whsec_*/],
|
||||
EMAIL_PASSWORD: ['password'],
|
||||
SUPABASE_DB_WEBHOOK_SECRET: ['WEBHOOKSECRET'],
|
||||
SUPABASE_SERVICE_ROLE_KEY: ['eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU'],
|
||||
SUPABASE_SERVICE_ROLE_KEY: [/qQwv8Hdp7fsn3W0YpN81IU/],
|
||||
};
|
||||
|
||||
// List of sensitive environment variables that should not be in .env files
|
||||
|
||||
@@ -48,7 +48,7 @@ async function checkLicense() {
|
||||
try {
|
||||
const makerkitConfig =
|
||||
JSON.parse(
|
||||
readFileSync(path.resolve(process.cwd(), '../../.makerkitrc'), 'utf-8'),
|
||||
readFileSync(path.resolve(process.cwd(), '../../.makerkitrc'), 'utf8'),
|
||||
) || {};
|
||||
|
||||
if (makerkitConfig.projectName) {
|
||||
|
||||
Reference in New Issue
Block a user