@nuskin/ns-product-lib 2.5.0-cx24-3282.1 → 2.5.0-cx24-3282.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/productData.js +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [2.5.0-cx24-3282.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-3282.1...v2.5.0-cx24-3282.2) (2023-02-02)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* Get test environment if not PROD ([dc25437](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/dc25437433126ad7f817660b83d62000d7256475))
|
7
|
+
|
1
8
|
# [2.5.0-cx24-3282.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.19...v2.5.0-cx24-3282.1) (2023-02-02)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -25,7 +25,7 @@ const ProductData = {
|
|
25
25
|
clientId: '735b1eb810304bba966af0891ab54053'
|
26
26
|
}));
|
27
27
|
|
28
|
-
if (config.Equinox_Markets.country_code != '') {
|
28
|
+
if (config.Equinox_Markets.country_code != '' || config.Equinox_Markets.country_code == market) {
|
29
29
|
return await this.getProductFromEquinox(skus, localeMarket, config);
|
30
30
|
}
|
31
31
|
}
|
@@ -606,8 +606,8 @@ function contentstackEnv() {
|
|
606
606
|
if (typeof window === 'undefined') {
|
607
607
|
return 'test';
|
608
608
|
}
|
609
|
-
|
610
|
-
return
|
609
|
+
let env = (getEnvironmentFromUrl(window.location.host) != 'prod') ? 'test' : 'prod';
|
610
|
+
return env;
|
611
611
|
}
|
612
612
|
|
613
613
|
module.exports = ProductData;
|