@nuskin/ns-product-lib 2.6.0-cx24-3464.9 → 2.6.0-cx24-3464.11

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [2.6.0-cx24-3464.11](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.0-cx24-3464.10...v2.6.0-cx24-3464.11) (2023-03-10)
2
+
3
+
4
+ ### Update
5
+
6
+ * get child skus to be used for add-to-cart #CX24-3464 ([d247386](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/d247386bb66820927774379bad5fdafd3c325096)), closes [#CX24-3464](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3464)
7
+
8
+ # [2.6.0-cx24-3464.10](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.0-cx24-3464.9...v2.6.0-cx24-3464.10) (2023-03-10)
9
+
10
+
11
+ ### Update
12
+
13
+ * get child skus to be used for add-to-cart #CX24-3464 ([9366b24](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/9366b2494f4ced1f635fa709bdf4ca7a9f25cef4)), closes [#CX24-3464](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3464)
14
+
1
15
  # [2.6.0-cx24-3464.9](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.0-cx24-3464.8...v2.6.0-cx24-3464.9) (2023-03-10)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.6.0-cx24-3464.9",
3
+ "version": "2.6.0-cx24-3464.11",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -508,7 +508,15 @@ const ProductData = {
508
508
  });
509
509
  const skus = kits.map(k => k.sku);
510
510
  const res = await this.searchEquinoxProduct(skus, locale, config);
511
- const childSkus = res.data.product.map(p => this.buildChildSkus(kits, p));
511
+ const childSkus = [
512
+ {
513
+ productId: product.identifier,
514
+ skuId: product.identifier,
515
+ type: 'SKUKIT',
516
+ availableChannels: product.properties.availableChannels
517
+ },
518
+ ...res.data.product.map(p => this.buildChildSkus(kits, p))
519
+ ];
512
520
 
513
521
  return childSkus;
514
522
  }