cloudflare-ddns-sync 4.0.0-rc.1 → 4.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/dist/lib/cloudflare-client.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
### v4.0.0
|
|
6
6
|
|
|
7
|
+
- 🐛 Fix domain parsing for wildcard DNS record names such as `*.example.com`.
|
|
8
|
+
|
|
7
9
|
- ⬆️ Update dependencies, including Cloudflare 2 → 7, node-cron 3 → 4 and public-ip 6 → 8.
|
|
8
10
|
- ♻️ Preserve public auth fields, key/token precedence, record types, sync methods and DNS defaults while adapting to the new SDK.
|
|
9
11
|
- ♻️ Fetch all zone and DNS record pages; report zone-loading failures through the awaited operation.
|
|
@@ -158,7 +158,7 @@ export default class CloudflareClient {
|
|
|
158
158
|
return [...new Set(records.map((record) => this.getDomainByRecordName(record.name)))];
|
|
159
159
|
}
|
|
160
160
|
getDomainByRecordName(recordName) {
|
|
161
|
-
const parsedDomain = parseDomain(fromUrl(recordName));
|
|
161
|
+
const parsedDomain = parseDomain(fromUrl(recordName.replace(/^\*\./, '')));
|
|
162
162
|
if (parsedDomain.type !== ParseResultType.Listed || !parsedDomain.domain) {
|
|
163
163
|
throw new Error(`Could not parse domain. '${JSON.stringify(recordName)}' is not a valid record name.`);
|
|
164
164
|
}
|
package/package.json
CHANGED