@nuskin/ns-product-lib 2.5.0-cx24-3282.3 → 2.5.0-cx24-32821.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +10 -5
- package/package.json +1 -1
- package/src/productData.js +3 -2
package/CHANGELOG.md
CHANGED
@@ -1,23 +1,28 @@
|
|
1
|
-
# [2.5.0-cx24-
|
1
|
+
# [2.5.0-cx24-32821.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-32821.1...v2.5.0-cx24-32821.2) (2023-02-02)
|
2
2
|
|
3
3
|
|
4
4
|
### Fix
|
5
5
|
|
6
|
-
* Get test environment if not PROD ([
|
6
|
+
* Get test environment if not PROD ([ddbe173](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/ddbe173f59ce867476c39bc75034f605fe351cd3))
|
7
7
|
|
8
|
-
# [2.5.0-cx24-
|
8
|
+
# [2.5.0-cx24-32821.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-32821.1) (2023-02-02)
|
9
9
|
|
10
10
|
|
11
11
|
### Fix
|
12
12
|
|
13
|
-
* Get test environment if not PROD ([
|
13
|
+
* Get test environment if not PROD ([8bf5d3c](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/8bf5d3cabc3de850f3742abf7a27b4751e00d100))
|
14
|
+
* Get test environment if not PROD ([f41db9c](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/f41db9cee5aa0dde3885fc45ab8a391a325ab9a1))
|
15
|
+
|
16
|
+
### Release
|
17
|
+
|
18
|
+
* Automated changes by GitLab pipeline [skip ci] ([a1b0259](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/a1b02590dd8aec0f2361d58848d6a35f3f654664))
|
14
19
|
|
15
20
|
# [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)
|
16
21
|
|
17
22
|
|
18
23
|
### Fix
|
19
24
|
|
20
|
-
* Get test environment if not PROD ([
|
25
|
+
* Get test environment if not PROD ([f41db9c](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/f41db9cee5aa0dde3885fc45ab8a391a325ab9a1))
|
21
26
|
|
22
27
|
# [2.5.0-cx24-2179.2.19](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.18...v2.5.0-cx24-2179.2.19) (2023-01-27)
|
23
28
|
|
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 == market) {
|
29
29
|
return await this.getProductFromEquinox(skus, localeMarket, config);
|
30
30
|
}
|
31
31
|
}
|
@@ -606,7 +606,8 @@ function contentstackEnv() {
|
|
606
606
|
if (typeof window === 'undefined') {
|
607
607
|
return 'test';
|
608
608
|
}
|
609
|
-
|
609
|
+
|
610
|
+
return (getEnvironmentFromUrl(window.location.host) != "prod") ? "test" : "prod";
|
610
611
|
}
|
611
612
|
|
612
613
|
module.exports = ProductData;
|