@crystaldesign/basket-handler 24.14.0-beta.3 → 24.14.0-beta.31
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/build/cjs/index.js
CHANGED
|
@@ -62,7 +62,7 @@ var BasketHandler = /*#__PURE__*/function () {
|
|
|
62
62
|
key: "saveBasket",
|
|
63
63
|
value: function () {
|
|
64
64
|
var _saveBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(_ref) {
|
|
65
|
-
var jwt, basket, awaitPDF, saveToApi2, sessionGuid, apiKey, _this$LOG, fullUrl, response, _api2Result, authHeader, _this$LOG2, resultBasket, api2Result, _this$LOG3;
|
|
65
|
+
var jwt, basket, awaitPDF, saveToApi2, sessionGuid, apiKey, _this$LOG, fullUrl, response, _DivaUtils$Configurat, _api2Result, authHeader, _this$LOG2, resultBasket, api2Result, _this$LOG3;
|
|
66
66
|
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
67
67
|
while (1) switch (_context.prev = _context.next) {
|
|
68
68
|
case 0:
|
|
@@ -88,7 +88,8 @@ var BasketHandler = /*#__PURE__*/function () {
|
|
|
88
88
|
return axios__default["default"].post(fullUrl, JSON.stringify(basket.getAsJson()), {
|
|
89
89
|
headers: _objectSpread(_objectSpread({}, authHeader), {}, {
|
|
90
90
|
'Content-Type': 'application/json',
|
|
91
|
-
'X-Session-Id': DivaUtils__default["default"].SessionId
|
|
91
|
+
'X-Session-Id': DivaUtils__default["default"].SessionId,
|
|
92
|
+
'X-Configurator-Id': (_DivaUtils$Configurat = DivaUtils__default["default"].ConfigurationId) !== null && _DivaUtils$Configurat !== void 0 ? _DivaUtils$Configurat : ''
|
|
92
93
|
})
|
|
93
94
|
});
|
|
94
95
|
case 10:
|
|
@@ -141,7 +142,7 @@ var BasketHandler = /*#__PURE__*/function () {
|
|
|
141
142
|
key: "api2SaveBasket",
|
|
142
143
|
value: function () {
|
|
143
144
|
var _api2SaveBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(_ref2) {
|
|
144
|
-
var basket, sessionGuid, awaitPDF, _id, _this$LOG4, _this$LOG5, fullUrl, response, _response$Result, _this$LOG6, _this$LOG7;
|
|
145
|
+
var basket, sessionGuid, awaitPDF, _id, _this$LOG4, _this$LOG5, fullUrl, response, _DivaUtils$Configurat2, _response$Result, _this$LOG6, _this$LOG7;
|
|
145
146
|
return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
|
|
146
147
|
while (1) switch (_context2.prev = _context2.next) {
|
|
147
148
|
case 0:
|
|
@@ -169,7 +170,8 @@ var BasketHandler = /*#__PURE__*/function () {
|
|
|
169
170
|
headers: {
|
|
170
171
|
sessionGuid: sessionGuid,
|
|
171
172
|
'Content-Type': 'application/json',
|
|
172
|
-
'X-Session-Id': DivaUtils__default["default"].SessionId
|
|
173
|
+
'X-Session-Id': DivaUtils__default["default"].SessionId,
|
|
174
|
+
'X-Configurator-Id': (_DivaUtils$Configurat2 = DivaUtils__default["default"].ConfigurationId) !== null && _DivaUtils$Configurat2 !== void 0 ? _DivaUtils$Configurat2 : ''
|
|
173
175
|
}
|
|
174
176
|
}).then(function (res) {
|
|
175
177
|
if (res.status !== 200) {
|
package/build/esm/index.js
CHANGED
|
@@ -48,7 +48,7 @@ var BasketHandler = /*#__PURE__*/function () {
|
|
|
48
48
|
key: "saveBasket",
|
|
49
49
|
value: function () {
|
|
50
50
|
var _saveBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
|
|
51
|
-
var jwt, basket, awaitPDF, saveToApi2, sessionGuid, apiKey, _this$LOG, fullUrl, response, _api2Result, authHeader, _this$LOG2, resultBasket, api2Result, _this$LOG3;
|
|
51
|
+
var jwt, basket, awaitPDF, saveToApi2, sessionGuid, apiKey, _this$LOG, fullUrl, response, _DivaUtils$Configurat, _api2Result, authHeader, _this$LOG2, resultBasket, api2Result, _this$LOG3;
|
|
52
52
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
53
53
|
while (1) switch (_context.prev = _context.next) {
|
|
54
54
|
case 0:
|
|
@@ -74,7 +74,8 @@ var BasketHandler = /*#__PURE__*/function () {
|
|
|
74
74
|
return axios.post(fullUrl, JSON.stringify(basket.getAsJson()), {
|
|
75
75
|
headers: _objectSpread(_objectSpread({}, authHeader), {}, {
|
|
76
76
|
'Content-Type': 'application/json',
|
|
77
|
-
'X-Session-Id': DivaUtils.SessionId
|
|
77
|
+
'X-Session-Id': DivaUtils.SessionId,
|
|
78
|
+
'X-Configurator-Id': (_DivaUtils$Configurat = DivaUtils.ConfigurationId) !== null && _DivaUtils$Configurat !== void 0 ? _DivaUtils$Configurat : ''
|
|
78
79
|
})
|
|
79
80
|
});
|
|
80
81
|
case 10:
|
|
@@ -127,7 +128,7 @@ var BasketHandler = /*#__PURE__*/function () {
|
|
|
127
128
|
key: "api2SaveBasket",
|
|
128
129
|
value: function () {
|
|
129
130
|
var _api2SaveBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref2) {
|
|
130
|
-
var basket, sessionGuid, awaitPDF, _id, _this$LOG4, _this$LOG5, fullUrl, response, _response$Result, _this$LOG6, _this$LOG7;
|
|
131
|
+
var basket, sessionGuid, awaitPDF, _id, _this$LOG4, _this$LOG5, fullUrl, response, _DivaUtils$Configurat2, _response$Result, _this$LOG6, _this$LOG7;
|
|
131
132
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
132
133
|
while (1) switch (_context2.prev = _context2.next) {
|
|
133
134
|
case 0:
|
|
@@ -155,7 +156,8 @@ var BasketHandler = /*#__PURE__*/function () {
|
|
|
155
156
|
headers: {
|
|
156
157
|
sessionGuid: sessionGuid,
|
|
157
158
|
'Content-Type': 'application/json',
|
|
158
|
-
'X-Session-Id': DivaUtils.SessionId
|
|
159
|
+
'X-Session-Id': DivaUtils.SessionId,
|
|
160
|
+
'X-Configurator-Id': (_DivaUtils$Configurat2 = DivaUtils.ConfigurationId) !== null && _DivaUtils$Configurat2 !== void 0 ? _DivaUtils$Configurat2 : ''
|
|
159
161
|
}
|
|
160
162
|
}).then(function (res) {
|
|
161
163
|
if (res.status !== 200) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAI5D,oBAAY,iBAAiB;IAC3B,qBAAqB,0BAA0B;IAC/C,uBAAuB,4BAA4B;CACpD;AAED,MAAM,CAAC,OAAO,OAAO,aAAa;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAI5D,oBAAY,iBAAiB;IAC3B,qBAAqB,0BAA0B;IAC/C,uBAAuB,4BAA4B;CACpD;AAED,MAAM,CAAC,OAAO,OAAO,aAAa;IAI9B,OAAO,CAAC,GAAG;IAHb,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAS;gBAEf,GAAG,EAAE,GAAG,EAChB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM;IAMjB,IAAI,aAAa,WAEhB;IAED,IAAI,OAAO,WAEV;IAEK,UAAU,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,eAAe;IAwCtF,cAAc,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,gBAAgB;CAsC9E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/basket-handler",
|
|
3
|
-
"version": "24.14.0-beta.
|
|
3
|
+
"version": "24.14.0-beta.31",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@crystaldesign/basket-model": "*"
|
|
6
6
|
},
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"axios": "^1.7.7",
|
|
13
13
|
"md5.js": "^1.3.5"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "5d346ade39d6694c172cd1d3107452a5b9affd7d"
|
|
16
16
|
}
|