@abtnode/util 1.8.68 → 1.8.69-beta-54faead3
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/format-context.js +4 -0
- package/package.json +9 -9
package/lib/format-context.js
CHANGED
|
@@ -18,7 +18,11 @@ module.exports = (ctx = {}) => {
|
|
|
18
18
|
query: ctx.query,
|
|
19
19
|
hostname: safeGet('x-real-hostname'),
|
|
20
20
|
port: Number(port) === 80 ? '' : Number(port),
|
|
21
|
+
nodeMode: ctx.nodeMode,
|
|
22
|
+
referrer: safeGet('referrer'),
|
|
21
23
|
};
|
|
22
24
|
|
|
25
|
+
// 警告,尽量不要在这里传递整个 headers 对象,因为可能会影响后续流程
|
|
26
|
+
|
|
23
27
|
return result;
|
|
24
28
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.
|
|
6
|
+
"version": "1.8.69-beta-54faead3",
|
|
7
7
|
"description": "ArcBlock's JavaScript utility",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"author": "polunzh <polunzh@gmail.com> (http://github.com/polunzh)",
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@abtnode/constant": "1.8.
|
|
22
|
-
"@abtnode/logger": "1.8.
|
|
23
|
-
"@arcblock/jwt": "^1.18.
|
|
24
|
-
"@blocklet/constant": "1.8.
|
|
25
|
-
"@ocap/mcrypto": "1.18.
|
|
26
|
-
"@ocap/util": "1.18.
|
|
27
|
-
"@ocap/wallet": "1.18.
|
|
21
|
+
"@abtnode/constant": "1.8.69-beta-54faead3",
|
|
22
|
+
"@abtnode/logger": "1.8.69-beta-54faead3",
|
|
23
|
+
"@arcblock/jwt": "^1.18.57",
|
|
24
|
+
"@blocklet/constant": "1.8.69-beta-54faead3",
|
|
25
|
+
"@ocap/mcrypto": "1.18.57",
|
|
26
|
+
"@ocap/util": "1.18.57",
|
|
27
|
+
"@ocap/wallet": "1.18.57",
|
|
28
28
|
"archiver": "^5.3.1",
|
|
29
29
|
"axios": "^0.27.2",
|
|
30
30
|
"axios-mock-adapter": "^1.21.2",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"jest": "^27.5.1",
|
|
71
71
|
"unzipper": "^0.10.11"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "3dec0c85a77de5ba2d37c19ac769b126bfaafc86"
|
|
74
74
|
}
|