@nuskin/ns-product-lib 2.6.0-cx24-3464.14 → 2.6.0-cx24-3464.16

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.16](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.0-cx24-3464.15...v2.6.0-cx24-3464.16) (2023-03-12)
2
+
3
+
4
+ ### Update
5
+
6
+ * get child skus to be used for add-to-cart #CX24-3464 ([2c26f7e](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/2c26f7e0fc462cda6380aee8d6b1c0dbbcac555c)), 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.15](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.0-cx24-3464.14...v2.6.0-cx24-3464.15) (2023-03-11)
9
+
10
+
11
+ ### Update
12
+
13
+ * get child skus to be used for add-to-cart #CX24-3464 ([02a8995](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/02a8995022dd0a196826df52b3723b8d19c0ea38)), 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.14](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.0-cx24-3464.13...v2.6.0-cx24-3464.14) (2023-03-11)
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.14",
3
+ "version": "2.6.0-cx24-3464.16",
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": {
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@nuskin/configuration-sdk": "2.2.3",
35
35
  "@nuskin/ns-common-lib": "1.4.5",
36
- "@nuskin/ns-util": "4.2.4",
36
+ "@nuskin/ns-util": "4.2.5",
37
37
  "axios": "0.27.2",
38
38
  "qs": "6.11.0"
39
39
  },
@@ -1,9 +1,9 @@
1
1
  /**
2
- * mapAvailableQuantity returns the atp (available-to-purchase) quantity.
2
+ * availableQuantity returns the atp (available-to-purchase) quantity.
3
3
  * @param {import('./').Product} product
4
4
  * @returns {number}
5
5
  */
6
- function mapAvailableQuantity(product) {
6
+ function availableQuantity(product) {
7
7
  if (product.inventoryProperties) {
8
8
  return product.inventoryProperties.atpQty;
9
9
  }
@@ -19,4 +19,4 @@ function mapAvailableQuantity(product) {
19
19
  return 0;
20
20
  }
21
21
 
22
- module.exports = mapAvailableQuantity;
22
+ module.exports = availableQuantity;