envaridator
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -97,4 +97,8 @@ "use strict"; | ||
describeAll() { | ||
const envars = Object.keys(this.registeredVariables).map(name => `${name} - ${this.registeredVariables[name].description}`); | ||
const rules = this.postValidations.map(rule => rule.description); | ||
const envars = Object.keys(this.registeredVariables) | ||
.map(name => `${name} - ${this.registeredVariables[name].description}`) | ||
.sort((a, b) => a.localeCompare(b)); | ||
const rules = this.postValidations | ||
.map(rule => rule.description) | ||
.sort((a, b) => a.localeCompare(b)); | ||
return [...envars, ...rules].join('\n'); | ||
@@ -108,4 +112,8 @@ } | ||
.map(name => `**${name}** - ${this.registeredVariables[name].description}`) | ||
.sort((a, b) => a.localeCompare(b)) | ||
.join('\n'); | ||
const rules = this.postValidations.map(rule => rule.description).join('\n'); | ||
const rules = this.postValidations | ||
.map(rule => rule.description) | ||
.sort((a, b) => a.localeCompare(b)) | ||
.join('\n'); | ||
let result = []; | ||
@@ -112,0 +120,0 @@ if (envars.length > 0) { |
{ | ||
"name": "envaridator", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Environment variable validator for TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
14405
248