@dev-crew-berlin/enter-js-utils 0.43.0 → 0.44.0

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.
@@ -20,12 +20,12 @@ export declare type RequestBody<Path extends keyof paths, Method extends HTTPMet
20
20
  export default class APIBase {
21
21
  private credentials;
22
22
  private isLoggedIn;
23
- private clientBucket;
23
+ private requesterId;
24
24
  private deviceName;
25
25
  private onLogout;
26
26
  constructor(args: {
27
27
  credentials: APICredentials;
28
- clientBucket: string;
28
+ requesterId: string;
29
29
  deviceName: string;
30
30
  onLogout: (reason?: string) => void;
31
31
  });
@@ -3,7 +3,7 @@ export default class APIBase {
3
3
  constructor(args) {
4
4
  this.credentials = args.credentials;
5
5
  this.onLogout = args.onLogout;
6
- this.clientBucket = args.clientBucket;
6
+ this.requesterId = args.requesterId;
7
7
  this.deviceName = args.deviceName;
8
8
  this.isLoggedIn = true;
9
9
  }
@@ -21,7 +21,7 @@ export default class APIBase {
21
21
  Authorization: `bearer ${this.credentials.accessToken}`,
22
22
  'Content-Type': 'application/json',
23
23
  'X-Enter-Device-Name': this.deviceName,
24
- 'X-Enter-Client-Bucket': this.clientBucket
24
+ 'X-Enter-Requester-Id': this.requesterId
25
25
  };
26
26
  const res = await APIBase.fetchResult(`${this.credentials.url}${endpoint}`, {
27
27
  method: method.toUpperCase(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "description": "utils such as vaildation and other helpers to work with data from the enter app",
5
5
  "files": [
6
6
  "dist",