cloudflare-ddns-sync 3.0.1 → 3.0.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 CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## v3
4
4
 
5
+ ### 3.0.2
6
+
7
+ - 📝 Add logo to README
8
+ - ⬆️ Update dependencies
9
+ - 🔥 Remove `what-is-my-ip-address` and use retry instead, because `what-is-my-ip-address` is not maintained for a long time
10
+
5
11
  ### v3.0.1
6
12
 
7
13
  - ⬆️ Update dependencies
package/README.md CHANGED
@@ -1,4 +1,9 @@
1
- # Cloudflare-DDNS-Sync
1
+ <table>
2
+ <tr>
3
+ <td width="25%"><img src="./logo.png" alt="Logo" width="100%"></td>
4
+ <td><h1>Cloudflare DDNS Sync</h1></td>
5
+ </tr>
6
+ </table>
2
7
 
3
8
  ![](https://github.com/SteffenKn/cloudflare-ddns-sync/actions/workflows/push.yml/badge.svg)
4
9
  [![npm version](https://badge.fury.io/js/cloudflare-ddns-sync.svg)](https://www.npmjs.com/package/cloudflare-ddns-sync)
@@ -1,4 +1,3 @@
1
- import * as wimIp from 'what-is-my-ip-address';
2
1
  import { publicIpv4, publicIpv6 } from 'public-ip';
3
2
  export default class IPUtils {
4
3
  static ipPollingDelay = 10 * 1000;
@@ -9,7 +8,7 @@ export default class IPUtils {
9
8
  return await publicIpv4();
10
9
  }
11
10
  catch (error) {
12
- return wimIp.v4();
11
+ return publicIpv4();
13
12
  }
14
13
  /* c8 ignore stop*/
15
14
  }
@@ -19,7 +18,7 @@ export default class IPUtils {
19
18
  return await publicIpv6();
20
19
  }
21
20
  catch (error) {
22
- return wimIp.v6();
21
+ return publicIpv6();
23
22
  }
24
23
  /* c8 ignore stop*/
25
24
  }
package/logo.png ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudflare-ddns-sync",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "A simple module to update DNS records on Cloudflare whenever you want",
5
5
  "main": "dist/index.js",
6
6
  "author": "Steffen Knaup <SteffenKnaup@hotmail.de>",
@@ -31,22 +31,21 @@
31
31
  "dependencies": {
32
32
  "cloudflare": "2.9.1",
33
33
  "node-cron": "3.0.3",
34
- "parse-domain": "8.0.1",
35
- "public-ip": "6.0.1",
36
- "what-is-my-ip-address": "1.0.3"
34
+ "parse-domain": "8.0.2",
35
+ "public-ip": "6.0.2"
37
36
  },
38
37
  "devDependencies": {
39
- "@types/chai": "4.3.11",
40
- "@types/cloudflare": "^2.7.13",
38
+ "@types/chai": "4.3.14",
39
+ "@types/cloudflare": "^2.7.14",
41
40
  "@types/minimist": "1.2.5",
42
41
  "@types/mocha": "10.0.6",
43
- "@types/node": "20.10.7",
42
+ "@types/node": "20.11.30",
44
43
  "@types/node-cron": "3.0.11",
45
- "c8": "9.0.0",
46
- "chai": "5.0.0",
44
+ "c8": "9.1.0",
45
+ "chai": "5.1.0",
47
46
  "minimist": "1.2.8",
48
- "mocha": "10.2.0",
49
- "prettier": "^3.1.1",
50
- "typescript": "5.3.3"
47
+ "mocha": "10.3.0",
48
+ "prettier": "^3.2.5",
49
+ "typescript": "5.4.3"
51
50
  }
52
51
  }