@nuskin/ns-product-lib 2.14.3 → 2.14.4-cx15-10535.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/product.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.14.3",
3
+ "version": "2.14.4-cx15-10535.1",
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": {
@@ -31,9 +31,9 @@
31
31
  "prettier": "1.19.1"
32
32
  },
33
33
  "dependencies": {
34
- "@nuskin/configuration-sdk": "2.2.3",
35
- "@nuskin/ns-common-lib": "1.4.7",
36
- "@nuskin/ns-util": "4.3.2",
34
+ "@nuskin/configuration-sdk": "^2.3.2",
35
+ "@nuskin/ns-common-lib": "^1.4.7",
36
+ "@nuskin/ns-util": "^4.5.3",
37
37
  "axios": "0.27.2",
38
38
  "qs": "6.11.0"
39
39
  },
package/src/product.js CHANGED
@@ -448,7 +448,7 @@ const Product = function (productData) {
448
448
  };
449
449
 
450
450
  this.isBase = function () {
451
- return this.sku.substring(2, 4) === "55";
451
+ return this.sku.substring(2, 4) === "55" && this.variantSkus().length > 0;
452
452
  };
453
453
 
454
454
  this.isVariant = function () {