rotacloud 1.0.5 → 1.0.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/dist/services/service.js +2 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/services/service.ts +1 -1
- package/src/version.ts +1 -1
package/dist/services/service.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import { RotaCloud } from '../rotacloud.js';
|
|
3
|
+
import { Version } from '../version.js';
|
|
3
4
|
export class Service {
|
|
4
5
|
// rate limit tracking could be implemented here statically
|
|
5
6
|
isLeaveRequest(endpoint) {
|
|
@@ -31,7 +32,7 @@ export class Service {
|
|
|
31
32
|
async fetch(httpOptions, options) {
|
|
32
33
|
const headers = {
|
|
33
34
|
Authorization: `Bearer ${RotaCloud.config.apiKey}`,
|
|
34
|
-
|
|
35
|
+
'SDK-Version': Version.version,
|
|
35
36
|
};
|
|
36
37
|
if (RotaCloud.config.accountId) {
|
|
37
38
|
headers.Account = String(RotaCloud.config.accountId);
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Version = { version: "1.0.
|
|
1
|
+
export const Version = { version: "1.0.6" };
|
package/package.json
CHANGED
package/src/services/service.ts
CHANGED
|
@@ -54,7 +54,7 @@ export abstract class Service<ApiResponse = any> {
|
|
|
54
54
|
public async fetch<T = ApiResponse>(httpOptions: AxiosRequestConfig, options?): Promise<AxiosResponse<T>> {
|
|
55
55
|
const headers: AxiosRequestHeaders = {
|
|
56
56
|
Authorization: `Bearer ${RotaCloud.config.apiKey}`,
|
|
57
|
-
|
|
57
|
+
'SDK-Version': Version.version,
|
|
58
58
|
};
|
|
59
59
|
if (RotaCloud.config.accountId) {
|
|
60
60
|
headers.Account = String(RotaCloud.config.accountId);
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Version = { version: "1.0.
|
|
1
|
+
export const Version = { version: "1.0.6" }
|