@vizzly/api-client 0.0.31 → 0.0.33

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.
@@ -31,7 +31,7 @@ class Api {
31
31
  const timedFetch = Monitor_1.Monitor.timeRequest(request.method, path, isomorphic_fetch_1.default);
32
32
  const res = yield timedFetch(path, {
33
33
  method: request.method,
34
- headers: Object.assign(Object.assign({ 'Content-Type': 'application/json', Accept: 'application/json', 'User-Agent': `${Monitor_1.Monitor.UserAgentProduct} (Using client ${(_a = require('../../package.json')) === null || _a === void 0 ? void 0 : _a.version})` }, authHeaders), customHeaders),
34
+ headers: Object.assign(Object.assign({ 'Content-Type': 'application/json', Accept: 'application/json', 'Vizzly-User-Agent': `${VizzlyApiClientLogger_1.VizzlyApiClientLogger.UserAgentProduct} (Using client ${(_a = require('../../package.json')) === null || _a === void 0 ? void 0 : _a.version})` }, authHeaders), customHeaders),
35
35
  redirect: 'follow',
36
36
  referrerPolicy: 'no-referrer',
37
37
  body: request.body ? JSON.stringify(request.body) : null,
@@ -1,4 +1,3 @@
1
1
  export declare class Monitor {
2
- static UserAgentProduct: string;
3
2
  static timeRequest<T extends (...args: any[]) => Promise<any>>(method: string, path: string, asyncFunction: T): T;
4
3
  }
@@ -26,4 +26,3 @@ class Monitor {
26
26
  }
27
27
  }
28
28
  exports.Monitor = Monitor;
29
- Monitor.UserAgentProduct = 'Vizzly-Api-Client';
@@ -5,6 +5,7 @@ type LoggerBackend = {
5
5
  error: (...args: any) => void;
6
6
  };
7
7
  export declare class VizzlyApiClientLogger {
8
+ static UserAgentProduct: string;
8
9
  private static backend;
9
10
  static setBackend(backend: LoggerBackend): void;
10
11
  static debug(...args: any): void;
@@ -27,3 +27,4 @@ class VizzlyApiClientLogger {
27
27
  }
28
28
  }
29
29
  exports.VizzlyApiClientLogger = VizzlyApiClientLogger;
30
+ VizzlyApiClientLogger.UserAgentProduct = 'Vizzly-Api-Client';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizzly/api-client",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "private": false,
5
5
  "license": "NONE",
6
6
  "source": "src/index.ts",