@singi-labs/sifa-sdk 0.19.9 → 0.19.10
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/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{network-map-DUIEbJf9.d.cts → network-map-BH_qbSvm.d.cts} +6 -2
- package/dist/{network-map-BXpm9LIk.d.ts → network-map-CBllUH38.d.ts} +6 -2
- package/dist/query/fetchers/index.cjs +5 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +1 -1
- package/dist/query/fetchers/index.d.ts +1 -1
- package/dist/query/fetchers/index.js +5 -0
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/index.cjs +5 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +2 -2
- package/dist/query/index.d.ts +2 -2
- package/dist/query/index.js +5 -0
- package/dist/query/index.js.map +1 -1
- package/package.json +1 -1
package/dist/query/index.cjs
CHANGED
|
@@ -529,10 +529,15 @@ async function fetchReciprocityCandidate(config, options = {}) {
|
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
// src/query/fetchers/endorsement-inbox.ts
|
|
532
|
+
var PENDING_ENDORSEMENTS_LXM = "id.sifa.endorsement.getPending";
|
|
532
533
|
async function fetchPendingEndorsements(config, options = {}) {
|
|
533
534
|
const { cookieHeader, ...rest } = options;
|
|
534
535
|
const headers = { ...rest.headers ?? {} };
|
|
535
536
|
if (cookieHeader) headers.cookie = cookieHeader;
|
|
537
|
+
if (config.getAuthToken) {
|
|
538
|
+
const token = await config.getAuthToken(PENDING_ENDORSEMENTS_LXM);
|
|
539
|
+
if (token) headers.Authorization = `Bearer ${token}`;
|
|
540
|
+
}
|
|
536
541
|
try {
|
|
537
542
|
const data = await apiFetch(config, "/api/endorsements/pending", {
|
|
538
543
|
cache: "no-store",
|