@abtnode/util 1.17.7-beta-20251230-041316-624cafaf → 1.17.7-beta-20260103-230139-51fc594d

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/get-origin.js CHANGED
@@ -11,7 +11,7 @@ async function getOrigin({ req, blockletInfo }, { printError = defaultLogger.err
11
11
  const _blockletInfo = blockletInfo || (await req.getBlockletInfo());
12
12
  return _blockletInfo.appUrl;
13
13
  }
14
- const host = req.get('host');
14
+ const host = req.get('x-real-hostname') || req.get('host');
15
15
  return `https://${host}`;
16
16
  } catch (err) {
17
17
  printError('Failed to get origin', { error: err });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.17.7-beta-20251230-041316-624cafaf",
6
+ "version": "1.17.7-beta-20260103-230139-51fc594d",
7
7
  "description": "ArcBlock's JavaScript utility",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,14 +18,14 @@
18
18
  "author": "polunzh <polunzh@gmail.com> (http://github.com/polunzh)",
19
19
  "license": "Apache-2.0",
20
20
  "dependencies": {
21
- "@abtnode/constant": "1.17.7-beta-20251230-041316-624cafaf",
22
- "@abtnode/db-cache": "1.17.7-beta-20251230-041316-624cafaf",
21
+ "@abtnode/constant": "1.17.7-beta-20260103-230139-51fc594d",
22
+ "@abtnode/db-cache": "1.17.7-beta-20260103-230139-51fc594d",
23
23
  "@arcblock/did": "^1.27.16",
24
24
  "@arcblock/event-hub": "^1.27.16",
25
25
  "@arcblock/pm2": "^6.0.12",
26
- "@blocklet/constant": "1.17.7-beta-20251230-041316-624cafaf",
26
+ "@blocklet/constant": "1.17.7-beta-20260103-230139-51fc594d",
27
27
  "@blocklet/error": "^0.3.5",
28
- "@blocklet/meta": "1.17.7-beta-20251230-041316-624cafaf",
28
+ "@blocklet/meta": "1.17.7-beta-20260103-230139-51fc594d",
29
29
  "@blocklet/xss": "^0.3.15",
30
30
  "@ocap/client": "^1.27.16",
31
31
  "@ocap/mcrypto": "^1.27.16",
@@ -90,5 +90,5 @@
90
90
  "express": "^4.18.2",
91
91
  "fs-extra": "^11.2.0"
92
92
  },
93
- "gitHead": "9ee11bed14f702eab5496cfc3b7f79feb190e811"
93
+ "gitHead": "fb908bd3cd022e1061fbf20328dbad8edd22409b"
94
94
  }