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 +6 -0
- package/README.md +6 -1
- package/dist/lib/ip-utils.js +2 -3
- package/logo.png +0 -0
- package/package.json +11 -12
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
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
|

|
|
4
9
|
[](https://www.npmjs.com/package/cloudflare-ddns-sync)
|
package/dist/lib/ip-utils.js
CHANGED
|
@@ -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
|
|
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
|
|
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.
|
|
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.
|
|
35
|
-
"public-ip": "6.0.
|
|
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.
|
|
40
|
-
"@types/cloudflare": "^2.7.
|
|
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.
|
|
42
|
+
"@types/node": "20.11.30",
|
|
44
43
|
"@types/node-cron": "3.0.11",
|
|
45
|
-
"c8": "9.
|
|
46
|
-
"chai": "5.
|
|
44
|
+
"c8": "9.1.0",
|
|
45
|
+
"chai": "5.1.0",
|
|
47
46
|
"minimist": "1.2.8",
|
|
48
|
-
"mocha": "10.
|
|
49
|
-
"prettier": "^3.
|
|
50
|
-
"typescript": "5.
|
|
47
|
+
"mocha": "10.3.0",
|
|
48
|
+
"prettier": "^3.2.5",
|
|
49
|
+
"typescript": "5.4.3"
|
|
51
50
|
}
|
|
52
51
|
}
|