musora-content-services 2.25.0 → 2.25.1

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.25.1](https://github.com/railroadmedia/musora-content-services/compare/v2.25.0...v2.25.1) (2025-07-16)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * user data endpoint ([#356](https://github.com/railroadmedia/musora-content-services/issues/356)) ([2a00bb8](https://github.com/railroadmedia/musora-content-services/commit/2a00bb859faa72ec22930919f4a636275b219772))
11
+
5
12
  ## [2.25.0](https://github.com/railroadmedia/musora-content-services/compare/v2.24.1...v2.25.0) (2025-07-16)
6
13
 
7
14
 
package/link_mcs.sh CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.25.0",
3
+ "version": "2.25.1",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
File without changes
@@ -5,6 +5,7 @@ import { fetchHandler as railcontentFetchHandler } from '../railcontent.js'
5
5
  import { fetchHandler, fetchJSONHandler } from '../../lib/httpHelper.js'
6
6
  import { globalConfig } from '../config.js'
7
7
  import './types.js'
8
+ import { HttpClient } from '../../infrastructure/http/HttpClient'
8
9
 
9
10
  const baseUrl = `/api/user-management-system`
10
11
 
@@ -112,5 +113,6 @@ export async function deletePicture(pictureUrl) {
112
113
  */
113
114
  export async function getUserData(userId = globalConfig.sessionConfig.userId) {
114
115
  const apiUrl = `${baseUrl}/v1/users/${userId}`
115
- return fetchHandler(apiUrl, 'get')
116
+ const httpClient = new HttpClient(globalConfig.baseUrl, globalConfig.sessionConfig.token)
117
+ return httpClient.get(apiUrl)
116
118
  }