@nuskin/ns-product-lib 2.5.0-cx24-3282.2 → 2.5.0-cx24-3282.3

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.5.0-cx24-3282.3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-3282.2...v2.5.0-cx24-3282.3) (2023-02-02)
2
+
3
+
4
+ ### Fix
5
+
6
+ * Get test environment if not PROD ([71c0668](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/71c06682a89fa7416b38d3f70521f0019fb1af62))
7
+
1
8
  # [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
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.5.0-cx24-3282.2",
3
+ "version": "2.5.0-cx24-3282.3",
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": {
@@ -606,8 +606,7 @@ function contentstackEnv() {
606
606
  if (typeof window === 'undefined') {
607
607
  return 'test';
608
608
  }
609
- let env = (getEnvironmentFromUrl(window.location.host) != 'prod') ? 'test' : 'prod';
610
- return env;
609
+ return (getEnvironmentFromUrl(window.location.host) != "prod" ? "test" : `prod`);
611
610
  }
612
611
 
613
612
  module.exports = ProductData;