acme-dns-01-cloudflare
Advanced tools
Comparing version
@@ -9,3 +9,3 @@ # Changelog | ||
## [1.2.3] - 2021-04-027 | ||
## [1.2.4] - 2021-04-027 | ||
- Fix issues with greenlock serialisation of `client` object. See https://github.com/nodecraft/acme-dns-01-cloudflare/issues/20 for more info. | ||
@@ -12,0 +12,0 @@ |
13
index.js
@@ -64,11 +64,10 @@ 'use strict'; | ||
this.cfClient = new cloudflare({ | ||
email: options.client?.email || options.email, | ||
key: options.client?.key || options.key, | ||
token: options.client?.token || options.token | ||
email: options.client && options.client.email || options.email, | ||
key: options.client && options.client.key || options.key, | ||
token: options.client && options.client.token || options.token | ||
}); | ||
this.client = { | ||
email: options.client?.email || options.email, | ||
key: options.client?.key || options.key, | ||
token: options.client?.token || options.token | ||
email: options.client && options.client.email || options.email, | ||
key: options.client && options.client.key || options.key, | ||
token: options.client && options.client.token || options.token | ||
}; | ||
@@ -75,0 +74,0 @@ this.propagationDelay = options.propagationDelay || 15000; // set propagationDelay for ACME.js |
{ | ||
"name": "acme-dns-01-cloudflare", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "Cloudflare DNS for Let's Encrypt / ACME dns-01 challenges with Greenlock.js and ACME.js", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
"eslint-config-nodecraft": "^7.1.0", | ||
"eslint-plugin-json": "^2.1.2", | ||
"eslint-plugin-json": "^3.0.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
@@ -41,0 +41,0 @@ "eslint-plugin-unicorn": "^31.0.0" |
15355
0.37%