@abtnode/core 1.5.15 → 1.5.16
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/lib/router/helper.js +2 -2
- package/package.json +12 -12
package/lib/router/helper.js
CHANGED
|
@@ -64,7 +64,7 @@ const attachRuntimeDomainAliases = async ({ sites = [], context = {}, node }) =>
|
|
|
64
64
|
const ipRegex = /\d+[-.]\d+[-.]\d+[-.]\d+/;
|
|
65
65
|
const match = ipRegex.exec(context.hostname);
|
|
66
66
|
if (match) {
|
|
67
|
-
ip = match[0]
|
|
67
|
+
ip = match[0];
|
|
68
68
|
} else if (node) {
|
|
69
69
|
const nodeInfo = await node.read();
|
|
70
70
|
const nodeIp = await getAccessibleExternalNodeIp(nodeInfo);
|
|
@@ -79,7 +79,7 @@ const attachRuntimeDomainAliases = async ({ sites = [], context = {}, node }) =>
|
|
|
79
79
|
return domain;
|
|
80
80
|
}
|
|
81
81
|
if (domain.value.includes(SLOT_FOR_IP_DNS_SITE) && ip) {
|
|
82
|
-
domain.value = domain.value.replace(SLOT_FOR_IP_DNS_SITE, ip);
|
|
82
|
+
domain.value = domain.value.replace(SLOT_FOR_IP_DNS_SITE, ip.replace(/\./g, '-'));
|
|
83
83
|
}
|
|
84
84
|
return domain;
|
|
85
85
|
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.5.
|
|
6
|
+
"version": "1.5.16",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,20 +19,20 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/constant": "1.5.
|
|
23
|
-
"@abtnode/cron": "1.5.
|
|
24
|
-
"@abtnode/logger": "1.5.
|
|
25
|
-
"@abtnode/queue": "1.5.
|
|
26
|
-
"@abtnode/rbac": "1.5.
|
|
27
|
-
"@abtnode/router-provider": "1.5.
|
|
28
|
-
"@abtnode/static-server": "1.5.
|
|
29
|
-
"@abtnode/timemachine": "1.5.
|
|
30
|
-
"@abtnode/util": "1.5.
|
|
22
|
+
"@abtnode/constant": "1.5.16",
|
|
23
|
+
"@abtnode/cron": "1.5.16",
|
|
24
|
+
"@abtnode/logger": "1.5.16",
|
|
25
|
+
"@abtnode/queue": "1.5.16",
|
|
26
|
+
"@abtnode/rbac": "1.5.16",
|
|
27
|
+
"@abtnode/router-provider": "1.5.16",
|
|
28
|
+
"@abtnode/static-server": "1.5.16",
|
|
29
|
+
"@abtnode/timemachine": "1.5.16",
|
|
30
|
+
"@abtnode/util": "1.5.16",
|
|
31
31
|
"@arcblock/did": "^1.13.61",
|
|
32
32
|
"@arcblock/event-hub": "1.13.61",
|
|
33
33
|
"@arcblock/pm2-events": "^0.0.5",
|
|
34
34
|
"@arcblock/vc": "^1.13.61",
|
|
35
|
-
"@blocklet/meta": "1.5.
|
|
35
|
+
"@blocklet/meta": "1.5.16",
|
|
36
36
|
"@fidm/x509": "^1.2.1",
|
|
37
37
|
"@nedb/core": "^1.2.2",
|
|
38
38
|
"@nedb/multi": "^1.2.2",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"express": "^4.17.1",
|
|
74
74
|
"jest": "^27.3.1"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "dd62c2886aba5bbb8ba5e99a0298558765230855"
|
|
77
77
|
}
|