@kohost/api-client 3.0.0-beta.45 → 3.0.0-beta.47

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.
@@ -4,7 +4,10 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
4
4
  // src/SocketIoClient/index.js
5
5
  var io = require("socket.io-client");
6
6
  var { EventEmitter } = require("events");
7
- module.exports = /* @__PURE__ */ __name(class SocketIoClient extends EventEmitter {
7
+ module.exports = class SocketIoClient extends EventEmitter {
8
+ static {
9
+ __name(this, "SocketIoClient");
10
+ }
8
11
  constructor(config = { url: null, propertyId: null, options: {} }) {
9
12
  super();
10
13
  if (!config.url)
@@ -63,4 +66,4 @@ module.exports = /* @__PURE__ */ __name(class SocketIoClient extends EventEmitte
63
66
  send(event, { data = {}, query = {}, ...rest }) {
64
67
  this.socket.emit(event, { data, query, ...rest });
65
68
  }
66
- }, "SocketIoClient");
69
+ };
package/dist/cjs/defs.js CHANGED
@@ -41,7 +41,10 @@ var require_Client = __commonJS({
41
41
  "src/Client/index.js"(exports2, module2) {
42
42
  var { EventEmitter } = require("events");
43
43
  var axios = require("axios");
44
- var KohostApiClient = class extends EventEmitter {
44
+ var KohostApiClient = class _KohostApiClient extends EventEmitter {
45
+ static {
46
+ __name(this, "KohostApiClient");
47
+ }
45
48
  /*
46
49
  @param {Object} options - The options to create the client
47
50
  @param {String} options.propertyId - The property ID
@@ -71,12 +74,12 @@ var require_Client = __commonJS({
71
74
  headers: {
72
75
  "Content-Type": "application/json",
73
76
  Accept: "application/json",
74
- [KohostApiClient.defs.propertyHeader]: options.propertyId,
77
+ [_KohostApiClient.defs.propertyHeader]: options.propertyId,
75
78
  ...options.headers
76
79
  }
77
80
  };
78
81
  if (options.apiKey) {
79
- config.headers[KohostApiClient.defs.apiKeyHeader] = options.apiKey;
82
+ config.headers[_KohostApiClient.defs.apiKeyHeader] = options.apiKey;
80
83
  }
81
84
  this._http = axios.create(config);
82
85
  this._http.interceptors.response.use(
@@ -148,7 +151,6 @@ var require_Client = __commonJS({
148
151
  this.emit("PhoneVerificationRequired");
149
152
  }
150
153
  };
151
- __name(KohostApiClient, "KohostApiClient");
152
154
  module2.exports = KohostApiClient;
153
155
  }
154
156
  });