@longvansoftware/service-js-client 1.0.7 → 1.0.8

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.
@@ -21,12 +21,11 @@ class SDK {
21
21
  this.storefrontAccessToken = storefrontAccessToken;
22
22
  this.environment = environment;
23
23
  this.token = null;
24
+ console.log("🚀 ~ SDK ~ environment:", environment);
24
25
  (0, helpers_1.validateStorefrontAccessToken)(storefrontAccessToken);
25
- console.log("environment", environment);
26
- const endpoints = config_1.environmentEndpoints.live;
27
- // environment == "live"
28
- // ? environmentEndpoints.live
29
- // : environmentEndpoints.dev;
26
+ const endpoints = environment == "live"
27
+ ? config_1.environmentEndpoints.live
28
+ : config_1.environmentEndpoints.dev;
30
29
  //console.log("🚀 ~ SDK ~ endpoints:", endpoints.computing);
31
30
  this.product = new index_1.ProductService(endpoints.product, orgId, storeId);
32
31
  this.auth = new index_2.AuthService(endpoints.auth, orgId, storeId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [