@crystaldesign/product-handler 24.15.0-beta.1 → 24.15.0-beta.10

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.
@@ -2048,7 +2048,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
2048
2048
  while (1) switch (_context15.prev = _context15.next) {
2049
2049
  case 0:
2050
2050
  limit = _ref45.limit, skip = _ref45.skip, fields = _ref45.fields, _ref45$search = _ref45.search, search = _ref45$search === void 0 ? [] : _ref45$search, sort = _ref45.sort, favorites = _ref45.favorites, abortController = _ref45.abortController;
2051
- fullUrl = this.catalogService + '/v1/products/groups' + '?organizationId=' + this.organization._id + (this._organization.parentOrganizationIds ? '&parentOrganizationIds=' + this._organization.parentOrganizationIds.join(',') : '') + (limit ? '&limit=' + limit : '') + (skip ? '&skip=' + skip : '') + (fields ? '&fileds=' + DivaUtils__default["default"].fixedEncodeURIComponent('{' + fields.join(',') + '}') : '') + (search ? '&search=' + DivaUtils__default["default"].fixedEncodeURIComponent(this.parseFilter(search)) : '') + (sort ? '&sort=' + DivaUtils__default["default"].fixedEncodeURIComponent(sort) : '') + (favorites ? '&favorites=true' : '');
2051
+ fullUrl = this.catalogService + '/v1/products/groups' + '?organizationId=' + this.organization._id + (this._organization.parentOrganizationIds ? '&parentOrganizationIds=' + this._organization.parentOrganizationIds.join(',') : '') + (limit ? '&limit=' + limit : '') + (skip ? '&skip=' + skip : '') + (fields ? '&fileds=' + DivaUtils__default["default"].fixedEncodeURIComponent('{' + fields.join(',') + '}') : '') + (search.length ? '&search=' + DivaUtils__default["default"].fixedEncodeURIComponent(this.parseFilter(search)) : '') + (sort ? '&sort=' + DivaUtils__default["default"].fixedEncodeURIComponent(sort) : '') + (favorites ? '&favorites=true' : '');
2052
2052
  headers = {
2053
2053
  'Content-Type': 'application/json'
2054
2054
  };
@@ -2501,7 +2501,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
2501
2501
  OPV: v.OPV,
2502
2502
  OPTName: opt.Name,
2503
2503
  OPVName: opv.Name,
2504
- OPVImage: catalog.mediaUrl + opv.Image
2504
+ OPVImage: opv.Image ? catalog.mediaUrl + opv.Image : undefined
2505
2505
  });
2506
2506
  }
2507
2507
  }
@@ -2030,7 +2030,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
2030
2030
  while (1) switch (_context15.prev = _context15.next) {
2031
2031
  case 0:
2032
2032
  limit = _ref45.limit, skip = _ref45.skip, fields = _ref45.fields, _ref45$search = _ref45.search, search = _ref45$search === void 0 ? [] : _ref45$search, sort = _ref45.sort, favorites = _ref45.favorites, abortController = _ref45.abortController;
2033
- fullUrl = this.catalogService + '/v1/products/groups' + '?organizationId=' + this.organization._id + (this._organization.parentOrganizationIds ? '&parentOrganizationIds=' + this._organization.parentOrganizationIds.join(',') : '') + (limit ? '&limit=' + limit : '') + (skip ? '&skip=' + skip : '') + (fields ? '&fileds=' + DivaUtils.fixedEncodeURIComponent('{' + fields.join(',') + '}') : '') + (search ? '&search=' + DivaUtils.fixedEncodeURIComponent(this.parseFilter(search)) : '') + (sort ? '&sort=' + DivaUtils.fixedEncodeURIComponent(sort) : '') + (favorites ? '&favorites=true' : '');
2033
+ fullUrl = this.catalogService + '/v1/products/groups' + '?organizationId=' + this.organization._id + (this._organization.parentOrganizationIds ? '&parentOrganizationIds=' + this._organization.parentOrganizationIds.join(',') : '') + (limit ? '&limit=' + limit : '') + (skip ? '&skip=' + skip : '') + (fields ? '&fileds=' + DivaUtils.fixedEncodeURIComponent('{' + fields.join(',') + '}') : '') + (search.length ? '&search=' + DivaUtils.fixedEncodeURIComponent(this.parseFilter(search)) : '') + (sort ? '&sort=' + DivaUtils.fixedEncodeURIComponent(sort) : '') + (favorites ? '&favorites=true' : '');
2034
2034
  headers = {
2035
2035
  'Content-Type': 'application/json'
2036
2036
  };
@@ -2483,7 +2483,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
2483
2483
  OPV: v.OPV,
2484
2484
  OPTName: opt.Name,
2485
2485
  OPVName: opv.Name,
2486
- OPVImage: catalog.mediaUrl + opv.Image
2486
+ OPVImage: opv.Image ? catalog.mediaUrl + opv.Image : undefined
2487
2487
  });
2488
2488
  }
2489
2489
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/product-handler",
3
- "version": "24.15.0-beta.1",
3
+ "version": "24.15.0-beta.10",
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": "405c8fe717abfe89328865a7180e939afe203efe"
15
+ "gitHead": "0b1db3d73d38440e7f0c5d317681f49130812b97"
16
16
  }