musora-content-services 2.111.1 → 2.111.2
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.111.2](https://github.com/railroadmedia/musora-content-services/compare/v2.111.1...v2.111.2) (2026-01-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* adds methods to set/remove http token ([0a460b6](https://github.com/railroadmedia/musora-content-services/commit/0a460b6d002fb7d85c340095d62c1e92ce253d64))
|
|
11
|
+
|
|
5
12
|
### [2.111.1](https://github.com/railroadmedia/musora-content-services/compare/v2.111.0...v2.111.1) (2026-01-06)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -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
|
+
}
|