Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@hazeljs/config

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hazeljs/config - npm Package Compare versions

Comparing version
0.7.9
to
0.8.0
+2
-2
package.json
{
"name": "@hazeljs/config",
"version": "0.7.9",
"version": "0.8.0",
"description": "Configuration module for HazelJS framework",

@@ -52,3 +52,3 @@ "main": "dist/index.js",

},
"gitHead": "28c21c509aeca3bf2d0878fbee737d906b654c67"
"gitHead": "e0ed98ca074dd4f7472816d3c32ef576900dcca6"
}
+15
-15

@@ -91,3 +91,3 @@ # @hazeljs/config

const port = this.configService.get('PORT');
console.log(`Connecting to database: ${dbUrl}`);

@@ -106,9 +106,5 @@ console.log(`Server will run on port: ${port}`);

schema: AppConfig,
envFilePath: [
'.env',
`.env.${process.env.NODE_ENV}`,
'.env.local',
],
envFilePath: ['.env', `.env.${process.env.NODE_ENV}`, '.env.local'],
validate: true,
})
});
```

@@ -119,2 +115,3 @@

Files are loaded in order, with later files overriding earlier ones:
1. `.env` - Base configuration

@@ -177,3 +174,3 @@ 2. `.env.${NODE_ENV}` - Environment-specific

@ValidateIf(o => o.NODE_ENV === 'production')
@ValidateIf((o) => o.NODE_ENV === 'production')
@IsString()

@@ -336,6 +333,9 @@ SSL_CERT_PATH: string;

const settings = await database.settings.findMany();
return settings.reduce((acc, s) => ({
...acc,
[s.key]: s.value,
}), {});
return settings.reduce(
(acc, s) => ({
...acc,
[s.key]: s.value,
}),
{}
);
},

@@ -348,3 +348,3 @@ async () => {

],
})
});
```

@@ -402,3 +402,3 @@

},
})
});
```

@@ -421,3 +421,3 @@

* Application Configuration
*
*
* Required Environment Variables:

@@ -424,0 +424,0 @@ * - NODE_ENV: Application environment (development|production|test)