Skip to content

Commit

Permalink
🚧 WIP: :arrow: Update to cloudflare 3
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenKn committed Mar 24, 2024
1 parent 3b8761a commit 787ca06
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 121 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"test:coverage-report": "c8 report"
},
"dependencies": {
"cloudflare": "2.9.1",
"cloudflare": "3.0.0-beta.11",
"node-cron": "3.0.3",
"parse-domain": "8.0.2",
"public-ip": "6.0.2"
Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ export default class CloudflareDDNSSync {
}

public getRecordDataForDomain(domain: string): Promise<Array<RecordData>> {
return this.cloudflareClient.getRecordDataForDomain(domain);
return this.cloudflareClient.getRecordsByDomain(domain);
}

public getRecordDataForDomains(domains: Array<string>): Promise<DomainRecordList> {
return this.cloudflareClient.getRecordDataForDomains(domains);
return this.cloudflareClient.getRecordsByDomains(domains);
}

public getRecordDataForRecord(record: Record): Promise<RecordData> {
Expand Down Expand Up @@ -70,11 +70,11 @@ export default class CloudflareDDNSSync {
}

public syncRecord(record: Record, ip?: string): Promise<RecordData> {
return this.cloudflareClient.syncRecord(record, ip);
return this.cloudflareClient.syncRecord(record, ip) as any;
}

public syncRecords(records: Array<Record>, ip?: string): Promise<Array<RecordData>> {
return this.cloudflareClient.syncRecords(records, ip);
return this.cloudflareClient.syncRecords(records, ip) as any;
}
}

Expand Down
Loading

0 comments on commit 787ca06

Please sign in to comment.