@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.
- package/lib/bundles/bundle.esm.js +7 -4
- package/lib/bundles/bundle.esm.js.map +1 -1
- package/lib/bundles/bundle.esm.min.js +1 -1
- package/lib/bundles/bundle.esm.min.js.map +1 -1
- package/lib/bundles/bundle.umd.js +7 -4
- package/lib/bundles/bundle.umd.js.map +1 -1
- package/lib/bundles/bundle.umd.min.js +1 -1
- package/lib/bundles/bundle.umd.min.js.map +1 -1
- package/lib/cjs/backoffice/context.js +2 -2
- package/lib/cjs/backoffice/context.js.map +1 -1
- package/lib/cjs/backoffice/services.js +2 -2
- package/lib/cjs/backoffice/services.js.map +1 -1
- package/lib/cjs/events.js.map +1 -1
- package/lib/cjs/index.js +7 -3
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/shop/services.js +2 -2
- package/lib/cjs/shop/services.js.map +1 -1
- package/lib/cjs/utils.js.map +1 -1
- package/lib/esm/backoffice/context.js.map +1 -1
- package/lib/esm/backoffice/services.js.map +1 -1
- package/lib/esm/events.js.map +1 -1
- package/lib/esm/index.js +5 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/shop/services.js.map +1 -1
- package/lib/esm/utils.js.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
|
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
|
-
|
|
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",
|