dnslink-cloudflare
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -43,3 +43,3 @@ #!/usr/bin/env node | ||
const opts = { | ||
record: argv.record === '@' ? argv.domain : argv.record, | ||
record: argv.record === '@' ? argv.domain : `${argv.record}.${argv.domain}`, | ||
zone: argv.domain, | ||
@@ -51,4 +51,3 @@ link: argv.link | ||
const content = await update(api, opts) | ||
const record = opts.record === opts.zone ? '@' : opts.record | ||
console.log(`Updated TXT ${record}.${opts.zone} to ${content}`) | ||
console.log(`Updated TXT ${opts.record} to ${content}`) | ||
} catch (err) { | ||
@@ -55,0 +54,0 @@ console.log(err) |
{ | ||
"name": "dnslink-cloudflare", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Update dnslink TXT records in Cloudflare", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
4466
86