indigitall-web-sdk 4.2.4 → 4.2.6

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.
package/src/Indigitall.js CHANGED
@@ -21,7 +21,7 @@ var Channel = require('indigitall-web-core').Core.Models.Channel;
21
21
  var _require$Core$Utils = require('indigitall-web-core').Core.Utils,
22
22
  LogLevel = _require$Core$Utils.LogLevel,
23
23
  CommonUtils = _require$Core$Utils.CommonUtils;
24
- var Repository = require('indigitall-web-core').Core.Repository;
24
+ var pkg = require('../package.json');
25
25
  // const push = require('indigitall-web-notification').Push;
26
26
  // const {IndigitallPush} = require('indigitall-web-notification').Push;
27
27
  // eslint-disable-next-line no-unused-vars
@@ -61,7 +61,7 @@ var Indigitall = /*#__PURE__*/function () {
61
61
  }
62
62
  }, _callee);
63
63
  }));
64
- function init(_x4) {
64
+ function init(_x) {
65
65
  return _init.apply(this, arguments);
66
66
  }
67
67
  return init;
@@ -155,17 +155,9 @@ var Indigitall = /*#__PURE__*/function () {
155
155
  */
156
156
  }, {
157
157
  key: "topicsUnsubscribe",
158
- value: function (_topicsUnsubscribe) {
159
- function topicsUnsubscribe(_x, _x2, _x3) {
160
- return _topicsUnsubscribe.apply(this, arguments);
161
- }
162
- topicsUnsubscribe.toString = function () {
163
- return _topicsUnsubscribe.toString();
164
- };
165
- return topicsUnsubscribe;
166
- }(function (topicsCodes, success, error) {
158
+ value: function topicsUnsubscribe(topicsCodes, success, error) {
167
159
  _indigitallWebInapp["default"].topicsUnsubscribe(topicsCodes);
168
- return topicsUnsubscribe(topicsCodes, success, error);
160
+ return _indigitallWebNotification["default"].topicsUnsubscribe(topicsCodes, success, error);
169
161
  }
170
162
 
171
163
  /**
@@ -177,7 +169,7 @@ var Indigitall = /*#__PURE__*/function () {
177
169
  * @param {Function} success A callback function when is success
178
170
  * @param {Function} error A callback function when is error
179
171
  *
180
- */)
172
+ */
181
173
  }, {
182
174
  key: "setExternalId",
183
175
  value: function () {
@@ -192,7 +184,7 @@ var Indigitall = /*#__PURE__*/function () {
192
184
  }
193
185
  }, _callee2);
194
186
  }));
195
- function setExternalId(_x5, _x6, _x7) {
187
+ function setExternalId(_x2, _x3, _x4) {
196
188
  return _setExternalId.apply(this, arguments);
197
189
  }
198
190
  return setExternalId;
@@ -356,7 +348,7 @@ var Indigitall = /*#__PURE__*/function () {
356
348
  }
357
349
  }, _callee3);
358
350
  }));
359
- function showInApp(_x8, _x9, _x10, _x11) {
351
+ function showInApp(_x5, _x6, _x7, _x8) {
360
352
  return _showInApp.apply(this, arguments);
361
353
  }
362
354
  return showInApp;
@@ -389,7 +381,7 @@ var Indigitall = /*#__PURE__*/function () {
389
381
  }
390
382
  }, _callee4);
391
383
  }));
392
- function showInAppWithConfig(_x12, _x13, _x14, _x15, _x16, _x17, _x18, _x19, _x20, _x21, _x22) {
384
+ function showInAppWithConfig(_x9, _x10, _x11, _x12, _x13, _x14, _x15, _x16, _x17, _x18, _x19) {
393
385
  return _showInAppWithConfig.apply(this, arguments);
394
386
  }
395
387
  return showInAppWithConfig;
@@ -439,7 +431,7 @@ var Indigitall = /*#__PURE__*/function () {
439
431
  }
440
432
  }, _callee5);
441
433
  }));
442
- function showMultipleInAppWithConfig(_x23, _x24, _x25, _x26, _x27, _x28, _x29, _x30, _x31, _x32, _x33) {
434
+ function showMultipleInAppWithConfig(_x20, _x21, _x22, _x23, _x24, _x25, _x26, _x27, _x28, _x29, _x30) {
443
435
  return _showMultipleInAppWithConfig.apply(this, arguments);
444
436
  }
445
437
  return showMultipleInAppWithConfig;
@@ -624,4 +616,4 @@ window.indigitall.Push = _indigitallWebNotification["default"];
624
616
  window.indigitall.InApp.Utils = _indigitallWebInapp["default"].Utils;
625
617
  window.indigitall.Channel = Channel;
626
618
  window.indigitall.LogLevel = LogLevel;
627
- // window.indigitall.version = Repository.getVersion();
619
+ window.indigitall.version = pkg.version;