@one-commerce/sdk-core 1.19.3-alpha.0 → 1.19.4-alpha.0

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.
@@ -57,18 +57,17 @@ function _inherits(subClass, superClass) {
57
57
  }
58
58
 
59
59
  function _getPrototypeOf(o) {
60
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
60
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
61
61
  return o.__proto__ || Object.getPrototypeOf(o);
62
62
  };
63
63
  return _getPrototypeOf(o);
64
64
  }
65
65
 
66
66
  function _setPrototypeOf(o, p) {
67
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
67
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
68
68
  o.__proto__ = p;
69
69
  return o;
70
70
  };
71
-
72
71
  return _setPrototypeOf(o, p);
73
72
  }
74
73
 
@@ -989,7 +988,11 @@ var Sdk = /*#__PURE__*/function (_Events) {
989
988
  _createClass(Sdk, [{
990
989
  key: "initializeContextClass",
991
990
  value: function initializeContextClass() {
992
- return new this.contextClass(this.callFunction.bind(this));
991
+ if (this.contextClass) {
992
+ return new this.contextClass(this.callFunction.bind(this));
993
+ }
994
+
995
+ return {};
993
996
  }
994
997
  }, {
995
998
  key: "initializeServiceGetters",