Comparing version 0.0.2 to 0.0.3
@@ -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 @@ } |
{ | ||
"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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28322
414
0
3
+ Addedcolorette@^2.0.16
+ Addedcolorette@2.0.20(transitive)