@abtnode/auth 1.17.2-beta-20251112-085154-0103b877 → 1.17.2-beta-20251113-121338-9c917e68
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/util/federated.js +2 -1
- package/package.json +8 -8
package/lib/util/federated.js
CHANGED
|
@@ -127,7 +127,7 @@ function safeGetFederated(blocklet, { isMaster: _isMaster = false } = {}) {
|
|
|
127
127
|
*
|
|
128
128
|
* @throws {Error} - Throws an error if the request fails after the specified number of retries.
|
|
129
129
|
*/
|
|
130
|
-
async function callFederated({ site, permanentWallet, action, data = {}, customUrl } = {}) {
|
|
130
|
+
async function callFederated({ site, permanentWallet, action, data = {}, customUrl, requestOptions = {} } = {}) {
|
|
131
131
|
const siteEnv = await getFederatedSiteEnv({ site });
|
|
132
132
|
const url = customUrl || joinURL(WELLKNOWN_SERVICE_PATH_PREFIX, `/api/federated/${action}`);
|
|
133
133
|
let requestFn = () => {};
|
|
@@ -140,6 +140,7 @@ async function callFederated({ site, permanentWallet, action, data = {}, customU
|
|
|
140
140
|
}
|
|
141
141
|
);
|
|
142
142
|
requestFn = request.post(url, data, {
|
|
143
|
+
...requestOptions,
|
|
143
144
|
baseURL: site.appUrl,
|
|
144
145
|
headers: {
|
|
145
146
|
'x-blocklet-sig': sig,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.2-beta-
|
|
6
|
+
"version": "1.17.2-beta-20251113-121338-9c917e68",
|
|
7
7
|
"description": "Simple lib to manage auth in ABT Node",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@abtnode/constant": "1.17.2-beta-
|
|
22
|
-
"@abtnode/logger": "1.17.2-beta-
|
|
23
|
-
"@abtnode/util": "1.17.2-beta-
|
|
21
|
+
"@abtnode/constant": "1.17.2-beta-20251113-121338-9c917e68",
|
|
22
|
+
"@abtnode/logger": "1.17.2-beta-20251113-121338-9c917e68",
|
|
23
|
+
"@abtnode/util": "1.17.2-beta-20251113-121338-9c917e68",
|
|
24
24
|
"@arcblock/did": "^1.27.4",
|
|
25
25
|
"@arcblock/did-connect-js": "^1.27.4",
|
|
26
26
|
"@arcblock/did-ext": "^1.27.4",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"@arcblock/nft-display": "^3.2.3",
|
|
30
30
|
"@arcblock/validator": "^1.27.4",
|
|
31
31
|
"@arcblock/vc": "^1.27.4",
|
|
32
|
-
"@blocklet/constant": "1.17.2-beta-
|
|
32
|
+
"@blocklet/constant": "1.17.2-beta-20251113-121338-9c917e68",
|
|
33
33
|
"@blocklet/error": "^0.3.2",
|
|
34
|
-
"@blocklet/meta": "1.17.2-beta-
|
|
35
|
-
"@blocklet/sdk": "1.17.2-beta-
|
|
34
|
+
"@blocklet/meta": "1.17.2-beta-20251113-121338-9c917e68",
|
|
35
|
+
"@blocklet/sdk": "1.17.2-beta-20251113-121338-9c917e68",
|
|
36
36
|
"@ocap/client": "^1.27.4",
|
|
37
37
|
"@ocap/mcrypto": "^1.27.4",
|
|
38
38
|
"@ocap/util": "^1.27.4",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"axios-mock-adapter": "^2.1.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "82362ffba5d50f01774b257b9cd8143adeb7a898"
|
|
59
59
|
}
|