@crystaldesign/product-handler 24.15.0-beta.21 → 24.15.0-beta.23
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 +2 -1
- package/build/esm/index.js +2 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -863,10 +863,11 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
863
863
|
this.trimStrings(baseData);
|
|
864
864
|
//the base product is constructed, based on baseData and classification data
|
|
865
865
|
baseProduct = _objectSpread(_objectSpread(_objectSpread({}, baseData), Object.entries(classificationData || {}).reduce(function (prev, _ref13) {
|
|
866
|
+
var _fieldConfiguration$c;
|
|
866
867
|
var _ref14 = _slicedToArray__default["default"](_ref13, 2),
|
|
867
868
|
key = _ref14[0],
|
|
868
869
|
value = _ref14[1];
|
|
869
|
-
prev["dc_".concat(key)] = _this3.mapClass(value, fieldConfiguration === null || fieldConfiguration === void 0
|
|
870
|
+
prev["dc_".concat(key)] = _this3.mapClass(value, fieldConfiguration === null || fieldConfiguration === void 0 || (_fieldConfiguration$c = fieldConfiguration.classMap[key]) === null || _fieldConfiguration$c === void 0 ? void 0 : _fieldConfiguration$c.values);
|
|
870
871
|
return prev;
|
|
871
872
|
}, {})), {}, {
|
|
872
873
|
_id: originProductId && !(variantData !== null && variantData !== void 0 && variantData.length) ? originProductId : baseData._id,
|
package/build/esm/index.js
CHANGED
|
@@ -845,10 +845,11 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
845
845
|
this.trimStrings(baseData);
|
|
846
846
|
//the base product is constructed, based on baseData and classification data
|
|
847
847
|
baseProduct = _objectSpread(_objectSpread(_objectSpread({}, baseData), Object.entries(classificationData || {}).reduce(function (prev, _ref13) {
|
|
848
|
+
var _fieldConfiguration$c;
|
|
848
849
|
var _ref14 = _slicedToArray(_ref13, 2),
|
|
849
850
|
key = _ref14[0],
|
|
850
851
|
value = _ref14[1];
|
|
851
|
-
prev["dc_".concat(key)] = _this3.mapClass(value, fieldConfiguration === null || fieldConfiguration === void 0
|
|
852
|
+
prev["dc_".concat(key)] = _this3.mapClass(value, fieldConfiguration === null || fieldConfiguration === void 0 || (_fieldConfiguration$c = fieldConfiguration.classMap[key]) === null || _fieldConfiguration$c === void 0 ? void 0 : _fieldConfiguration$c.values);
|
|
852
853
|
return prev;
|
|
853
854
|
}, {})), {}, {
|
|
854
855
|
_id: originProductId && !(variantData !== null && variantData !== void 0 && variantData.length) ? originProductId : baseData._id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/product-handler",
|
|
3
|
-
"version": "24.15.0-beta.
|
|
3
|
+
"version": "24.15.0-beta.23",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@crystaldesign/basket-model": "*",
|
|
6
6
|
"@crystaldesign/diva-utils": "*"
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"classnames": "^2.5.1"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "4da02a5f2d321947e5aca547b254f7a23a23c02c"
|
|
16
16
|
}
|