camstreamerlib 4.0.0-beta.71 → 4.0.0-beta.73

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.
@@ -5,6 +5,7 @@ import { THttpRequestOptions, TProxyParams } from './types/common';
5
5
  export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
6
6
  private client;
7
7
  constructor(client: Client);
8
+ static getProxyPath: () => string;
8
9
  getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
9
10
  wsAuthorization(options?: THttpRequestOptions): Promise<string>;
10
11
  getUtcTime(options?: THttpRequestOptions): Promise<number>;
@@ -11,6 +11,7 @@ class CamStreamerAPI {
11
11
  constructor(client) {
12
12
  this.client = client;
13
13
  }
14
+ static getProxyPath = () => `${BASE_PATH}/proxy.cgi`;
14
15
  getClient(proxyParams) {
15
16
  return proxyParams ? new ProxyClient_1.ProxyClient(this.client, proxyParams) : this.client;
16
17
  }
@@ -8,6 +8,7 @@ export class CamStreamerAPI {
8
8
  constructor(client) {
9
9
  this.client = client;
10
10
  }
11
+ static getProxyPath = () => `${BASE_PATH}/proxy.cgi`;
11
12
  getClient(proxyParams) {
12
13
  return proxyParams ? new ProxyClient(this.client, proxyParams) : this.client;
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.0-beta.71",
3
+ "version": "4.0.0-beta.73",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {
@@ -5,6 +5,7 @@ import { THttpRequestOptions, TProxyParams } from './types/common';
5
5
  export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
6
6
  private client;
7
7
  constructor(client: Client);
8
+ static getProxyPath: () => string;
8
9
  getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
9
10
  wsAuthorization(options?: THttpRequestOptions): Promise<string>;
10
11
  getUtcTime(options?: THttpRequestOptions): Promise<number>;