@evergis/api 4.0.18 → 4.0.19

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.
@@ -30,6 +30,9 @@ function _defineProperties(target, props) {
30
30
  function _createClass(Constructor, protoProps, staticProps) {
31
31
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
32
32
  if (staticProps) _defineProperties(Constructor, staticProps);
33
+ Object.defineProperty(Constructor, "prototype", {
34
+ writable: false
35
+ });
33
36
  return Constructor;
34
37
  }
35
38
 
@@ -63,6 +66,9 @@ function _inherits(subClass, superClass) {
63
66
  configurable: true
64
67
  }
65
68
  });
69
+ Object.defineProperty(subClass, "prototype", {
70
+ writable: false
71
+ });
66
72
  if (superClass) _setPrototypeOf(subClass, superClass);
67
73
  }
68
74
 
@@ -121,6 +127,8 @@ function _assertThisInitialized(self) {
121
127
  function _possibleConstructorReturn(self, call) {
122
128
  if (call && (typeof call === "object" || typeof call === "function")) {
123
129
  return call;
130
+ } else if (call !== void 0) {
131
+ throw new TypeError("Derived constructors may only return object or undefined");
124
132
  }
125
133
 
126
134
  return _assertThisInitialized(self);
@@ -154,7 +162,7 @@ function _superPropBase(object, property) {
154
162
  return object;
155
163
  }
156
164
 
157
- function _get(target, property, receiver) {
165
+ function _get() {
158
166
  if (typeof Reflect !== "undefined" && Reflect.get) {
159
167
  _get = Reflect.get;
160
168
  } else {
@@ -165,14 +173,14 @@ function _get(target, property, receiver) {
165
173
  var desc = Object.getOwnPropertyDescriptor(base, property);
166
174
 
167
175
  if (desc.get) {
168
- return desc.get.call(receiver);
176
+ return desc.get.call(arguments.length < 3 ? target : receiver);
169
177
  }
170
178
 
171
179
  return desc.value;
172
180
  };
173
181
  }
174
182
 
175
- return _get(target, property, receiver || target);
183
+ return _get.apply(this, arguments);
176
184
  }
177
185
 
178
186
  const API_USER_INFO_KEY = "@evergis/user-info";
@@ -5006,8 +5014,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
5006
5014
  || event.code === 4002
5007
5015
  /* InvalidSession */
5008
5016
  ) {
5009
- _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5010
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5017
+ _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5018
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5011
5019
  _this.connectStatus = exports.ConnectionStatus.Break;
5012
5020
  _this.reconnectTries++;
5013
5021
 
@@ -6052,12 +6060,12 @@ let Resources = /*#__PURE__*/function () {
6052
6060
  }, {
6053
6061
  key: "getDependentNames",
6054
6062
  value: function getDependentNames(deps, depType) {
6055
- return deps.filter((_ref) => {
6063
+ return deps.filter(_ref => {
6056
6064
  let {
6057
6065
  type
6058
6066
  } = _ref;
6059
6067
  return type === depType;
6060
- }).map((_ref2) => {
6068
+ }).map(_ref2 => {
6061
6069
  let {
6062
6070
  name
6063
6071
  } = _ref2;
@@ -7220,7 +7228,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7220
7228
  (_request$headers = request.headers) == null ? void 0 : _request$headers.set("Authorization", "Bearer " + (token || ""));
7221
7229
  }
7222
7230
  }, ...((_hooks$beforeRequest = hooks == null ? void 0 : hooks.beforeRequest) != null ? _hooks$beforeRequest : [])],
7223
- beforeRetry: [async (_ref2) => {
7231
+ beforeRetry: [async _ref2 => {
7224
7232
  let {
7225
7233
  request,
7226
7234
  error,