Socket
Socket
Sign inDemoInstall

znv

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

znv - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

10

dist/parse-core.js

@@ -24,2 +24,3 @@ "use strict";

const z = __importStar(require("zod"));
const colorette_1 = require("colorette");
const preprocessors_1 = require("./preprocessors");

@@ -94,4 +95,9 @@ function resolveNodeEnv(nodeEnv, strictDev = false) {

if (errors.length > 0) {
throw new Error(`Errors found!\n${errors
.map(([k, v, e]) => `\t[${k}]:\n\t\t${e}\n\t\t(received ${v})`)
throw new Error(`${(0, colorette_1.red)("Errors found!")}\n${errors
.map(([k, v, e]) => ` [${(0, colorette_1.yellow)(k)}]:\n${(e instanceof Error
? e.message
: JSON.stringify(e))
.split("\n")
.map((line) => ` ${line}`)
.join("\n")}\n (received \`${(0, colorette_1.cyan)(v)}\`)`)
.join("\n\n")}`);

@@ -98,0 +104,0 @@ }

3

package.json
{
"name": "znv",
"version": "0.0.2",
"version": "0.0.3",
"description": "Parse your environment with Zod schemas",

@@ -39,2 +39,3 @@ "keywords": [

"dependencies": {
"colorette": "^2.0.16",
"dotenv": "^10.0.0",

@@ -41,0 +42,0 @@ "zod": "^3.11.6"

Sorry, the diff of this file is not supported yet

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