New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

env-schema

Package Overview
Dependencies
Maintainers
13
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env-schema - npm Package Compare versions

Comparing version 3.3.0 to 3.4.0

4

index.d.ts
import Ajv, { KeywordDefinition } from "ajv";
import { DotenvConfigOptions } from "dotenv";

@@ -11,3 +12,4 @@ export type EnvSchemaData = {

env?: boolean;
dotenv?: boolean | object;
dotenv?: boolean | DotenvConfigOptions;
expandEnv?: boolean
ajv?: Ajv;

@@ -14,0 +16,0 @@ };

{
"name": "env-schema",
"version": "3.3.0",
"version": "3.4.0",
"description": "Validate your env variable using Ajv and dotenv",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -38,2 +38,6 @@ # env-schema

dotenv: true // load .env if it is there, default: false
// or you can pass DotenvConfigOptions
// dotenv: {
// path: '/custom/path/to/.env'
// }
})

@@ -45,2 +49,4 @@

see [DotenvConfigOptions](https://github.com/motdotla/dotenv#options)
Optionally, the user can supply their own ajv instance:

@@ -47,0 +53,0 @@

@@ -56,6 +56,11 @@ import { expectError, expectType } from "tsd";

const optWithDotEnvOpt: EnvSchemaOpt = {
dotenv: true,
dotenv: {},
};
expectType<EnvSchemaOpt>(optWithDotEnvOpt);
const optWithEnvExpand: EnvSchemaOpt = {
expandEnv: true
}
expectType<EnvSchemaOpt>(optWithEnvExpand);
const optWithAjvInstance: EnvSchemaOpt = {

@@ -62,0 +67,0 @@ ajv: new Ajv()

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