musora-content-services 2.111.1 → 2.111.3

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,20 @@
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.111.3](https://github.com/railroadmedia/musora-content-services/compare/v2.111.2...v2.111.3) (2026-01-06)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * change js import to ts ([#683](https://github.com/railroadmedia/musora-content-services/issues/683)) ([1285cbe](https://github.com/railroadmedia/musora-content-services/commit/1285cbee851a3a2c68a0e36f37909e67173f82b8))
11
+
12
+ ### [2.111.2](https://github.com/railroadmedia/musora-content-services/compare/v2.111.1...v2.111.2) (2026-01-06)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * adds methods to set/remove http token ([0a460b6](https://github.com/railroadmedia/musora-content-services/commit/0a460b6d002fb7d85c340095d62c1e92ce253d64))
18
+
5
19
  ### [2.111.1](https://github.com/railroadmedia/musora-content-services/compare/v2.111.0...v2.111.1) (2026-01-06)
6
20
 
7
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.111.1",
3
+ "version": "2.111.3",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -29,6 +29,10 @@ export class HttpClient {
29
29
  this.token = token
30
30
  }
31
31
 
32
+ public clearToken(): void {
33
+ this.token = null;
34
+ }
35
+
32
36
  public async get<T>(url: string, dataVersion: string | null = null): Promise<T> {
33
37
  return this.request<T>(url, 'GET', dataVersion)
34
38
  }
@@ -136,3 +140,11 @@ export const POST = httpClient.post.bind(httpClient)
136
140
  export const PUT = httpClient.put.bind(httpClient)
137
141
  export const PATCH = httpClient.patch.bind(httpClient)
138
142
  export const DELETE = httpClient.delete.bind(httpClient)
143
+
144
+ export const setHttpToken = (token: string): void => {
145
+ httpClient.setToken(token)
146
+ }
147
+
148
+ export const clearHttpToken = (): void => {
149
+ httpClient.clearToken()
150
+ }
@@ -14,7 +14,7 @@ import { fetchByRailContentIds } from '../sanity.js'
14
14
  import { addContextToContent } from '../contentAggregator.js'
15
15
  import { fetchPlaylist } from '../content-org/playlists.js'
16
16
  import { TabResponseType } from '../../contentMetaData.js'
17
- import { PUT } from '../../infrastructure/http/HttpClient.js'
17
+ import { PUT } from '../../infrastructure/http/HttpClient.ts'
18
18
 
19
19
 
20
20
  /**