Comparing version 1.1.54 to 1.1.55
@@ -35,6 +35,6 @@ "use strict"; | ||
.version(getVersion()) | ||
.option("-o, --output [value]", "Output file path", "dnslint-report.json") | ||
.option("-d, --domainToCheck [value]", "Domain to Check"); | ||
.option("-o, --output [value]", "output file path", "dnslint-report.json") | ||
.option("-d, --domainToCheck [value]", "domain to check"); | ||
program.parse(process.argv); | ||
start(program.output, program.domainToCheck); | ||
//# sourceMappingURL=cli.js.map |
@@ -17,3 +17,2 @@ "use strict"; | ||
const config_1 = require("./config"); | ||
const ts_optchain_1 = require("ts-optchain"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
@@ -40,4 +39,6 @@ const validator_1 = require("./validator"); | ||
console.log(chalk_1.default.gray("Getting Domains")); | ||
if (ts_optchain_1.oc(this.config).aws.enabled(true)) { | ||
yield this.addAWSDomains(domains); | ||
if (this.config.aws) { | ||
if (this.config.aws.enabled) { | ||
yield this.addAWSDomains(domains); | ||
} | ||
} | ||
@@ -44,0 +45,0 @@ console.log(chalk_1.default.gray("Getting Config Domains")); |
{ | ||
"name": "dnslint", | ||
"version": "1.1.54", | ||
"version": "1.1.55", | ||
"description": "XYO Internal Domain Tool", | ||
@@ -32,9 +32,7 @@ "main": "dist/index.js", | ||
"crawler": "^1.2.0", | ||
"deepmerge": "^3.2.0", | ||
"dotenv-expand": "^5.0.0", | ||
"dotenv-expand": "^5.1.0", | ||
"html-validator": "^4.0.0", | ||
"load-json-file": "^5.2.0", | ||
"lodash": "^4.17.11", | ||
"stream-buffers": "^3.0.2", | ||
"ts-optchain": "^0.1.3" | ||
"stream-buffers": "^3.0.2" | ||
}, | ||
@@ -41,0 +39,0 @@ "devDependencies": { |
@@ -72,2 +72,6 @@ [logo]: https://cdn.xy.company/img/brand/XY_Logo_GitHub.png | ||
## AWS Support | ||
When aws=true is set in the dnslint.json file, then dnslint will read a list of domains from Route53, using the credentials configured in the AWS CLI | ||
## Developer Guide | ||
@@ -74,0 +78,0 @@ |
import commander from 'commander' | ||
import dotenvExpand from 'dotenv-expand' | ||
import { XyDomainScan } from './' | ||
import { inspect } from 'util' | ||
import { Config } from './config' | ||
@@ -29,4 +27,4 @@ const getVersion = (): string => { | ||
.version(getVersion()) | ||
.option("-o, --output [value]", "Output file path", "dnslint-report.json") | ||
.option("-d, --domainToCheck [value]", "Domain to Check") | ||
.option("-o, --output [value]", "output file path", "dnslint-report.json") | ||
.option("-d, --domainToCheck [value]", "domain to check") | ||
@@ -33,0 +31,0 @@ program.parse(process.argv) |
import { AWS } from './aws' | ||
import fs from 'fs' | ||
import { Config } from './config' | ||
import { oc } from 'ts-optchain' | ||
import chalk from 'chalk' | ||
@@ -29,4 +28,6 @@ import { DomainValidator } from './validator' | ||
if (oc(this.config).aws.enabled(true)) { | ||
await this.addAWSDomains(domains) | ||
if (this.config.aws) { | ||
if (this.config.aws.enabled) { | ||
await this.addAWSDomains(domains) | ||
} | ||
} | ||
@@ -33,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
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
167594
11
107
- Removeddeepmerge@^3.2.0
- Removedts-optchain@^0.1.3
- Removeddeepmerge@3.3.0(transitive)
- Removedts-optchain@0.1.8(transitive)
Updateddotenv-expand@^5.1.0