nestjs-zod-config
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -1,2 +0,1 @@ | ||
import 'dotenv/config'; | ||
import type { z } from 'zod'; | ||
@@ -3,0 +2,0 @@ import { UnknownZodObjectSchema } from './types'; |
@@ -5,3 +5,3 @@ "use strict"; | ||
// Load the .env file into the process.env | ||
require("dotenv/config"); | ||
const dotenv_1 = require("dotenv"); | ||
/** | ||
@@ -14,2 +14,4 @@ * This class is the base class for this module. | ||
constructor(schema) { | ||
// Load .env file before parsing process.env | ||
(0, dotenv_1.config)(); | ||
this.config = schema.parse(process.env); | ||
@@ -16,0 +18,0 @@ } |
{ | ||
"name": "nestjs-zod-config", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "NestJS module to load, type and validate configuration using Zod", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15644
257