@nuskin/ns-product-lib
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -0,1 +1,8 @@ | ||
## [1.3.5](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.3.4...v1.3.5) (2021-05-10) | ||
### Fix | ||
* added a method which was omitted in the migration of product.js from ns-shop (#CX15-3097) ([db002a0](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/db002a074a3eaf5a1a87bd223a18d3fa3dec9e91)), closes [#CX15-3097](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX15-3097) | ||
## [1.3.4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.3.3...v1.3.4) (2021-05-10) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@nuskin/ns-product-lib", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "This project contains shared Product models and code between the backend and frontend.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -352,3 +352,17 @@ "use strict"; | ||
}; | ||
this.getEventPriceTypes = () => { | ||
const eventPriceTypes = []; | ||
Object.keys(this.priceMap).forEach(priceTypeKey => { | ||
const eventPriceType = priceTypeKey.substring(0, priceTypeKey.indexOf(`-${this.priceType}`)); | ||
if (eventPriceType) { | ||
eventPriceTypes.push(eventPriceType); | ||
} | ||
}); | ||
return eventPriceTypes; | ||
}; | ||
this.getPvWithType = function(type) { | ||
@@ -355,0 +369,0 @@ let rv = this.pvMap[type]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93491
2268