nestjs-zod-config
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -0,1 +1,2 @@ | ||
import 'dotenv/config'; | ||
import type { z } from 'zod'; | ||
@@ -2,0 +3,0 @@ import { UnknownZodObjectSchema } from './types'; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ZodConfigStatic = void 0; | ||
const dotenv_1 = __importDefault(require("dotenv")); | ||
// Load the .env file into the process.env | ||
require("dotenv/config"); | ||
/** | ||
@@ -15,4 +13,2 @@ * This class is the base class for this module. | ||
constructor(schema) { | ||
// Load the .env file into the process.env | ||
dotenv_1.default.config(); | ||
this.config = schema.parse(process.env); | ||
@@ -19,0 +15,0 @@ } |
{ | ||
"name": "nestjs-zod-config", | ||
"version": "2.1.0", | ||
"version": "2.2.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
15573
256