@abtnode/auth 1.17.2-beta-20251112-085154-0103b877 → 1.17.2-beta-20251113-212234-9e640edd

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.
@@ -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-20251112-085154-0103b877",
6
+ "version": "1.17.2-beta-20251113-212234-9e640edd",
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-20251112-085154-0103b877",
22
- "@abtnode/logger": "1.17.2-beta-20251112-085154-0103b877",
23
- "@abtnode/util": "1.17.2-beta-20251112-085154-0103b877",
21
+ "@abtnode/constant": "1.17.2-beta-20251113-212234-9e640edd",
22
+ "@abtnode/logger": "1.17.2-beta-20251113-212234-9e640edd",
23
+ "@abtnode/util": "1.17.2-beta-20251113-212234-9e640edd",
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-20251112-085154-0103b877",
32
+ "@blocklet/constant": "1.17.2-beta-20251113-212234-9e640edd",
33
33
  "@blocklet/error": "^0.3.2",
34
- "@blocklet/meta": "1.17.2-beta-20251112-085154-0103b877",
35
- "@blocklet/sdk": "1.17.2-beta-20251112-085154-0103b877",
34
+ "@blocklet/meta": "1.17.2-beta-20251113-212234-9e640edd",
35
+ "@blocklet/sdk": "1.17.2-beta-20251113-212234-9e640edd",
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": "78509a648488c741e93d33b743ea2f6d65535c34"
58
+ "gitHead": "ee25481c457076c9c7aa7f094dc1771301065f5a"
59
59
  }