Socket
Socket
Sign inDemoInstall

nestjs-zod-config

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestjs-zod-config - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

1

dist/zod-config-static.d.ts

@@ -0,1 +1,2 @@

import 'dotenv/config';
import type { z } from 'zod';

@@ -2,0 +3,0 @@ import { UnknownZodObjectSchema } from './types';

8

dist/zod-config-static.js
"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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc