@lsby/cloudflare-ipv6-ddns 0.0.6 → 0.0.7
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/dist/index.js +0 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -24,9 +24,6 @@ async function 增加或更新dns记录(cf句柄, 区域id, 域名, ip地址,
|
|
|
24
24
|
console.log('没有找到域名%O对应的记录, 将新增该记录...', 域名);
|
|
25
25
|
await cf句柄.dns.records.create({
|
|
26
26
|
zone_id: 区域id,
|
|
27
|
-
// 2024年7月3日 发现参数名称改成了body_zone_id
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
body_zone_id: 区域id,
|
|
30
27
|
content: ip地址,
|
|
31
28
|
name: 域名,
|
|
32
29
|
proxied: 使用代理,
|
|
@@ -47,9 +44,6 @@ async function 增加或更新dns记录(cf句柄, 区域id, 域名, ip地址,
|
|
|
47
44
|
console.log('找到域名%O对应的记录, 发现ip有变化, 将修改该记录', 域名);
|
|
48
45
|
await cf句柄.dns.records.edit(目标.id, {
|
|
49
46
|
zone_id: 区域id,
|
|
50
|
-
// 2024年7月3日 发现参数名称改成了body_zone_id
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
body_zone_id: 区域id,
|
|
53
47
|
content: ip地址,
|
|
54
48
|
name: 域名,
|
|
55
49
|
// 截至 2024年5月2日, 接口实际返回的值包括proxiable和proxied, proxiable总为true, 所以这里使用proxied.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lsby/cloudflare-ipv6-ddns",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"lsby-cloudflare-ipv6-ddns": "dist/index.js"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"axios": "^1.6.8",
|
|
13
|
-
"cloudflare": "
|
|
13
|
+
"cloudflare": "3.1.0",
|
|
14
14
|
"dotenv": "^16.4.5"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|