@virtru/dsp-sdk 0.7.5 → 0.7.6
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/CHANGELOG.md +9 -1
- package/dist/src/lib/utils.js +6 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# Change Log - @virtru/dsp-sdk
|
|
2
2
|
|
|
3
|
-
This log was last generated on Thu,
|
|
3
|
+
This log was last generated on Thu, 21 May 2026 15:41:46 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.7.6
|
|
6
|
+
Thu, 21 May 2026 15:41:46 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Refresh the DSP SDK dependency so entitlement lookups use the Connect shared service endpoint.
|
|
11
|
+
- Move GetMyEntitlements to the Connect shared service endpoint.
|
|
4
12
|
|
|
5
13
|
## 0.7.5
|
|
6
14
|
Thu, 14 May 2026 17:39:47 GMT
|
package/dist/src/lib/utils.js
CHANGED
|
@@ -96,16 +96,13 @@ export async function getUserEntitlements(options) {
|
|
|
96
96
|
refreshToken: options.refreshToken,
|
|
97
97
|
cryptoService: options.cryptoService,
|
|
98
98
|
});
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
headers: {
|
|
103
|
-
Authorization: `Bearer ${accessToken}`,
|
|
104
|
-
'Content-Type': 'application/json',
|
|
105
|
-
},
|
|
106
|
-
method: 'POST',
|
|
99
|
+
const dspClient = new DSPClient({
|
|
100
|
+
authProvider,
|
|
101
|
+
platformUrl: options.platformEndpoint,
|
|
107
102
|
});
|
|
108
|
-
return (await
|
|
103
|
+
return (await dspClient.v1.sharedService.getMyEntitlements({
|
|
104
|
+
attributeValueFqns: [],
|
|
105
|
+
}));
|
|
109
106
|
}
|
|
110
107
|
export const flattenObligations = (obligations) => Object.values(obligations).flatMap((feature) => feature?.fully_qualified_names || []);
|
|
111
108
|
/**
|