@nuskin/cs-product-lib 1.1.0-subscription-dc.1 → 1.1.0-subscription-dc.2
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.
- package/package.json +4 -3
- package/src/formatKit.js +1 -1
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuskin/cs-product-lib",
|
|
3
|
-
"version": "1.1.0-subscription-dc.
|
|
3
|
+
"version": "1.1.0-subscription-dc.2",
|
|
4
4
|
"description": "Library for pulling and parsing product content (and applying business logic) retrieved from Contentstack",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"audit": "yarn audit --level high",
|
|
8
8
|
"jsdoc": "node_modules/.bin/jsdoc -a all -c jsdoc.json -r -d jsdocs",
|
|
9
9
|
"lint": "eslint src __tests__",
|
|
10
|
-
"test": "jest --coverage",
|
|
10
|
+
"test": "jest --coverage --testPathPattern=__tests__",
|
|
11
11
|
"security-check": "yarn audit --groups 'dependencies devDependencies' --level high",
|
|
12
|
+
"test-integration": "jest --testPathPattern=e2e",
|
|
12
13
|
"sc": "yarn security-check"
|
|
13
14
|
},
|
|
14
15
|
"publishConfig": {
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
"url": "git@code.tls.nuskin.io:ns-am/product/js-libs/cs-product-lib.git"
|
|
20
21
|
},
|
|
21
22
|
"keywords": [],
|
|
22
|
-
"author": "Nuskin
|
|
23
|
+
"author": "Nuskin Browse Team",
|
|
23
24
|
"license": "MIT",
|
|
24
25
|
"homepage": "https://code.tls.nuskin.io/ns-am/product/js-libs/cs-product-lib/blob/master/README.md",
|
|
25
26
|
"devDependencies": {
|
package/src/formatKit.js
CHANGED
|
@@ -208,7 +208,7 @@ const parseKit = (product, market) => {
|
|
|
208
208
|
subscription: kits?.availableChannels?.includes('subscription')
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
kits.subscriptionDiscounts = formatDiscounts(properties, '
|
|
211
|
+
kits.subscriptionDiscounts = formatDiscounts(properties, 'subscriptionDiscounts');
|
|
212
212
|
kits.retailDiscount = properties?.retailDiscount
|
|
213
213
|
kits.wholesaleDiscount = properties?.wholesaleDiscount
|
|
214
214
|
kits.pvDiscount = properties?.pvDiscount
|