@blocklet/meta 1.16.19-beta-e93c5bf3 → 1.16.19-beta-e6aac665

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.
Files changed (2) hide show
  1. package/lib/util.js +4 -1
  2. package/package.json +4 -4
package/lib/util.js CHANGED
@@ -577,7 +577,10 @@ const getConnectAppUrl = ({ request, baseUrl }) => {
577
577
  return appUrl;
578
578
  };
579
579
  exports.getConnectAppUrl = getConnectAppUrl;
580
- const replaceSlotToIp = (url, ip) => (url || '').replace(SLOT_FOR_IP_DNS_SITE, (ip || '').replace(/\./g, '-'));
580
+ const replaceSlotToIp = (url, ip) => {
581
+ const seperator = (ip || '').includes(':') ? ':' : /\./; // ip v6 or v4
582
+ return (url || '').replace(SLOT_FOR_IP_DNS_SITE, (ip || '').replace(new RegExp(seperator, 'g'), '-'));
583
+ };
581
584
  exports.replaceSlotToIp = replaceSlotToIp;
582
585
  const getChainInfo = (env) => {
583
586
  // @ts-ignore
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.19-beta-e93c5bf3",
6
+ "version": "1.16.19-beta-e6aac665",
7
7
  "description": "Library to parse/validate/fix blocklet meta",
8
8
  "main": "./lib/index.js",
9
9
  "typings": "./lib/index.d.ts",
@@ -24,12 +24,12 @@
24
24
  "author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@abtnode/constant": "1.16.19-beta-e93c5bf3",
27
+ "@abtnode/constant": "1.16.19-beta-e6aac665",
28
28
  "@arcblock/did": "1.18.95",
29
29
  "@arcblock/did-ext": "1.18.95",
30
30
  "@arcblock/did-util": "1.18.95",
31
31
  "@arcblock/jwt": "1.18.95",
32
- "@blocklet/constant": "1.16.19-beta-e93c5bf3",
32
+ "@blocklet/constant": "1.16.19-beta-e6aac665",
33
33
  "@ocap/asset": "1.18.95",
34
34
  "@ocap/mcrypto": "1.18.95",
35
35
  "@ocap/types": "1.18.95",
@@ -78,5 +78,5 @@
78
78
  "ts-node": "^10.9.1",
79
79
  "typescript": "^5.0.4"
80
80
  },
81
- "gitHead": "c98ddc97776f05c267398b18010710afd7082409"
81
+ "gitHead": "09b0172831521ef73f7879940b977c2696b5b247"
82
82
  }